The number of pixels occupied in a line.
Returns a new translation value that respects domain min/max value constraints.
Returns the center
value to be used with zoomAt
that will produce the
target
value given the same value
and zoom
arguments. Algebra
brought to you by Wolfram Alpha.
Checks whether a Component-coordinate-space Point is inside the Component.
A Point in Compoennt-space coordinates.
Whether or not the point is inside the Component.
Adds an x scale to this PanZoom Interaction
Adds a y scale to this PanZoom Interaction
Attaches this Interaction to a Component. If the Interaction was already attached to a Component, it first detaches itself from the old Component.
Detaches this Interaction from the Component. This Interaction can be reused.
Gets whether this Interaction is enabled.
Enables or disables this Interaction.
Whether the Interaction should be enabled.
Gets the maximum domain extent for the scale, specifying the maximum allowable amount between the ends of the domain.
Note that extents will mainly work on scales that work linearly like Linear Scale and Time Scale
The scale to query
The maximum numerical domain extent for the scale.
Sets the maximum domain extent for the scale, specifying the maximum allowable amount between the ends of the domain.
For example, if the scale's transformation domain is [500, 600]
and the
maxDomainExtent
is set to 50
, then the user will only be able to zoom
out to see an interval like [500, 550]
or [520, 570]
.
Note that extents will mainly work on scales that work linearly like Linear Scale and Time Scale
The scale to query
Gets the maximum domain value for the scale, constraining the pan/zoom interaction to a maximum value in the domain.
Note that this differs from minDomainExtent/maxDomainExtent, in that those methods provide constraints such as showing at least 2 but no more than 5 values at a time.
By contrast, minDomainValue/maxDomainValue set a boundary beyond which the user cannot pan/zoom.
The scale to query
The maximum domain value for the scale.
Sets the maximum domain value for the scale, constraining the pan/zoom interaction to a maximum value in the domain.
Note that this differs from minDomainExtent/maxDomainExtent, in that those methods provide constraints such as showing at least 2 but no more than 5 values at a time.
By contrast, minDomainValue/maxDomainValue set a boundary beyond which the user cannot pan/zoom.
The scale to query
Gets the minimum domain extent for the scale, specifying the minimum allowable amount between the ends of the domain.
Note that extents will mainly work on scales that work linearly like Linear Scale and Time Scale
The scale to query
The minimum numerical domain extent for the scale.
Sets the minimum domain extent for the scale, specifying the minimum allowable amount between the ends of the domain.
Note that extents will mainly work on scales that work linearly like Linear Scale and Time Scale
The scale to query
The minimum numerical domain extent for the scale.
Gets the minimum domain value for the scale, constraining the pan/zoom interaction to a minimum value in the domain.
Note that this differs from minDomainExtent/maxDomainExtent, in that those methods provide constraints such as showing at least 2 but no more than 5 values at a time.
By contrast, minDomainValue/maxDomainValue set a boundary beyond which the user cannot pan/zoom.
The scale to query
The minimum domain value for the scale.
Sets the minimum domain value for the scale, constraining the pan/zoom interaction to a minimum value in the domain.
Note that this differs from minDomainExtent/maxDomainExtent, in that those methods provide constraints such as showing at least 2 but no more than 5 values at a time.
By contrast, minDomainValue/maxDomainValue set a boundary beyond which the user cannot pan/zoom.
The scale to query
Removes a callback that would be called when panning ends.
Removes a callback that would be called when zooming ends.
Adds a callback to be called when panning ends.
Adds a callback to be called when zooming ends.
Pans the chart by a specified amount
Removes an x scale from this PanZoom Interaction
Removes a y scale from this PanZoom Interaction
Uses the current domain of the scale to apply a minimum and maximum domain value for that scale.
This constrains the pan/zoom interaction to show no more than the domain of the scale.
Gets the x scales for this PanZoom Interaction.
Sets the x scales for this PanZoom Interaction.
Gets the y scales for this PanZoom Interaction.
Sets the y scales for this PanZoom Interaction.
Zooms the chart by a specified amount around a specific point
Generated using TypeDoc
A PanZoom Interaction updates the domains of an x-scale and/or a y-scale in response to the user panning or zooming.