TopBar
Class for controlling the state of the top bar. Used for displaying tool-related UI elements.
Constructor Summary
Public Constructor | ||
public |
constructor(ui: UI) Constructs a TopBar instance. |
Member Summary
Public Members | ||
public |
dropdown: * |
|
public |
inputForm: * |
|
public |
|
|
public |
modeSelect: * |
|
public |
topBar: * |
|
public |
ui: * |
Method Summary
Public Methods | ||
public |
Initialize the event listeners. |
|
public |
selectGraphObject(event: Event) Toggle graph object selection. |
|
public |
Displays the tool inputs in the inputForm element. |
|
public |
Displays the mode-specific tool inputs in the modeInputForm element. |
|
public |
Displays the tool modes in the Dropdown. |
|
public |
submitModeInputValues(event: Event) Handles mode-specific tool input submission. |
|
public |
updateAllModeInputValues(inputData: Object<string, *>) Update the stored values of all mode-specific tool inputs. |
|
public |
Update the graph input after object selection. |
|
public |
updateInputValues(event: Event) Handles a change in tool inputs. |
|
public |
updateModeInputValues(event: Event) Handles a change in mode-specific tool inputs. |
Public Constructors
Public Members
public dropdown: * source
public inputForm: * source
public modeInputForm: * source
public modeSelect: * source
public topBar: * source
public ui: * source
Public Methods
public selectGraphObject(event: Event) source
Toggle graph object selection. This is used for tool inputs that request a graph object.
Params:
Name | Type | Attribute | Description |
event | Event | Event object from the event listener. |
public submitModeInputValues(event: Event) source
Handles mode-specific tool input submission.
Params:
Name | Type | Attribute | Description |
event | Event | Event object from the event listener. |
public updateAllModeInputValues(inputData: Object<string, *>) source
Update the stored values of all mode-specific tool inputs.
public updateGraphInput(input: Element, obj: Node | Edge | Label, hasError: boolean) source
Update the graph input after object selection.