Whether the virtual delta layer is the active navigation target.
The remembered reference line id, or null when none has been chosen.
Injects the observer wiring used for runtime-created traces. The Controller owns the services that must observe a trace (audio, braille, text, review, highlight), so it supplies this hook after construction.
Callback registering all trace observers
Lists the reference series available for comparison in the current subplot, or null when the feature does not apply here (the active trace is not a candlestick, or no line layer exists alongside it).
The selectable references, or null when unavailable
Moves keyboard focus into the reference picker dialog scope.
Closes the reference picker dialog scope, returning to the previous scope.
Remembers a reference line as the active comparison target. Persists across on/off toggles until the user picks a different one.
Id of the reference series (from getReferences)
Builds and activates the virtual delta layer for the remembered (or given) reference line, comparing every OHLC field. Replaces an already-active delta layer in place when the user reconfigures via the reference picker.
Reference series id; defaults to the remembered one
True when the layer was activated
Deactivates the virtual delta layer and restores the real chart layer. The remembered reference is kept so a later Alt+L can re-enable it.
Deactivation options
Optionalsilent?: booleanSkip announcements and position sync (used when another navigation action is about to announce anyway)
True when an active layer was deactivated
Deactivates without announcements if the delta layer is active. Used by layer-switching commands so PageUp/PageDown from a nested mode cannot strand the virtual trace on the navigation stack.
Discards the virtual layer's internal state and resets the rotor WITHOUT
touching the plot context stack or display focus. Used by callers that
manage the navigation stack and keyboard scope themselves while tearing
the delta layer down — e.g. the braille-Escape command on a multi-panel
figure, which pops the delta trace via exitSubplot() and re-focuses the
plot on its own. Using deactivate there would double-manage the
stack and fire a competing focus change.
Manages the virtual candlestick delta layer: discovers reference lines in the active subplot, remembers the user's chosen reference line, builds the CandlestickDeltaTrace on demand, swaps it in/out of the navigation context, and announces activation and exit.
Interaction model: