visualization-tools

Home > @visualization-tools/cartesian-2d > Cartesian2dFloatPrecisionRangeBounder

Cartesian2dFloatPrecisionRangeBounder class

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>

Remarks

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.

Constructors

Constructor Modifiers Description
(constructor)(numberUtil, rangeScaleFactor)   Constructs a new instance of the Cartesian2dFloatPrecisionRangeBounder class

Properties

Property Modifiers Type Description
maxBounds   IReadonlyRange2d<TArray>  
maxZoom   number  

Methods

Method Modifiers Description
boundRange(o_dataRange, pixelRange, maxBounds)