Home > @visualization-tools/cartesian-2d > Cartesian2dFloatPrecisionRangeBounder
Constrains the data range so that the mapping into screen space is not worse than per pixel because of float precision.
Signature:
export declare class Cartesian2dFloatPrecisionRangeBounder<TArray extends Float32Array | Float64Array> implements ICartesian2dInteractionBounder<TArray>
Implements: ICartesian2dInteractionBounder<TArray>
The maximum zoom is a function of magnitude, larger values will have fewer bytes of precision. High dpi screens will typically have a range between 2 and 4 times smaller than standard definition screens.
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(numberUtil, rangeScaleFactor) | Constructs a new instance of the Cartesian2dFloatPrecisionRangeBounder class |
| Property | Modifiers | Type | Description |
|---|---|---|---|
| maxBounds | IReadonlyRange2d<TArray> | ||
| maxZoom | number |
| Method | Modifiers | Description |
|---|---|---|
| boundRange(o_dataRange, pixelRange, maxBounds) |