AbstractProtectedconstructorProtectedThe axis-range start value.
The axis-range end value.
OptionaloriginalStart: number = startThe optional original axis-range start value. Defaults to the start value if not specified.
OptionaloriginalEnd: number = endThe optional original axis-range end value. Defaults to the end value if not specified.
Returns the current distance between the start and end of the range.
Returns the original (e.g. before any zooming or panning) distance between the start and end of the range.
The ratio between the current and original distance.
AbstractconstrainedScales the axis-range by the specified scale factor, but constrains the range to the specified constraint min and max. The equations are written so that the zooming (scaling) occurs at the specified value, and expands/contracts equally from that value.
The scale factor
The value at which the zoom is initiated
The min and max range
A new continuous-axis range with updated values
Determines whether the specified (start, end) interval matches the original interval
The start of the interval
The end of the interval
true if the specified interval matches the original interval; false otherwise
AbstractscaleScales the axis-range by the specified scale factor from the specified value. The equations are written so that the zooming (scaling) occurs at the specified value, and expands/contracts equally from that value.
The scale factor
The time from which to scale the interval
A new continuous-axis range with updated values
ProtectedscaledScales the range using the current scale-factor (closure on scaleFactor)
The factor used to update the range
The current value being scaled
The new range, represented by an array holding the start and end value
AbstracttranslateTranslates the axis-range by the specified amount
The amount by which to translate the axis-range
Optionalconstraints: [start: number, end: number]Optional constraint interval in which the axis range must be within
An updated ContinuousAxisRange that has been translated by the specified amount
AbstractupdateUpdates the axis-range based on the new start and end values
The new start of the axis-range
The new end of the axis range
The updated axis-range type, with all other values unchanged
AbstractupdateUpdates the original range with the new start and end values.
The new value for the start of the original range
The new value for the end of the original range
The updated original range.
An immutable axis range that holds the current range and the original (no zoom) range.