Skip to content

ui/Console

Classes

Console

Defined in: ui/Console.ts:27

Constructors

Constructor
new Console(): Console;

Defined in: ui/Console.ts:42

Returns

Console

Methods

setStateManager()
setStateManager(stateManager): void;

Defined in: ui/Console.ts:94

Set state manager reference to access command dictionary

Parameters
stateManager

StateManager

Returns

void

setCommandHandler()
setCommandHandler(commandHandler): void;

Defined in: ui/Console.ts:111

Set command handler reference for processing local commands

Parameters
commandHandler

CommandHandler

Returns

void

setMapDisplay()
setMapDisplay(mapDisplay, navaidSnapper): void;

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

MapDisplay

NavaidSnapper

Returns

void

addMessage()
addMessage(message, className?): void;

Defined in: ui/Console.ts:358

Parameters
message

string

className?

string = ''

Returns

void

clear()
clear(): void;

Defined in: ui/Console.ts:369

Returns

void

displaySentCommand()
displaySentCommand(command): void;

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()
setInputValue(text): void;

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()
submitCurrent(): void;

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()
clearInput(): void;

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()
insertGeoValue(
   value, 
   replaceFromArgIndex, 
   argsAdvanced): void;

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