API reference
@searsuite/sear-foundation-range
Range primitives and normalization helpers used by Sheet and Doc domains.
1 exportsderived from source
- classRangesource ↗
-
class RangeParses 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.
constructorconstructor Range(range: string): RangeConstructs a range from an A1-style string.
range: stringRange string in the form A1:B2.
memberrange range: unknownmembershape shape: unknownmethodcontains contains(x: number, y: number): booleanTests whether a one-based coordinate is inside this range.
ReturnsTrue when the coordinate falls inside the range.
x: numberOne-based column coordinate.
y: numberOne-based row coordinate.
methodtoString toString(): stringSerializes the range back to A1 notation.
methodcolumnToNumberstatic columnToNumber(column: string): numberConverts an Excel-style column label to a one-based column number.
ReturnsOne-based column number.
column: stringColumn label such as A or AA.
methodnumberToColumnstatic numberToColumn(number: number): stringConverts a one-based column number to an Excel-style label.
ReturnsColumn label such as A or AA.
number: numberOne-based column number.
No public exports match that search.