API Reference
@univerjs
@univerjs/sheets-ui
functions
Virtualizediscreteranges

@univerjs/sheets-ui v0.4.2Docs


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; }packages/sheets-ui/src/controllers/utils/range-tools.ts:64 (opens in a new tab)
rangesIRange[]packages/sheets-ui/src/controllers/utils/range-tools.ts:63 (opens in a new tab)

Defined in

packages/sheets-ui/src/controllers/utils/range-tools.ts:62 (opens in a new tab)


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