@univerjs/sheets-ui v0.5.4


Function: getRepeatRange()

function getRepeatRange(
   sourceRange, 
   targetRange, 
   isStrictMode?): {
  repeatRelativeRange: IRange;
  startRange: IRange;
 }[]

Defined in: submodules/univer/packages/sheets-ui/src/services/clipboard/utils.ts:31

Parameters

ParameterTypeDefault valueDescription
sourceRangeIRangeundefined-
targetRangeIRangeundefined-
isStrictMode?booleanfalseif is true,the remainder of the row and column must all be 0 to be repeated

Returns

{ repeatRelativeRange: IRange; startRange: IRange; }[]