@univerjs/sheets v0.5.0-beta.1 • Docs
Function: rangeMerge()
function rangeMerge(ranges): IRange[]
Some operations generate sparse ranges such as paste/autofill/ref-range, and this function merge some small ranges into some large ranges to reduce transmission size. Time Complexity: O(mn) , where m and n are rows and columns. It takes O(mn) to compute the markMatrix and O(n) to apply the histogram algorithm to each column. ps. column sparse matrices have better performance
Parameters
Parameter | Type |
---|---|
ranges | IRange [] |
Returns
IRange
[]
Defined in
submodules/univer/packages/sheets/src/basics/rangeMerge.ts:132