@univerjs/core v0.4.2 • Docs
Function: getIntersectRange()
function getIntersectRange(src, target): Nullable<IRange>
Computes the intersection of two ranges. If there is an overlap between the two ranges, returns a new range representing the intersection. If there is no overlap, returns null.
Parameters
Parameter | Type | Description |
---|---|---|
src | IRange | The source range. |
target | IRange | The target range. |
Returns
The intersected range or null if there is no intersection.
Defined in
submodules/univer/packages/core/src/shared/range.ts:268 (opens in a new tab)