@realsee/dnalogel 3.45.0 → 3.46.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 (96) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/Sculpt/Meshes/Line.d.ts +6 -1
  3. package/dist/index.cjs.js +53 -53
  4. package/dist/index.js +29609 -29576
  5. package/dist/index.umd.js +49 -49
  6. package/dist/shared-utils/tag.d.ts +6 -3
  7. package/libs/AreaMakerPlugin/Controller.js +150 -78
  8. package/libs/AreaMakerPlugin/index.js +76 -4
  9. package/libs/AreaMakerPlugin/utils/Item.js +190 -111
  10. package/libs/CSS3DRenderPlugin/Controller.js +89 -29
  11. package/libs/CSS3DRenderPlugin/index.js +75 -15
  12. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +132 -58
  13. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +181 -116
  14. package/libs/CruisePlugin/BaseController.js +121 -49
  15. package/libs/CruisePlugin/Move.js +73 -21
  16. package/libs/CruisePlugin/Work.js +98 -46
  17. package/libs/CruisePlugin/index.js +79 -27
  18. package/libs/CurrentPanoImagePlugin/Controller.js +176 -104
  19. package/libs/CurrentPanoImagePlugin/index.js +76 -4
  20. package/libs/GuideLinePlugin/Controller.js +82 -30
  21. package/libs/GuideLinePlugin/GuideLineItem.js +82 -30
  22. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
  23. package/libs/GuideLinePlugin/GuideLineModeItem.js +81 -29
  24. package/libs/GuideLinePlugin/index.js +79 -27
  25. package/libs/ModelMakerPlugin/Controller.js +139 -82
  26. package/libs/ModelMakerPlugin/index.js +75 -18
  27. package/libs/ModelTVVideoPlugin/Plugin.js +117 -57
  28. package/libs/ModelTVVideoPlugin/index.js +68 -8
  29. package/libs/Object3DHelperPlugin/Controller.js +54 -31
  30. package/libs/Object3DHelperPlugin/index.js +35 -13
  31. package/libs/PanoCompassPlugin/Controller.js +97 -42
  32. package/libs/PanoCompassPlugin/index.js +71 -16
  33. package/libs/PanoDoorLabelPlugin/BaseController.js +98 -26
  34. package/libs/PanoDoorLabelPlugin/Controller.js +187 -115
  35. package/libs/PanoDoorLabelPlugin/index.js +76 -4
  36. package/libs/PanoMeasurePlugin/Components/Controller0.js +140 -88
  37. package/libs/PanoMeasurePlugin/Components/Controller1.js +178 -126
  38. package/libs/PanoMeasurePlugin/Controller/EditController.js +124 -72
  39. package/libs/PanoMeasurePlugin/Controller/WatchController.js +167 -92
  40. package/libs/PanoMeasurePlugin/Controller/index.js +109 -64
  41. package/libs/PanoMeasurePlugin/Model/area.js +114 -38
  42. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +78 -0
  43. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +97 -45
  44. package/libs/PanoMeasurePlugin/index.js +76 -31
  45. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +98 -20
  46. package/libs/PanoSpatialTagPlugin/Plugin.js +210 -150
  47. package/libs/PanoSpatialTagPlugin/index.js +66 -6
  48. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +133 -53
  49. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +295 -216
  50. package/libs/PanoTagPlugin/Components/Tag/index.js +257 -187
  51. package/libs/PanoTagPlugin/Components/TagContainer.js +157 -87
  52. package/libs/PanoTagPlugin/Components/TagItem.js +144 -74
  53. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +73 -3
  54. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +109 -39
  55. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +105 -35
  56. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +113 -43
  57. package/libs/PanoTagPlugin/controller/TagRender.js +132 -80
  58. package/libs/PanoTagPlugin/controller/TagUtil.js +136 -84
  59. package/libs/PanoTagPlugin/controller/index.js +113 -61
  60. package/libs/PanoTagPlugin/index.js +89 -37
  61. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +121 -41
  62. package/libs/PanoVideoPlugin/Controller.js +137 -65
  63. package/libs/PanoVideoPlugin/VideoMeshController.js +149 -69
  64. package/libs/PanoVideoPlugin/index.js +82 -10
  65. package/libs/PipelinePlugin/Controller.js +199 -128
  66. package/libs/PipelinePlugin/index.js +76 -5
  67. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +102 -22
  68. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +95 -15
  69. package/libs/PipelinePlugin/utils/Objects/Pipe.js +136 -56
  70. package/libs/Sculpt/Meshes/Box.js +6 -5
  71. package/libs/Sculpt/Meshes/Cylinder.js +7 -6
  72. package/libs/Sculpt/Meshes/Line.d.ts +6 -1
  73. package/libs/Sculpt/Meshes/Line.js +76 -56
  74. package/libs/Sculpt/Meshes/Point.js +6 -5
  75. package/libs/Sculpt/Meshes/Polyline.js +5 -4
  76. package/libs/Sculpt/Meshes/Rectangle.js +3 -2
  77. package/libs/Sculpt/Objects/Line/Editor.js +11 -10
  78. package/libs/Sculpt/utils/three/ColoredMesh.js +14 -13
  79. package/libs/base/BasePlugin.js +14 -13
  80. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +128 -59
  81. package/libs/floorplan/MapviewFloorplanPlugin/index.js +75 -6
  82. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +129 -59
  83. package/libs/floorplan/ModelFloorplanPlugin/index.js +75 -5
  84. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +158 -86
  85. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +76 -4
  86. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +151 -81
  87. package/libs/floorplan/TopviewFloorplanPlugin/index.js +75 -5
  88. package/libs/floorplan/index.js +1 -0
  89. package/libs/index.js +67 -67
  90. package/libs/shared-utils/five/index.js +3 -2
  91. package/libs/shared-utils/five/lookObject.js +3 -2
  92. package/libs/shared-utils/logger.js +1 -1
  93. package/libs/shared-utils/tag.d.ts +6 -3
  94. package/libs/shared-utils/tag.js +38 -24
  95. package/libs/shared-utils/three/index.js +1 -0
  96. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
