@realsee/dnalogel 3.49.9-alpha.0 → 3.49.9

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 (81) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/index.cjs.js +194 -194
  3. package/dist/index.js +3715 -3708
  4. package/dist/index.umd.js +195 -195
  5. package/dist/shared-utils/tag.d.ts +4 -3
  6. package/libs/AreaMakerPlugin/Controller.js +1 -1
  7. package/libs/AreaMakerPlugin/index.js +1 -1
  8. package/libs/CSS3DRenderPlugin/Controller.js +20 -19
  9. package/libs/CSS3DRenderPlugin/index.js +6 -5
  10. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +3 -2
  11. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +16 -15
  12. package/libs/CruisePlugin/BaseController.js +5 -4
  13. package/libs/CruisePlugin/Move.js +1 -1
  14. package/libs/CruisePlugin/index.js +1 -1
  15. package/libs/CurrentPanoImagePlugin/Controller.js +3 -2
  16. package/libs/CurrentPanoImagePlugin/index.js +4 -3
  17. package/libs/GuideLinePlugin/GuideLineItem.js +1 -1
  18. package/libs/GuideLinePlugin/GuideLineModeItem.js +1 -1
  19. package/libs/GuideLinePlugin/index.js +1 -1
  20. package/libs/ModelMakerPlugin/Controller.js +9 -8
  21. package/libs/ModelMakerPlugin/index.js +3 -2
  22. package/libs/ModelMakerPlugin/item/baseItem.js +3 -2
  23. package/libs/ModelMakerPlugin/item/boxItem.js +3 -2
  24. package/libs/ModelMakerPlugin/item/polygonItem.js +8 -7
  25. package/libs/ModelMakerPlugin/item/prismItem.js +3 -2
  26. package/libs/ModelTVVideoPlugin/Plugin.js +4 -3
  27. package/libs/ModelTVVideoPlugin/index.js +3 -2
  28. package/libs/Object3DHelperPlugin/Controller.js +3 -2
  29. package/libs/Object3DHelperPlugin/index.js +6 -5
  30. package/libs/PanoCompassPlugin/Controller.js +3 -2
  31. package/libs/PanoCompassPlugin/index.js +4 -3
  32. package/libs/PanoDoorLabelPlugin/BaseController.js +8 -7
  33. package/libs/PanoDoorLabelPlugin/Controller.js +3 -2
  34. package/libs/PanoDoorLabelPlugin/index.js +4 -3
  35. package/libs/PanoMeasurePlugin/Components/Controller0.js +3 -2
  36. package/libs/PanoMeasurePlugin/Components/Controller1.js +3 -2
  37. package/libs/PanoMeasurePlugin/Controller/EditController.js +3 -2
  38. package/libs/PanoMeasurePlugin/Controller/WatchController.js +3 -2
  39. package/libs/PanoMeasurePlugin/Controller/index.js +3 -2
  40. package/libs/PanoMeasurePlugin/Model/area.js +3 -2
  41. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -0
  42. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +12 -11
  43. package/libs/PanoMeasurePlugin/index.js +14 -13
  44. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +3 -2
  45. package/libs/PanoSpatialTagPlugin/Plugin.js +4 -3
  46. package/libs/PanoSpatialTagPlugin/index.js +1 -0
  47. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +3 -2
  48. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -2
  49. package/libs/PanoTagPlugin/Components/Tag/index.js +3 -2
  50. package/libs/PanoTagPlugin/Components/TagContainer.js +3 -2
  51. package/libs/PanoTagPlugin/Components/TagItem.js +3 -2
  52. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +3 -2
  53. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +3 -2
  54. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +3 -2
  55. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +3 -2
  56. package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
  57. package/libs/PanoTagPlugin/controller/TagUtil.js +3 -2
  58. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +10 -9
  59. package/libs/PanoVideoPlugin/Controller.js +3 -2
  60. package/libs/PanoVideoPlugin/VideoMeshController.js +3 -2
  61. package/libs/PanoVideoPlugin/index.js +6 -5
  62. package/libs/PipelinePlugin/Controller.js +3 -2
  63. package/libs/PipelinePlugin/index.js +4 -3
  64. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +3 -2
  65. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -2
  66. package/libs/PipelinePlugin/utils/Objects/Pipe.js +1 -0
  67. package/libs/base/BasePlugin.js +1 -1
  68. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +3 -2
  69. package/libs/floorplan/MapviewFloorplanPlugin/index.js +4 -3
  70. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +3 -2
  71. package/libs/floorplan/ModelFloorplanPlugin/index.js +4 -3
  72. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +9 -8
  73. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -3
  74. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +19 -18
  75. package/libs/floorplan/TopviewFloorplanPlugin/index.js +4 -3
  76. package/libs/index.js +1 -1
  77. package/libs/shared-utils/logger.js +1 -1
  78. package/libs/shared-utils/tag.d.ts +4 -3
  79. package/libs/shared-utils/tag.js +44 -36
  80. package/package.json +1 -1
  81. package/README.md +0 -116
