2022-12-21 09:07:29 -06:00
|
|
|
/**
|
|
|
|
* Stores global variables without polluting the global namespace.
|
|
|
|
*/
|
|
|
|
|
|
|
|
const global = {
|
|
|
|
// Connection
|
|
|
|
_connection: "offline",
|
|
|
|
set connection(v) {
|
|
|
|
this._connection = v;
|
|
|
|
|
|
|
|
toolbar &&
|
|
|
|
toolbar.currentTool &&
|
|
|
|
toolbar.currentTool.state.redraw &&
|
|
|
|
toolbar.currentTool.state.redraw();
|
|
|
|
},
|
|
|
|
get connection() {
|
|
|
|
return this._connection;
|
|
|
|
},
|
2022-12-21 15:29:11 -06:00
|
|
|
|
|
|
|
// If there is a selected input
|
|
|
|
hasActiveInput: false,
|
2022-12-21 09:07:29 -06:00
|
|
|
};
|