|
|
|
|
|
|
|
|
|
const global = { |
|
|
|
get firstRun() { |
|
return this._firstRun; |
|
}, |
|
|
|
|
|
_connection: "offline", |
|
set connection(v) { |
|
this._connection = v; |
|
|
|
toolbar && |
|
toolbar.currentTool && |
|
toolbar.currentTool.state.redraw && |
|
toolbar.currentTool.state.redraw(); |
|
}, |
|
get connection() { |
|
return this._connection; |
|
}, |
|
|
|
|
|
hasActiveInput: false, |
|
|
|
|
|
syncCursorSize: false, |
|
|
|
|
|
_debug: false, |
|
set debug(v) { |
|
if (debugLayer) { |
|
if (v) { |
|
debugLayer.unhide(); |
|
} else { |
|
debugLayer.hide(); |
|
} |
|
} |
|
|
|
this._debug = v; |
|
}, |
|
get debug() { |
|
return this._debug; |
|
}, |
|
|
|
|
|
|
|
toggledebug() { |
|
this.debug = !this.debug; |
|
}, |
|
|
|
|
|
isOldHRFix: false, |
|
|
|
|
|
webui: null, |
|
}; |
|
|
|
global._firstRun = !localStorage.getItem("openoutpaint/host"); |
|
|