@univerjsengine-renderfunctionsExpandrangeifintersects

@univerjs/engine-render v0.5.0-beta.1Docs


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

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/tools.ts:761