Creates a new Subplot instance from MAIDR subplot data
The MAIDR subplot data containing layers
Protected ReadonlyobserversProtectedisProtected ReadonlymovableReadonlytracesReadonlytraceProtecteddimensionProtectedvaluesProtectedoutReturns the pre-resolved parent <g id="axes_*"> element for this subplot.
This is set externally via setAxesElement during layout resolution
and does not perform any DOM queries.
The axes SVGElement, or null if not resolved.
ProtectedgetGets safe row and column indices to prevent accessing undefined values
Object with safe row and column indices
Registers an observer to receive state updates.
The observer to add
Removes an observer from receiving state updates.
The observer to remove
Notifies all registered observers with the current state.
Notifies observers that an out-of-bounds condition occurred.
Base implementation of navigation in HIGHER and LOWER modes of ROTOR, default is no-op Needs to be implemented in Line, Bar, Heatmap, Candlestick
Utility function to compare point values for rotor functionality
boolean value
Gets the number of traces in the subplot
The size (number of traces)
Override moveOnce to avoid "initial entry" no-op behavior for layer navigation.
For multi-layer subplots, the MovableGrid is used to step between layers (traces). We don't want the first PageUp/PageDown to be eaten by handleInitialEntry; instead, it should actually switch layers.
Moves the element to the specified (x, y) point.
This base implementation is intentionally left empty. Subclasses should override this method to provide specific logic for moving to a point, such as updating highlight values or managing selection boxes.
The x-coordinate to move to.
The y-coordinate to move to.
Gets the subplot state with figure position context
The row position in the figure
The column position in the figure
The subplot state
Returns the subplot's own SVG highlight element (resolved from subplot.selector).
Used by the layout utility to locate the parent axes group.
The SVG element, or null if the subplot has no selector.
Returns the CSS selector string from the first layer of this subplot.
Used as a fallback by the layout utility when getHighlightElement() is null.
The selector string, or null if unavailable.
Sets the pre-resolved axes element for this subplot. Called by Figure.applyLayout during initialization.
The axes SVGElement to store.
Interface for plot traces that support keyboard navigation and movement.