@realsee/dnalogel 3.50.14 → 3.50.15-alpha.1

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 (110) hide show
  1. package/README.md +116 -0
  2. package/dist/Sculpt/Objects/Base/index.d.ts +1 -1
  3. package/dist/Sculpt/index.d.ts +4 -4
  4. package/dist/index.cjs.js +262 -262
  5. package/dist/index.js +4235 -4231
  6. package/dist/index.umd.js +263 -263
  7. package/dist/shared-utils/five/index.d.ts +2 -0
  8. package/dist/shared-utils/tag.d.ts +1 -1
  9. package/dist/shared-utils/three/index.d.ts +1 -0
  10. package/libs/AreaMakerPlugin/Controller.js +104 -74
  11. package/libs/AreaMakerPlugin/index.js +33 -3
  12. package/libs/AreaMakerPlugin/utils/Item.js +66 -36
  13. package/libs/CSS3DRenderPlugin/Controller.js +39 -19
  14. package/libs/CSS3DRenderPlugin/index.js +34 -14
  15. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +60 -35
  16. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +98 -78
  17. package/libs/CruisePlugin/BaseController.js +59 -29
  18. package/libs/CruisePlugin/Move.js +33 -14
  19. package/libs/CruisePlugin/Work.js +66 -47
  20. package/libs/CruisePlugin/index.js +38 -19
  21. package/libs/CurrentPanoImagePlugin/Controller.js +68 -38
  22. package/libs/CurrentPanoImagePlugin/index.js +34 -4
  23. package/libs/GuideLinePlugin/Controller.js +69 -50
  24. package/libs/GuideLinePlugin/GuideLineItem.js +34 -15
  25. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
  26. package/libs/GuideLinePlugin/GuideLineModeItem.js +34 -15
  27. package/libs/GuideLinePlugin/index.js +38 -19
  28. package/libs/ModelMakerPlugin/Controller.js +60 -42
  29. package/libs/ModelMakerPlugin/index.js +34 -16
  30. package/libs/ModelTVVideoPlugin/Plugin.js +48 -28
  31. package/libs/ModelTVVideoPlugin/index.js +24 -4
  32. package/libs/Object3DHelperPlugin/Controller.js +49 -30
  33. package/libs/Object3DHelperPlugin/index.js +36 -17
  34. package/libs/PanoCompassPlugin/Controller.js +33 -13
  35. package/libs/PanoCompassPlugin/index.js +34 -14
  36. package/libs/PanoDoorLabelPlugin/BaseController.js +55 -25
  37. package/libs/PanoDoorLabelPlugin/Controller.js +99 -69
  38. package/libs/PanoDoorLabelPlugin/index.js +34 -4
  39. package/libs/PanoMeasurePlugin/Components/Controller0.js +8 -8
  40. package/libs/PanoMeasurePlugin/Components/Controller1.js +8 -8
  41. package/libs/PanoMeasurePlugin/Controller/WatchController.js +75 -49
  42. package/libs/PanoMeasurePlugin/Controller/index.js +16 -16
  43. package/libs/PanoMeasurePlugin/Model/area.js +41 -15
  44. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +29 -0
  45. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +8 -8
  46. package/libs/PanoMeasurePlugin/index.js +3 -3
  47. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +43 -15
  48. package/libs/PanoRulerProPlugin/Controller.js +60 -30
  49. package/libs/PanoRulerProPlugin/RulerItems.js +85 -55
  50. package/libs/PanoRulerProPlugin/index.js +33 -3
  51. package/libs/PanoSpatialTagPlugin/Plugin.js +54 -34
  52. package/libs/PanoSpatialTagPlugin/index.js +22 -2
  53. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +79 -49
  54. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +235 -206
  55. package/libs/PanoTagPlugin/Components/Tag/index.js +152 -125
  56. package/libs/PanoTagPlugin/Components/TagContainer.js +97 -70
  57. package/libs/PanoTagPlugin/Components/TagItem.js +31 -4
  58. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +29 -2
  59. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +55 -28
  60. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +53 -26
  61. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +54 -27
  62. package/libs/PanoTagPlugin/controller/TagRender.js +48 -29
  63. package/libs/PanoTagPlugin/controller/TagUtil.js +33 -14
  64. package/libs/PanoTagPlugin/controller/index.js +49 -30
  65. package/libs/PanoTagPlugin/index.js +41 -22
  66. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +59 -29
  67. package/libs/PanoVideoPlugin/Controller.js +91 -61
  68. package/libs/PanoVideoPlugin/VideoMeshController.js +56 -26
  69. package/libs/PanoVideoPlugin/index.js +36 -6
  70. package/libs/PipelinePlugin/Controller.js +80 -51
  71. package/libs/PipelinePlugin/index.js +34 -5
  72. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +44 -14
  73. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +43 -13
  74. package/libs/PipelinePlugin/utils/Objects/Pipe.js +61 -31
  75. package/libs/Sculpt/Meshes/Box.js +3 -2
  76. package/libs/Sculpt/Meshes/Cylinder.js +3 -2
  77. package/libs/Sculpt/Meshes/Line.js +9 -8
  78. package/libs/Sculpt/Meshes/LineWithDots.js +8 -7
  79. package/libs/Sculpt/Meshes/Point.js +3 -2
  80. package/libs/Sculpt/Meshes/Polygon.js +3 -2
  81. package/libs/Sculpt/Meshes/Prism.js +9 -8
  82. package/libs/Sculpt/Meshes/Rectangle.js +3 -2
  83. package/libs/Sculpt/Objects/Base/index.d.ts +1 -1
  84. package/libs/Sculpt/Objects/Line/Editor.js +7 -6
  85. package/libs/Sculpt/index.d.ts +4 -4
  86. package/libs/Sculpt/index.js +3 -2
  87. package/libs/Sculpt/utils/three/ColoredMesh.js +6 -5
  88. package/libs/base/BasePlugin.js +4 -3
  89. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +89 -60
  90. package/libs/floorplan/MapviewFloorplanPlugin/index.js +34 -5
  91. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +79 -50
  92. package/libs/floorplan/ModelFloorplanPlugin/index.js +34 -5
  93. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +68 -38
  94. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +34 -4
  95. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +104 -75
  96. package/libs/floorplan/TopviewFloorplanPlugin/index.js +34 -5
  97. package/libs/floorplan/index.js +1 -0
  98. package/libs/index.js +28 -28
  99. package/libs/shared-utils/five/fiveModelLoad.js +1 -0
  100. package/libs/shared-utils/five/index.d.ts +2 -0
  101. package/libs/shared-utils/five/index.js +3 -2
  102. package/libs/shared-utils/five/lookObject.js +3 -2
  103. package/libs/shared-utils/index.js +42 -35
  104. package/libs/shared-utils/logger.js +1 -1
  105. package/libs/shared-utils/tag.d.ts +1 -1
  106. package/libs/shared-utils/tag.js +41 -41
  107. package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +3 -2
  108. package/libs/shared-utils/three/index.d.ts +1 -0
  109. package/libs/shared-utils/three/index.js +1 -0
  110. package/package.json +1 -1
