UNPKG

@realsee/dnalogel

Version:
46 lines (45 loc) 1.73 kB
var o = Object.defineProperty; var n = (i, e, r) => e in i ? o(i, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : i[e] = r; var t = (i, e, r) => (n(i, typeof e != "symbol" ? e + "" : e, r), r); import { Cursor as s } from "./Cursor.js"; import { Object3DHelperController as l } from "../../../Object3DHelperPlugin/Controller.js"; import { FiveDomEvents as h } from "../../../shared-utils/five/FiveDomEvents.js"; import { PointSelector as f } from "../../../shared-utils/three/PointSelector.js"; class c { constructor() { t(this, "five"); t(this, "_cursor"); t(this, "_pointSelector"); t(this, "_fiveDomEvents"); t(this, "_object3DHelper"); t(this, "inited", !1); t(this, "init", (e) => { this.inited = !0, this.five = e; }); } get cursor() { if (!this.inited) throw new Error("Global not inited"); return this._cursor ? this._cursor : (this._cursor = new s(this.five.getElement()), this._cursor); } get pointSelector() { if (!this.inited) throw new Error("Global not inited"); return this._pointSelector ? this._pointSelector : (this._pointSelector = new f(this.five), this._pointSelector); } get fiveDomEvents() { if (!this.inited) throw new Error("Global not inited"); return this._fiveDomEvents ? this._fiveDomEvents : (this._fiveDomEvents = new h(this.five, { noEmitWhenNotInScene: !0 }), this._fiveDomEvents); } get object3DHelper() { if (!this.inited) throw new Error("Global not inited"); return this._object3DHelper ? this._object3DHelper : (this._object3DHelper = new l(this.five), this._object3DHelper); } } const u = new c(); window.globalModules = u; export { u as globalModules };