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:91
Parameters¶
stateManager¶
Returns¶
void
setCommandHandler()¶
Defined in: ui/Console.ts:105
Parameters¶
commandHandler¶
Returns¶
void
setMapDisplay()¶
Defined in: ui/Console.ts:113
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:340
Parameters¶
message¶
string
className?¶
string = ''
Returns¶
void
clear()¶
Defined in: ui/Console.ts:351
Returns¶
void
displaySentCommand()¶
Defined in: ui/Console.ts:362
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:585
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:602
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:620
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:745
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