@univerjssheetsindexfunctionsGetinsertrangemutations

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


Function: getInsertRangeMutations()

function getInsertRangeMutations(accessor, params): {
  redo: IMutationInfo<object>[];
  undo: IMutationInfo<object>[];
}

InsertRange is not a mutation but combination of SetRangeValuesMutation and MoveRangeMutation.

Parameters

ParameterType
accessorIAccessor
paramsIInsertRangeMutationParams

Returns

{
  redo: IMutationInfo<object>[];
  undo: IMutationInfo<object>[];
}
NameTypeDefined in
redoIMutationInfo<object>[]submodules/univer/packages/sheets/src/commands/utils/handle-range-mutation.ts:177
undoIMutationInfo<object>[]submodules/univer/packages/sheets/src/commands/utils/handle-range-mutation.ts:178

Defined in

submodules/univer/packages/sheets/src/commands/utils/handle-range-mutation.ts:80