@@ -10,28 +10,28 @@ var C = (o, e, t) => e in o ? $(o, e, { enumerable: !0, configurable: !0, writab
10
10
  L.call(e, t) && C(o, t, e[t]);
11
11
  return o;
12
12
  }, v = (o, e) => _(o, k(e));
13
- var i = (o, e, t) => (C(o, typeof e != "symbol" ? e + "" : e, t), t);
14
- var l = (o, e, t) => new Promise((s, r) => {
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
15
  var d = (c) => {
16
16
  try {
17
17
  f(t.next(c));
18
18
  } catch (S) {
19
- r(S);
19
+ s(S);
20
20
  }
21
21
  }, u = (c) => {
22
22
  try {
23
23
  f(t.throw(c));
24
24
  } catch (S) {
25
- r(S);
25
+ s(S);
26
26
  }
27
- }, f = (c) => c.done ? s(c.value) : Promise.resolve(c.value).then(d, u);
27
+ }, f = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(d, u);
28
28
  f((t = t.apply(o, 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 xe } from "./CSS3DObject.js";
34
+ import { MinRatio as et } 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";
@@ -52,19 +52,39 @@ import "../../../shared-utils/five/transformPosition.js";
52
52
  import "../../../shared-utils/three/temp.js";
53
53
  import "../../../shared-utils/dom/resizeObserver.js";
54
54
  import "hammerjs";
55
+ import "../../../shared-utils/three/PointSelector/index.js";
56
+ import "../../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
57
+ import "../../../shared-utils/three/Magnifier.js";
58
+ import "../../../shared-utils/three/PointSelector/utils/PointHelper.js";
59
+ import "../../../shared-utils/three/Assets/index.js";
60
+ import "../../../shared-utils/three/PointSelector/utils/html.js";
61
+ import "../../../shared-utils/five/initialCSS3DRender.js";
62
+ import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
63
+ import "../../../Sculpt/Meshes/Line.js";
64
+ import "../../../Sculpt/typings/style.js";
65
+ import "../../../shared-utils/five/FiveLine.js";
55
66
  import "@realsee/five/line";
56
67
  import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
57
68
  import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
58
69
  import "../../../vendor/three/build/three.module.js";
70
+ import "../../../shared-utils/three/IObject3D.js";
71
+ import "../../../Sculpt/utils/removeAllTag.js";
72
+ import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
73
+ import "../../../shared-utils/three/applyObjectMatrixWorld.js";
74
+ import "../../../shared-utils/util.js";
59
75
  import "../../../shared-utils/three/core/Sphere.js";
60
76
  import "animejs";
61
77
  import "../../../shared-utils/isNil.js";
62
78
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
79
+ import "./CSS3DSprite.js";
80
+ import "../../../shared-utils/isTouchDevice.js";
81
+ import "../../../shared-utils/five/getPosition.js";
82
+ import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
83
+ import "../../../shared-utils/three/PointSelector/utils/contents.js";
63
84
  import "../getAllCSS3DObject.js";
64
- import "../../../shared-utils/util.js";
65
- const J = 3, G = "CSS3DRenderer", b = `${G}@${J}`, p = () => {
66
- console.error(`${b} is disposed`);
67
- }, n = {
85
+ const J = 3, G = "CSS3DRenderer", m = `${G}@${J}`, p = () => {
86
+ console.error(`${m} is disposed`);
87
+ }, i = {
68
88
  css3DObjects: [],
69
89
  frontModeStore: {
70
90
  css3DRenderer: new B()
@@ -74,25 +94,25 @@ const J = 3, G = "CSS3DRenderer", b = `${G}@${J}`, p = () => {
74
94
  }
75
95
  };
76
96
  function w(o) {
77
- return n.css3DObjects.find((e) => e.id === o);
97
+ return i.css3DObjects.find((e) => e.id === o);
78
98
  }
79
99
  function K(o) {
80
- n.frontModeStore.css3DRenderer.setWrapper(o);
100
+ i.frontModeStore.css3DRenderer.setWrapper(o);
81
101
  }
82
102
  function Q(o) {
83
- n.behindModeStore.css3DRenderer.setWrapper(o);
103
+ i.behindModeStore.css3DRenderer.setWrapper(o);
84
104
  }
85
105
  class y {
86
106
  // eslint-disable-next-line @typescript-eslint/no-useless-constructor
87
107
  constructor(e) {
88
- i(this, "hooks", new A());
89
- i(this, "state", {
108
+ n(this, "hooks", new A());
109
+ n(this, "state", {
90
110
  enabled: !0,
91
111
  visible: !0,
92
112
  disposed: !1
93
113
  });
94
- i(this, "_scene");
95
- i(this, "store", {
114
+ n(this, "_scene");
115
+ n(this, "store", {
96
116
  frontModeGroup: new U()
97
117
  });
98
118
  /**
@@ -129,10 +149,10 @@ class y {
129
149
  * } | void
130
150
  * ```
131
151
  */
132
- i(this, "create3DElement", (e, t, s) => {
152
+ n(this, "create3DElement", (e, t, r) => {
133
153
  if (this.state.disposed)
134
154
  return p();
135
- const r = (() => {
155
+ const s = (() => {
136
156
  const h = {
137
157
  ratio: 216e-5,
138
158
  devicePixelRatio: 1,
@@ -142,22 +162,22 @@ class y {
142
162
  pointerEvents: "none",
143
163
  wrapperStyle: {}
144
164
  };
145
- return Object.assign(h, s);
165
+ return Object.assign(h, r);
146
166
  })(), d = t.map(q);
147
167
  if ((d == null ? void 0 : d.length) < 4)
148
- return console.error(`${b}: requires 4 point but params may have fewer`);
149
- const { ratio: u, devicePixelRatio: f, mode: c, autoRender: S, container: O, pointerEvents: F, wrapperStyle: I } = r;
150
- let m = !1;
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;
170
+ let b = !1;
151
171
  const a = this.createObject(d, { ratio: u, dpr: f, container: O, mode: c, pointerEvents: F, wrapperStyle: I });
152
- n.css3DObjects.push(a), r.scene && this.setScene(r.scene);
172
+ i.css3DObjects.push(a), s.scene && this.setScene(s.scene);
153
173
  const N = () => {
154
- if (m)
174
+ if (b)
155
175
  return;
156
176
  const h = a.mode === "front" ? this.getFrontCSS3DObjectGroup() : this.getBehindCSS3DObjectGroup();
157
177
  h && h.add(a);
158
178
  }, E = () => {
159
- m || (N(), this.render(e), this.hooks.emit("render"));
160
- }, D = (h) => this.setVisibleById(a.id, h), M = (h) => this.setEnabledById(a.id, h), x = () => (m = !0, a.removeFromParent(), !0), V = c === "front" ? n.frontModeStore.css3DRenderer : n.behindModeStore.css3DRenderer;
179
+ 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;
161
181
  return S && E(), {
162
182
  id: a.uuid,
163
183
  container: O,
@@ -173,20 +193,20 @@ class y {
173
193
  appendToElement: (h) => V.setWrapper(h)
174
194
  };
175
195
  });
176
- i(this, "setVisibleById", (e, t) => {
177
- var s;
178
- (s = w(e)) == null || s.setVisible(t);
196
+ n(this, "setVisibleById", (e, t) => {
197
+ var r;
198
+ (r = w(e)) == null || r.setVisible(t);
179
199
  });
180
- i(this, "setEnabledById", (e, t) => {
181
- const s = w(e);
182
- if (!s)
200
+ n(this, "setEnabledById", (e, t) => {
201
+ const r = w(e);
202
+ if (!r)
183
203
  return;
184
- const r = s.mode === "front" ? this.getFrontCSS3DObjectGroup({ addGroupIfNotExists: !1 }) : this.getBehindCSS3DObjectGroup({ addGroupIfNotExists: !1 });
185
- r && (t ? r.add(s) : r.remove(s));
204
+ const s = r.mode === "front" ? this.getFrontCSS3DObjectGroup({ addGroupIfNotExists: !1 }) : this.getBehindCSS3DObjectGroup({ addGroupIfNotExists: !1 });
205
+ s && (t ? s.add(r) : s.remove(r));
186
206
  });
187
- i(this, "createObject", (e, t) => {
188
- const s = new W(v(g({ cornerPoints: e }, t), { style: t.wrapperStyle }));
189
- return s.element.classList.add(`${G}__container`), s.element.id = `${G}__container--${s.uuid}`, s;
207
+ n(this, "createObject", (e, t) => {
208
+ const r = new W(v(g({ cornerPoints: e }, t), { style: t.wrapperStyle }));
209
+ return r.element.classList.add(`${G}__container`), r.element.id = `${G}__container--${r.uuid}`, r;
190
210
  });
191
211
  e && this.setScene(e);
192
212
  }
@@ -194,16 +214,16 @@ class y {
194
214
  return this._scene || console.error("scene doesn't exist!, please call setScene(scene) first"), this._scene;
195
215
  }
196
216
  static get frontModeCSS3DRenderer() {
197
- return n.frontModeStore.css3DRenderer;
217
+ return i.frontModeStore.css3DRenderer;
198
218
  }
199
219
  static get behindModeCSS3DRenderer() {
200
- return n.behindModeStore.css3DRenderer;
220
+ return i.behindModeStore.css3DRenderer;
201
221
  }
202
222
  get frontModeCSS3DRenderer() {
203
- return n.frontModeStore.css3DRenderer;
223
+ return i.frontModeStore.css3DRenderer;
204
224
  }
205
225
  get behindModeCSS3DRenderer() {
206
- return n.behindModeStore.css3DRenderer;
226
+ return i.behindModeStore.css3DRenderer;
207
227
  }
208
228
  setScene(e) {
209
229
  this._scene = e;
@@ -214,8 +234,8 @@ class y {
214
234
  setState(e, t = { userAction: !0 }) {
215
235
  if (this.state.disposed)
216
236
  return p();
217
- const s = g({}, this.state);
218
- this.state = Object.assign(this.state, e), s.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), s.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), s.disposed !== this.state.disposed && this.handleDispose(), this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: t.userAction });
237
+ const r = g({}, this.state);
238
+ 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 });
219
239
  }
220
240
  dispose() {
221
241
  this.setState({ disposed: !0 }), this.hooks.emit("dispose");
@@ -245,58 +265,58 @@ class y {
245
265
  this.setState({ enabled: !1 }, { userAction: e }), this.hooks.emit("disable", { userAction: e });
246
266
  }
247
267
  getFrontCSS3DScene({ createSceneIfNotExists: e = !1 } = {}) {
248
- var s;
249
- const t = (s = n.frontModeStore) == null ? void 0 : s.css3DScene;
268
+ var r;
269
+ const t = (r = i.frontModeStore) == null ? void 0 : r.css3DScene;
250
270
  if (t)
251
271
  return t;
252
272
  if (e) {
253
- const r = new H();
254
- n.frontModeStore.css3DScene = r;
273
+ const s = new H();
274
+ i.frontModeStore.css3DScene = s;
255
275
  }
256
- return n.frontModeStore.css3DScene;
276
+ return i.frontModeStore.css3DScene;
257
277
  }
258
278
  getBehindCSS3DScene({ createSceneIfNotExists: e = !1 } = {}) {
259
- var s, r;
260
- const t = (s = n.behindModeStore) == null ? void 0 : s.css3DScene;
279
+ var r, s;
280
+ const t = (r = i.behindModeStore) == null ? void 0 : r.css3DScene;
261
281
  if (t)
262
282
  return t;
263
283
  if (e) {
264
- const d = (r = n.behindModeStore.scene) != null ? r : this.scene;
284
+ const d = (s = i.behindModeStore.scene) != null ? s : this.scene;
265
285
  if (!d) {
266
- console.error(`${b}: scene is required when mode is behind`);
286
+ console.error(`${m}: scene is required when mode is behind`);
267
287
  return;
268
288
  }
269
289
  const u = new T(d);
270
- n.behindModeStore.css3DScene = u, n.behindModeStore.scene = d;
290
+ i.behindModeStore.css3DScene = u, i.behindModeStore.scene = d;
271
291
  }
272
- return n.behindModeStore.css3DScene;
292
+ return i.behindModeStore.css3DScene;
273
293
  }
274
294
  getFrontCSS3DObjectGroup({ addGroupIfNotExists: e = !0 } = {}) {
275
295
  const t = this.getFrontCSS3DScene({ createSceneIfNotExists: e });
276
296
  return e && t && (t.getObjectById(this.store.frontModeGroup.id) || t.add(this.store.frontModeGroup)), this.store.frontModeGroup;
277
297
  }
278
298
  getBehindCSS3DObjectGroup({ addGroupIfNotExists: e = !0 } = {}) {
279
- var s;
299
+ var r;
280
300
  const t = this.getBehindCSS3DScene({ createSceneIfNotExists: e });
281
301
  if (e && t && this.scene) {
282
- const r = (s = this.store.behindModeGroup) != null ? s : new z(this.scene);
283
- this.store.behindModeGroup = r, t.getObjectById(r.id) || t.add(r);
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);
284
304
  }
285
305
  return this.store.behindModeGroup;
286
306
  }
287
307
  render(e) {
288
- var t, s;
308
+ var t, r;
289
309
  if (this.getFrontCSS3DObjectGroup({ addGroupIfNotExists: !1 }).CSS3DObjectLength > 0) {
290
- const r = this.getFrontCSS3DScene({ createSceneIfNotExists: !0 });
291
- if (!r)
292
- return console.error(`${b}: css3DScene is required when mode is front`);
293
- n.frontModeStore.css3DRenderer.renderEveryFrame(r, e);
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);
294
314
  }
295
- if (((s = (t = this.getBehindCSS3DObjectGroup({ addGroupIfNotExists: !1 })) == null ? void 0 : t.CSS3DObjectLength) != null ? s : 0) > 0) {
296
- const r = this.getBehindCSS3DScene({ createSceneIfNotExists: !0 });
297
- if (!r)
298
- return console.error(`${b}: css3DScene is required when mode is behind`);
299
- n.behindModeStore.css3DRenderer.renderEveryFrame(r, e);
315
+ 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);
300
320
  }
301
321
  }
302
322
  handleShow() {
@@ -316,21 +336,21 @@ class y {
316
336
  (e = this.getFrontCSS3DScene()) == null || e.add(this.store.frontModeGroup), this.store.behindModeGroup && ((t = this.getBehindCSS3DScene()) == null || t.add(this.store.behindModeGroup));
317
337
  }
318
338
  handleDisable() {
319
- var e, t, s;
320
- this.store.frontModeGroup.children.forEach((r) => {
321
- r instanceof j && r.element instanceof Element && r.element.parentNode !== null && r.element.remove();
322
- }), (e = this.store.behindModeGroup) == null || e.children.forEach((r) => {
323
- r instanceof j && r.element instanceof Element && r.element.parentNode !== null && r.element.remove();
324
- }), (t = this.getFrontCSS3DScene()) == null || t.remove(this.store.frontModeGroup), this.store.behindModeGroup && ((s = this.getBehindCSS3DScene()) == null || s.remove(this.store.behindModeGroup));
339
+ 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();
344
+ }), (t = this.getFrontCSS3DScene()) == null || t.remove(this.store.frontModeGroup), this.store.behindModeGroup && ((r = this.getBehindCSS3DScene()) == null || r.remove(this.store.behindModeGroup));
325
345
  }
326
346
  handleDispose() {
327
347
  this.handleDisable();
328
348
  }
329
349
  }
330
- i(y, "setFrontModeContainer", K), i(y, "setBehindModeContainer", Q);
350
+ n(y, "setFrontModeContainer", K), n(y, "setBehindModeContainer", Q);
331
351
  export {
332
352
  y as CSS3DRender,
333
- xe as MinRatio,
334
- b as PLUGIN,
335
- n as globalStore
353
+ et as MinRatio,
354
+ m as PLUGIN,
355
+ i as globalStore
336
356
  };
@@ -1,35 +1,36 @@
1
1
  var c = Object.defineProperty;
2
- var f = Object.getOwnPropertySymbols;
2
+ var u = Object.getOwnPropertySymbols;
3
3
  var v = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
4
- var u = (a, s, e) => s in a ? c(a, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[s] = e, g = (a, s) => {
4
+ var n = (a, s, e) => s in a ? c(a, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[s] = e, f = (a, s) => {
5
5
  for (var e in s || (s = {}))
6
- v.call(s, e) && u(a, e, s[e]);
7
- if (f)
8
- for (var e of f(s))
9
- S.call(s, e) && u(a, e, s[e]);
6
+ v.call(s, e) && n(a, e, s[e]);
7
+ if (u)
8
+ for (var e of u(s))
9
+ S.call(s, e) && n(a, e, s[e]);
10
10
  return a;
11
11
  };
12
- var d = (a, s, e) => (u(a, typeof s != "symbol" ? s + "" : s, e), e);
13
- var p = (a, s, e) => new Promise((t, i) => {
14
- var r = (h) => {
12
+ var d = (a, s, e) => (n(a, typeof s != "symbol" ? s + "" : s, e), e);
13
+ var m = (a, s, e) => new Promise((t, i) => {
14
+ var r = (o) => {
15
15
  try {
16
- n(e.next(h));
17
- } catch (o) {
18
- i(o);
16
+ l(e.next(o));
17
+ } catch (p) {
18
+ i(p);
19
19
  }
20
- }, m = (h) => {
20
+ }, b = (o) => {
21
21
  try {
22
- n(e.throw(h));
23
- } catch (o) {
24
- i(o);
22
+ l(e.throw(o));
23
+ } catch (p) {
24
+ i(p);
25
25
  }
26
- }, n = (h) => h.done ? t(h.value) : Promise.resolve(h.value).then(r, m);
27
- n((e = e.apply(a, s)).next());
26
+ }, l = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(r, b);
27
+ l((e = e.apply(a, s)).next());
28
28
  });
29
29
  import { Controller as y } from "../base/BasePlugin.js";
30
30
  import "../shared-utils/tag.js";
31
31
  import "three";
32
32
  import "hammerjs";
33
+ import "../shared-utils/three/PointSelector/index.js";
33
34
  import "three/examples/jsm/renderers/CSS3DRenderer";
34
35
  import "@realsee/five/line";
35
36
  import "../vendor/three/examples/jsm/lines/LineGeometry.js";
@@ -49,11 +50,40 @@ import "../shared-utils/positionToVector3.js";
49
50
  import "../shared-utils/five/vector3ToScreen.js";
50
51
  import "../shared-utils/three/temp.js";
51
52
  import "../shared-utils/dom/resizeObserver.js";
53
+ import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
54
+ import "../shared-utils/three/Magnifier.js";
55
+ import "../shared-utils/three/PointSelector/utils/PointHelper.js";
56
+ import "../shared-utils/three/Assets/index.js";
57
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
58
+ import "../CSS3DRenderPlugin/utils/even.js";
59
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
60
+ import "../shared-utils/three/centerPoint.js";
61
+ import "../shared-utils/three/getObjectVisible.js";
62
+ import "../shared-utils/isNil.js";
63
+ import "../shared-utils/three/PointSelector/utils/html.js";
64
+ import "../shared-utils/five/initialCSS3DRender.js";
65
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
66
+ import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
67
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
68
+ import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
69
+ import "../Sculpt/Meshes/Line.js";
70
+ import "../Sculpt/typings/style.js";
71
+ import "../shared-utils/five/FiveLine.js";
72
+ import "../shared-utils/three/IObject3D.js";
73
+ import "../Sculpt/utils/removeAllTag.js";
74
+ import "../Sculpt/utils/Meshes/getLengthHTML.js";
75
+ import "../shared-utils/three/applyObjectMatrixWorld.js";
76
+ import "../shared-utils/util.js";
77
+ import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
78
+ import "../shared-utils/isTouchDevice.js";
79
+ import "../shared-utils/five/getPosition.js";
80
+ import "../shared-utils/five/getRaycasterByNdcPosition.js";
81
+ import "../shared-utils/three/PointSelector/utils/contents.js";
52
82
  import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
53
83
  import "../vendor/three/build/three.module.js";
54
84
  import "../shared-utils/isTruelyObject.js";
55
- const b = "CruisePlugin", l = `${b}`, T = (a) => `${l}--${a}`;
56
- class X extends y {
85
+ const g = "CruisePlugin", h = `${g}`, Ie = (a) => `${h}--${a}`;
86
+ class we extends y {
57
87
  constructor(e, t) {
58
88
  super(e, t);
59
89
  d(this, "state", {
@@ -73,15 +103,15 @@ class X extends y {
73
103
  });
74
104
  d(this, "GuideLine");
75
105
  d(this, "disposedErrorLog", () => {
76
- console.error(`${l} is disposed`);
106
+ console.error(`${h} is disposed`);
77
107
  });
78
108
  d(this, "disableWarnLog", () => {
79
- console.warn(`${l} is disabled`);
109
+ console.warn(`${h} is disabled`);
80
110
  });
81
111
  d(this, "disableErrorLog", () => {
82
- console.error(`${l} is disabled`);
112
+ console.error(`${h} is disabled`);
83
113
  });
84
- this.config = t, Object.assign(window, { [`__${b}_DEBUG__`]: this });
114
+ this.config = t, Object.assign(window, { [`__${g}_DEBUG__`]: this });
85
115
  }
86
116
  /**
87
117
  * @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
@@ -99,7 +129,7 @@ class X extends y {
99
129
  * @description Show guide line
100
130
  */
101
131
  show(e) {
102
- return p(this, null, function* () {
132
+ return m(this, null, function* () {
103
133
  this.setState({ visible: !0 }, e);
104
134
  });
105
135
  }
@@ -107,7 +137,7 @@ class X extends y {
107
137
  * @description Hide guide line
108
138
  */
109
139
  hide(e) {
110
- return p(this, null, function* () {
140
+ return m(this, null, function* () {
111
141
  this.setState({ visible: !1 }, e);
112
142
  });
113
143
  }
@@ -138,7 +168,7 @@ class X extends y {
138
168
  return this.disposedErrorLog();
139
169
  if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
140
170
  return this.disableErrorLog();
141
- const i = g({}, this.state);
171
+ const i = f({}, this.state);
142
172
  this.state = C({}, this.state, e), e.disposed !== void 0 && e.disposed !== i.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== i.visible && this.handleVisible(e.visible, t == null ? void 0 : t.userAction), e.enabled !== void 0 && e.enabled !== i.enabled && this.handleEnable(e.enabled, t == null ? void 0 : t.userAction), e.playing !== void 0 && e.playing !== i.playing && this.changePlayState(e.playing, t), e.speed !== void 0 && e.speed !== i.speed && this.changeSpeed(e.speed), L(i, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: (r = t == null ? void 0 : t.userAction) != null ? r : !0 });
143
173
  }
144
174
  /**
@@ -228,6 +258,6 @@ class X extends y {
228
258
  }
229
259
  }
230
260
  export {
231
- X as default,
232
- T as pluginFlag
261
+ we as default,
262
+ Ie as pluginFlag
233
263
  };
@@ -32,6 +32,7 @@ import { objectAssignDeepExports as g } from "../vendor/object-assign-deep/objec
32
32
  import * as L from "three";
33
33
  import "../shared-utils/tag.js";
34
34
  import "hammerjs";
35
+ import "../shared-utils/three/PointSelector/index.js";
35
36
  import "three/examples/jsm/renderers/CSS3DRenderer";
36
37
  import "@realsee/five/line";
37
38
  import "../vendor/three/examples/jsm/lines/LineGeometry.js";
@@ -55,12 +56,42 @@ import "../shared-utils/isTruelyObject.js";
55
56
  import "../shared-utils/five/vector3ToScreen.js";
56
57
  import "../shared-utils/three/temp.js";
57
58
  import "../shared-utils/dom/resizeObserver.js";
59
+ import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
60
+ import "../shared-utils/three/Magnifier.js";
61
+ import "../shared-utils/three/PointSelector/utils/PointHelper.js";
62
+ import "../shared-utils/three/Assets/index.js";
63
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
64
+ import "../CSS3DRenderPlugin/utils/even.js";
65
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
66
+ import "../shared-utils/three/centerPoint.js";
67
+ import "../shared-utils/three/getObjectVisible.js";
68
+ import "../shared-utils/isNil.js";
69
+ import "../shared-utils/three/PointSelector/utils/html.js";
70
+ import "../shared-utils/five/initialCSS3DRender.js";
71
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
72
+ import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
73
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
74
+ import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
75
+ import "../Sculpt/Meshes/Line.js";
76
+ import "../Sculpt/typings/style.js";
77
+ import "../shared-utils/five/FiveLine.js";
78
+ import "../shared-utils/three/IObject3D.js";
79
+ import "../Sculpt/utils/removeAllTag.js";
80
+ import "../Sculpt/utils/Meshes/getLengthHTML.js";
81
+ import "../shared-utils/three/applyObjectMatrixWorld.js";
82
+ import "../shared-utils/util.js";
83
+ import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
84
+ import "../shared-utils/isTouchDevice.js";
85
+ import "../shared-utils/five/getPosition.js";
86
+ import "../shared-utils/five/getRaycasterByNdcPosition.js";
87
+ import "../shared-utils/three/PointSelector/utils/contents.js";
58
88
  import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
59
89
  import "../vendor/three/build/three.module.js";
60
90
  import "../shared-utils/vectorToCoordinate.js";
61
91
  import "../shared-utils/formatRad.js";
62
92
  import "../GuideLinePlugin/Controller.js";
63
93
  import "../base/BasePluginWithData.js";
94
+ import "../shared-utils/five/fiveModelLoad.js";
64
95
  import "../GuideLinePlugin/GuideLineItem/index.js";
65
96
  import "../GuideLinePlugin/GuideLineModeItem/index.js";
66
97
  import "../shared-utils/log.js";
@@ -75,8 +106,6 @@ import "../vendor/gl-vec2/dot.js";
75
106
  import "../shared-utils/math/intersecting.js";
76
107
  import "../shared-utils/five/mode.js";
77
108
  import "../shared-utils/three/blink.js";
78
- import "../shared-utils/util.js";
79
- import "../shared-utils/isNil.js";
80
109
  import "../shared-utils/animationFrame/BetterTween.js";
81
110
  import "../shared-utils/animationFrame/index.js";
82
111
  import "../shared-utils/three/loadTexture.js";
@@ -161,7 +190,6 @@ import "../shared-utils/three/GLTFLoader.js";
161
190
  import "@realsee/five/gltf-loader";
162
191
  import "../PanoTagPlugin/utils/planeNormal.js";
163
192
  import "../PanoTagPlugin/utils/model/mediaPlane.js";
164
- import "../shared-utils/three/centerPoint.js";
165
193
  import "../shared-utils/three/Quadrangle.js";
166
194
  import "../shared-utils/math/pointsIsRectangle.js";
167
195
  import "../shared-utils/three/loadVideoTexture.js";
@@ -189,22 +217,13 @@ import "../vendor/svelte/store/index.js";
189
217
  import "../CSS3DRenderPlugin/index.js";
190
218
  import "../CSS3DRenderPlugin/Controller.js";
191
219
  import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
192
- import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
193
- import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
194
- import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
195
- import "../CSS3DRenderPlugin/utils/even.js";
196
- import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
197
- import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
198
- import "../shared-utils/three/getObjectVisible.js";
199
220
  import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
200
221
  import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
201
222
  import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
202
223
  import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
203
- import "../shared-utils/five/fiveModelLoad.js";
204
224
  import "../shared-utils/five/FiveDomEvents.js";
205
225
  import "../shared-utils/five/calculateThreeMouse.js";
206
226
  import "../shared-utils/three/core/Raycaster.js";
207
- import "../shared-utils/isTouchDevice.js";
208
227
  import "../PanoTagPlugin/utils/DebugUtil.js";
209
228
  import "../PanoTagPlugin/utils/addDebugPoints.js";
210
229
  import "../PanoTagPlugin/controller/Tag/PointTag.js";
@@ -224,7 +243,7 @@ import "./utils/coordinatesToVector.js";
224
243
  import "./utils/safeCall.js";
225
244
  import "./utils/sleep.js";
226
245
  import "../shared-utils/five/fiveLoaded.js";
227
- class yo extends z {
246
+ class Bo extends z {
228
247
  constructor(t, r) {
229
248
  var h;
230
249
  super(t, r);
@@ -332,5 +351,5 @@ class yo extends z {
332
351
  }
333
352
  }
334
353
  export {
335
- yo as default
354
+ Bo as default
336
355
  };