API Reference
@univerjs
@univerjs/sheets
functions
Getinsertrangemutations

@univerjs/sheets v0.1.17Docs


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

Defined in

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


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