Retrieves the bounding svg of the input element
The element to query
The bounding svg
Returns true if and only if innerClientRect is inside outerClientRect.
The first ClientRect
The second ClientRect
If and only if the innerClientRect is inside outerClientRect.
Checks if the first ClientRect overlaps the second.
The first ClientRect
The second ClientRect
If the ClientRects overlap each other.
Gets the bounding box of an element.
The bounding box.
Calculates the height of the element. The height includes the padding the and the border on the element's top and bottom sides.
The element to query
The height of the element
Calculates the width of the element. The width includes the padding and the border on the element's left and right sides.
The element to query
The width of the element.
Generates a ClipPath ID that is unique for this instance of Plottable
Returns true if the supplied coordinates or Ranges intersect or are contained by bbox.
The x coordinate or Range to test
The y coordinate or Range to test
The bbox
Amount by which to expand bbox, in each dimension, before testing intersection
True if the supplied coordinates or Ranges intersect or are contained by bbox, false otherwise.
Polyfill for window.requestAnimationFrame
.
If the function exists, then we use the function directly.
Otherwise, we set a timeout on SCREEN_REFRESH_RATE_MILLISECONDS
and then perform the function.
The callback to call in the next animation frame
Retrieves the number array representing the translation for the selection
The selection to query
The number array representing the translation
Translates the given selection by the input x / y pixel amounts.
The selection to translate
The amount to translate in the x direction
The amount to translate in the y direction
The input selection
Generated using TypeDoc
Screen refresh rate which is assumed to be 60fps