Constructs a TextService instance with notification support.
The notification service for user alerts
Optionalformatter: FormatterServiceOptional formatter service for custom value formatting
Disposes of event emitters and releases resources.
Get coordinate information from the current state Returns null if no valid state is available
Formats plot state into human-readable text based on current mode.
The state to format (string or PlotState object)
Formatted text representation of the state
Builds the spoken cue for ENTERING a subplot from the multi-panel figure lobby, respecting the current text mode:
null (only the enter tone signals the transition);Lives here (not in the command layer) so all lobby wording and its terse/verbose rules share one home with formatFigureText.
1-based visual position of the entered subplot.
Total number of subplots in the figure.
The entered trace's plot type ('' to omit).
The entered subplot's authored title ('' when none).
The message to announce, or null when text mode is OFF.
Builds the spoken cue for EXITING a subplot back to the multi-panel figure lobby, respecting the current text mode:
null (only the exit tone signals the transition);Shares the lobby wording rules with subplotEntryText and formatFigureText.
The figure lobby state returned to.
The focused subplot's authored title ('' when none).
The message to announce, or null when text mode is OFF.
Updates the service with new plot state and emits appropriate events.
The new plot state to process
Toggles between text modes (OFF, TERSE, VERBOSE) in sequence.
True if text mode is now active (not OFF), false otherwise
Checks if the text service is in verbose mode.
True if text mode is set to verbose, false otherwise
Checks if the text service is in terse mode.
True if text mode is set to terse, false otherwise
Checks if the text service is turned off.
True if text mode is set to off, false otherwise
Service for managing text output and formatting of plot state information.