API Reference
@univerjs
@univerjs/engine-render
functions
Expandrangeifintersects

@univerjs/engine-render v0.4.2Docs


Function: expandRangeIfIntersects()

function expandRangeIfIntersects(mainRanges, ranges): IRange[]

If there is an intersection in ranges to the mainRanges, extend it to the first set of ranges.

Parameters

ParameterTypeDescription
mainRangesIRange[]target ranges
rangesIRange[]-

Returns

IRange[]

Defined in

submodules/univer/packages/engine-render/src/basics/tools.ts:836 (opens in a new tab)


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