@@ -3,9 +3,9 @@ import { type AnyPosition } from './positionToVector3';
3
3
  import * as THREE from 'three';
4
4
  export declare class LightTag {
5
5
  container: HTMLDivElement;
6
- wrapper: HTMLElement;
7
6
  visible: boolean;
8
7
  enabled: boolean;
8
+ wrapper: HTMLElement;
9
9
  positionsForRotate?: THREE.Vector3[];
10
10
  /**
11
11
  * @description 碰撞检测
@@ -17,16 +17,16 @@ export declare class LightTag {
17
17
  * @default true
18
18
  */
19
19
  simulate3D: boolean;
20
- tagWrapper: HTMLElement;
20
+ private tagWrapper;
21
21
  private five;
22
22
  private originPosition?;
23
23
  private transformedPosition?;
24
24
  private disposer;
25
25
  private config;
26
26
  private fiveUtil;
27
+ private disposers;
27
28
  constructor(five: Five, position?: AnyPosition, config?: {
28
29
  wrapper?: HTMLElement;
29
- tagWrapper?: HTMLElement;
30
30
  positionsForRotate?: AnyPosition[];
31
31
  });
32
32
  show(): void;
@@ -39,6 +39,7 @@ export declare class LightTag {
39
39
  updateScreenPosition(): void;
40
40
  private onCameraUpdate;
41
41
  private onFiveEveryReady;
42
+ private addResizeListener;
42
43
  }
43
44
  export declare function tag(five: Five, position: AnyPosition, config?: {
44
45
  wrapper?: HTMLElement;
@@ -52,6 +52,7 @@ import "../vendor/three/build/three.module.js";
52
52
  import "../shared-utils/positionToVector3.js";
53
53
  import "../shared-utils/five/vector3ToScreen.js";
54
54
  import "../shared-utils/three/temp.js";
55
+ import "../shared-utils/dom/resizeObserver.js";
55
56
  import "../shared-utils/isTruelyObject.js";
56
57
  import "../shared-utils/three/core/Object3D.js";
57
58
  import "../shared-utils/three/core/LineSegments.js";
@@ -61,7 +62,6 @@ import "../components/AreaLabel/LabelItem.js";
61
62
  import "../vendor/svelte/internal/index.js";
62
63
  import "../components/AreaLabel/Assets/roomLabelBg.js";
63
64
  import "../shared-utils/math/planimetry.js";
64
- import "../shared-utils/dom/resizeObserver.js";
65
65
  class ht extends k {
66
66
  /** AreaMakerPlugin
67
67
  * @param `five` `<Five>` Five 实例
@@ -18,6 +18,7 @@ import "../shared-utils/Utils/BaseUtil.js";
18
18
  import "../shared-utils/Utils/WorkUtil.js";
19
19
  import "../shared-utils/five/transformPosition.js";
20
20
  import "../shared-utils/three/temp.js";
21
+ import "../shared-utils/dom/resizeObserver.js";
21
22
  import "../shared-utils/three/core/Sphere.js";
22
23
  import "animejs";
23
24
  import "../shared-utils/url/absoluteUrl.js";
@@ -33,7 +34,6 @@ import "../components/AreaLabel/LabelItem.js";
33
34
  import "../vendor/svelte/internal/index.js";
34
35
  import "../components/AreaLabel/Assets/roomLabelBg.js";
35
36
  import "../shared-utils/math/planimetry.js";
36
- import "../shared-utils/dom/resizeObserver.js";
37
37
  const L = (r, o) => new t(r, o);
38
38
  export {
39
39
  L as AreaMakerPlugin
@@ -2,15 +2,15 @@ var R = Object.defineProperty, F = Object.defineProperties;
2
2
  var C = Object.getOwnPropertyDescriptors;
3
3
  var f = Object.getOwnPropertySymbols;
4
4
  var O = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
5
- var p = (s, i, e) => i in s ? R(s, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[i] = e, a = (s, i) => {
5
+ var p = (o, i, e) => i in o ? R(o, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[i] = e, a = (o, i) => {
6
6
  for (var e in i || (i = {}))
7
- O.call(i, e) && p(s, e, i[e]);
7
+ O.call(i, e) && p(o, e, i[e]);
8
8
  if (f)
9
9
  for (var e of f(i))
10
- S.call(i, e) && p(s, e, i[e]);
11
- return s;
12
- }, l = (s, i) => F(s, C(i));
13
- var n = (s, i, e) => (p(s, typeof i != "symbol" ? i + "" : i, e), e);
10
+ S.call(i, e) && p(o, e, i[e]);
11
+ return o;
12
+ }, l = (o, i) => F(o, C(i));
13
+ var s = (o, i, e) => (p(o, typeof i != "symbol" ? i + "" : i, e), e);
14
14
  import { CSS3DRender as j } from "./utils/three/CSS3DRender.js";
15
15
  import x from "./utils/generateBehindFiveElement.js";
16
16
  import "three";
@@ -48,16 +48,17 @@ import "../shared-utils/Utils/BaseUtil.js";
48
48
  import "../shared-utils/Utils/WorkUtil.js";
49
49
  import "../shared-utils/five/transformPosition.js";
50
50
  import "../shared-utils/three/temp.js";
51
+ import "../shared-utils/dom/resizeObserver.js";
51
52
  const b = "v2.0.1", E = `CSS3DRenderPlugin@${b}`;
52
- class ce extends j {
53
+ class ue extends j {
53
54
  constructor(e) {
54
55
  super();
55
- n(this, "five");
56
- n(this, "behindFiveContainer");
57
- n(this, "frontFiveContainer");
58
- n(this, "VERSION", b);
59
- n(this, "staticPrefix", "//vr-image-4.realsee-cdn.cn");
60
- n(this, "created3DElementResults", []);
56
+ s(this, "five");
57
+ s(this, "behindFiveContainer");
58
+ s(this, "frontFiveContainer");
59
+ s(this, "VERSION", b);
60
+ s(this, "staticPrefix", "//vr-image-4.realsee-cdn.cn");
61
+ s(this, "created3DElementResults", []);
61
62
  /**
62
63
  * @description 根据传入的四个点位创建一个 3d dom容器,可以通过ReactDom.render()的方式将react组件放到容器中
63
64
  * @param { Vector3Position[] } points 矩形四个点坐标
@@ -93,10 +94,10 @@ class ce extends j {
93
94
  * } | void
94
95
  * ```
95
96
  */
96
- n(this, "create3DDomContainer", (e, t) => {
97
+ s(this, "create3DDomContainer", (e, t) => {
97
98
  if (this.state.disposed)
98
99
  return;
99
- const o = (() => {
100
+ const n = (() => {
100
101
  var m;
101
102
  (t == null ? void 0 : t.dpr) !== void 0 && console.warn(`${E}: please use "config.devicePixelRatio" replace "config.dpr"`);
102
103
  const d = {
@@ -107,9 +108,9 @@ class ce extends j {
107
108
  wrapperStyle: {}
108
109
  };
109
110
  return Object.assign(d, t, (t == null ? void 0 : t.mode) === "behind" ? { scene: this.five.scene } : void 0);
110
- })(), { autoRender: h } = o;
111
- o.mode === "behind" && o.behindFiveContainer && (this.behindFiveContainer = o.behindFiveContainer);
112
- const r = this.create3DElement(this.five.camera, e, l(a({}, o), { autoRender: !1 }));
111
+ })(), { autoRender: h } = n;
112
+ n.mode === "behind" && n.behindFiveContainer && (this.behindFiveContainer = n.behindFiveContainer);
113
+ const r = this.create3DElement(this.five.camera, e, l(a({}, n), { autoRender: !1 }));
113
114
  if (!r)
114
115
  return;
115
116
  const D = r.dispose;
@@ -162,5 +163,5 @@ class ce extends j {
162
163
  }
163
164
  export {
164
165
  E as PLUGIN_NAME,
165
- ce as default
166
+ ue as default
166
167
  };
@@ -1,5 +1,5 @@
1
1
  import o from "./Controller.js";
2
- import { CSS3DRender as N } from "./utils/three/CSS3DRender.js";
2
+ import { CSS3DRender as O } from "./utils/three/CSS3DRender.js";
3
3
  import "./utils/generateBehindFiveElement.js";
4
4
  import "three";
5
5
  import "hammerjs";
@@ -18,6 +18,7 @@ import "../shared-utils/Subscribe.js";
18
18
  import "../shared-utils/Utils/WorkUtil.js";
19
19
  import "../shared-utils/five/transformPosition.js";
20
20
  import "../shared-utils/three/temp.js";
21
+ import "../shared-utils/dom/resizeObserver.js";
21
22
  import "../shared-utils/three/core/Sphere.js";
22
23
  import "animejs";
23
24
  import "../shared-utils/url/absoluteUrl.js";
@@ -36,9 +37,9 @@ import "./utils/three/CSS3DScene.js";
36
37
  import "./utils/getAllCSS3DObject.js";
37
38
  import "../shared-utils/util.js";
38
39
  import "./utils/three/CSS3DGroup.js";
39
- const K = (r) => new o(r);
40
+ const L = (r) => new o(r);
40
41
  export {
41
- N as CSS3DRender,
42
- K as CSS3DRenderPlugin,
43
- K as default
42
+ O as CSS3DRender,
43
+ L as CSS3DRenderPlugin,
44
+ L as default
44
45
  };
@@ -26,8 +26,9 @@ import "../../../shared-utils/Utils/BaseUtil.js";
26
26
  import "../../../shared-utils/Utils/WorkUtil.js";
27
27
  import "../../../shared-utils/five/transformPosition.js";
28
28
  import "../../../shared-utils/three/temp.js";
29
+ import "../../../shared-utils/dom/resizeObserver.js";
29
30
  const $ = 1, W = `CSS3DObjectPlus@${$}`, k = 216e-5, z = 3e-3;
30
- class ut extends N {
31
+ class Pt extends N {
31
32
  constructor(t) {
32
33
  var x, b, w, g, V;
33
34
  if (O(t.cornerPoints) && O(t.width))
@@ -133,7 +134,7 @@ class ut extends N {
133
134
  }
134
135
  }
135
136
  export {
136
- ut as CSS3DObjectPlus,
137
+ Pt as CSS3DObjectPlus,
137
138
  z as DefaultRatio,
138
139
  k as MinRatio
139
140
  };
@@ -18,20 +18,20 @@ var l = (o, e, t) => new Promise((s, r) => {
18
18
  } catch (S) {
19
19
  r(S);
20
20
  }
21
- }, p = (c) => {
21
+ }, u = (c) => {
22
22
  try {
23
23
  f(t.throw(c));
24
24
  } catch (S) {
25
25
  r(S);
26
26
  }
27
- }, f = (c) => c.done ? s(c.value) : Promise.resolve(c.value).then(d, p);
27
+ }, f = (c) => c.done ? s(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 Ne } from "./CSS3DObject.js";
34
+ import { MinRatio as xe } 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";
@@ -55,13 +55,14 @@ import "../../../shared-utils/Utils/BaseUtil.js";
55
55
  import "../../../shared-utils/Utils/WorkUtil.js";
56
56
  import "../../../shared-utils/five/transformPosition.js";
57
57
  import "../../../shared-utils/three/temp.js";
58
+ import "../../../shared-utils/dom/resizeObserver.js";
58
59
  import "../../../shared-utils/three/core/Sphere.js";
59
60
  import "animejs";
60
61
  import "../../../shared-utils/isNil.js";
61
62
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
62
63
  import "../getAllCSS3DObject.js";
63
64
  import "../../../shared-utils/util.js";
64
- const J = 3, G = "CSS3DRenderer", b = `${G}@${J}`, u = () => {
65
+ const J = 3, G = "CSS3DRenderer", b = `${G}@${J}`, p = () => {
65
66
  console.error(`${b} is disposed`);
66
67
  }, n = {
67
68
  css3DObjects: [],
@@ -130,7 +131,7 @@ class y {
130
131
  */
131
132
  i(this, "create3DElement", (e, t, s) => {
132
133
  if (this.state.disposed)
133
- return u();
134
+ return p();
134
135
  const r = (() => {
135
136
  const h = {
136
137
  ratio: 216e-5,
@@ -145,9 +146,9 @@ class y {
145
146
  })(), d = t.map(q);
146
147
  if ((d == null ? void 0 : d.length) < 4)
147
148
  return console.error(`${b}: requires 4 point but params may have fewer`);
148
- const { ratio: p, devicePixelRatio: f, mode: c, autoRender: S, container: O, pointerEvents: F, wrapperStyle: I } = r;
149
+ const { ratio: u, devicePixelRatio: f, mode: c, autoRender: S, container: O, pointerEvents: F, wrapperStyle: I } = r;
149
150
  let m = !1;
150
- const a = this.createObject(d, { ratio: p, dpr: f, container: O, mode: c, pointerEvents: F, wrapperStyle: I });
151
+ const a = this.createObject(d, { ratio: u, dpr: f, container: O, mode: c, pointerEvents: F, wrapperStyle: I });
151
152
  n.css3DObjects.push(a), r.scene && this.setScene(r.scene);
152
153
  const N = () => {
153
154
  if (m)
@@ -212,7 +213,7 @@ class y {
212
213
  }
213
214
  setState(e, t = { userAction: !0 }) {
214
215
  if (this.state.disposed)
215
- return u();
216
+ return p();
216
217
  const s = g({}, this.state);
217
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 });
218
219
  }
@@ -222,25 +223,25 @@ class y {
222
223
  show() {
223
224
  return l(this, arguments, function* ({ userAction: e } = { userAction: !0 }) {
224
225
  if (this.state.disposed)
225
- return u();
226
+ return p();
226
227
  this.setState({ visible: !0 }, { userAction: e }), this.hooks.emit("show", { userAction: e });
227
228
  });
228
229
  }
229
230
  hide() {
230
231
  return l(this, arguments, function* ({ userAction: e } = { userAction: !0 }) {
231
232
  if (this.state.disposed)
232
- return u();
233
+ return p();
233
234
  this.setState({ visible: !1 }, { userAction: e }), this.hooks.emit("hide", { userAction: e });
234
235
  });
235
236
  }
236
237
  enable({ userAction: e } = { userAction: !0 }) {
237
238
  if (this.state.disposed)
238
- return u();
239
+ return p();
239
240
  this.setState({ enabled: !0 }, { userAction: e }), this.hooks.emit("enable", { userAction: e });
240
241
  }
241
242
  disable({ userAction: e } = { userAction: !0 }) {
242
243
  if (this.state.disposed)
243
- return u();
244
+ return p();
244
245
  this.setState({ enabled: !1 }, { userAction: e }), this.hooks.emit("disable", { userAction: e });
245
246
  }
246
247
  getFrontCSS3DScene({ createSceneIfNotExists: e = !1 } = {}) {
@@ -265,8 +266,8 @@ class y {
265
266
  console.error(`${b}: scene is required when mode is behind`);
266
267
  return;
267
268
  }
268
- const p = new T(d);
269
- n.behindModeStore.css3DScene = p, n.behindModeStore.scene = d;
269
+ const u = new T(d);
270
+ n.behindModeStore.css3DScene = u, n.behindModeStore.scene = d;
270
271
  }
271
272
  return n.behindModeStore.css3DScene;
272
273
  }
@@ -329,7 +330,7 @@ class y {
329
330
  i(y, "setFrontModeContainer", K), i(y, "setBehindModeContainer", Q);
330
331
  export {
331
332
  y as CSS3DRender,
332
- Ne as MinRatio,
333
+ xe as MinRatio,
333
334
  b as PLUGIN,
334
335
  n as globalStore
335
336
  };
@@ -46,13 +46,14 @@ import "../shared-utils/Utils/BaseUtil.js";
46
46
  import "../shared-utils/Utils/WorkUtil.js";
47
47
  import "../shared-utils/five/transformPosition.js";
48
48
  import "../shared-utils/three/temp.js";
49
+ import "../shared-utils/dom/resizeObserver.js";
49
50
  import "../shared-utils/three/core/Sphere.js";
50
51
  import "animejs";
51
52
  import "../shared-utils/url/absoluteUrl.js";
52
53
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
53
54
  import "../shared-utils/isTruelyObject.js";
54
- const b = "CruisePlugin", l = `${b}`, R = (a) => `${l}--${a}`;
55
- class T extends y {
55
+ const b = "CruisePlugin", l = `${b}`, T = (a) => `${l}--${a}`;
56
+ class X extends y {
56
57
  constructor(e, t) {
57
58
  super(e, t);
58
59
  d(this, "state", {
@@ -227,6 +228,6 @@ class T extends y {
227
228
  }
228
229
  }
229
230
  export {
230
- T as default,
231
- R as pluginFlag
231
+ X as default,
232
+ T as pluginFlag
232
233
  };
@@ -56,6 +56,7 @@ import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
56
56
  import "../vendor/three/build/three.module.js";
57
57
  import "../shared-utils/five/vector3ToScreen.js";
58
58
  import "../shared-utils/three/temp.js";
59
+ import "../shared-utils/dom/resizeObserver.js";
59
60
  import "../shared-utils/vectorToCoordinate.js";
60
61
  import "../shared-utils/formatRad.js";
61
62
  import "../GuideLinePlugin/Controller.js";
@@ -85,7 +86,6 @@ import "../PanoTagPlugin/utils/debounce.js";
85
86
  import "../PanoTagPlugin/utils/throttle.js";
86
87
  import "../PanoTagPlugin/utils/tag/format.js";
87
88
  import "../shared-utils/audio.js";
88
- import "../shared-utils/dom/resizeObserver.js";
89
89
  import "../PanoTagPlugin/controller/TagRender.js";
90
90
  import "../PanoTagPlugin/Components/Tag/index.js";
91
91
  import "../vendor/svelte/internal/index.js";
@@ -22,6 +22,7 @@ import "../shared-utils/Utils/BaseUtil.js";
22
22
  import "../shared-utils/Utils/WorkUtil.js";
23
23
  import "../shared-utils/five/transformPosition.js";
24
24
  import "../shared-utils/three/temp.js";
25
+ import "../shared-utils/dom/resizeObserver.js";
25
26
  import "../shared-utils/three/core/Sphere.js";
26
27
  import "animejs";
27
28
  import "../shared-utils/url/absoluteUrl.js";
@@ -54,7 +55,6 @@ import "../PanoTagPlugin/utils/debounce.js";
54
55
  import "../PanoTagPlugin/utils/throttle.js";
55
56
  import "../PanoTagPlugin/utils/tag/format.js";
56
57
  import "../shared-utils/audio.js";
57
- import "../shared-utils/dom/resizeObserver.js";
58
58
  import "../PanoTagPlugin/controller/TagRender.js";
59
59
  import "../PanoTagPlugin/Components/Tag/index.js";
60
60
  import "../vendor/svelte/internal/index.js";
@@ -52,8 +52,9 @@ import "../vendor/three/build/three.module.js";
52
52
  import "../shared-utils/positionToVector3.js";
53
53
  import "../shared-utils/five/vector3ToScreen.js";
54
54
  import "../shared-utils/three/temp.js";
55
+ import "../shared-utils/dom/resizeObserver.js";
55
56
  import "../shared-utils/isTruelyObject.js";
56
- class K extends M {
57
+ class N extends M {
57
58
  constructor(e, i) {
58
59
  super(e);
59
60
  // ==================== public properties ====================
@@ -284,5 +285,5 @@ class K extends M {
284
285
  }
285
286
  }
286
287
  export {
287
- K as CurrentPanoImagePluginController
288
+ N as CurrentPanoImagePluginController
288
289
  };
@@ -17,6 +17,7 @@ import "../shared-utils/Utils/BaseUtil.js";
17
17
  import "../shared-utils/Utils/WorkUtil.js";
18
18
  import "../shared-utils/five/transformPosition.js";
19
19
  import "../shared-utils/three/temp.js";
20
+ import "../shared-utils/dom/resizeObserver.js";
20
21
  import "../shared-utils/three/core/Sphere.js";
21
22
  import "animejs";
22
23
  import "../shared-utils/url/absoluteUrl.js";
@@ -26,8 +27,8 @@ import "../shared-utils/animationFrame/index.js";
26
27
  import "../shared-utils/equal.js";
27
28
  import "../shared-utils/isTruelyObject.js";
28
29
  import "../shared-utils/three/loadTexture.js";
29
- const D = (r, o) => new t(r, o);
30
+ const E = (r, o) => new t(r, o);
30
31
  export {
31
- D as CurrentPanoImagePlugin,
32
- D as default
32
+ E as CurrentPanoImagePlugin,
33
+ E as default
33
34
  };
@@ -32,6 +32,7 @@ import "../shared-utils/Utils/BaseUtil.js";
32
32
  import "../shared-utils/Utils/WorkUtil.js";
33
33
  import "../shared-utils/five/transformPosition.js";
34
34
  import "../shared-utils/three/temp.js";
35
+ import "../shared-utils/dom/resizeObserver.js";
35
36
  import "../shared-utils/three/core/Sphere.js";
36
37
  import "../shared-utils/three/blink.js";
37
38
  import "animejs";
@@ -48,7 +49,6 @@ import "../PanoTagPlugin/utils/debounce.js";
48
49
  import "../PanoTagPlugin/utils/throttle.js";
49
50
  import "../PanoTagPlugin/utils/tag/format.js";
50
51
  import "../shared-utils/audio.js";
51
- import "../shared-utils/dom/resizeObserver.js";
52
52
  import "../PanoTagPlugin/controller/TagRender.js";
53
53
  import "../PanoTagPlugin/Components/Tag/index.js";
54
54
  import "../vendor/svelte/internal/index.js";
@@ -36,6 +36,7 @@ import "../shared-utils/Subscribe.js";
36
36
  import "../shared-utils/Utils/WorkUtil.js";
37
37
  import "../shared-utils/five/transformPosition.js";
38
38
  import "../shared-utils/three/temp.js";
39
+ import "../shared-utils/dom/resizeObserver.js";
39
40
  import "animejs";
40
41
  import "../shared-utils/util.js";
41
42
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
@@ -45,7 +46,6 @@ import "../PanoTagPlugin/utils/debounce.js";
45
46
  import "../PanoTagPlugin/utils/throttle.js";
46
47
  import "../PanoTagPlugin/utils/tag/format.js";
47
48
  import "../shared-utils/audio.js";
48
- import "../shared-utils/dom/resizeObserver.js";
49
49
  import "../PanoTagPlugin/controller/TagRender.js";
50
50
  import "../PanoTagPlugin/Components/Tag/index.js";
51
51
  import "../vendor/svelte/internal/index.js";
@@ -20,6 +20,7 @@ import "../shared-utils/Utils/BaseUtil.js";
20
20
  import "../shared-utils/Utils/WorkUtil.js";
21
21
  import "../shared-utils/five/transformPosition.js";
22
22
  import "../shared-utils/three/temp.js";
23
+ import "../shared-utils/dom/resizeObserver.js";
23
24
  import "../shared-utils/three/core/Sphere.js";
24
25
  import "animejs";
25
26
  import "../shared-utils/url/absoluteUrl.js";
@@ -61,7 +62,6 @@ import "../PanoTagPlugin/utils/debounce.js";
61
62
  import "../PanoTagPlugin/utils/throttle.js";
62
63
  import "../PanoTagPlugin/utils/tag/format.js";
63
64
  import "../shared-utils/audio.js";
64
- import "../shared-utils/dom/resizeObserver.js";
65
65
  import "../PanoTagPlugin/controller/TagRender.js";
66
66
  import "../PanoTagPlugin/Components/Tag/index.js";
67
67
  import "../vendor/svelte/internal/index.js";
@@ -29,7 +29,7 @@ var F = (h, o, e) => new Promise((t, r) => {
29
29
  import { Controller as z } from "../base/BasePluginWithData.js";
30
30
  import * as c from "three";
31
31
  import { ModelMakerBoxItem as B } from "./item/boxItem.js";
32
- import { PrismMesh as T } from "../Sculpt/Meshes/Prism.js";
32
+ import { PrismMesh as A } from "../Sculpt/Meshes/Prism.js";
33
33
  import { anyPositionToVector3 as O } from "../shared-utils/positionToVector3.js";
34
34
  import { PolygonWithEdgeMesh as Q } from "../Sculpt/Meshes/PolygonWithEdge.js";
35
35
  import "hammerjs";
@@ -39,7 +39,7 @@ import "../vendor/three/examples/jsm/lines/LineGeometry.js";
39
39
  import "../shared-utils/tag.js";
40
40
  import { boxVertex as g } from "../shared-utils/three/boundingBox.js";
41
41
  import "animejs";
42
- import { notNil as A } from "../shared-utils/isNil.js";
42
+ import { notNil as I } from "../shared-utils/isNil.js";
43
43
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
44
44
  import { tagRendererMap as q } from "./utils/tagRenderer.js";
45
45
  import { ModelMakerPrismItem as G } from "./item/prismItem.js";
@@ -81,6 +81,7 @@ import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
81
81
  import "../vendor/three/build/three.module.js";
82
82
  import "../shared-utils/five/vector3ToScreen.js";
83
83
  import "../shared-utils/three/temp.js";
84
+ import "../shared-utils/dom/resizeObserver.js";
84
85
  import "./utils/Text.js";
85
86
  import "../vendor/svelte/internal/index.js";
86
87
  import "../components/AreaLabel/LabelItem.js";
@@ -91,7 +92,7 @@ import "../shared-utils/five/FiveDomEvents.js";
91
92
  import "../shared-utils/three/getObjectVisible.js";
92
93
  import "../shared-utils/five/calculateThreeMouse.js";
93
94
  import "../shared-utils/isTouchDevice.js";
94
- class nt extends z {
95
+ class at extends z {
95
96
  constructor(e, t) {
96
97
  var r, p;
97
98
  super(e);
@@ -128,7 +129,7 @@ class nt extends z {
128
129
  this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.occlusionVisibility = (r = t == null ? void 0 : t.occlusionVisibility) != null ? r : !1, this.occlusionMode = (p = t == null ? void 0 : t.occlusionMode) != null ? p : "translucence", this.fiveDomEvents = Y(e), this.tagWrapper = (() => {
129
130
  var i;
130
131
  const a = document.createElement("div");
131
- return a.style.position = "absolute", a.classList.add("ModelMakerPluginTagWrapper"), a.style.top = "0", a.style.left = "0", a.style.width = "100%", a.style.height = "100%", a.style.pointerEvents = "none", a.style.zIndex = `${(i = t == null ? void 0 : t.tagContainerZIndex) != null ? i : ""}`, a;
132
+ return a.style.position = "absolute", a.style.top = "0", a.style.left = "0", a.style.width = "100%", a.style.height = "100%", a.style.pointerEvents = "none", a.style.zIndex = `${(i = t == null ? void 0 : t.tagContainerZIndex) != null ? i : ""}`, a;
132
133
  })(), e.scene.add(this.group), this.handleEnable(), window.__MODELMAKER_DEBUG__ = this;
133
134
  }
134
135
  load(e) {
@@ -160,7 +161,7 @@ class nt extends z {
160
161
  });
161
162
  this.items.push(d);
162
163
  } else if (i.type === "prism") {
163
- const s = new T();
164
+ const s = new A();
164
165
  this.zFightingOffset += 1e-4;
165
166
  const d = i.object_data.points.map((u) => {
166
167
  var y;
@@ -186,7 +187,7 @@ class nt extends z {
186
187
  });
187
188
  this.items.push(f);
188
189
  } else if (i.type === "box") {
189
- const s = new T(), { start: d, end: v, rotation: M = [0, 0, 0, 0], opacity: f, color: u } = i.object_data, y = new c.Vector3().fromArray(d), R = new c.Vector3().fromArray(v), I = new c.Euler().fromArray(M), x = new c.Quaternion().setFromEuler(I), C = x.clone().inverse(), V = new c.Vector3().lerpVectors(y, R, 0.5), W = V.clone().negate(), k = y.clone().add(W).applyQuaternion(C), j = R.clone().add(W).applyQuaternion(C), b = new c.Box3(k.clone().max(j), k.clone().min(j));
190
+ const s = new A(), { start: d, end: v, rotation: M = [0, 0, 0, 0], opacity: f, color: u } = i.object_data, y = new c.Vector3().fromArray(d), R = new c.Vector3().fromArray(v), T = new c.Euler().fromArray(M), x = new c.Quaternion().setFromEuler(T), C = x.clone().inverse(), V = new c.Vector3().lerpVectors(y, R, 0.5), W = V.clone().negate(), j = y.clone().add(W).applyQuaternion(C), k = R.clone().add(W).applyQuaternion(C), b = new c.Box3(j.clone().max(k), j.clone().min(k));
190
191
  s.setPoints({
191
192
  points: [g(b, 2), g(b, 3), g(b, 7), g(b, 6), g(b, 2)],
192
193
  heightPoint: g(b, 0)
@@ -212,7 +213,7 @@ class nt extends z {
212
213
  });
213
214
  }
214
215
  setState(e) {
215
- A(e.enabled) && this.state.enabled !== e.enabled && (this.state.enabled = e.enabled, e.enabled ? this.handleEnable() : this.handleDisable(), this.hooks.emit(e.enabled ? "enable" : "disable", { userAction: "我不知道捏" }), this.hooks.emit("stateChange", { state: this.state, userAction: "我不知道捏" })), A(e.visible) && this.state.visible !== e.visible && (this.state.visible = e.visible, e.visible ? this.handleShow() : this.handleHide(), this.hooks.emit(e.visible ? "show" : "hide", { userAction: "我不知道捏" }), this.hooks.emit("stateChange", { state: this.state, userAction: "我不知道捏" }));
216
+ I(e.enabled) && this.state.enabled !== e.enabled && (this.state.enabled = e.enabled, e.enabled ? this.handleEnable() : this.handleDisable(), this.hooks.emit(e.enabled ? "enable" : "disable", { userAction: "我不知道捏" }), this.hooks.emit("stateChange", { state: this.state, userAction: "我不知道捏" })), I(e.visible) && this.state.visible !== e.visible && (this.state.visible = e.visible, e.visible ? this.handleShow() : this.handleHide(), this.hooks.emit(e.visible ? "show" : "hide", { userAction: "我不知道捏" }), this.hooks.emit("stateChange", { state: this.state, userAction: "我不知道捏" }));
216
217
  }
217
218
  getItemById(e) {
218
219
  return this.items.find((t) => t.rawData.id === e);
@@ -252,5 +253,5 @@ class nt extends z {
252
253
  }
253
254
  }
254
255
  export {
255
- nt as Controller
256
+ at as Controller
256
257
  };
@@ -18,6 +18,7 @@ import "../shared-utils/Utils/BaseUtil.js";
18
18
  import "../shared-utils/Utils/WorkUtil.js";
19
19
  import "../shared-utils/five/transformPosition.js";
20
20
  import "../shared-utils/three/temp.js";
21
+ import "../shared-utils/dom/resizeObserver.js";
21
22
  import "../shared-utils/three/core/Sphere.js";
22
23
  import "animejs";
23
24
  import "../shared-utils/url/absoluteUrl.js";
@@ -64,7 +65,7 @@ import "../components/AreaLabel/LabelItem.js";
64
65
  import "../components/AreaLabel/Assets/roomLabelBg.js";
65
66
  import "./item/prismItem.js";
66
67
  import "../shared-utils/five/fiveModelLoad.js";
67
- const ko = (...o) => new r(...o);
68
+ const so = (...o) => new r(...o);
68
69
  export {
69
- ko as ModelMakerPlugin
70
+ so as ModelMakerPlugin
70
71
  };
@@ -15,13 +15,14 @@ import "../../shared-utils/Utils/BaseUtil.js";
15
15
  import "../../shared-utils/Utils/WorkUtil.js";
16
16
  import "../../shared-utils/five/transformPosition.js";
17
17
  import "../../shared-utils/three/temp.js";
18
+ import "../../shared-utils/dom/resizeObserver.js";
18
19
  import "../../shared-utils/three/core/Sphere.js";
19
20
  import "../../shared-utils/five/FiveDomEvents.js";
20
21
  import "../../shared-utils/three/getObjectVisible.js";
21
22
  import "../../shared-utils/five/calculateThreeMouse.js";
22
23
  import "../../shared-utils/three/core/Raycaster.js";
23
24
  import "../../shared-utils/isTouchDevice.js";
24
- class N extends p {
25
+ class S extends p {
25
26
  constructor(t) {
26
27
  var s, r;
27
28
  super();
@@ -64,5 +65,5 @@ class N extends p {
64
65
  }
65
66
  }
66
67
  export {
67
- N as ModelMakerBaseItem
68
+ S as ModelMakerBaseItem
68
69
  };
@@ -12,6 +12,7 @@ import "../../shared-utils/Utils/BaseUtil.js";
12
12
  import "../../shared-utils/Utils/WorkUtil.js";
13
13
  import "../../shared-utils/five/transformPosition.js";
14
14
  import "../../shared-utils/three/temp.js";
15
+ import "../../shared-utils/dom/resizeObserver.js";
15
16
  import "../../shared-utils/three/boundingBox.js";
16
17
  import "../../shared-utils/three/core/Sphere.js";
17
18
  import "../utils/getFiveDomEvent.js";
@@ -20,11 +21,11 @@ import "../../shared-utils/three/getObjectVisible.js";
20
21
  import "../../shared-utils/five/calculateThreeMouse.js";
21
22
  import "../../shared-utils/three/core/Raycaster.js";
22
23
  import "../../shared-utils/isTouchDevice.js";
23
- class j extends r {
24
+ class q extends r {
24
25
  constructor(...o) {
25
26
  super(...o);
26
27
  }
27
28
  }
28
29
  export {
29
- j as ModelMakerBoxItem
30
+ q as ModelMakerBoxItem
30
31
  };