ui/Console¶
Classes¶
Console¶
Defined in: ui/Console.ts:27
Constructors¶
Constructor¶
Defined in: ui/Console.ts:42
Returns¶
Methods¶
setStateManager()¶
Defined in: ui/Console.ts:94
Set state manager reference to access command dictionary
Parameters¶
stateManager¶
Returns¶
void
setCommandHandler()¶
Defined in: ui/Console.ts:111
Set command handler reference for processing local commands
Parameters¶
commandHandler¶
Returns¶
void
setMapDisplay()¶
Defined in: ui/Console.ts:119
Provide a MapDisplay reference so the console can offer map-click coordinate/heading insertion while the user types a command.
Parameters¶
mapDisplay¶
navaidSnapper¶
Returns¶
void
addMessage()¶
Defined in: ui/Console.ts:358
Parameters¶
message¶
string
className?¶
string = ''
Returns¶
void
clear()¶
Defined in: ui/Console.ts:369
Returns¶
void
displaySentCommand()¶
Defined in: ui/Console.ts:380
Display a command that was sent (e.g., from modals or UI interactions) in the console output and add it to the arrow-key history.
Parameters¶
command¶
string
Returns¶
void
setInputValue()¶
Defined in: ui/Console.ts:614
Replace the input contents with text, focus it with the cursor at
the end, and refresh all derived UI. Used by the command palette and
left panel to drop a selected command name into the input.
Parameters¶
text¶
string
Returns¶
void
submitCurrent()¶
Defined in: ui/Console.ts:631
Submit whatever is currently typed in the console input as if Enter had been pressed, trimming trailing separators first. Used by ConsoleMapPicker to finish a POLY-family drawing on right-click.
Returns¶
void
clearInput()¶
Defined in: ui/Console.ts:649
Clear the console input and tear down all derived UI without sending anything. Used by ConsoleMapPicker to cancel an in-progress POLY-family drawing on Escape.
Returns¶
void
insertGeoValue()¶
Defined in: ui/Console.ts:774
Insert a value into the console input, truncating everything from the
argument slot at replaceFromArgIndex onward first so a map click
cleanly replaces already-typed coordinates. Used by ConsoleMapPicker.
Parameters¶
value¶
string
The text to insert (e.g. "52.370000,4.900000" or "270")
replaceFromArgIndex¶
number
The argument slot to truncate back to.
argsAdvanced¶
number
How many arguments the insertion fills: decides whether a trailing comma (more args expected) or a space (command complete) is appended. Pass 2 for a lat,lon pair, 1 for one value.
Returns¶
void