@searsuite/sear-foundation-range
Range primitives and normalization helpers used by Sheet and Doc domains.
- classRange
-
Parses and represents an Excel-style rectangular range.
The public coordinates are one-based because the string format is A1-based, while column conversion delegates to the shared zero-based label utilities.
constructor Range(range: string): RangeConstructs a range from an A1-style string.
rangeRange string in the form A1:B2.
memberrange range: unknownmembershape shape: unknownmethod contains(x: number, y: number): booleanTests whether a one-based coordinate is inside this range.
ReturnsTrue when the coordinate falls inside the range.
xOne-based column coordinate.
yOne-based row coordinate.
method toString(): stringSerializes the range back to A1 notation.
method columnToNumber(column: string): numberstaticConverts an Excel-style column label to a one-based column number.
ReturnsOne-based column number.
columnColumn label such as A or AA.
method numberToColumn(number: number): stringstaticConverts a one-based column number to an Excel-style label.
ReturnsColumn label such as A or AA.
numberOne-based column number.
No matching API entries.