UNPKG

@realsee/dnalogel

Version:
55 lines (54 loc) 2.16 kB
var C = Object.defineProperty; var g = (r, e, t) => e in r ? C(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t; var s = (r, e, t) => (g(r, typeof e != "symbol" ? e + "" : e, t), t); import { Controller as l } from "../../base/BasePlugin.js"; import "../../shared-utils/Subscribe.js"; import "hammerjs"; import "three"; import "@realsee/five"; import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js"; import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js"; import "../../shared-utils/positionToVector3.js"; import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js"; import "three/examples/jsm/renderers/CSS3DRenderer"; import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js"; import "../../shared-utils/util.js"; import "../../CSS3DRenderPlugin/utils/createResizeObserver.js"; import "../../CSS3DRenderPlugin/utils/even.js"; import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js"; import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js"; import "../../shared-utils/three/centerPoint.js"; import "../../shared-utils/three/getObjectVisible.js"; import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js"; import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js"; import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js"; import "../../shared-utils/url/absoluteUrl.js"; class F extends l { constructor(t) { super(t); s(this, "tagCacheByPanoIndex", {}); } getPanoIndexCache(t) { var h; const { five: a } = this, { panoIndex: n, id: i, key: m } = t != null ? t : {}, c = n != null ? n : a.getCurrentState().panoIndex; if (c === void 0) throw new Error(`TagCacheController getPanoIndexCache(): fivePanoIndex is ${c}`); const p = `${a.model.uuid}__${c}`; let o = this.tagCacheByPanoIndex[p]; if (o || (o = /* @__PURE__ */ new Map(), this.tagCacheByPanoIndex[p] = o), i === void 0) return o; if (m === void 0) { const d = o.get(i); return d || (o.set(i, {}), o.get(i)); } return (h = o.get(i)) == null ? void 0 : h[m]; } clearCache() { this.tagCacheByPanoIndex = {}; } removeCache() { } } export { F as TagCache };