The d3 zoom transformation information
The x-position of the mouse when the scroll wheel or gesture is used
The current dimensions of the plot
The container width
The plot margins
The linear x-axis
The time-range of the current x-axis
The zoom factor and updated time-range
Calculates the (min, max) of all the values (from the accessor) in the data matrix, clamped by the global (currentMin, currentMax).
Curried function that accepts an accessor used to grab the value from the data point, and array of (x, y) values (each (x, y) value is represented as [number, number] tuple), and a global, current min and max values. The global, current min and max clamp the calculated min and max values.
Access function that accepts a datum and returns the value which to use in the min-max calc
A function that accepts data (represented as a matrix of (x, y) pairs, where each row is a data series), a global currentMin and currentMax, which clamp the calculated results. The function return a tuple holding the min as the first value and the max as the second value.
Sets up the min-max function to extract the y-value of the time-series.
Defines a function that accepts an array of time-series (matrixish) and returns the min and max y-value for all the values in all the series.
Calculates whether the mouse is in the plot-area
The x-coordinate of the mouse's position
The y-coordinate of the mouse's position
The plot margins
The the overall dimensions (plot dimensions plus margin)
true
if the mouse is in the plot area; false
if the mouse is not in the plot area
No operation function for use when a default function is needed
Calculates the width of an SVG text element, based on its bounding box
The SVG text element
The width in pixels, or 0 if SVG text element has not children
Generated using TypeDoc
Called when the user uses the scroll wheel (or scroll gesture) to zoom in or out. Zooms in/out at the location of the mouse when the scroll wheel or gesture was applied.