@realsee/dnalogel 3.50.17-alpha.0 → 3.51.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/ModelMakerPlugin/Controller.d.ts +2 -0
  3. package/dist/Sculpt/utils/export.d.ts +18 -0
  4. package/dist/index.cjs.js +207 -207
  5. package/dist/index.js +34866 -34775
  6. package/dist/index.umd.js +211 -211
  7. package/dist/shared-utils/five/fiveEveryReadyListener.d.ts +2 -0
  8. package/dist/shared-utils/index.d.ts +1 -0
  9. package/dist/shared-utils/tag.d.ts +40 -1
  10. package/dist/shared-utils/three/temp.d.ts +2 -2
  11. package/libs/AreaMakerPlugin/Controller.js +100 -46
  12. package/libs/AreaMakerPlugin/index.js +64 -10
  13. package/libs/AreaMakerPlugin/utils/Item.js +156 -100
  14. package/libs/CSS3DRenderPlugin/Controller.js +93 -44
  15. package/libs/CSS3DRenderPlugin/index.js +62 -13
  16. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +105 -49
  17. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +130 -77
  18. package/libs/CruisePlugin/BaseController.js +143 -89
  19. package/libs/CruisePlugin/Move.js +83 -39
  20. package/libs/CruisePlugin/Work.js +95 -51
  21. package/libs/CruisePlugin/index.js +66 -22
  22. package/libs/CurrentPanoImagePlugin/Controller.js +139 -85
  23. package/libs/CurrentPanoImagePlugin/index.js +63 -9
  24. package/libs/GuideLinePlugin/Controller.js +57 -13
  25. package/libs/GuideLinePlugin/GuideLineItem.js +63 -19
  26. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +6 -2
  27. package/libs/GuideLinePlugin/GuideLineModeItem.js +58 -14
  28. package/libs/GuideLinePlugin/index.js +66 -22
  29. package/libs/ModelMakerPlugin/Controller.d.ts +2 -0
  30. package/libs/ModelMakerPlugin/Controller.js +190 -129
  31. package/libs/ModelMakerPlugin/index.js +63 -21
  32. package/libs/ModelMakerPlugin/item/baseItem.js +4 -2
  33. package/libs/ModelMakerPlugin/item/boxItem.js +5 -3
  34. package/libs/ModelMakerPlugin/item/polygonItem.js +9 -7
  35. package/libs/ModelMakerPlugin/item/prismItem.js +5 -3
  36. package/libs/ModelTVVideoPlugin/Plugin.js +96 -47
  37. package/libs/ModelTVVideoPlugin/index.js +55 -6
  38. package/libs/Object3DHelperPlugin/Controller.js +42 -25
  39. package/libs/Object3DHelperPlugin/index.js +28 -12
  40. package/libs/PanoCompassPlugin/Controller.js +92 -44
  41. package/libs/PanoCompassPlugin/index.js +63 -15
  42. package/libs/PanoDoorLabelPlugin/BaseController.js +79 -25
  43. package/libs/PanoDoorLabelPlugin/Controller.js +132 -78
  44. package/libs/PanoDoorLabelPlugin/index.js +63 -9
  45. package/libs/PanoMeasurePlugin/Components/Controller0.js +126 -77
  46. package/libs/PanoMeasurePlugin/Components/Controller1.js +139 -90
  47. package/libs/PanoMeasurePlugin/Controller/EditController.js +120 -71
  48. package/libs/PanoMeasurePlugin/Controller/WatchController.js +120 -70
  49. package/libs/PanoMeasurePlugin/Controller/index.js +132 -86
  50. package/libs/PanoMeasurePlugin/Model/area.js +72 -22
  51. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +56 -0
  52. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +64 -15
  53. package/libs/PanoMeasurePlugin/index.js +62 -16
  54. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +57 -2
  55. package/libs/PanoRulerProPlugin/Controller.js +88 -33
  56. package/libs/PanoRulerProPlugin/RulerItems.js +146 -91
  57. package/libs/PanoRulerProPlugin/index.js +64 -9
  58. package/libs/PanoSpatialTagPlugin/Plugin.js +177 -128
  59. package/libs/PanoSpatialTagPlugin/index.js +53 -4
  60. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +116 -60
  61. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +192 -136
  62. package/libs/PanoTagPlugin/Components/Tag/index.js +194 -139
  63. package/libs/PanoTagPlugin/Components/TagContainer.js +112 -57
  64. package/libs/PanoTagPlugin/Components/TagItem.js +204 -149
  65. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +157 -101
  66. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +75 -20
  67. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +86 -31
  68. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +93 -37
  69. package/libs/PanoTagPlugin/controller/TagRender.js +62 -18
  70. package/libs/PanoTagPlugin/controller/TagUtil.js +123 -79
  71. package/libs/PanoTagPlugin/controller/index.js +110 -72
  72. package/libs/PanoTagPlugin/index.js +72 -28
  73. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +77 -21
  74. package/libs/PanoVideoPlugin/Controller.js +95 -41
  75. package/libs/PanoVideoPlugin/VideoMeshController.js +119 -63
  76. package/libs/PanoVideoPlugin/index.js +66 -12
  77. package/libs/PipelinePlugin/Controller.js +173 -119
  78. package/libs/PipelinePlugin/index.js +63 -9
  79. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +70 -14
  80. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +58 -2
  81. package/libs/PipelinePlugin/utils/Objects/Pipe.js +98 -42
  82. package/libs/Sculpt/Meshes/Box.js +3 -2
  83. package/libs/Sculpt/Meshes/Cylinder.js +10 -6
  84. package/libs/Sculpt/Meshes/Line.js +43 -38
  85. package/libs/Sculpt/Meshes/LineWithDots.js +14 -10
  86. package/libs/Sculpt/Meshes/Point.js +24 -20
  87. package/libs/Sculpt/Meshes/Polygon.js +5 -2
  88. package/libs/Sculpt/Meshes/Prism.js +19 -16
  89. package/libs/Sculpt/Objects/Line/Editor.js +6 -5
  90. package/libs/Sculpt/index.js +15 -14
  91. package/libs/Sculpt/utils/export.d.ts +18 -0
  92. package/libs/Sculpt/utils/export.js +21 -0
  93. package/libs/Sculpt/utils/three/ColoredMesh.js +26 -22
  94. package/libs/base/BasePlugin.js +14 -10
  95. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +146 -94
  96. package/libs/floorplan/MapviewFloorplanPlugin/index.js +62 -10
  97. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +109 -56
  98. package/libs/floorplan/ModelFloorplanPlugin/index.js +62 -9
  99. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +116 -63
  100. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +62 -9
  101. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +105 -52
  102. package/libs/floorplan/TopviewFloorplanPlugin/index.js +62 -9
  103. package/libs/floorplan/index.js +4 -0
  104. package/libs/index.js +208 -206
  105. package/libs/shared-utils/five/fiveEveryReadyListener.d.ts +2 -0
  106. package/libs/shared-utils/five/fiveEveryReadyListener.js +15 -0
  107. package/libs/shared-utils/five/index.js +6 -2
  108. package/libs/shared-utils/five/lookObject.js +31 -27
  109. package/libs/shared-utils/index.d.ts +1 -0
  110. package/libs/shared-utils/index.js +19 -17
  111. package/libs/shared-utils/logger.js +1 -1
  112. package/libs/shared-utils/tag.d.ts +40 -1
  113. package/libs/shared-utils/tag.js +139 -86
  114. package/libs/shared-utils/three/index.js +4 -0
  115. package/libs/shared-utils/three/temp.d.ts +2 -2
  116. package/libs/shared-utils/three/temp.js +4 -4
  117. package/package.json +1 -1
  118. package/README.md +0 -116
