@univerjssheets-uiindexfunctionsVirtualizediscreteranges

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


Function: virtualizeDiscreteRanges()

function virtualizeDiscreteRanges(ranges): {
  mapFunc: (row, col) => {
     col: number;
     row: number;
    };
  ranges: IRange[];
}

Parameters

ParameterType
rangesIDiscreteRange[]

Returns

{
  mapFunc: (row, col) => {
     col: number;
     row: number;
    };
  ranges: IRange[];
}
NameTypeDefined in
mapFunc(row, col) => { col: number; row: number; }submodules/univer/packages/sheets-ui/src/controllers/utils/range-tools.ts:64
rangesIRange[]submodules/univer/packages/sheets-ui/src/controllers/utils/range-tools.ts:63

Defined in

submodules/univer/packages/sheets-ui/src/controllers/utils/range-tools.ts:62