Function: getIntersectRange()
function getIntersectRange(src, target): Nullable<IRange>
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/range.ts:268
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.