@@ -2,36 +2,36 @@ var $ = Object.defineProperty, _ = Object.defineProperties;
2
2
  var k = Object.getOwnPropertyDescriptors;
3
3
  var R = Object.getOwnPropertySymbols;
4
4
  var P = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable;
5
- var C = (o, e, t) => e in o ? $(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, g = (o, e) => {
5
+ var C = (s, e, t) => e in s ? $(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, g = (s, e) => {
6
6
  for (var t in e || (e = {}))
7
- P.call(e, t) && C(o, t, e[t]);
7
+ P.call(e, t) && C(s, t, e[t]);
8
8
  if (R)
9
9
  for (var t of R(e))
10
- L.call(e, t) && C(o, t, e[t]);
11
- return o;
12
- }, v = (o, e) => _(o, k(e));
13
- var n = (o, e, t) => (C(o, typeof e != "symbol" ? e + "" : e, t), t);
14
- var l = (o, e, t) => new Promise((r, s) => {
15
- var d = (c) => {
10
+ L.call(e, t) && C(s, t, e[t]);
11
+ return s;
12
+ }, v = (s, e) => _(s, k(e));
13
+ var n = (s, e, t) => (C(s, typeof e != "symbol" ? e + "" : e, t), t);
14
+ var f = (s, e, t) => new Promise((r, o) => {
15
+ var d = (p) => {
16
16
  try {
17
- f(t.next(c));
18
- } catch (S) {
19
- s(S);
17
+ u(t.next(p));
18
+ } catch (m) {
19
+ o(m);
20
20
  }
21
- }, u = (c) => {
21
+ }, S = (p) => {
22
22
  try {
23
- f(t.throw(c));
24
- } catch (S) {
25
- s(S);
23
+ u(t.throw(p));
24
+ } catch (m) {
25
+ o(m);
26
26
  }
27
- }, f = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(d, u);
28
- f((t = t.apply(o, e)).next());
27
+ }, u = (p) => p.done ? r(p.value) : Promise.resolve(p.value).then(d, S);
28
+ u((t = t.apply(s, e)).next());
29
29
  });
30
30
  import { anyPositionToVector3 as q } from "../../../shared-utils/positionToVector3.js";
31
31
  import B from "./CSS3DRenderer.js";
32
32
  import { Subscribe as A } from "../../../shared-utils/Subscribe.js";
33
33
  import { CSS3DObjectPlus as W } from "./CSS3DObject.js";
34
- import { MinRatio as et } from "./CSS3DObject.js";
34
+ import { MinRatio as Zt } from "./CSS3DObject.js";
35
35
  import { CSS3DFrontScene as H, CSS3DBehindScene as T } from "./CSS3DScene.js";
36
36
  import { CSS3DFrontGroup as U, CSS3DBehindGroup as z } from "./CSS3DGroup.js";
37
37
  import { CSS3DObject as j } from "three/examples/jsm/renderers/CSS3DRenderer";
@@ -50,7 +50,10 @@ import "../../../shared-utils/Utils/BaseUtil.js";
50
50
  import "../../../shared-utils/Utils/WorkUtil.js";
51
51
  import "../../../shared-utils/five/transformPosition.js";
52
52
  import "../../../shared-utils/three/temp.js";
53
+ import "../../../shared-utils/three/core/Raycaster.js";
53
54
  import "../../../shared-utils/dom/resizeObserver.js";
55
+ import "../../../shared-utils/five/fiveEveryReadyListener.js";
56
+ import "../../../shared-utils/throttle.js";
54
57
  import "hammerjs";
55
58
  import "../../../shared-utils/three/PointSelector/index.js";
56
59
  import "../../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
@@ -76,14 +79,64 @@ import "../../../shared-utils/three/core/Sphere.js";
76
79
  import "animejs";
77
80
  import "../../../shared-utils/isNil.js";
78
81
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
79
- import "./CSS3DSprite.js";
82
+ import "../../../Sculpt/Meshes/Polygon.js";
83
+ import "../../../shared-utils/three/generatePolygonGeometry.js";
84
+ import "../../../shared-utils/three/earcut3D.js";
85
+ import "earcut";
86
+ import "../../../shared-utils/three/getNormal.js";
87
+ import "../../../PanoMeasurePlugin/utils/isIntersecting.js";
88
+ import "../../../Sculpt/utils/three/ColoredMesh.js";
89
+ import "../../../Sculpt/utils/Modules/Global.js";
90
+ import "../../../Sculpt/utils/Modules/Cursor.js";
91
+ import "../../../Object3DHelperPlugin/Controller.js";
92
+ import "../../../base/BasePlugin.js";
93
+ import "../../../shared-utils/url/absoluteUrl.js";
94
+ import "../../../vendor/hotkeys-js/dist/hotkeys.esm.js";
95
+ import "../../../Sculpt/utils/three/rayOnLine.js";
96
+ import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
97
+ import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
98
+ import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
99
+ import "../../../shared-utils/three/boundingBox.js";
100
+ import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
101
+ import "../../../shared-utils/Object3DHelper/utils/direction.js";
102
+ import "../../../shared-utils/Object3DHelper/Constants/color.js";
103
+ import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
104
+ import "./CSS3DRender.js";
105
+ import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
106
+ import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
107
+ import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
108
+ import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
109
+ import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
110
+ import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
111
+ import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
112
+ import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
113
+ import "../../../shared-utils/threex/domevents/index.js";
114
+ import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
115
+ import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
116
+ import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
117
+ import "../../../shared-utils/Object3DHelper/index.js";
118
+ import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
119
+ import "../../../shared-utils/math/rad2Deg.js";
120
+ import "../../../shared-utils/math/deg2Rad.js";
121
+ import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
122
+ import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
123
+ import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
124
+ import "../generateBehindFiveElement.js";
125
+ import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
126
+ import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
127
+ import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
128
+ import "../../../shared-utils/five/fiveModelLoad.js";
129
+ import "../../../shared-utils/five/FiveDomEvents.js";
130
+ import "../../../shared-utils/five/calculateThreeMouse.js";
80
131
  import "../../../shared-utils/isTouchDevice.js";
132
+ import "../../../shared-utils/three/geometryUtil.js";
133
+ import "./CSS3DSprite.js";
81
134
  import "../../../shared-utils/five/getPosition.js";
82
135
  import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
83
136
  import "../../../shared-utils/three/PointSelector/utils/contents.js";
84
137
  import "../getAllCSS3DObject.js";
85
- const J = 3, G = "CSS3DRenderer", m = `${G}@${J}`, p = () => {
86
- console.error(`${m} is disposed`);
138
+ const J = 3, G = "CSS3DRenderer", l = `${G}@${J}`, a = () => {
139
+ console.error(`${l} is disposed`);
87
140
  }, i = {
88
141
  css3DObjects: [],
89
142
  frontModeStore: {
@@ -93,14 +146,14 @@ const J = 3, G = "CSS3DRenderer", m = `${G}@${J}`, p = () => {
93
146
  css3DRenderer: new B()
94
147
  }
95
148
  };
96
- function w(o) {
97
- return i.css3DObjects.find((e) => e.id === o);
149
+ function w(s) {
150
+ return i.css3DObjects.find((e) => e.id === s);
98
151
  }
99
- function K(o) {
100
- i.frontModeStore.css3DRenderer.setWrapper(o);
152
+ function K(s) {
153
+ i.frontModeStore.css3DRenderer.setWrapper(s);
101
154
  }
102
- function Q(o) {
103
- i.behindModeStore.css3DRenderer.setWrapper(o);
155
+ function Q(s) {
156
+ i.behindModeStore.css3DRenderer.setWrapper(s);
104
157
  }
105
158
  class y {
106
159
  // eslint-disable-next-line @typescript-eslint/no-useless-constructor
@@ -151,9 +204,9 @@ class y {
151
204
  */
152
205
  n(this, "create3DElement", (e, t, r) => {
153
206
  if (this.state.disposed)
154
- return p();
155
- const s = (() => {
156
- const h = {
207
+ return a();
208
+ const o = (() => {
209
+ const c = {
157
210
  ratio: 216e-5,
158
211
  devicePixelRatio: 1,
159
212
  mode: "front",
@@ -162,27 +215,27 @@ class y {
162
215
  pointerEvents: "none",
163
216
  wrapperStyle: {}
164
217
  };
165
- return Object.assign(h, r);
218
+ return Object.assign(c, r);
166
219
  })(), d = t.map(q);
167
220
  if ((d == null ? void 0 : d.length) < 4)
168
- return console.error(`${m}: requires 4 point but params may have fewer`);
169
- const { ratio: u, devicePixelRatio: f, mode: c, autoRender: S, container: O, pointerEvents: F, wrapperStyle: I } = s;
221
+ return console.error(`${l}: requires 4 point but params may have fewer`);
222
+ const { ratio: S, devicePixelRatio: u, mode: p, autoRender: m, container: O, pointerEvents: F, wrapperStyle: I } = o;
170
223
  let b = !1;
171
- const a = this.createObject(d, { ratio: u, dpr: f, container: O, mode: c, pointerEvents: F, wrapperStyle: I });
172
- i.css3DObjects.push(a), s.scene && this.setScene(s.scene);
224
+ const h = this.createObject(d, { ratio: S, dpr: u, container: O, mode: p, pointerEvents: F, wrapperStyle: I });
225
+ i.css3DObjects.push(h), o.scene && this.setScene(o.scene);
173
226
  const N = () => {
174
227
  if (b)
175
228
  return;
176
- const h = a.mode === "front" ? this.getFrontCSS3DObjectGroup() : this.getBehindCSS3DObjectGroup();
177
- h && h.add(a);
229
+ const c = h.mode === "front" ? this.getFrontCSS3DObjectGroup() : this.getBehindCSS3DObjectGroup();
230
+ c && c.add(h);
178
231
  }, E = () => {
179
232
  b || (N(), this.render(e), this.hooks.emit("render"));
180
- }, D = (h) => this.setVisibleById(a.id, h), M = (h) => this.setEnabledById(a.id, h), x = () => (b = !0, a.removeFromParent(), !0), V = c === "front" ? i.frontModeStore.css3DRenderer : i.behindModeStore.css3DRenderer;
181
- return S && E(), {
182
- id: a.uuid,
233
+ }, D = (c) => this.setVisibleById(h.id, c), M = (c) => this.setEnabledById(h.id, c), x = () => (b = !0, h.removeFromParent(), !0), V = p === "front" ? i.frontModeStore.css3DRenderer : i.behindModeStore.css3DRenderer;
234
+ return m && E(), {
235
+ id: h.uuid,
183
236
  container: O,
184
- css3DObject: a,
185
- render: S ? void 0 : E,
237
+ css3DObject: h,
238
+ render: m ? void 0 : E,
186
239
  show: () => D(!0),
187
240
  hide: () => D(!1),
188
241
  setVisible: D,
@@ -190,7 +243,7 @@ class y {
190
243
  disable: () => M(!1),
191
244
  setEnabled: M,
192
245
  dispose: x,
193
- appendToElement: (h) => V.setWrapper(h)
246
+ appendToElement: (c) => V.setWrapper(c)
194
247
  };
195
248
  });
196
249
  n(this, "setVisibleById", (e, t) => {
@@ -201,8 +254,8 @@ class y {
201
254
  const r = w(e);
202
255
  if (!r)
203
256
  return;
204
- const s = r.mode === "front" ? this.getFrontCSS3DObjectGroup({ addGroupIfNotExists: !1 }) : this.getBehindCSS3DObjectGroup({ addGroupIfNotExists: !1 });
205
- s && (t ? s.add(r) : s.remove(r));
257
+ const o = r.mode === "front" ? this.getFrontCSS3DObjectGroup({ addGroupIfNotExists: !1 }) : this.getBehindCSS3DObjectGroup({ addGroupIfNotExists: !1 });
258
+ o && (t ? o.add(r) : o.remove(r));
206
259
  });
207
260
  n(this, "createObject", (e, t) => {
208
261
  const r = new W(v(g({ cornerPoints: e }, t), { style: t.wrapperStyle }));
@@ -233,7 +286,7 @@ class y {
233
286
  }
234
287
  setState(e, t = { userAction: !0 }) {
235
288
  if (this.state.disposed)
236
- return p();
289
+ return a();
237
290
  const r = g({}, this.state);
238
291
  this.state = Object.assign(this.state, e), r.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), r.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), r.disposed !== this.state.disposed && this.handleDispose(), this.hooks.emit("stateChange", { state: this.state, prevState: r, userAction: t.userAction });
239
292
  }
@@ -241,27 +294,27 @@ class y {
241
294
  this.setState({ disposed: !0 }), this.hooks.emit("dispose");
242
295
  }
243
296
  show() {
244
- return l(this, arguments, function* ({ userAction: e } = { userAction: !0 }) {
297
+ return f(this, arguments, function* ({ userAction: e } = { userAction: !0 }) {
245
298
  if (this.state.disposed)
246
- return p();
299
+ return a();
247
300
  this.setState({ visible: !0 }, { userAction: e }), this.hooks.emit("show", { userAction: e });
248
301
  });
249
302
  }
250
303
  hide() {
251
- return l(this, arguments, function* ({ userAction: e } = { userAction: !0 }) {
304
+ return f(this, arguments, function* ({ userAction: e } = { userAction: !0 }) {
252
305
  if (this.state.disposed)
253
- return p();
306
+ return a();
254
307
  this.setState({ visible: !1 }, { userAction: e }), this.hooks.emit("hide", { userAction: e });
255
308
  });
256
309
  }
257
310
  enable({ userAction: e } = { userAction: !0 }) {
258
311
  if (this.state.disposed)
259
- return p();
312
+ return a();
260
313
  this.setState({ enabled: !0 }, { userAction: e }), this.hooks.emit("enable", { userAction: e });
261
314
  }
262
315
  disable({ userAction: e } = { userAction: !0 }) {
263
316
  if (this.state.disposed)
264
- return p();
317
+ return a();
265
318
  this.setState({ enabled: !1 }, { userAction: e }), this.hooks.emit("disable", { userAction: e });
266
319
  }
267
320
  getFrontCSS3DScene({ createSceneIfNotExists: e = !1 } = {}) {
@@ -270,24 +323,24 @@ class y {
270
323
  if (t)
271
324
  return t;
272
325
  if (e) {
273
- const s = new H();
274
- i.frontModeStore.css3DScene = s;
326
+ const o = new H();
327
+ i.frontModeStore.css3DScene = o;
275
328
  }
276
329
  return i.frontModeStore.css3DScene;
277
330
  }
278
331
  getBehindCSS3DScene({ createSceneIfNotExists: e = !1 } = {}) {
279
- var r, s;
332
+ var r, o;
280
333
  const t = (r = i.behindModeStore) == null ? void 0 : r.css3DScene;
281
334
  if (t)
282
335
  return t;
283
336
  if (e) {
284
- const d = (s = i.behindModeStore.scene) != null ? s : this.scene;
337
+ const d = (o = i.behindModeStore.scene) != null ? o : this.scene;
285
338
  if (!d) {
286
- console.error(`${m}: scene is required when mode is behind`);
339
+ console.error(`${l}: scene is required when mode is behind`);
287
340
  return;
288
341
  }
289
- const u = new T(d);
290
- i.behindModeStore.css3DScene = u, i.behindModeStore.scene = d;
342
+ const S = new T(d);
343
+ i.behindModeStore.css3DScene = S, i.behindModeStore.scene = d;
291
344
  }
292
345
  return i.behindModeStore.css3DScene;
293
346
  }
@@ -299,34 +352,34 @@ class y {
299
352
  var r;
300
353
  const t = this.getBehindCSS3DScene({ createSceneIfNotExists: e });
301
354
  if (e && t && this.scene) {
302
- const s = (r = this.store.behindModeGroup) != null ? r : new z(this.scene);
303
- this.store.behindModeGroup = s, t.getObjectById(s.id) || t.add(s);
355
+ const o = (r = this.store.behindModeGroup) != null ? r : new z(this.scene);
356
+ this.store.behindModeGroup = o, t.getObjectById(o.id) || t.add(o);
304
357
  }
305
358
  return this.store.behindModeGroup;
306
359
  }
307
360
  render(e) {
308
361
  var t, r;
309
362
  if (this.getFrontCSS3DObjectGroup({ addGroupIfNotExists: !1 }).CSS3DObjectLength > 0) {
310
- const s = this.getFrontCSS3DScene({ createSceneIfNotExists: !0 });
311
- if (!s)
312
- return console.error(`${m}: css3DScene is required when mode is front`);
313
- i.frontModeStore.css3DRenderer.renderEveryFrame(s, e);
363
+ const o = this.getFrontCSS3DScene({ createSceneIfNotExists: !0 });
364
+ if (!o)
365
+ return console.error(`${l}: css3DScene is required when mode is front`);
366
+ i.frontModeStore.css3DRenderer.renderEveryFrame(o, e);
314
367
  }
315
368
  if (((r = (t = this.getBehindCSS3DObjectGroup({ addGroupIfNotExists: !1 })) == null ? void 0 : t.CSS3DObjectLength) != null ? r : 0) > 0) {
316
- const s = this.getBehindCSS3DScene({ createSceneIfNotExists: !0 });
317
- if (!s)
318
- return console.error(`${m}: css3DScene is required when mode is behind`);
319
- i.behindModeStore.css3DRenderer.renderEveryFrame(s, e);
369
+ const o = this.getBehindCSS3DScene({ createSceneIfNotExists: !0 });
370
+ if (!o)
371
+ return console.error(`${l}: css3DScene is required when mode is behind`);
372
+ i.behindModeStore.css3DRenderer.renderEveryFrame(o, e);
320
373
  }
321
374
  }
322
375
  handleShow() {
323
- return l(this, null, function* () {
376
+ return f(this, null, function* () {
324
377
  var e;
325
378
  this.store.frontModeGroup.setVisible(!0), (e = this.store.behindModeGroup) == null || e.setVisible(!0);
326
379
  });
327
380
  }
328
381
  handleHide() {
329
- return l(this, null, function* () {
382
+ return f(this, null, function* () {
330
383
  var e;
331
384
  this.store.frontModeGroup.setVisible(!1), (e = this.store.behindModeGroup) == null || e.setVisible(!1);
332
385
  });
@@ -337,10 +390,10 @@ class y {
337
390
  }
338
391
  handleDisable() {
339
392
  var e, t, r;
340
- this.store.frontModeGroup.children.forEach((s) => {
341
- s instanceof j && s.element instanceof Element && s.element.parentNode !== null && s.element.remove();
342
- }), (e = this.store.behindModeGroup) == null || e.children.forEach((s) => {
343
- s instanceof j && s.element instanceof Element && s.element.parentNode !== null && s.element.remove();
393
+ this.store.frontModeGroup.children.forEach((o) => {
394
+ o instanceof j && o.element instanceof Element && o.element.parentNode !== null && o.element.remove();
395
+ }), (e = this.store.behindModeGroup) == null || e.children.forEach((o) => {
396
+ o instanceof j && o.element instanceof Element && o.element.parentNode !== null && o.element.remove();
344
397
  }), (t = this.getFrontCSS3DScene()) == null || t.remove(this.store.frontModeGroup), this.store.behindModeGroup && ((r = this.getBehindCSS3DScene()) == null || r.remove(this.store.behindModeGroup));
345
398
  }
346
399
  handleDispose() {
@@ -350,7 +403,7 @@ class y {
350
403
  n(y, "setFrontModeContainer", K), n(y, "setBehindModeContainer", Q);
351
404
  export {
352
405
  y as CSS3DRender,
353
- et as MinRatio,
354
- m as PLUGIN,
406
+ Zt as MinRatio,
407
+ l as PLUGIN,
355
408
  i as globalStore
356
409
  };