@realsee/dnalogel 3.45.0 → 3.46.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/Sculpt/Meshes/Line.d.ts +6 -1
  3. package/dist/Sculpt/utils/removeAllTag.d.ts +2 -0
  4. package/dist/index.cjs.js +53 -53
  5. package/dist/index.js +29600 -29557
  6. package/dist/index.umd.js +49 -49
  7. package/dist/shared-utils/tag.d.ts +6 -3
  8. package/libs/AreaMakerPlugin/Controller.js +151 -78
  9. package/libs/AreaMakerPlugin/index.js +77 -4
  10. package/libs/AreaMakerPlugin/utils/Item.js +191 -111
  11. package/libs/CSS3DRenderPlugin/Controller.js +90 -29
  12. package/libs/CSS3DRenderPlugin/index.js +76 -15
  13. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +133 -58
  14. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +182 -116
  15. package/libs/CruisePlugin/BaseController.js +122 -49
  16. package/libs/CruisePlugin/Move.js +74 -21
  17. package/libs/CruisePlugin/Work.js +99 -46
  18. package/libs/CruisePlugin/index.js +80 -27
  19. package/libs/CurrentPanoImagePlugin/Controller.js +177 -104
  20. package/libs/CurrentPanoImagePlugin/index.js +77 -4
  21. package/libs/GuideLinePlugin/Controller.js +79 -26
  22. package/libs/GuideLinePlugin/GuideLineItem.js +83 -30
  23. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
  24. package/libs/GuideLinePlugin/GuideLineModeItem.js +82 -29
  25. package/libs/GuideLinePlugin/index.js +80 -27
  26. package/libs/ModelMakerPlugin/Controller.js +140 -82
  27. package/libs/ModelMakerPlugin/index.js +76 -18
  28. package/libs/ModelTVVideoPlugin/Plugin.js +118 -57
  29. package/libs/ModelTVVideoPlugin/index.js +69 -8
  30. package/libs/Object3DHelperPlugin/Controller.js +67 -43
  31. package/libs/Object3DHelperPlugin/index.js +36 -13
  32. package/libs/PanoCompassPlugin/Controller.js +98 -42
  33. package/libs/PanoCompassPlugin/index.js +72 -16
  34. package/libs/PanoDoorLabelPlugin/BaseController.js +99 -26
  35. package/libs/PanoDoorLabelPlugin/Controller.js +188 -115
  36. package/libs/PanoDoorLabelPlugin/index.js +77 -4
  37. package/libs/PanoMeasurePlugin/Components/Controller0.js +141 -88
  38. package/libs/PanoMeasurePlugin/Components/Controller1.js +179 -126
  39. package/libs/PanoMeasurePlugin/Controller/EditController.js +125 -72
  40. package/libs/PanoMeasurePlugin/Controller/WatchController.js +168 -92
  41. package/libs/PanoMeasurePlugin/Controller/index.js +110 -64
  42. package/libs/PanoMeasurePlugin/Model/area.js +115 -38
  43. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +79 -0
  44. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +98 -45
  45. package/libs/PanoMeasurePlugin/index.js +77 -31
  46. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +99 -20
  47. package/libs/PanoSpatialTagPlugin/Plugin.js +211 -150
  48. package/libs/PanoSpatialTagPlugin/index.js +67 -6
  49. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +149 -68
  50. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +296 -216
  51. package/libs/PanoTagPlugin/Components/Tag/index.js +258 -187
  52. package/libs/PanoTagPlugin/Components/TagContainer.js +158 -87
  53. package/libs/PanoTagPlugin/Components/TagItem.js +145 -74
  54. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +133 -62
  55. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +110 -39
  56. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +106 -35
  57. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +114 -43
  58. package/libs/PanoTagPlugin/controller/TagRender.js +133 -80
  59. package/libs/PanoTagPlugin/controller/TagUtil.js +137 -84
  60. package/libs/PanoTagPlugin/controller/index.js +114 -61
  61. package/libs/PanoTagPlugin/index.js +90 -37
  62. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +122 -41
  63. package/libs/PanoVideoPlugin/Controller.js +138 -65
  64. package/libs/PanoVideoPlugin/VideoMeshController.js +150 -69
  65. package/libs/PanoVideoPlugin/index.js +83 -10
  66. package/libs/PipelinePlugin/Controller.js +200 -128
  67. package/libs/PipelinePlugin/index.js +77 -5
  68. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +103 -22
  69. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +96 -15
  70. package/libs/PipelinePlugin/utils/Objects/Pipe.js +137 -56
  71. package/libs/Sculpt/Meshes/Box.js +6 -5
  72. package/libs/Sculpt/Meshes/Cylinder.js +7 -6
  73. package/libs/Sculpt/Meshes/Line.d.ts +6 -1
  74. package/libs/Sculpt/Meshes/Line.js +80 -57
  75. package/libs/Sculpt/Meshes/Point.js +6 -5
  76. package/libs/Sculpt/Meshes/Polyline.js +5 -4
  77. package/libs/Sculpt/Meshes/Rectangle.js +3 -2
  78. package/libs/Sculpt/Objects/Base/index.js +20 -17
  79. package/libs/Sculpt/Objects/Line/Editor.js +11 -10
  80. package/libs/Sculpt/utils/removeAllTag.d.ts +2 -0
  81. package/libs/Sculpt/utils/removeAllTag.js +10 -0
  82. package/libs/Sculpt/utils/three/ColoredMesh.js +14 -13
  83. package/libs/base/BasePlugin.js +14 -13
  84. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +129 -59
  85. package/libs/floorplan/MapviewFloorplanPlugin/index.js +76 -6
  86. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +130 -59
  87. package/libs/floorplan/ModelFloorplanPlugin/index.js +76 -5
  88. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +159 -86
  89. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +77 -4
  90. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +152 -81
  91. package/libs/floorplan/TopviewFloorplanPlugin/index.js +76 -5
  92. package/libs/floorplan/index.js +1 -0
  93. package/libs/index.js +193 -192
  94. package/libs/shared-utils/five/index.js +3 -2
  95. package/libs/shared-utils/five/lookObject.js +3 -2
  96. package/libs/shared-utils/logger.js +1 -1
  97. package/libs/shared-utils/tag.d.ts +6 -3
  98. package/libs/shared-utils/tag.js +38 -24
  99. package/libs/shared-utils/three/index.js +1 -0
  100. 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,77 @@ 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 "../../Sculpt/utils/removeAllTag.js";
