@univerjssheetsindexfunctionsGetmoverangeundoredomutations

@univerjs/sheets v0.5.0-beta.1Docs


Function: getMoveRangeUndoRedoMutations()

function getMoveRangeUndoRedoMutations(
   accessor, 
   from, 
   to, 
   ignoreMerge): null | {
  redos: IMutationInfo<object>[];
  undos: IMutationInfo<object>[];
}

Parameters

ParameterTypeDefault value
accessorIAccessorundefined
fromIRangeUnitundefined
toIRangeUnitundefined
ignoreMergebooleanfalse

Returns

null | { redos: IMutationInfo<object>[]; undos: IMutationInfo<object>[]; }

Defined in

submodules/univer/packages/sheets/src/commands/commands/move-range.command.ts:131