- var f = Object.defineProperty;
2
- var m = (n, s, t) => s in n ? f(n, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[s] = t;
3
- var a = (n, s, t) => (m(n, typeof s != "symbol" ? s + "" : s, t), t);
1
+ var h = Object.defineProperty;
2
+ var f = (s, r, t) => r in s ? h(s, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[r] = t;
3
+ var p = (s, r, t) => (f(s, typeof r != "symbol" ? r + "" : r, t), t);
4
4
  import { BaseTag as g } from "./BaseTag.js";
5
- import * as c from "three";
5
+ import * as d from "three";
6
6
  import { cancelIdleCallback as b, requestIdleCallback as y } from "../../utils/requestIdleCallback.js";
7
7
  import "../../../shared-utils/Subscribe.js";
8
8
  import "../../utils/tag/calculateTagConfig.js";
@@ -15,23 +15,93 @@ import "../../../shared-utils/five/mode.js";
15
15
  import "hammerjs";
16
16
  import "three/examples/jsm/renderers/CSS3DRenderer";
17
17
  import "@realsee/five/line";
18
+ import "../../../Sculpt/utils/Modules/Global.js";
19
+ import "../../../Sculpt/utils/Modules/Cursor.js";
20
+ import "../../../Object3DHelperPlugin/Controller.js";
21
+ import "../../../base/BasePlugin.js";
18
22
  import "../../../shared-utils/three/THREESphere.js";
19
23
  import "animejs";
24
+ import "../../../shared-utils/Utils/FiveUtil.js";
25
+ import "../../../shared-utils/Utils/BaseUtil.js";
26
+ import "../../../shared-utils/Utils/WorkUtil.js";
27
+ import "../../../shared-utils/five/transformPosition.js";
28
+ import "../../../shared-utils/five/getFiveModel.js";
29
+ import "../../../shared-utils/url/absoluteUrl.js";
20
30
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
21
- import "../../utils/tag/format.js";
22
- import "../../../shared-utils/three/centerPoint.js";
31
+ import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
32
+ import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
33
+ import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
34
+ import "../../../shared-utils/three/IObject3D.js";
35
+ import "../../../shared-utils/three/boundingBox.js";
36
+ import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
37
+ import "../../../shared-utils/Object3DHelper/utils/direction.js";
38
+ import "../../../shared-utils/Object3DHelper/Constants/color.js";
39
+ import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
40
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
23
41
  import "../../../shared-utils/positionToVector3.js";
24
- import "../../../shared-utils/three/blink.js";
42
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
43
+ import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
44
+ import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
45
+ import "../../../CSS3DRenderPlugin/utils/even.js";
46
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
47
+ import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
48
+ import "../../../shared-utils/three/centerPoint.js";
49
+ import "../../../shared-utils/three/getObjectVisible.js";
50
+ import "../../../shared-utils/isNil.js";
51
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
52
+ import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
25
53
  import "../../../shared-utils/util.js";
54
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
55
+ import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
56
+ import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
57
+ import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
58
+ import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
59
+ import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
60
+ import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
61
+ import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
62
+ import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
63
+ import "../../../shared-utils/threex/domevents/index.js";
64
+ import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
65
+ import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
66
+ import "../../../Sculpt/utils/three/rayOnLine.js";
67
+ import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
68
+ import "../../../shared-utils/Object3DHelper/index.js";
69
+ import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
70
+ import "../../../shared-utils/math/rad2Deg.js";
71
+ import "../../../shared-utils/math/deg2Rad.js";
72
+ import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
73
+ import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
74
+ import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
75
+ import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
76
+ import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
77
+ import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
78
+ import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
79
+ import "../../../shared-utils/five/fiveModelLoad.js";
80
+ import "../../../shared-utils/five/FiveDomEvents.js";
81
+ import "../../../shared-utils/five/calculateThreeMouse.js";
82
+ import "../../../shared-utils/three/THREERaycaster.js";
83
+ import "../../../shared-utils/three/PointSelector/index.js";
84
+ import "../../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
85
+ import "../../../shared-utils/three/Magnifier.js";
86
+ import "../../../shared-utils/three/PointSelector/utils/PointHelper.js";
87
+ import "../../../shared-utils/three/Assets/index.js";
88
+ import "../../../shared-utils/three/PointSelector/utils/html.js";
89
+ import "../../../shared-utils/five/initialCSS3DRender.js";
90
+ import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
91
+ import "../../../Sculpt/Meshes/Line.js";
92
+ import "../../../Sculpt/typings/style.js";
93
+ import "../../../shared-utils/five/FiveLine.js";
94
+ import "../../../shared-utils/tag.js";
95
+ import "../../../shared-utils/five/vector3ToScreen.js";
96
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
97
+ import "../../../shared-utils/isTouchDevice.js";
98
+ import "../../../shared-utils/five/getPosition.js";
99
+ import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
100
+ import "../../utils/tag/format.js";
101
+ import "../../../shared-utils/three/blink.js";
26
102
  import "../../../shared-utils/vectorToCoordinate.js";
27
103
  import "../../../shared-utils/formatRad.js";
28
- import "../../../shared-utils/five/transformPosition.js";
29
- import "../../../shared-utils/isNil.js";
30
104
  import "../../../shared-utils/five/lookPoint.js";
31
- import "../../../shared-utils/Utils/FiveUtil.js";
32
- import "../../../shared-utils/Utils/BaseUtil.js";
33
- import "../../../shared-utils/Utils/WorkUtil.js";
34
- import "../../../shared-utils/five/getFiveModel.js";
35
105
  import "../../../shared-utils/uuid.js";
36
106
  import "../../utils/tagPosition.js";
37
107
  import "../../utils/tag/tagCheck.js";
@@ -41,19 +111,19 @@ import "../../../shared-utils/five/getFloorIndex.js";
41
111
  import "../../../shared-utils/safeObj.js";
42
112
  import "../../utils/Cache.js";
43
113
  import "../../../CruisePlugin/utils/sleep.js";
44
- const v = new c.Vector2();
45
- class rt extends g {
46
- constructor(t, e) {
47
- super(t, e);
48
- a(this, "__Object__");
49
- a(this, "requestIdleCallbackId");
114
+ const v = new d.Vector2();
115
+ class Pi extends g {
116
+ constructor(t, i) {
117
+ super(t, i);
118
+ p(this, "__Object__");
119
+ p(this, "requestIdleCallbackId");
50
120
  }
51
121
  /**
52
122
  * @description 展开自己,收起其他标签
53
123
  */
54
124
  unfoldAndFoldOthers() {
55
- const t = this.can("fold"), e = this.can("unfold");
56
- t && e && (this.state.unfolded = !this.state.unfolded, this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), this.state.unfolded && this.plugin.tags.forEach((o) => {
125
+ const t = this.can("fold"), i = this.can("unfold");
126
+ t && i && (this.state.unfolded = !this.state.unfolded, this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), this.state.unfolded && this.plugin.tags.forEach((o) => {
57
127
  o.id !== this.id && o.fold();
58
128
  }));
59
129
  }
@@ -66,8 +136,8 @@ class rt extends g {
66
136
  });
67
137
  }
68
138
  applyVisible() {
69
- var t, e, o, i;
70
- this.currentVisible && this.updateScreenPosition(), (o = (e = (t = this.tag3DContentSvelte) == null ? void 0 : t.css3DInstance) == null ? void 0 : e.css3DObject) == null || o.setVisible(this.currentVisible), (i = this.tag3DContentSvelte) == null || i.svelteApp.$set({
139
+ var t, i, o, e;
140
+ this.currentVisible && this.updateScreenPosition(), (o = (i = (t = this.tag3DContentSvelte) == null ? void 0 : t.css3DInstance) == null ? void 0 : i.css3DObject) == null || o.setVisible(this.currentVisible), (e = this.tag3DContentSvelte) == null || e.svelteApp.$set({
71
141
  state: this.plugin.state,
72
142
  temporaryState: this.temporaryState
73
143
  }), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
@@ -83,38 +153,38 @@ class rt extends g {
83
153
  * @param {boolean} unfolded
84
154
  */
85
155
  setUnfold(t) {
86
- const e = this.can("fold"), o = this.can("unfold");
87
- e && o && (this.state.unfolded = t, this.hooks.emit(t ? "unfolded" : "folded"), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }));
156
+ const i = this.can("fold"), o = this.can("unfold");
157
+ i && o && (this.state.unfolded = t, this.hooks.emit(t ? "unfolded" : "folded"), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }));
88
158
  }
89
159
  setPosition(t) {
90
160
  this.originPosition = t, this.position = t, this.cache.clear(), this.updateVisible(), this.updateScreenPosition(), this.updateZIndex(), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
91
161
  }
92
162
  updateScreenPosition(t) {
93
- var l;
163
+ var m;
94
164
  if (this.stickType !== "2DPoint" && this.stickType !== "3DPoint")
95
165
  return;
96
- const { force: e = !1 } = t != null ? t : {}, o = e ? this.state.visible : this.currentVisible, i = (l = this.__Object__) != null ? l : {
166
+ const { force: i = !1 } = t != null ? t : {}, o = i ? this.state.visible : this.currentVisible, e = (m = this.__Object__) != null ? m : {
97
167
  timeoutId: void 0,
98
168
  inAnimation: !1
99
169
  };
100
- if (this.__Object__ = i, !o && this.screenPosition ? (i.inAnimation = !0, i.timeoutId = setTimeout(() => {
170
+ if (this.__Object__ = e, !o && this.screenPosition ? (e.inAnimation = !0, e.timeoutId = setTimeout(() => {
101
171
  requestAnimationFrame(() => {
102
- this.currentVisible || (i.inAnimation = !1, this.screenPosition = null, this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }));
172
+ this.currentVisible || (e.inAnimation = !1, this.screenPosition = null, this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }));
103
173
  });
104
- }, 1e3)) : i.timeoutId && (clearTimeout(i.timeoutId), i.inAnimation = !1, i.timeoutId = void 0), !o && !i.inAnimation)
174
+ }, 1e3)) : e.timeoutId && (clearTimeout(e.timeoutId), e.inAnimation = !1, e.timeoutId = void 0), !o && !e.inAnimation)
105
175
  return;
106
- const r = this.computeTagProject();
107
- if (r) {
108
- const d = (() => {
176
+ const n = this.computeTagProject();
177
+ if (n) {
178
+ const a = (() => {
109
179
  if (!this.currentConfig.simulate3D)
110
180
  return 1;
111
- const p = 2 * Math.tan(0.5 * this.five.camera.fov / 180 * Math.PI), h = this.getDistance(void 0, 1);
112
- return Math.max(Math.min(1 - p * h / 40, 1), 0.5);
113
- })(), u = this.five.renderer.getSize(v);
181
+ const u = 2 * Math.tan(0.5 * this.five.camera.fov / 180 * Math.PI), c = this.getDistance(void 0, 1);
182
+ return Math.max(Math.min(1 - u * c / 40, 1), 0.5);
183
+ })(), l = this.five.renderer.getSize(v);
114
184
  this.screenPosition = {
115
- leftPx: (r.x + 1) / 2 * u.x,
116
- topPx: (-r.y + 1) / 2 * u.y,
117
- scale: d
185
+ leftPx: (n.x + 1) / 2 * l.x,
186
+ topPx: (-n.y + 1) / 2 * l.y,
187
+ scale: a
118
188
  };
119
189
  } else
120
190
  this.screenPosition = null;
@@ -123,17 +193,17 @@ class rt extends g {
123
193
  updateUnfoldedByPanoIndex() {
124
194
  const t = this.getUnfoldedByPanoIndex();
125
195
  if (this.state && (t !== void 0 && (this.state.unfolded = t), t && !this.state.visible)) {
126
- const e = this.getConfig();
127
- typeof e.unfoldedConfig == "object" && e.unfoldedConfig.autoFoldWhenHide !== !1 && (this.state.unfolded = !1);
196
+ const i = this.getConfig();
197
+ typeof i.unfoldedConfig == "object" && i.unfoldedConfig.autoFoldWhenHide !== !1 && (this.state.unfolded = !1);
128
198
  }
129
199
  }
130
200
  computeNormal() {
131
- return new c.Vector3().fromArray(this.normal);
201
+ return new d.Vector3().fromArray(this.normal);
132
202
  }
133
203
  destroy() {
134
204
  this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
135
205
  }
136
206
  }
137
207
  export {
138
- rt as PointTag
208
+ Pi as PointTag
139
209
  };
@@ -1,17 +1,17 @@
1
1
  var x = Object.defineProperty;
2
2
  var v = Object.getOwnPropertySymbols;
3
3
  var O = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
4
- var T = (m, r, t) => r in m ? x(m, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : m[r] = t, w = (m, r) => {
5
- for (var t in r || (r = {}))
6
- O.call(r, t) && T(m, t, r[t]);
4
+ var T = (s, e, t) => e in s ? x(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, w = (s, e) => {
5
+ for (var t in e || (e = {}))
6
+ O.call(e, t) && T(s, t, e[t]);
7
7
  if (v)
8
- for (var t of v(r))
9
- A.call(r, t) && T(m, t, r[t]);
10
- return m;
8
+ for (var t of v(e))
9
+ A.call(e, t) && T(s, t, e[t]);
10
+ return s;
11
11
  };
12
- var c = (m, r, t) => (T(m, typeof r != "symbol" ? r + "" : r, t), t);
13
- var R = (m, r, t) => new Promise((e, o) => {
14
- var i = (n) => {
12
+ var c = (s, e, t) => (T(s, typeof e != "symbol" ? e + "" : e, t), t);
13
+ var R = (s, e, t) => new Promise((i, o) => {
14
+ var r = (n) => {
15
15
  try {
16
16
  d(t.next(n));
17
17
  } catch (h) {
@@ -23,8 +23,8 @@ var R = (m, r, t) => new Promise((e, o) => {
23
23
  } catch (h) {
24
24
  o(h);
25
25
  }
26
- }, d = (n) => n.done ? e(n.value) : Promise.resolve(n.value).then(i, a);
27
- d((t = t.apply(m, r)).next());
26
+ }, d = (n) => n.done ? i(n.value) : Promise.resolve(n.value).then(r, a);
27
+ d((t = t.apply(s, e)).next());
28
28
  });
29
29
  import { Group as y, Quaternion as G, Vector3 as C, Matrix4 as M } from "three";
30
30
  import E from "../Components/Tag/index.js";
@@ -92,8 +92,85 @@ import "../Components/Tag/MarketingTag.js";
92
92
  import "hammerjs";
93
93
  import "three/examples/jsm/renderers/CSS3DRenderer";
94
94
  import "@realsee/five/line";
95
+ import "../../Sculpt/utils/Modules/Global.js";
96
+ import "../../Sculpt/utils/Modules/Cursor.js";
97
+ import "../../Object3DHelperPlugin/Controller.js";
98
+ import "../../base/BasePlugin.js";
99
+ import "../../shared-utils/Subscribe.js";
95
100
  import "../../shared-utils/three/THREESphere.js";
101
+ import "../../shared-utils/Utils/FiveUtil.js";
102
+ import "../../shared-utils/Utils/BaseUtil.js";
103
+ import "../../shared-utils/Utils/WorkUtil.js";
104
+ import "../../shared-utils/five/transformPosition.js";
105
+ import "../../shared-utils/five/getFiveModel.js";
106
+ import "../../shared-utils/url/absoluteUrl.js";
96
107
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
108
+ import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
109
+ import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
110
+ import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
111
+ import "../../shared-utils/three/IObject3D.js";
112
+ import "../../shared-utils/three/boundingBox.js";
113
+ import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
114
+ import "../../shared-utils/Object3DHelper/utils/direction.js";
115
+ import "../../shared-utils/Object3DHelper/Constants/color.js";
116
+ import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
117
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
118
+ import "../../shared-utils/positionToVector3.js";
119
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
120
+ import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
121
+ import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
122
+ import "../../CSS3DRenderPlugin/utils/even.js";
123
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
124
+ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
125
+ import "../../shared-utils/three/getObjectVisible.js";
126
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
127
+ import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
128
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
129
+ import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
130
+ import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
131
+ import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
132
+ import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
133
+ import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
134
+ import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
135
+ import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
136
+ import "../../shared-utils/Object3DHelper/Base/BaseController.js";
137
+ import "../../shared-utils/threex/domevents/index.js";
138
+ import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
139
+ import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
140
+ import "../../Sculpt/utils/three/rayOnLine.js";
141
+ import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
142
+ import "../../shared-utils/Object3DHelper/index.js";
143
+ import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
144
+ import "../../shared-utils/math/rad2Deg.js";
145
+ import "../../shared-utils/math/deg2Rad.js";
146
+ import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
147
+ import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
148
+ import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
149
+ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
150
+ import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
151
+ import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
152
+ import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
153
+ import "../../shared-utils/five/fiveModelLoad.js";
154
+ import "../../shared-utils/five/FiveDomEvents.js";
155
+ import "../../shared-utils/five/calculateThreeMouse.js";
156
+ import "../../shared-utils/three/THREERaycaster.js";
157
+ import "../../shared-utils/three/PointSelector/index.js";
158
+ import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
159
+ import "../../shared-utils/three/Magnifier.js";
160
+ import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
161
+ import "../../shared-utils/three/Assets/index.js";
162
+ import "../../shared-utils/three/PointSelector/utils/html.js";
163
+ import "../../shared-utils/five/initialCSS3DRender.js";
164
+ import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
165
+ import "../../Sculpt/Meshes/Line.js";
166
+ import "../../Sculpt/typings/style.js";
167
+ import "../../shared-utils/five/FiveLine.js";
168
+ import "../../shared-utils/tag.js";
169
+ import "../../shared-utils/five/vector3ToScreen.js";
170
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
171
+ import "../../shared-utils/isTouchDevice.js";
172
+ import "../../shared-utils/five/getPosition.js";
173
+ import "../../shared-utils/five/getRaycasterByNdcPosition.js";
97
174
  import "../utils/noTypecheck.js";
98
175
  import "../Components/Tag/AudioTag/index.js";
99
176
  import "../Components/Tag/AudioTag/AudioTag.js";
@@ -110,7 +187,6 @@ import "../Components/Tag/PanoramaTag.js";
110
187
  import "../Components/Tag/CustomTag.js";
111
188
  import "../../vendor/classnames/index.js";
112
189
  import "./Tag/ModelTag.js";
113
- import "../../shared-utils/positionToVector3.js";
114
190
  import "../../shared-utils/three/GLTFLoader.js";
115
191
  import "@realsee/five/gltf-loader";
116
192
  import "../utils/planeNormal.js";
@@ -124,7 +200,6 @@ import "../../shared-utils/three/getPositionsByObjectFit.js";
124
200
  import "../../shared-utils/three/FragmentTransparencyMaterial.js";
125
201
  import "../../shared-utils/three/getNormal.js";
126
202
  import "./Tag/BaseTag.js";
127
- import "../../shared-utils/Subscribe.js";
128
203
  import "../utils/tag/calculateTagConfig.js";
129
204
  import "../../vendor/object-assign-deep/objectAssignDeep.js";
130
205
  import "../../shared-utils/typescript/entries.js";
@@ -136,12 +211,7 @@ import "../utils/tag/format.js";
136
211
  import "../../shared-utils/three/blink.js";
137
212
  import "../../shared-utils/vectorToCoordinate.js";
138
213
  import "../../shared-utils/formatRad.js";
139
- import "../../shared-utils/five/transformPosition.js";
140
214
  import "../../shared-utils/five/lookPoint.js";
141
- import "../../shared-utils/Utils/FiveUtil.js";
142
- import "../../shared-utils/Utils/BaseUtil.js";
143
- import "../../shared-utils/Utils/WorkUtil.js";
144
- import "../../shared-utils/five/getFiveModel.js";
145
215
  import "../utils/tagPosition.js";
146
216
  import "../utils/checkRange.js";
147
217
  import "../../shared-utils/url/getUrl.js";
@@ -154,25 +224,7 @@ import "../utils/normalPositionToPositions.js";
154
224
  import "../../vendor/svelte/store/index.js";
155
225
  import "../../CSS3DRenderPlugin/index.js";
156
226
  import "../../CSS3DRenderPlugin/Controller.js";
157
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
158
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
159
- import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
160
- import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
161
- import "../../CSS3DRenderPlugin/utils/even.js";
162
- import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
163
- import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
164
- import "../../shared-utils/three/getObjectVisible.js";
165
- import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
166
- import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
167
- import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
168
- import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
169
- import "../../shared-utils/url/absoluteUrl.js";
170
- import "../../shared-utils/five/fiveModelLoad.js";
171
- import "../../shared-utils/five/FiveDomEvents.js";
172
- import "../../shared-utils/five/calculateThreeMouse.js";
173
- import "../../shared-utils/three/THREERaycaster.js";
174
- import "../../base/BasePlugin.js";
175
- class Se extends U {
227
+ class Mr extends U {
176
228
  constructor(t) {
177
229
  super(t);
178
230
  c(this, "rendererMap", /* @__PURE__ */ new Map());
@@ -196,18 +248,18 @@ class Se extends U {
196
248
  * @param config.usePoint 是否需要标签点, 默认为 false
197
249
  * @note 优先级低于 tag.element
198
250
  */
199
- registerRenderer(t, e, o) {
200
- var i;
201
- this.rendererMap.set(t, { renderer: e, usePoint: (i = o == null ? void 0 : o.usePoint) != null ? i : !1 });
251
+ registerRenderer(t, i, o) {
252
+ var r;
253
+ this.rendererMap.set(t, { renderer: i, usePoint: (r = o == null ? void 0 : o.usePoint) != null ? r : !1 });
202
254
  }
203
- bindRenderer(t, e) {
204
- this.contentTypeMap.set(t, e);
255
+ bindRenderer(t, i) {
256
+ this.contentTypeMap.set(t, i);
205
257
  }
206
258
  clearTags() {
207
259
  var t;
208
- this.tags.length && (this.tags.forEach((e) => {
209
- var o, i;
210
- (i = (o = e.mediaPlane) == null ? void 0 : o.parent) == null || i.remove(e.mediaPlane);
260
+ this.tags.length && (this.tags.forEach((i) => {
261
+ var o, r;
262
+ (r = (o = i.mediaPlane) == null ? void 0 : o.parent) == null || r.remove(i.mediaPlane);
211
263
  }), this.tags = [], this.tagsLengthWillUpdate = !0, this.hooks.emit("tagsLengthChange"), (t = this.TagContainerSvelte) == null || t.$destroy(), this.TagContainerSvelte = void 0, this.disposeAllCSS3DContainer()), this.enabledModelTagSet.clear(), this.cache.clear();
212
264
  }
213
265
  /**
@@ -215,12 +267,12 @@ class Se extends U {
215
267
  */
216
268
  updateRender3DDomTag(t) {
217
269
  (t ? N(t) : this.filterCSS3DTag).forEach((o) => {
218
- var i, a, d, n, h, b;
270
+ var r, a, d, n, h, b;
219
271
  if (o.tag3DContentSvelte) {
220
- const { svelteApp: f, css3DInstance: l, initialNormal: u, currentNormal: s } = o.tag3DContentSvelte;
221
- if ((a = l == null ? void 0 : l.css3DObject) == null || a.setVisible((this.state.visible && ((i = o.state) == null ? void 0 : i.visible)) !== !1), f.$set({ tag: o, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !u.equals(s)) {
222
- const p = new G().setFromUnitVectors(u, s);
223
- l.css3DObject.setRotationFromQuaternion(p);
272
+ const { svelteApp: f, css3DInstance: l, initialNormal: u, currentNormal: p } = o.tag3DContentSvelte;
273
+ if ((a = l == null ? void 0 : l.css3DObject) == null || a.setVisible((this.state.visible && ((r = o.state) == null ? void 0 : r.visible)) !== !1), f.$set({ tag: o, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !u.equals(p)) {
274
+ const m = new G().setFromUnitVectors(u, p);
275
+ l.css3DObject.setRotationFromQuaternion(m);
224
276
  }
225
277
  return;
226
278
  } else {
@@ -234,28 +286,28 @@ class Se extends U {
234
286
  const l = o.computeNormal();
235
287
  if (!l)
236
288
  return;
237
- const u = o.getConfig(), s = w({
289
+ const u = o.getConfig(), p = w({
238
290
  wrapperStyle: { zIndex: `${Math.round((1e4 - ((h = o.getDistance()) != null ? h : 0)) * 100)}` }
239
291
  }, u.tag3DConfig);
240
- if (o.computeRenderType() === "BehindDom" || s.mode === "behind") {
241
- s.mode = "behind", s.container = document.createElement("div");
292
+ if (o.computeRenderType() === "BehindDom" || p.mode === "behind") {
293
+ p.mode = "behind", p.container = document.createElement("div");
242
294
  const D = "black";
243
- s.container.style.backgroundColor = D, s.container.style.border = `3px solid ${D}`, this.css3DRenderPlugin.hooks.on("render", () => {
295
+ p.container.style.backgroundColor = D, p.container.style.border = `3px solid ${D}`, this.css3DRenderPlugin.hooks.on("render", () => {
244
296
  var S;
245
- if (p.css3DObject.opacityMesh && u.clickable !== !1) {
246
- const j = this.addObjectClickHandler(o, p.css3DObject.opacityMesh, (k) => {
297
+ if (m.css3DObject.opacityMesh && u.clickable !== !1) {
298
+ const j = this.addObjectClickHandler(o, m.css3DObject.opacityMesh, (k) => {
247
299
  this.hooks.emit("click", { event: k, target: "TagContent", tag: o });
248
300
  });
249
301
  (S = this.store.css3DRenderDisposer.get(o.id)) == null || S.push(j);
250
302
  }
251
303
  });
252
304
  }
253
- const p = this.css3DRenderPlugin.create3DDomContainer(f, s);
254
- if (!p)
305
+ const m = this.css3DRenderPlugin.create3DDomContainer(f, p);
306
+ if (!m)
255
307
  return;
256
- this.store.css3DRenderDisposer.set(o.id, [p.dispose]);
308
+ this.store.css3DRenderDisposer.set(o.id, [m.dispose]);
257
309
  const g = new E({
258
- target: p.container,
310
+ target: m.container,
259
311
  props: {
260
312
  tag: o,
261
313
  hooks: this.hooks,
@@ -267,12 +319,12 @@ class Se extends U {
267
319
  });
268
320
  o.tag3DContentSvelte = {
269
321
  svelteApp: g,
270
- domContainer: p,
271
- css3DInstance: p,
322
+ domContainer: m,
323
+ css3DInstance: m,
272
324
  initialNormal: l,
273
325
  currentNormal: l,
274
326
  dispose: () => {
275
- g.$destroy(), p.dispose();
327
+ g.$destroy(), m.dispose();
276
328
  }
277
329
  }, P(o) && ((b = o.model) != null && b.object) && this.updateTagCss3DObjectMatrix(o, o.model.object);
278
330
  }
@@ -282,30 +334,30 @@ class Se extends U {
282
334
  * @param tag 标签
283
335
  * @param model 模型
284
336
  */
285
- updateTagCss3DObjectMatrix(t, e) {
286
- var p, g, D;
287
- const o = (g = (p = t.getConfig().tag3DConfig) == null ? void 0 : p.ratio) != null ? g : 216e-5, i = (D = t.tag3DContentSvelte) == null ? void 0 : D.css3DInstance.css3DObject;
288
- if (!i)
337
+ updateTagCss3DObjectMatrix(t, i) {
338
+ var m, g, D;
339
+ const o = (g = (m = t.getConfig().tag3DConfig) == null ? void 0 : m.ratio) != null ? g : 216e-5, r = (D = t.tag3DContentSvelte) == null ? void 0 : D.css3DInstance.css3DObject;
340
+ if (!r)
289
341
  return;
290
342
  const a = P(t) ? t.data.mediaPosition : t.position;
291
343
  if (!a || a.length !== 4 || !Array.isArray(a[0]) || !Array.isArray(a[2]))
292
344
  return;
293
- e.updateWorldMatrix(!1, !1);
294
- const d = e.matrixWorld, n = new C().fromArray(a[0]), h = new C().fromArray(a[2]), b = I(n, h).add(new C(0, 0, 5e-4)), f = new M().setPosition(b), l = new M().makeScale(o, o, o), u = new M().multiply(d).multiply(f).multiply(l);
295
- u.decompose(i.position, i.quaternion, i.scale);
296
- const s = i.opacityMesh;
297
- s && u.decompose(s.position, s.quaternion, s.scale);
345
+ i.updateWorldMatrix(!1, !1);
346
+ const d = i.matrixWorld, n = new C().fromArray(a[0]), h = new C().fromArray(a[2]), b = I(n, h).add(new C(0, 0, 5e-4)), f = new M().setPosition(b), l = new M().makeScale(o, o, o), u = new M().multiply(d).multiply(f).multiply(l);
347
+ u.decompose(r.position, r.quaternion, r.scale);
348
+ const p = r.opacityMesh;
349
+ p && u.decompose(p.position, p.quaternion, p.scale);
298
350
  }
299
351
  /** 添加模型标签 */
300
352
  addMediaModelTag(t) {
301
353
  return R(this, null, function* () {
302
- const e = t.filter((o) => o.stickType === "Model").map((o) => o.loadModel());
303
- yield Promise.all(e), t.forEach((o) => o.updateVisible());
354
+ const i = t.filter((o) => o.stickType === "Model").map((o) => o.loadModel());
355
+ yield Promise.all(i), t.forEach((o) => o.updateVisible());
304
356
  });
305
357
  }
306
358
  disposeAllCSS3DContainer() {
307
359
  for (const [, t] of this.store.css3DRenderDisposer)
308
- t == null || t.forEach((e) => e == null ? void 0 : e());
360
+ t == null || t.forEach((i) => i == null ? void 0 : i());
309
361
  this.store.css3DRenderDisposer = /* @__PURE__ */ new Map();
310
362
  }
311
363
  /**
@@ -313,15 +365,15 @@ class Se extends U {
313
365
  */
314
366
  clearUnusedPanelTag() {
315
367
  this.filter2DPointTag.forEach((t) => {
316
- var e;
317
- (e = t.tag3DContentSvelte) == null || e.css3DInstance.dispose(), t.tag3DContentSvelte = void 0;
368
+ var i;
369
+ (i = t.tag3DContentSvelte) == null || i.css3DInstance.dispose(), t.tag3DContentSvelte = void 0;
318
370
  });
319
- for (const [t, e] of this.store.css3DRenderDisposer) {
371
+ for (const [t, i] of this.store.css3DRenderDisposer) {
320
372
  const o = this.getTagById(t);
321
- (!o || o.stickType === "2DPoint") && (e == null || e.forEach((i) => i == null ? void 0 : i()), this.store.css3DRenderDisposer.delete(t));
373
+ (!o || o.stickType === "2DPoint") && (i == null || i.forEach((r) => r == null ? void 0 : r()), this.store.css3DRenderDisposer.delete(t));
322
374
  }
323
375
  }
324
376
  }
325
377
  export {
326
- Se as TagRender
378
+ Mr as TagRender
327
379
  };