88
+ import "animejs";
89
+ import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
90
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
91
+ import "../../shared-utils/isTouchDevice.js";
92
+ import "../../shared-utils/five/getPosition.js";
93
+ import "../../shared-utils/five/getRaycasterByNdcPosition.js";
94
+ import "../../shared-utils/Utils/FiveUtil.js";
95
+ import "../../shared-utils/Utils/BaseUtil.js";
96
+ import "../../shared-utils/Utils/WorkUtil.js";
97
+ import "../../shared-utils/five/transformPosition.js";
98
+ import "../../shared-utils/url/absoluteUrl.js";
99
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
100
+ import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
101
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
43
102
  import "../../shared-utils/three/loadTexture.js";
44
103
  import "../../shared-utils/three/Quadrangle.js";
45
104
  import "../../shared-utils/math/pointsIsRectangle.js";
@@ -48,131 +107,125 @@ import "../Assets/Icon.js";
48
107
  import "../../shared-utils/three/getPositionsByObjectFit.js";
49
108
  import "../../shared-utils/three/FragmentTransparencyMaterial.js";
50
109
  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());
110
+ class Ei extends E {
111
+ constructor(t) {
112
+ super(t);
113
+ e(this, "tags", []);
114
+ e(this, "cache", new v());
115
+ e(this, "config", l);
116
+ e(this, "renderQueue", /* @__PURE__ */ new Map());
64
117
  /** 插件参数 */
65
- r(this, "params");
66
- r(this, "mediaStore", P({
118
+ e(this, "params");
119
+ e(this, "mediaStore", P({
67
120
  currentMediaElement: null
68
121
  }));
69
- r(this, "store", {
122
+ e(this, "store", {
70
123
  disposers: [],
71
124
  disposed: !1,
72
125
  resizeObserverDisposerAdding: !1,
73
126
  css3DRenderDisposer: /* @__PURE__ */ new Map()
74
127
  });
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` };
128
+ e(this, "domEvents", new y(this.five));
129
+ e(this, "_cache_pointTag");
130
+ e(this, "_cache_2DPointTag");
131
+ e(this, "_cache_css3DTag");
132
+ e(this, "_container", null);
133
+ e(this, "_css3DRenderPlugin");
134
+ e(this, "whyHide", (t) => {
135
+ const i = this.getTagById(t);
136
+ return i ? i.whyHide() : { reason: `tag ${t} not found` };
84
137
  });
85
- r(this, "loadVideoFirstFrame", () => {
138
+ e(this, "loadVideoFirstFrame", () => {
86
139
  T && this.hooks.emit("loadVideoFirstFrame");
87
140
  });
88
- this.mediaStore.subscribe(({ currentMediaElement: t }) => {
89
- this.tags.forEach((i) => {
141
+ this.mediaStore.subscribe(({ currentMediaElement: i }) => {
142
+ this.tags.forEach((r) => {
90
143
  var o;
91
- if (i.mediaPlane instanceof _ && t !== i.mediaPlane.videoInstance) {
92
- if (!((o = i.mediaPlane.videoInstance) != null && o.src) || t === i.mediaPlane.videoInstance)
144
+ if (r.mediaPlane instanceof _ && i !== r.mediaPlane.videoInstance) {
145
+ if (!((o = r.mediaPlane.videoInstance) != null && o.src) || i === r.mediaPlane.videoInstance)
93
146
  return;
94
- i.mediaPlane.pause();
147
+ r.mediaPlane.pause();
95
148
  }
96
149
  });
97
150
  });
98
151
  }
99
152
  get container() {
100
- var e;
101
- return this._container || ((e = this.five.getElement()) == null ? void 0 : e.parentElement);
153
+ var t;
154
+ return this._container || ((t = this.five.getElement()) == null ? void 0 : t.parentElement);
102
155
  }
103
- set container(e) {
104
- this._container = e;
156
+ set container(t) {
157
+ this._container = t;
105
158
  }
106
159
  // 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";
160
+ set tagsLengthWillUpdate(t) {
161
+ 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(
162
+ (i) => i.stickType === "3DPoint" || i.stickType === "Plane" || i.stickType === "Model" && i.contentType === "MediaModel"
163
+ ).filter((i) => {
164
+ const r = i.computeRenderType();
165
+ return r === "BehindDom" || r === "Dom";
113
166
  }));
114
167
  }
115
168
  /** css3DRenderPlugin */
116
169
  get css3DRenderPlugin() {
117
- var e, t, i;
170
+ var t, i, r;
118
171
  if (!this._css3DRenderPlugin) {
119
172
  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 : "");
173
+ 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
174
  }
122
175
  return this._css3DRenderPlugin;
123
176
  }
124
177
  get filterPointTag() {
125
- var e;
126
- return (e = this._cache_pointTag) != null ? e : [];
178
+ var t;
179
+ return (t = this._cache_pointTag) != null ? t : [];
127
180
  }
128
181
  get filter2DPointTag() {
129
- var e;
130
- return (e = this._cache_2DPointTag) != null ? e : [];
182
+ var t;
183
+ return (t = this._cache_2DPointTag) != null ? t : [];
131
184
  }
132
185
  get filterCSS3DTag() {
133
- var e;
134
- return (e = this._cache_css3DTag) != null ? e : [];
186
+ var t;
187
+ return (t = this._cache_css3DTag) != null ? t : [];
135
188
  }
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 });
189
+ addRenderQueue(t) {
190
+ var p, s;
191
+ const { type: i, keys: r = [], tags: o = [] } = t;
192
+ this.renderQueue.has(i) ? this.renderQueue.set(i, {
193
+ keys: Array.from(/* @__PURE__ */ new Set([...(p = this.renderQueue.get(i).keys) != null ? p : [], ...r])),
194
+ tags: Array.from(/* @__PURE__ */ new Set([...(s = this.renderQueue.get(i).tags) != null ? s : [], ...o]))
195
+ }) : this.renderQueue.set(i, { keys: r, tags: o });
143
196
  }
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}`);
197
+ getTagById(t) {
198
+ const i = this.tags.find((r) => r.id === t);
199
+ if (!i) {
200
+ console.warn(`getTagById Error: can't find tag id: ${t}`);
148
201
  return;
149
202
  }
150
- return t;
203
+ return i;
151
204
  }
152
205
  /** 暂停当前标签内进行的所有多媒体 */
153
206
  pauseCurrentMedia() {
154
207
  this.mediaStore.set({ currentMediaElement: null });
155
208
  }
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));
209
+ getPositions(t) {
210
+ if (u(t))
211
+ return t.position;
212
+ if (f(t))
213
+ return t.data.mediaPosition;
214
+ if (h(t))
215
+ return g(this.five.camera.position, a(t.position), a(t.normal));
163
216
  }
164
- addObjectClickHandler(e, t, i) {
165
- if (!t || !this.domEvents)
217
+ addObjectClickHandler(t, i, r) {
218
+ if (!i || !this.domEvents)
166
219
  return () => {
167
220
  };
168
- const o = () => !(!e.currentVisible || e.loading), m = (s) => {
221
+ const o = () => !(!t.currentVisible || t.loading), p = (s) => {
169
222
  if (!o())
170
223
  return !1;
171
- i(s.origDomEvent);
224
+ r(s.origDomEvent);
172
225
  };
173
- return this.domEvents.addEventListener(t, "click", m), () => {
226
+ return this.domEvents.addEventListener(i, "click", p), () => {
174
227
  var s;
175
- (s = this.domEvents) == null || s.removeEventListener(t, "click", m);
228
+ (s = this.domEvents) == null || s.removeEventListener(i, "click", p);
176
229
  };
177
230
  }
178
231
  /**
@@ -184,5 +237,5 @@ class Se extends E {
184
237
  }
185
238
  }
186
239
  export {
187
- Se as TagUtil
240
+ Ei as TagUtil
188
241
  };
@@ -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,83 @@ 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 "../../Sculpt/utils/removeAllTag.js";
187
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
188
+ import "../../shared-utils/isTouchDevice.js";
189
+ import "../../shared-utils/five/getPosition.js";
190
+ import "../../shared-utils/five/getRaycasterByNdcPosition.js";
113
191
  import "../utils/noTypecheck.js";
114
192
  import "../Components/Tag/AudioTag/index.js";
115
193
  import "../Components/Tag/AudioTag/AudioTag.js";
@@ -128,7 +206,6 @@ import "../../shared-utils/three/GLTFLoader.js";
128
206
  import "@realsee/five/gltf-loader";
129
207
  import "../utils/planeNormal.js";
130
208
  import "../utils/model/mediaPlane.js";
131
- import "../../shared-utils/three/centerPoint.js";
132
209
  import "../../shared-utils/three/loadTexture.js";
133
210
  import "../../shared-utils/three/Quadrangle.js";
134
211
  import "../../shared-utils/math/pointsIsRectangle.js";
@@ -138,22 +215,15 @@ import "../../shared-utils/three/getPositionsByObjectFit.js";
138
215
  import "../../shared-utils/three/FragmentTransparencyMaterial.js";
139
216
  import "../../shared-utils/three/getNormal.js";
140
217
  import "./Tag/BaseTag.js";
141
- import "../../shared-utils/Subscribe.js";
142
218
  import "../utils/tag/calculateTagConfig.js";
143
219
  import "../../shared-utils/typescript/entries.js";
144
220
  import "../utils/tag/adaptConfig.js";
145
221
  import "../typings/tag/TagConfig.js";
146
222
  import "@realsee/five";
147
223
  import "../../shared-utils/three/blink.js";
148
- import "../../shared-utils/util.js";
149
224
  import "../../shared-utils/vectorToCoordinate.js";
150
225
  import "../../shared-utils/formatRad.js";
151
- import "../../shared-utils/five/transformPosition.js";
152
226
  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
227
  import "../utils/tagPosition.js";
158
228
  import "../utils/checkRange.js";
159
229
  import "../../shared-utils/url/getUrl.js";
@@ -166,42 +236,25 @@ import "../utils/normalPositionToPositions.js";
166
236
  import "../../vendor/svelte/store/index.js";
167
237
  import "../../CSS3DRenderPlugin/index.js";
168
238
  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
239
  import "../utils/addDebugPoints.js";
187
240
  import "../utils/requestIdleCallback.js";
188
241
  import "../Components/TagItem.js";
189
242
  import "../Components/Common/TagPoint.js";
190
- const S = "Dnalogel-PanoTagPlugin", $i = (d) => `${S}--${d}`;
191
- class Wi extends O {
243
+ const S = "Dnalogel-PanoTagPlugin", $o = (p) => `${S}--${p}`;
244
+ class Wo extends O {
192
245
  constructor(e, t) {
193
246
  super(e);
194
247
  /** state */
195
- p(this, "state", { enabled: !0, visible: !0 });
248
+ d(this, "state", { enabled: !0, visible: !0 });
196
249
  /** debug */
197
- p(this, "debug");
198
- p(this, "debugUtil", new V(this));
250
+ d(this, "debug");
251
+ d(this, "debugUtil", new V(this));
199
252
  /** 更改 tag 模型 */
200
- p(this, "changeTagModel", (e, t) => l(this, null, function* () {
253
+ d(this, "changeTagModel", (e, t) => l(this, null, function* () {
201
254
  var i;
202
- e.data = m({}, e.data, t), yield (i = e.loadModel) == null ? void 0 : i.call(e);
255
+ e.data = f({}, e.data, t), yield (i = e.loadModel) == null ? void 0 : i.call(e);
203
256
  }));
204
- p(this, "handleFiveModeChange", (e) => {
257
+ d(this, "handleFiveModeChange", (e) => {
205
258
  const t = () => {
206
259
  this.tags.forEach((i) => {
207
260
  i.state.visible = !1, i.applyVisible(), this.five.ready().then(() => {
@@ -211,7 +264,7 @@ class Wi extends O {
211
264
  };
212
265
  this.tags.length < 500 ? t() : this.five.ready().then(() => t());
213
266
  });
214
- p(this, "handleFiveWantsMoveToPano", (e) => {
267
+ d(this, "handleFiveWantsMoveToPano", (e) => {
215
268
  if (this.tags.length > 500) {
216
269
  this.temporaryState.visible = !1, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] });
217
270
  return;
@@ -222,20 +275,20 @@ class Wi extends O {
222
275
  typeof o.visibleConfig == "object" && t.temporaryState && (o.visibleConfig.keep ? t.temporaryState.visible = o.visibleConfig.keep === "visible" : t.temporaryState.visible = !!o.visibleConfig.alwaysShowWhenMovePano);
223
276
  }), this.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), this.tags.forEach((t) => t.applyVisible());
224
277
  });
225
- p(this, "clickhandler", (e) => {
278
+ d(this, "clickhandler", (e) => {
226
279
  e.tag.onClick(e);
227
280
  });
228
- p(this, "handleFiveCameraUpdate", () => {
281
+ d(this, "handleFiveCameraUpdate", () => {
229
282
  this.filterPointTag.forEach((e) => e.updateScreenPosition());
230
283
  });
231
- p(this, "handleFiveCameraFovUpdate", () => {
284
+ d(this, "handleFiveCameraFovUpdate", () => {
232
285
  this.handleFiveCameraUpdate(), this.five.off("render.prepare", this.handleFiveCameraUpdate), this.five.on("render.prepare", this.handleFiveCameraUpdate), setTimeout(() => {
233
286
  this.five.off("render.prepare", this.handleFiveCameraUpdate);
234
287
  }, 1e3);
235
288
  });
236
- p(this, "handleFivePanoArrived", () => l(this, null, function* () {
289
+ d(this, "handleFivePanoArrived", () => l(this, null, function* () {
237
290
  this.tags.forEach((e) => {
238
- e.state.visible = !1, e.temporaryState = c(f({}, e.temporaryState), { visible: !0 }), e.applyVisible(), e.updateVisible();
291
+ e.state.visible = !1, e.temporaryState = c(m({}, e.temporaryState), { visible: !0 }), e.applyVisible(), e.updateVisible();
239
292
  }), this.temporaryState.visible = !0, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }), yield this.setUnfolded(), this.updateRender3DDomTag(), this.tags.filter(k).filter((e) => {
240
293
  var t;
241
294
  return (t = e.getConfig().modelConfig) == null ? void 0 : t.autoLookAtEnabled;
@@ -254,13 +307,13 @@ class Wi extends O {
254
307
  });
255
308
  }));
256
309
  /** 楼层切换时,需要更新标签可见性 */
257
- p(this, "handleFiveModelShownFloorChange", () => {
310
+ d(this, "handleFiveModelShownFloorChange", () => {
258
311
  this.tags.forEach((e) => e.updateVisible());
259
312
  });
260
- p(this, "onFiveEveryReady", () => {
313
+ d(this, "onFiveEveryReady", () => {
261
314
  this.setUnfoldedByCamera(), R(this.five.getCurrentState().mode) && this.tags.forEach((e) => e.updateVisible());
262
315
  });
263
- p(this, "render", () => {
316
+ d(this, "render", () => {
264
317
  this.renderQueue.forEach((e, t) => {
265
318
  const { keys: i } = e;
266
319
  if (t === "TagContainerSvelte") {
@@ -287,7 +340,7 @@ class Wi extends O {
287
340
  return console.error("updateRenderPlaneTag: tag2DContainer not found");
288
341
  this.TagContainerSvelte = new $({
289
342
  target: this.container,
290
- props: c(f({}, n), { state: c(f({}, this.state), { enabled: !1 }) })
343
+ props: c(m({}, n), { state: c(m({}, this.state), { enabled: !1 }) })
291
344
  }), G(() => {
292
345
  var r;
293
346
  (r = this.TagContainerSvelte) == null || r.$set({ state: this.state });
@@ -296,7 +349,7 @@ class Wi extends O {
296
349
  }
297
350
  }), this.renderQueue.clear();
298
351
  });
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 });
352
+ 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
353
  try {
301
354
  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
355
  get: function() {
@@ -318,7 +371,7 @@ class Wi extends O {
318
371
  load(e) {
319
372
  return l(this, null, function* () {
320
373
  var i, o;
321
- this.clearTags(), console.debug(S, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = m({}, this.config, {
374
+ this.clearTags(), console.debug(S, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = f({}, this.config, {
322
375
  globalConfig: (i = e.globalConfig) != null ? i : {},
323
376
  contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
324
377
  });
@@ -352,7 +405,7 @@ class Wi extends O {
352
405
  * @description 改变配置
353
406
  */
354
407
  changeConfig(e, t = !0) {
355
- t ? this.config = m({}, this.config, e) : this.config = e, this.tags.forEach((i) => {
408
+ t ? this.config = f({}, this.config, e) : this.config = e, this.tags.forEach((i) => {
356
409
  i.updateConfig(), i.updateVisible();
357
410
  });
358
411
  }
@@ -360,7 +413,7 @@ class Wi extends O {
360
413
  * @description 改变全局配置
361
414
  */
362
415
  changeGlobalConfig(e, t = !0) {
363
- t ? this.config.globalConfig = m({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.tags.forEach((i) => {
416
+ t ? this.config.globalConfig = f({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.tags.forEach((i) => {
364
417
  i.updateConfig(), i.updateVisible();
365
418
  });
366
419
  }
@@ -368,7 +421,7 @@ class Wi extends O {
368
421
  * @description 改变类型配置
369
422
  */
370
423
  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) => {
424
+ 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
425
  o.updateConfig(), o.updateVisible();
373
426
  });
374
427
  }
@@ -403,7 +456,7 @@ class Wi extends O {
403
456
  setState(e, t) {
404
457
  if (this.checkDisposed())
405
458
  return;
406
- const { userAction: i = !0 } = t != null ? t : {}, o = f({}, this.state);
459
+ const { userAction: i = !0 } = t != null ? t : {}, o = m({}, this.state);
407
460
  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
461
  }
409
462
  /**
@@ -593,7 +646,7 @@ class Wi extends O {
593
646
  }
594
647
  }
595
648
  export {
596
- Wi as PanoTagPluginController,
597
- Wi as default,
598
- $i as pluginFlag
649
+ Wo as PanoTagPluginController,
650
+ Wo as default,
651
+ $o as pluginFlag
599
652
  };