UNPKG

@eccenca/gui-elements

Version:

GUI elements based on other libraries, usable in React application, written in Typescript.

16 lines 552 B
import { CLASSPREFIX as eccgui } from "../../configuration/constants.js"; var getGlobalConfig = function () { return typeof window[eccgui] === "undefined" ? Object.defineProperty(window, "".concat(eccgui), { value: {}, writable: true, })[eccgui] : window[eccgui]; }; export var getGlobalVar = function (varname) { return getGlobalConfig()[varname]; }; export var setGlobalVar = function (varname, value) { return (getGlobalConfig()[varname] = value); }; //# sourceMappingURL=globalVars.js.map