The CSS class to add.
Attaches the Component as a child of a given d3 Selection.
Gets the Selection containing the
Will return undefined if the Component has not been anchored.
background selection for the Component
for the component in pixel space, where the topLeft represents the component's minimum x and y values and the bottomRight represents the component's maximum x and y values.
Gets a Selection containing a
Will return undefined if the Component has not been anchored.
content selection for the Component
Detaches a Component from the DOM. The Component can be reused.
This should only be used if you plan on reusing the calling Component. Otherwise, use destroy().
Gets the detection radius of the drag line in pixels.
Sets the detection radius of the drag line in pixels.
Gets whether the DragLineLayer is enabled.
Enables or disables the DragLineLayer.
Gets the Selection containing the
Will return undefined if the Component has not been anchored.
Checks if the Component has a given CSS class.
The CSS class to check for.
Gets the height of the Component in pixels.
Removes a callback that would be called on anchoring the Component to the DOM. The callback is identified by reference equality.
Removes a callback to be called when the Component is detach()-ed. The callback is identified by reference equality.
Removes a callback that would be called during dragging.
Removes a callback that would be called when dragging ends.
Removes a callback that would be called when dragging starts.
Adds a callback to be called on anchoring the Component to the DOM. If the Component is already anchored, the callback is called immediately.
Adds a callback to be called when the Component is detach()-ed.
Sets a callback to be called during dragging. The callback will be passed the calling DragLineLayer.
Sets a callback to be called when dragging ends. The callback will be passed the calling DragLineLayer.
Sets the callback to be called when dragging starts. The callback will be passed the calling DragLineLayer.
Sets a callback that gets called when the component resizes. The size change is not guaranteed to be reflected by the DOM at the time the callback is fired.
Gets the origin of the Component relative to its parent.
Gets the origin of the Component relative to the root
Gets the parent ComponentContainer for this Component.
Sets the parent ComponentContainer for this Component. An error will be thrown if the parent does not contain this Component. Adding a Component to a ComponentContainer should be done using the appropriate method on the ComponentContainer.
Gets the position of the guide line in pixel-space.
Sets the position of the guide line in pixel-space. If the GuideLineLayer has a scale, the value() will be updated now and whenever the scale updates.
Causes the Component to re-layout and render.
This function should be called when a CSS change has occured that could influence the layout of the Component, such as changing the font size.
Removes a given CSS class from the Component.
The CSS class to remove.
Queues the Component for rendering.
Renders the Component to a given
A selector-string for the
Given available space in pixels, returns the minimum width and height this Component will need.
Gets the QuantitativeScale on the GuideLineLayer.
Sets the QuantitativeScale on the GuideLineLayer. If value() was the last property set, pixelPosition() will be updated according to the new scale. If pixelPosition() was the last property set, value() will be updated according to the new scale.
Gets the value of the guide line in data-space.
Sets the value of the guide line in data-space. If the GuideLineLayer has a scale, pixelPosition() will be updated now and whenever the scale updates.
Gets the width of the Component in pixels.
Gets the x alignment of the Component.
Sets the x alignment of the Component.
The x alignment of the Component ("left"/"center"/"right").
Gets the y alignment of the Component.
Sets the y alignment of the Component.
The y alignment of the Component ("top"/"center"/"bottom").
Generated using TypeDoc
Adds a given CSS class to the Component.