@univerjsengine-renderfunctionsExpandrangeifintersects

@univerjs/engine-render v0.5.4


Function: expandRangeIfIntersects()

function expandRangeIfIntersects(mainRanges, ranges): IRange[]

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

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[]