API Reference
@univerjs
@univerjs/sheets
functions
Getinsertrangemutations

@univerjs/sheets v0.4.2Docs


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>[]packages/sheets/src/commands/utils/handle-range-mutation.ts:177 (opens in a new tab)
undoIMutationInfo<object>[]packages/sheets/src/commands/utils/handle-range-mutation.ts:178 (opens in a new tab)

Defined in

packages/sheets/src/commands/utils/handle-range-mutation.ts:80 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.