@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,9 +1,9 @@
1
1
  var d = Object.defineProperty;
2
- var c = (a, n, e) => n in a ? d(a, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[n] = e;
3
- var r = (a, n, e) => (c(a, typeof n != "symbol" ? n + "" : n, e), e);
2
+ var c = (m, n, t) => n in m ? d(m, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : m[n] = t;
3
+ var e = (m, n, t) => (c(m, typeof n != "symbol" ? n + "" : n, t), t);
4
4
  import { DefaultConfig as l } from "../tag.config.js";
5
5
  import "three";
6
- import { anyPositionToVector3 as p } from "../../shared-utils/positionToVector3.js";
6
+ import { anyPositionToVector3 as a } from "../../shared-utils/positionToVector3.js";
7
7
  import { isPlaneTag as u, isMediaModelTag as f, isPoint3DTag as h } from "../utils/tag/tagCheck.js";
8
8
  import { normalPositionToPositions as g } from "../utils/normalPositionToPositions.js";
9
9
  import { writable as P } from "../../vendor/svelte/store/index.js";
@@ -28,18 +28,76 @@ import "../../shared-utils/three/centerPoint.js";
28
28
  import "../../shared-utils/three/getObjectVisible.js";
29
29
  import "hammerjs";
30
30
  import "@realsee/five/line";
31
+ import "../../Sculpt/utils/Modules/Global.js";
32
+ import "../../Sculpt/utils/Modules/Cursor.js";
33
+ import "../../Object3DHelperPlugin/Controller.js";
31
34
  import "../../shared-utils/three/THREESphere.js";
32
- import "animejs";
35
+ import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
36
+ import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
37
+ import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
38
+ import "../../shared-utils/three/IObject3D.js";
39
+ import "../../shared-utils/three/boundingBox.js";
40
+ import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
41
+ import "../../shared-utils/Object3DHelper/utils/direction.js";
42
+ import "../../shared-utils/Object3DHelper/Constants/color.js";
43
+ import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
44
+ import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
45
+ import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
46
+ import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
47
+ import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
48
+ import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
49
+ import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
50
+ import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
51
+ import "../../shared-utils/Object3DHelper/Base/BaseController.js";
52
+ import "../../shared-utils/threex/domevents/index.js";
33
53
  import "../../shared-utils/isNil.js";
34
- import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
35
- import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
36
- import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
37
54
  import "../../shared-utils/util.js";
38
- import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
55
+ import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
56
+ import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
57
+ import "../../Sculpt/utils/three/rayOnLine.js";
58
+ import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
59
+ import "../../shared-utils/Object3DHelper/index.js";
60
+ import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
61
+ import "../../shared-utils/math/rad2Deg.js";
62
+ import "../../shared-utils/math/deg2Rad.js";
63
+ import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
64
+ import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
65
+ import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
39
66
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
40
- import "../../shared-utils/url/absoluteUrl.js";
67
+ import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
68
+ import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
69
+ import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
41
70
  import "../../shared-utils/five/fiveModelLoad.js";
42
71
  import "../../shared-utils/five/getFiveModel.js";
72
+ import "../../shared-utils/five/calculateThreeMouse.js";
73
+ import "../../shared-utils/three/THREERaycaster.js";
74
+ import "../../shared-utils/three/PointSelector/index.js";
75
+ import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
76
+ import "../../shared-utils/three/Magnifier.js";
77
+ import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
78
+ import "../../shared-utils/three/Assets/index.js";
79
+ import "../../shared-utils/three/PointSelector/utils/html.js";
80
+ import "../../shared-utils/five/initialCSS3DRender.js";
81
+ import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
82
+ import "../../Sculpt/Meshes/Line.js";
83
+ import "../../Sculpt/typings/style.js";
84
+ import "../../shared-utils/five/FiveLine.js";
85
+ import "../../shared-utils/tag.js";
86
+ import "../../shared-utils/five/vector3ToScreen.js";
87
+ import "animejs";
88
+ import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
89
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
90
+ import "../../shared-utils/isTouchDevice.js";
91
+ import "../../shared-utils/five/getPosition.js";
92
+ import "../../shared-utils/five/getRaycasterByNdcPosition.js";
93
+ import "../../shared-utils/Utils/FiveUtil.js";
94
+ import "../../shared-utils/Utils/BaseUtil.js";
95
+ import "../../shared-utils/Utils/WorkUtil.js";
96
+ import "../../shared-utils/five/transformPosition.js";
97
+ import "../../shared-utils/url/absoluteUrl.js";
98
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
99
+ import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
100
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
43
101
  import "../../shared-utils/three/loadTexture.js";
44
102
  import "../../shared-utils/three/Quadrangle.js";
45
103
  import "../../shared-utils/math/pointsIsRectangle.js";
@@ -48,131 +106,125 @@ import "../Assets/Icon.js";
48
106
  import "../../shared-utils/three/getPositionsByObjectFit.js";
49
107
  import "../../shared-utils/three/FragmentTransparencyMaterial.js";
50
108
  import "../../shared-utils/three/getNormal.js";
51
- import "../../shared-utils/five/calculateThreeMouse.js";
52
- import "../../shared-utils/three/THREERaycaster.js";
53
- import "../../shared-utils/Utils/FiveUtil.js";
54
- import "../../shared-utils/Utils/BaseUtil.js";
55
- import "../../shared-utils/Utils/WorkUtil.js";
56
- import "../../shared-utils/five/transformPosition.js";
57
- class Se extends E {
58
- constructor(e) {
59
- super(e);
60
- r(this, "tags", []);
61
- r(this, "cache", new v());
62
- r(this, "config", l);
63
- r(this, "renderQueue", /* @__PURE__ */ new Map());
109
+ class vi extends E {
110
+ constructor(t) {
111
+ super(t);
112
+ e(this, "tags", []);
113
+ e(this, "cache", new v());
114
+ e(this, "config", l);
115
+ e(this, "renderQueue", /* @__PURE__ */ new Map());
64
116
  /** 插件参数 */
65
- r(this, "params");
66
- r(this, "mediaStore", P({
117
+ e(this, "params");
118
+ e(this, "mediaStore", P({
67
119
  currentMediaElement: null
68
120
  }));
69
- r(this, "store", {
121
+ e(this, "store", {
70
122
  disposers: [],
71
123
  disposed: !1,
72
124
  resizeObserverDisposerAdding: !1,
73
125
  css3DRenderDisposer: /* @__PURE__ */ new Map()
74
126
  });
75
- r(this, "domEvents", new y(this.five));
76
- r(this, "_cache_pointTag");
77
- r(this, "_cache_2DPointTag");
78
- r(this, "_cache_css3DTag");
79
- r(this, "_container", null);
80
- r(this, "_css3DRenderPlugin");
81
- r(this, "whyHide", (e) => {
82
- const t = this.getTagById(e);
83
- return t ? t.whyHide() : { reason: `tag ${e} not found` };
127
+ e(this, "domEvents", new y(this.five));
128
+ e(this, "_cache_pointTag");
129
+ e(this, "_cache_2DPointTag");
130
+ e(this, "_cache_css3DTag");
131
+ e(this, "_container", null);
132
+ e(this, "_css3DRenderPlugin");
133
+ e(this, "whyHide", (t) => {
134
+ const i = this.getTagById(t);
135
+ return i ? i.whyHide() : { reason: `tag ${t} not found` };
84
136
  });
85
- r(this, "loadVideoFirstFrame", () => {
137
+ e(this, "loadVideoFirstFrame", () => {
86
138
  T && this.hooks.emit("loadVideoFirstFrame");
87
139
  });
88
- this.mediaStore.subscribe(({ currentMediaElement: t }) => {
89
- this.tags.forEach((i) => {
140
+ this.mediaStore.subscribe(({ currentMediaElement: i }) => {
141
+ this.tags.forEach((r) => {
90
142
  var o;
91
- if (i.mediaPlane instanceof _ && t !== i.mediaPlane.videoInstance) {
92
- if (!((o = i.mediaPlane.videoInstance) != null && o.src) || t === i.mediaPlane.videoInstance)
143
+ if (r.mediaPlane instanceof _ && i !== r.mediaPlane.videoInstance) {
144
+ if (!((o = r.mediaPlane.videoInstance) != null && o.src) || i === r.mediaPlane.videoInstance)
93
145
  return;
94
- i.mediaPlane.pause();
146
+ r.mediaPlane.pause();
95
147
  }
96
148
  });
97
149
  });
98
150
  }
99
151
  get container() {
100
- var e;
101
- return this._container || ((e = this.five.getElement()) == null ? void 0 : e.parentElement);
152
+ var t;
153
+ return this._container || ((t = this.five.getElement()) == null ? void 0 : t.parentElement);
102
154
  }
103
- set container(e) {
104
- this._container = e;
155
+ set container(t) {
156
+ this._container = t;
105
157
  }
106
158
  // eslint-disable-next-line accessor-pairs
107
- set tagsLengthWillUpdate(e) {
108
- e && (this._cache_pointTag = this.tags.filter((t) => t.stickType === "2DPoint" || t.stickType === "3DPoint").filter((t) => t.position), this._cache_2DPointTag = this.tags.filter((t) => t.stickType === "2DPoint").filter((t) => t.position), this._cache_css3DTag = this.tags.filter(
109
- (t) => t.stickType === "3DPoint" || t.stickType === "Plane" || t.stickType === "Model" && t.contentType === "MediaModel"
110
- ).filter((t) => {
111
- const i = t.computeRenderType();
112
- return i === "BehindDom" || i === "Dom";
159
+ set tagsLengthWillUpdate(t) {
160
+ t && (this._cache_pointTag = this.tags.filter((i) => i.stickType === "2DPoint" || i.stickType === "3DPoint").filter((i) => i.position), this._cache_2DPointTag = this.tags.filter((i) => i.stickType === "2DPoint").filter((i) => i.position), this._cache_css3DTag = this.tags.filter(
161
+ (i) => i.stickType === "3DPoint" || i.stickType === "Plane" || i.stickType === "Model" && i.contentType === "MediaModel"
162
+ ).filter((i) => {
163
+ const r = i.computeRenderType();
164
+ return r === "BehindDom" || r === "Dom";
113
165
  }));
114
166
  }
115
167
  /** css3DRenderPlugin */
116
168
  get css3DRenderPlugin() {
117
- var e, t, i;
169
+ var t, i, r;
118
170
  if (!this._css3DRenderPlugin) {
119
171
  const o = D(this.five);
120
- this._css3DRenderPlugin = o, (e = o.frontModeCSS3DRenderer) != null && e.domElementWrapper && (o.frontModeCSS3DRenderer.domElementWrapper.style.zIndex = (i = (t = this.params.containerZIndex) == null ? void 0 : t.toString()) != null ? i : "");
172
+ this._css3DRenderPlugin = o, (t = o.frontModeCSS3DRenderer) != null && t.domElementWrapper && (o.frontModeCSS3DRenderer.domElementWrapper.style.zIndex = (r = (i = this.params.containerZIndex) == null ? void 0 : i.toString()) != null ? r : "");
121
173
  }
122
174
  return this._css3DRenderPlugin;
123
175
  }
124
176
  get filterPointTag() {
125
- var e;
126
- return (e = this._cache_pointTag) != null ? e : [];
177
+ var t;
178
+ return (t = this._cache_pointTag) != null ? t : [];
127
179
  }
128
180
  get filter2DPointTag() {
129
- var e;
130
- return (e = this._cache_2DPointTag) != null ? e : [];
181
+ var t;
182
+ return (t = this._cache_2DPointTag) != null ? t : [];
131
183
  }
132
184
  get filterCSS3DTag() {
133
- var e;
134
- return (e = this._cache_css3DTag) != null ? e : [];
185
+ var t;
186
+ return (t = this._cache_css3DTag) != null ? t : [];
135
187
  }
136
- addRenderQueue(e) {
137
- var m, s;
138
- const { type: t, keys: i = [], tags: o = [] } = e;
139
- this.renderQueue.has(t) ? this.renderQueue.set(t, {
140
- keys: Array.from(/* @__PURE__ */ new Set([...(m = this.renderQueue.get(t).keys) != null ? m : [], ...i])),
141
- tags: Array.from(/* @__PURE__ */ new Set([...(s = this.renderQueue.get(t).tags) != null ? s : [], ...o]))
142
- }) : this.renderQueue.set(t, { keys: i, tags: o });
188
+ addRenderQueue(t) {
189
+ var p, s;
190
+ const { type: i, keys: r = [], tags: o = [] } = t;
191
+ this.renderQueue.has(i) ? this.renderQueue.set(i, {
192
+ keys: Array.from(/* @__PURE__ */ new Set([...(p = this.renderQueue.get(i).keys) != null ? p : [], ...r])),
193
+ tags: Array.from(/* @__PURE__ */ new Set([...(s = this.renderQueue.get(i).tags) != null ? s : [], ...o]))
194
+ }) : this.renderQueue.set(i, { keys: r, tags: o });
143
195
  }
144
- getTagById(e) {
145
- const t = this.tags.find((i) => i.id === e);
146
- if (!t) {
147
- console.warn(`getTagById Error: can't find tag id: ${e}`);
196
+ getTagById(t) {
197
+ const i = this.tags.find((r) => r.id === t);
198
+ if (!i) {
199
+ console.warn(`getTagById Error: can't find tag id: ${t}`);
148
200
  return;
149
201
  }
150
- return t;
202
+ return i;
151
203
  }
152
204
  /** 暂停当前标签内进行的所有多媒体 */
153
205
  pauseCurrentMedia() {
154
206
  this.mediaStore.set({ currentMediaElement: null });
155
207
  }
156
- getPositions(e) {
157
- if (u(e))
158
- return e.position;
159
- if (f(e))
160
- return e.data.mediaPosition;
161
- if (h(e))
162
- return g(this.five.camera.position, p(e.position), p(e.normal));
208
+ getPositions(t) {
209
+ if (u(t))
210
+ return t.position;
211
+ if (f(t))
212
+ return t.data.mediaPosition;
213
+ if (h(t))
214
+ return g(this.five.camera.position, a(t.position), a(t.normal));
163
215
  }
164
- addObjectClickHandler(e, t, i) {
165
- if (!t || !this.domEvents)
216
+ addObjectClickHandler(t, i, r) {
217
+ if (!i || !this.domEvents)
166
218
  return () => {
167
219
  };
168
- const o = () => !(!e.currentVisible || e.loading), m = (s) => {
220
+ const o = () => !(!t.currentVisible || t.loading), p = (s) => {
169
221
  if (!o())
170
222
  return !1;
171
- i(s.origDomEvent);
223
+ r(s.origDomEvent);
172
224
  };
173
- return this.domEvents.addEventListener(t, "click", m), () => {
225
+ return this.domEvents.addEventListener(i, "click", p), () => {
174
226
  var s;
175
- (s = this.domEvents) == null || s.removeEventListener(t, "click", m);
227
+ (s = this.domEvents) == null || s.removeEventListener(i, "click", p);
176
228
  };
177
229
  }
178
230
  /**
@@ -184,5 +236,5 @@ class Se extends E {
184
236
  }
185
237
  }
186
238
  export {
187
- Se as TagUtil
239
+ vi as TagUtil
188
240
  };
@@ -2,16 +2,16 @@ var D = Object.defineProperty, P = Object.defineProperties;
2
2
  var U = Object.getOwnPropertyDescriptors;
3
3
  var b = Object.getOwnPropertySymbols;
4
4
  var F = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
5
- var u = (d, a, e) => a in d ? D(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, f = (d, a) => {
5
+ var u = (p, a, e) => a in p ? D(p, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[a] = e, m = (p, a) => {
6
6
  for (var e in a || (a = {}))
7
- F.call(a, e) && u(d, e, a[e]);
7
+ F.call(a, e) && u(p, e, a[e]);
8
8
  if (b)
9
9
  for (var e of b(a))
10
- E.call(a, e) && u(d, e, a[e]);
11
- return d;
12
- }, c = (d, a) => P(d, U(a));
13
- var p = (d, a, e) => (u(d, typeof a != "symbol" ? a + "" : a, e), e);
14
- var l = (d, a, e) => new Promise((t, i) => {
10
+ E.call(a, e) && u(p, e, a[e]);
11
+ return p;
12
+ }, c = (p, a) => P(p, U(a));
13
+ var d = (p, a, e) => (u(p, typeof a != "symbol" ? a + "" : a, e), e);
14
+ var l = (p, a, e) => new Promise((t, i) => {
15
15
  var o = (r) => {
16
16
  try {
17
17
  n(e.next(r));
@@ -25,10 +25,10 @@ var l = (d, a, e) => new Promise((t, i) => {
25
25
  i(h);
26
26
  }
27
27
  }, n = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(o, s);
28
- n((e = e.apply(d, a)).next());
28
+ n((e = e.apply(p, a)).next());
29
29
  });
30
30
  import * as v from "three";
31
- import { objectAssignDeepExports as m } from "../../vendor/object-assign-deep/objectAssignDeep.js";
31
+ import { objectAssignDeepExports as f } from "../../vendor/object-assign-deep/objectAssignDeep.js";
32
32
  import { arrayPositionToVector3 as A } from "../../shared-utils/positionToVector3.js";
33
33
  import { isModelTag as k, isMediaModelTag as w } from "../utils/tag/tagCheck.js";
34
34
  import { debounce as M } from "../utils/debounce.js";
@@ -41,6 +41,7 @@ import { isModelLike as R } from "../../shared-utils/five/mode.js";
41
41
  import "hammerjs";
42
42
  import "three/examples/jsm/renderers/CSS3DRenderer";
43
43
  import "@realsee/five/line";
44
+ import "../../Sculpt/utils/Modules/Global.js";
44
45
  import "../../shared-utils/three/THREESphere.js";
45
46
  import "animejs";
46
47
  import { nextFrame as G } from "../../shared-utils/animationFrame/index.js";
@@ -110,6 +111,82 @@ import "../../vendor/svelte-carousel/src/utils/interval.js";
110
111
  import "../Components/Common/MediaItem.js";
111
112
  import "../Components/Tag/MarketingTag.js";
112
113
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
114
+ import "../../Sculpt/utils/Modules/Cursor.js";
115
+ import "../../Object3DHelperPlugin/Controller.js";
116
+ import "../../base/BasePlugin.js";
117
+ import "../../shared-utils/Subscribe.js";
118
+ import "../../shared-utils/Utils/FiveUtil.js";
119
+ import "../../shared-utils/Utils/BaseUtil.js";
120
+ import "../../shared-utils/Utils/WorkUtil.js";
121
+ import "../../shared-utils/five/transformPosition.js";
122
+ import "../../shared-utils/five/getFiveModel.js";
123
+ import "../../shared-utils/url/absoluteUrl.js";
124
+ import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
125
+ import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
126
+ import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
127
+ import "../../shared-utils/three/IObject3D.js";
128
+ import "../../shared-utils/three/boundingBox.js";
129
+ import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
130
+ import "../../shared-utils/Object3DHelper/utils/direction.js";
131
+ import "../../shared-utils/Object3DHelper/Constants/color.js";
132
+ import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
133
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
134
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
135
+ import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
136
+ import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
137
+ import "../../CSS3DRenderPlugin/utils/even.js";
138
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
139
+ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
140
+ import "../../shared-utils/three/centerPoint.js";
141
+ import "../../shared-utils/three/getObjectVisible.js";
142
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
143
+ import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
144
+ import "../../shared-utils/util.js";
145
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
146
+ import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
147
+ import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
148
+ import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
149
+ import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
150
+ import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
151
+ import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
152
+ import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
153
+ import "../../shared-utils/Object3DHelper/Base/BaseController.js";
154
+ import "../../shared-utils/threex/domevents/index.js";
155
+ import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
156
+ import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
157
+ import "../../Sculpt/utils/three/rayOnLine.js";
158
+ import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
159
+ import "../../shared-utils/Object3DHelper/index.js";
160
+ import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
161
+ import "../../shared-utils/math/rad2Deg.js";
162
+ import "../../shared-utils/math/deg2Rad.js";
163
+ import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
164
+ import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
165
+ import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
166
+ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
167
+ import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
168
+ import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
169
+ import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
170
+ import "../../shared-utils/five/FiveDomEvents.js";
171
+ import "../../shared-utils/five/calculateThreeMouse.js";
172
+ import "../../shared-utils/three/THREERaycaster.js";
173
+ import "../../shared-utils/three/PointSelector/index.js";
174
+ import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
175
+ import "../../shared-utils/three/Magnifier.js";
176
+ import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
177
+ import "../../shared-utils/three/Assets/index.js";
178
+ import "../../shared-utils/three/PointSelector/utils/html.js";
179
+ import "../../shared-utils/five/initialCSS3DRender.js";
180
+ import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
181
+ import "../../Sculpt/Meshes/Line.js";
182
+ import "../../Sculpt/typings/style.js";
183
+ import "../../shared-utils/five/FiveLine.js";
184
+ import "../../shared-utils/tag.js";
185
+ import "../../shared-utils/five/vector3ToScreen.js";
186
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
187
+ import "../../shared-utils/isTouchDevice.js";
188
+ import "../../shared-utils/five/getPosition.js";
189
+ import "../../shared-utils/five/getRaycasterByNdcPosition.js";
113
190
  import "../utils/noTypecheck.js";
114
191
  import "../Components/Tag/AudioTag/index.js";
115
192
  import "../Components/Tag/AudioTag/AudioTag.js";
@@ -128,7 +205,6 @@ import "../../shared-utils/three/GLTFLoader.js";
128
205
  import "@realsee/five/gltf-loader";
129
206
  import "../utils/planeNormal.js";
130
207
  import "../utils/model/mediaPlane.js";
131
- import "../../shared-utils/three/centerPoint.js";
132
208
  import "../../shared-utils/three/loadTexture.js";
133
209
  import "../../shared-utils/three/Quadrangle.js";
134
210
  import "../../shared-utils/math/pointsIsRectangle.js";
@@ -138,22 +214,15 @@ import "../../shared-utils/three/getPositionsByObjectFit.js";
138
214
  import "../../shared-utils/three/FragmentTransparencyMaterial.js";
139
215
  import "../../shared-utils/three/getNormal.js";
140
216
  import "./Tag/BaseTag.js";
141
- import "../../shared-utils/Subscribe.js";
142
217
  import "../utils/tag/calculateTagConfig.js";
143
218
  import "../../shared-utils/typescript/entries.js";
144
219
  import "../utils/tag/adaptConfig.js";
145
220
  import "../typings/tag/TagConfig.js";
146
221
  import "@realsee/five";
147
222
  import "../../shared-utils/three/blink.js";
148
- import "../../shared-utils/util.js";
149
223
  import "../../shared-utils/vectorToCoordinate.js";
150
224
  import "../../shared-utils/formatRad.js";
151
- import "../../shared-utils/five/transformPosition.js";
152
225
  import "../../shared-utils/five/lookPoint.js";
153
- import "../../shared-utils/Utils/FiveUtil.js";
154
- import "../../shared-utils/Utils/BaseUtil.js";
155
- import "../../shared-utils/Utils/WorkUtil.js";
156
- import "../../shared-utils/five/getFiveModel.js";
157
226
  import "../utils/tagPosition.js";
158
227
  import "../utils/checkRange.js";
159
228
  import "../../shared-utils/url/getUrl.js";
@@ -166,42 +235,25 @@ import "../utils/normalPositionToPositions.js";
166
235
  import "../../vendor/svelte/store/index.js";
167
236
  import "../../CSS3DRenderPlugin/index.js";
168
237
  import "../../CSS3DRenderPlugin/Controller.js";
169
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
170
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
171
- import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
172
- import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
173
- import "../../CSS3DRenderPlugin/utils/even.js";
174
- import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
175
- import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
176
- import "../../shared-utils/three/getObjectVisible.js";
177
- import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
178
- import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
179
- import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
180
- import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
181
- import "../../shared-utils/url/absoluteUrl.js";
182
- import "../../shared-utils/five/FiveDomEvents.js";
183
- import "../../shared-utils/five/calculateThreeMouse.js";
184
- import "../../shared-utils/three/THREERaycaster.js";
185
- import "../../base/BasePlugin.js";
186
238
  import "../utils/addDebugPoints.js";
187
239
  import "../utils/requestIdleCallback.js";
188
240
  import "../Components/TagItem.js";
189
241
  import "../Components/Common/TagPoint.js";
190
- const S = "Dnalogel-PanoTagPlugin", $i = (d) => `${S}--${d}`;
191
- class Wi extends O {
242
+ const S = "Dnalogel-PanoTagPlugin", Qo = (p) => `${S}--${p}`;
243
+ class $o extends O {
192
244
  constructor(e, t) {
193
245
  super(e);
194
246
  /** state */
195
- p(this, "state", { enabled: !0, visible: !0 });
247
+ d(this, "state", { enabled: !0, visible: !0 });
196
248
  /** debug */
197
- p(this, "debug");
198
- p(this, "debugUtil", new V(this));
249
+ d(this, "debug");
250
+ d(this, "debugUtil", new V(this));
199
251
  /** 更改 tag 模型 */
200
- p(this, "changeTagModel", (e, t) => l(this, null, function* () {
252
+ d(this, "changeTagModel", (e, t) => l(this, null, function* () {
201
253
  var i;
202
- e.data = m({}, e.data, t), yield (i = e.loadModel) == null ? void 0 : i.call(e);
254
+ e.data = f({}, e.data, t), yield (i = e.loadModel) == null ? void 0 : i.call(e);
203
255
  }));
204
- p(this, "handleFiveModeChange", (e) => {
256
+ d(this, "handleFiveModeChange", (e) => {
205
257
  const t = () => {
206
258
  this.tags.forEach((i) => {
207
259
  i.state.visible = !1, i.applyVisible(), this.five.ready().then(() => {
@@ -211,7 +263,7 @@ class Wi extends O {
211
263
  };
212
264
  this.tags.length < 500 ? t() : this.five.ready().then(() => t());
213
265
  });
214
- p(this, "handleFiveWantsMoveToPano", (e) => {
266
+ d(this, "handleFiveWantsMoveToPano", (e) => {
215
267
  if (this.tags.length > 500) {
216
268
  this.temporaryState.visible = !1, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] });
217
269
  return;
@@ -222,20 +274,20 @@ class Wi extends O {
222
274
  typeof o.visibleConfig == "object" && t.temporaryState && (o.visibleConfig.keep ? t.temporaryState.visible = o.visibleConfig.keep === "visible" : t.temporaryState.visible = !!o.visibleConfig.alwaysShowWhenMovePano);
223
275
  }), this.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), this.tags.forEach((t) => t.applyVisible());
224
276
  });
225
- p(this, "clickhandler", (e) => {
277
+ d(this, "clickhandler", (e) => {
226
278
  e.tag.onClick(e);
227
279
  });
228
- p(this, "handleFiveCameraUpdate", () => {
280
+ d(this, "handleFiveCameraUpdate", () => {
229
281
  this.filterPointTag.forEach((e) => e.updateScreenPosition());
230
282
  });
231
- p(this, "handleFiveCameraFovUpdate", () => {
283
+ d(this, "handleFiveCameraFovUpdate", () => {
232
284
  this.handleFiveCameraUpdate(), this.five.off("render.prepare", this.handleFiveCameraUpdate), this.five.on("render.prepare", this.handleFiveCameraUpdate), setTimeout(() => {
233
285
  this.five.off("render.prepare", this.handleFiveCameraUpdate);
234
286
  }, 1e3);
235
287
  });
236
- p(this, "handleFivePanoArrived", () => l(this, null, function* () {
288
+ d(this, "handleFivePanoArrived", () => l(this, null, function* () {
237
289
  this.tags.forEach((e) => {
238
- e.state.visible = !1, e.temporaryState = c(f({}, e.temporaryState), { visible: !0 }), e.applyVisible(), e.updateVisible();
290
+ e.state.visible = !1, e.temporaryState = c(m({}, e.temporaryState), { visible: !0 }), e.applyVisible(), e.updateVisible();
239
291
  }), this.temporaryState.visible = !0, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }), yield this.setUnfolded(), this.updateRender3DDomTag(), this.tags.filter(k).filter((e) => {
240
292
  var t;
241
293
  return (t = e.getConfig().modelConfig) == null ? void 0 : t.autoLookAtEnabled;
@@ -254,13 +306,13 @@ class Wi extends O {
254
306
  });
255
307
  }));
256
308
  /** 楼层切换时,需要更新标签可见性 */
257
- p(this, "handleFiveModelShownFloorChange", () => {
309
+ d(this, "handleFiveModelShownFloorChange", () => {
258
310
  this.tags.forEach((e) => e.updateVisible());
259
311
  });
260
- p(this, "onFiveEveryReady", () => {
312
+ d(this, "onFiveEveryReady", () => {
261
313
  this.setUnfoldedByCamera(), R(this.five.getCurrentState().mode) && this.tags.forEach((e) => e.updateVisible());
262
314
  });
263
- p(this, "render", () => {
315
+ d(this, "render", () => {
264
316
  this.renderQueue.forEach((e, t) => {
265
317
  const { keys: i } = e;
266
318
  if (t === "TagContainerSvelte") {
@@ -287,7 +339,7 @@ class Wi extends O {
287
339
  return console.error("updateRenderPlaneTag: tag2DContainer not found");
288
340
  this.TagContainerSvelte = new $({
289
341
  target: this.container,
290
- props: c(f({}, n), { state: c(f({}, this.state), { enabled: !1 }) })
342
+ props: c(m({}, n), { state: c(m({}, this.state), { enabled: !1 }) })
291
343
  }), G(() => {
292
344
  var r;
293
345
  (r = this.TagContainerSvelte) == null || r.$set({ state: this.state });
@@ -296,7 +348,7 @@ class Wi extends O {
296
348
  }
297
349
  }), this.renderQueue.clear();
298
350
  });
299
- this.params = m({}, { debug: !1, config: this.config }, f({}, t)), this.debug = this.params.debug, this.config = this.params.config, this.debug && this.debugUtil.bindLog(), L(1, { namespace: B.PlayAudio });
351
+ this.params = f({}, { debug: !1, config: this.config }, m({}, t)), this.debug = this.params.debug, this.config = this.params.config, this.debug && this.debugUtil.bindLog(), L(1, { namespace: B.PlayAudio });
300
352
  try {
301
353
  Array.isArray(window.__PANOTAGPLUGIN_DEBUG_LIST__) || (window.__PANOTAGPLUGIN_DEBUG_LIST__ = []), window.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), window.__PANOTAGPLUGIN_DEBUG__ || Object.defineProperty(window, "__PANOTAGPLUGIN_DEBUG__", {
302
354
  get: function() {
@@ -318,7 +370,7 @@ class Wi extends O {
318
370
  load(e) {
319
371
  return l(this, null, function* () {
320
372
  var i, o;
321
- this.clearTags(), console.debug(S, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = m({}, this.config, {
373
+ this.clearTags(), console.debug(S, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = f({}, this.config, {
322
374
  globalConfig: (i = e.globalConfig) != null ? i : {},
323
375
  contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
324
376
  });
@@ -352,7 +404,7 @@ class Wi extends O {
352
404
  * @description 改变配置
353
405
  */
354
406
  changeConfig(e, t = !0) {
355
- t ? this.config = m({}, this.config, e) : this.config = e, this.tags.forEach((i) => {
407
+ t ? this.config = f({}, this.config, e) : this.config = e, this.tags.forEach((i) => {
356
408
  i.updateConfig(), i.updateVisible();
357
409
  });
358
410
  }
@@ -360,7 +412,7 @@ class Wi extends O {
360
412
  * @description 改变全局配置
361
413
  */
362
414
  changeGlobalConfig(e, t = !0) {
363
- t ? this.config.globalConfig = m({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.tags.forEach((i) => {
415
+ t ? this.config.globalConfig = f({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.tags.forEach((i) => {
364
416
  i.updateConfig(), i.updateVisible();
365
417
  });
366
418
  }
@@ -368,7 +420,7 @@ class Wi extends O {
368
420
  * @description 改变类型配置
369
421
  */
370
422
  changeContentTypeConfig(e, t, i = !0) {
371
- this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = m({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.tags.forEach((o) => {
423
+ this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = f({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.tags.forEach((o) => {
372
424
  o.updateConfig(), o.updateVisible();
373
425
  });
374
426
  }
@@ -403,7 +455,7 @@ class Wi extends O {
403
455
  setState(e, t) {
404
456
  if (this.checkDisposed())
405
457
  return;
406
- const { userAction: i = !0 } = t != null ? t : {}, o = f({}, this.state);
458
+ const { userAction: i = !0 } = t != null ? t : {}, o = m({}, this.state);
407
459
  this.state = Object.assign(this.state, e), o.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), o.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: i });
408
460
  }
409
461
  /**
@@ -593,7 +645,7 @@ class Wi extends O {
593
645
  }
594
646
  }
595
647
  export {
596
- Wi as PanoTagPluginController,
597
- Wi as default,
598
- $i as pluginFlag
648
+ $o as PanoTagPluginController,
649
+ $o as default,
650
+ Qo as pluginFlag
599
651
  };