@realsee/dnalogel 3.50.16 → 3.50.18-alpha.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 (118) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/README.md +116 -0
  3. package/dist/ModelMakerPlugin/Controller.d.ts +2 -0
  4. package/dist/Sculpt/utils/export.d.ts +18 -0
  5. package/dist/index.cjs.js +207 -207
  6. package/dist/index.js +34867 -34776
  7. package/dist/index.umd.js +211 -211
  8. package/dist/shared-utils/five/fiveEveryReadyListener.d.ts +2 -0
  9. package/dist/shared-utils/index.d.ts +1 -0
  10. package/dist/shared-utils/tag.d.ts +41 -2
  11. package/dist/shared-utils/three/temp.d.ts +2 -2
  12. package/libs/AreaMakerPlugin/Controller.js +100 -46
  13. package/libs/AreaMakerPlugin/index.js +64 -10
  14. package/libs/AreaMakerPlugin/utils/Item.js +156 -100
  15. package/libs/CSS3DRenderPlugin/Controller.js +93 -44
  16. package/libs/CSS3DRenderPlugin/index.js +62 -13
  17. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +105 -49
  18. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +130 -77
  19. package/libs/CruisePlugin/BaseController.js +143 -89
  20. package/libs/CruisePlugin/Move.js +83 -39
  21. package/libs/CruisePlugin/Work.js +95 -51
  22. package/libs/CruisePlugin/index.js +66 -22
  23. package/libs/CurrentPanoImagePlugin/Controller.js +139 -85
  24. package/libs/CurrentPanoImagePlugin/index.js +63 -9
  25. package/libs/GuideLinePlugin/Controller.js +57 -13
  26. package/libs/GuideLinePlugin/GuideLineItem.js +63 -19
  27. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +6 -2
  28. package/libs/GuideLinePlugin/GuideLineModeItem.js +58 -14
  29. package/libs/GuideLinePlugin/index.js +66 -22
  30. package/libs/ModelMakerPlugin/Controller.d.ts +2 -0
  31. package/libs/ModelMakerPlugin/Controller.js +190 -129
  32. package/libs/ModelMakerPlugin/index.js +63 -21
  33. package/libs/ModelMakerPlugin/item/baseItem.js +4 -2
  34. package/libs/ModelMakerPlugin/item/boxItem.js +5 -3
  35. package/libs/ModelMakerPlugin/item/polygonItem.js +9 -7
  36. package/libs/ModelMakerPlugin/item/prismItem.js +5 -3
  37. package/libs/ModelTVVideoPlugin/Plugin.js +96 -47
  38. package/libs/ModelTVVideoPlugin/index.js +55 -6
  39. package/libs/Object3DHelperPlugin/Controller.js +42 -25
  40. package/libs/Object3DHelperPlugin/index.js +28 -12
  41. package/libs/PanoCompassPlugin/Controller.js +92 -44
  42. package/libs/PanoCompassPlugin/index.js +63 -15
  43. package/libs/PanoDoorLabelPlugin/BaseController.js +79 -25
  44. package/libs/PanoDoorLabelPlugin/Controller.js +132 -78
  45. package/libs/PanoDoorLabelPlugin/index.js +63 -9
  46. package/libs/PanoMeasurePlugin/Components/Controller0.js +126 -77
  47. package/libs/PanoMeasurePlugin/Components/Controller1.js +139 -90
  48. package/libs/PanoMeasurePlugin/Controller/EditController.js +120 -71
  49. package/libs/PanoMeasurePlugin/Controller/WatchController.js +120 -70
  50. package/libs/PanoMeasurePlugin/Controller/index.js +132 -86
  51. package/libs/PanoMeasurePlugin/Model/area.js +72 -22
  52. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +56 -0
  53. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +64 -15
  54. package/libs/PanoMeasurePlugin/index.js +62 -16
  55. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +57 -2
  56. package/libs/PanoRulerProPlugin/Controller.js +88 -33
  57. package/libs/PanoRulerProPlugin/RulerItems.js +146 -91
  58. package/libs/PanoRulerProPlugin/index.js +64 -9
  59. package/libs/PanoSpatialTagPlugin/Plugin.js +177 -128
  60. package/libs/PanoSpatialTagPlugin/index.js +53 -4
  61. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +116 -60
  62. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +192 -136
  63. package/libs/PanoTagPlugin/Components/Tag/index.js +194 -139
  64. package/libs/PanoTagPlugin/Components/TagContainer.js +112 -57
  65. package/libs/PanoTagPlugin/Components/TagItem.js +204 -149
  66. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +157 -101
  67. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +75 -20
  68. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +86 -31
  69. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +93 -37
  70. package/libs/PanoTagPlugin/controller/TagRender.js +62 -18
  71. package/libs/PanoTagPlugin/controller/TagUtil.js +123 -79
  72. package/libs/PanoTagPlugin/controller/index.js +110 -72
  73. package/libs/PanoTagPlugin/index.js +72 -28
  74. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +77 -21
  75. package/libs/PanoVideoPlugin/Controller.js +95 -41
  76. package/libs/PanoVideoPlugin/VideoMeshController.js +119 -63
  77. package/libs/PanoVideoPlugin/index.js +66 -12
  78. package/libs/PipelinePlugin/Controller.js +173 -119
  79. package/libs/PipelinePlugin/index.js +63 -9
  80. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +70 -14
  81. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +58 -2
  82. package/libs/PipelinePlugin/utils/Objects/Pipe.js +98 -42
  83. package/libs/Sculpt/Meshes/Box.js +3 -2
  84. package/libs/Sculpt/Meshes/Cylinder.js +10 -6
  85. package/libs/Sculpt/Meshes/Line.js +43 -38
  86. package/libs/Sculpt/Meshes/LineWithDots.js +14 -10
  87. package/libs/Sculpt/Meshes/Point.js +24 -20
  88. package/libs/Sculpt/Meshes/Polygon.js +5 -2
  89. package/libs/Sculpt/Meshes/Prism.js +19 -16
  90. package/libs/Sculpt/Objects/Line/Editor.js +6 -5
  91. package/libs/Sculpt/index.js +15 -14
  92. package/libs/Sculpt/utils/export.d.ts +18 -0
  93. package/libs/Sculpt/utils/export.js +21 -0
  94. package/libs/Sculpt/utils/three/ColoredMesh.js +26 -22
  95. package/libs/base/BasePlugin.js +14 -10
  96. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +146 -94
  97. package/libs/floorplan/MapviewFloorplanPlugin/index.js +62 -10
  98. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +109 -56
  99. package/libs/floorplan/ModelFloorplanPlugin/index.js +62 -9
  100. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +116 -63
  101. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +62 -9
  102. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +105 -52
  103. package/libs/floorplan/TopviewFloorplanPlugin/index.js +62 -9
  104. package/libs/floorplan/index.js +4 -0
  105. package/libs/index.js +208 -206
  106. package/libs/shared-utils/five/fiveEveryReadyListener.d.ts +2 -0
  107. package/libs/shared-utils/five/fiveEveryReadyListener.js +15 -0
  108. package/libs/shared-utils/five/index.js +6 -2
  109. package/libs/shared-utils/five/lookObject.js +31 -27
  110. package/libs/shared-utils/index.d.ts +1 -0
  111. package/libs/shared-utils/index.js +19 -17
  112. package/libs/shared-utils/logger.js +1 -1
  113. package/libs/shared-utils/tag.d.ts +41 -2
  114. package/libs/shared-utils/tag.js +139 -86
  115. package/libs/shared-utils/three/index.js +4 -0
  116. package/libs/shared-utils/three/temp.d.ts +2 -2
  117. package/libs/shared-utils/three/temp.js +4 -4
  118. package/package.json +1 -1
@@ -1,17 +1,17 @@
1
- var D = Object.defineProperty, P = Object.defineProperties;
2
- var U = Object.getOwnPropertyDescriptors;
3
- var b = Object.getOwnPropertySymbols;
4
- var E = Object.prototype.hasOwnProperty, A = 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, m = (d, a) => {
1
+ var S = Object.defineProperty, D = Object.defineProperties;
2
+ var P = Object.getOwnPropertyDescriptors;
3
+ var y = Object.getOwnPropertySymbols;
4
+ var U = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
5
+ var u = (p, a, e) => a in p ? S(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
- E.call(a, e) && u(d, e, a[e]);
8
- if (b)
9
- for (var e of b(a))
10
- A.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) => {
7
+ U.call(a, e) && u(p, e, a[e]);
8
+ if (y)
9
+ for (var e of y(a))
10
+ E.call(a, e) && u(p, e, a[e]);
11
+ return p;
12
+ }, c = (p, a) => D(p, P(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,18 +25,18 @@ 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
31
  import { objectAssignDeepExports as f } from "../../vendor/object-assign-deep/objectAssignDeep.js";
32
- import { arrayPositionToVector3 as F } from "../../shared-utils/positionToVector3.js";
33
- import { isModelTag as k, isMediaModelTag as w } from "../utils/tag/tagCheck.js";
34
- import { debounce as M } from "../utils/debounce.js";
35
- import { throttle as y } from "../utils/throttle.js";
32
+ import { arrayPositionToVector3 as A } from "../../shared-utils/positionToVector3.js";
33
+ import { isModelTag as k, isMediaModelTag as F } from "../utils/tag/tagCheck.js";
34
+ import { debounce as w } from "../utils/debounce.js";
35
+ import { throttle as M } from "../utils/throttle.js";
36
36
  import _, { getTagStickType as L } from "../utils/tag/format.js";
37
- import { generateBlankAudio as I, AudioNamespace as B } from "../../shared-utils/audio.js";
38
- import { resizeObserver as T } from "../../shared-utils/dom/resizeObserver.js";
39
- import { TagRender as R } from "./TagRender.js";
37
+ import { generateBlankAudio as I, AudioNamespace as R } from "../../shared-utils/audio.js";
38
+ import { resizeObserver as b } from "../../shared-utils/dom/resizeObserver.js";
39
+ import { TagRender as B } from "./TagRender.js";
40
40
  import "../../shared-utils/tag.js";
41
41
  import { isModelLike as O } from "../../shared-utils/five/mode.js";
42
42
  import "hammerjs";
@@ -48,13 +48,18 @@ import "../../shared-utils/three/core/Sphere.js";
48
48
  import "animejs";
49
49
  import { waitFiveModelLoaded as G } from "../../shared-utils/five/fiveModelLoad.js";
50
50
  import { nextFrame as N } from "../../shared-utils/animationFrame/index.js";
51
+ import "../../Sculpt/Meshes/Polygon.js";
52
+ import "../../Sculpt/utils/Modules/Global.js";
53
+ import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
54
+ import "../../Sculpt/utils/three/rayOnLine.js";
51
55
  import { DebugUtil as V } from "../utils/DebugUtil.js";
52
- import { safeObj as C } from "../../shared-utils/safeObj.js";
56
+ import { safeObj as T } from "../../shared-utils/safeObj.js";
53
57
  import { PointTag as z } from "./Tag/PointTag.js";
54
58
  import { ModelTag as Q } from "./Tag/ModelTag.js";
55
59
  import { PlaneTag as $ } from "./Tag/PlaneTag.js";
56
60
  import x from "../Components/TagContainer.js";
57
- import { tweenProgress as j } from "../../shared-utils/animationFrame/BetterTween.js";
61
+ import { fiveEveryReadyListener as j } from "../../shared-utils/five/fiveEveryReadyListener.js";
62
+ import { tweenProgress as W } from "../../shared-utils/animationFrame/BetterTween.js";
58
63
  import "../Components/Tag/index.js";
59
64
  import "../../vendor/svelte/internal/index.js";
60
65
  import "../Components/Tag/TextTag/index.js";
@@ -121,6 +126,8 @@ import "../../shared-utils/Subscribe.js";
121
126
  import "../../shared-utils/Utils/WorkUtil.js";
122
127
  import "../../shared-utils/five/transformPosition.js";
123
128
  import "../../shared-utils/three/temp.js";
129
+ import "../../shared-utils/three/core/Raycaster.js";
130
+ import "../../shared-utils/throttle.js";
124
131
  import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
125
132
  import "../../shared-utils/three/Magnifier.js";
126
133
  import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
@@ -151,6 +158,54 @@ import "../../shared-utils/five/getRaycasterByNdcPosition.js";
151
158
  import "../../shared-utils/three/PointSelector/utils/contents.js";
152
159
  import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
153
160
  import "../../vendor/three/build/three.module.js";
161
+ import "../../shared-utils/three/generatePolygonGeometry.js";
162
+ import "../../shared-utils/three/earcut3D.js";
163
+ import "earcut";
164
+ import "../../shared-utils/three/getNormal.js";
165
+ import "../../PanoMeasurePlugin/utils/isIntersecting.js";
166
+ import "../../Sculpt/utils/three/ColoredMesh.js";
167
+ import "../../shared-utils/three/geometryUtil.js";
168
+ import "../../Sculpt/utils/Modules/Cursor.js";
169
+ import "../../Object3DHelperPlugin/Controller.js";
170
+ import "../../base/BasePlugin.js";
171
+ import "../../shared-utils/url/absoluteUrl.js";
172
+ import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
173
+ import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
174
+ import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
175
+ import "../../shared-utils/three/boundingBox.js";
176
+ import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
177
+ import "../../shared-utils/Object3DHelper/utils/direction.js";
178
+ import "../../shared-utils/Object3DHelper/Constants/color.js";
179
+ import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
180
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
181
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
182
+ import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
183
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
184
+ import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
185
+ import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
186
+ import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
187
+ import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
188
+ import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
189
+ import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
190
+ import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
191
+ import "../../shared-utils/Object3DHelper/Base/BaseController.js";
192
+ import "../../shared-utils/threex/domevents/index.js";
193
+ import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
194
+ import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
195
+ import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
196
+ import "../../shared-utils/Object3DHelper/index.js";
197
+ import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
198
+ import "../../shared-utils/math/rad2Deg.js";
199
+ import "../../shared-utils/math/deg2Rad.js";
200
+ import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
201
+ import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
202
+ import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
203
+ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
204
+ import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
205
+ import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
206
+ import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
207
+ import "../../shared-utils/five/FiveDomEvents.js";
208
+ import "../../shared-utils/five/calculateThreeMouse.js";
154
209
  import "../utils/noTypecheck.js";
155
210
  import "../Components/Tag/AudioTag/index.js";
156
211
  import "../Components/Tag/AudioTag/AudioTag.js";
@@ -176,7 +231,6 @@ import "../../shared-utils/three/loadVideoTexture.js";
176
231
  import "../../shared-utils/device.js";
177
232
  import "../../shared-utils/three/getPositionsByObjectFit.js";
178
233
  import "../../shared-utils/three/FragmentTransparencyMaterial.js";
179
- import "../../shared-utils/three/getNormal.js";
180
234
  import "./Tag/BaseTag.js";
181
235
  import "../utils/tag/calculateTagConfig.js";
182
236
  import "../../shared-utils/typescript/entries.js";
@@ -198,44 +252,34 @@ import "../utils/normalPositionToPositions.js";
198
252
  import "../../vendor/svelte/store/index.js";
199
253
  import "../../CSS3DRenderPlugin/index.js";
200
254
  import "../../CSS3DRenderPlugin/Controller.js";
201
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
202
- import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
203
- import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
204
- import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
205
- import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
206
- import "../../shared-utils/url/absoluteUrl.js";
207
- import "../../shared-utils/five/FiveDomEvents.js";
208
- import "../../shared-utils/five/calculateThreeMouse.js";
209
- import "../../shared-utils/three/core/Raycaster.js";
210
- import "../../base/BasePlugin.js";
211
255
  import "../utils/addDebugPoints.js";
212
256
  import "../Components/TagItem.js";
213
257
  import "../Components/Common/TagPoint.js";
214
- const S = "Dnalogel-PanoTagPlugin", co = (d) => `${S}--${d}`;
215
- class uo extends R {
258
+ const C = "Dnalogel-PanoTagPlugin", nr = (p) => `${C}--${p}`;
259
+ class ar extends B {
216
260
  constructor(e, t) {
217
261
  super(e);
218
262
  /** state */
219
- p(this, "state", { enabled: !0, visible: !0 });
263
+ d(this, "state", { enabled: !0, visible: !0 });
220
264
  /** debug */
221
- p(this, "debug");
222
- p(this, "debugUtil", new V(this));
265
+ d(this, "debug");
266
+ d(this, "debugUtil", new V(this));
223
267
  /** 更改 tag 模型 */
224
- p(this, "changeTagModel", (e, t) => l(this, null, function* () {
268
+ d(this, "changeTagModel", (e, t) => l(this, null, function* () {
225
269
  var i;
226
270
  e.data = f({}, e.data, t), yield (i = e.loadModel) == null ? void 0 : i.call(e);
227
271
  }));
228
- p(this, "handleFiveModeChange", (e) => {
272
+ d(this, "handleFiveModeChange", (e) => {
229
273
  const t = () => {
230
274
  this.tags.forEach((i) => {
231
275
  i.state.visible = !1, i.applyVisible(), this.five.ready().then(() => {
232
- i.updateVisible(), w(i) && e !== "Panorama" && this.changeTagMode(i, "behind");
276
+ i.updateVisible(), F(i) && e !== "Panorama" && this.changeTagMode(i, "behind");
233
277
  });
234
278
  });
235
279
  };
236
280
  this.tags.length < 500 ? t() : this.five.ready().then(() => t());
237
281
  });
238
- p(this, "handleFiveWantsMoveToPano", (e) => {
282
+ d(this, "handleFiveWantsMoveToPano", (e) => {
239
283
  if (this.tags.length > 500) {
240
284
  this.temporaryState.visible = !1, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] });
241
285
  return;
@@ -246,18 +290,18 @@ class uo extends R {
246
290
  typeof o.visibleConfig == "object" && t.temporaryState && (o.visibleConfig.keep ? t.temporaryState.visible = o.visibleConfig.keep === "visible" : t.temporaryState.visible = !!o.visibleConfig.alwaysShowWhenMovePano);
247
291
  }), this.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), this.tags.forEach((t) => t.applyVisible());
248
292
  });
249
- p(this, "clickhandler", (e) => {
293
+ d(this, "clickhandler", (e) => {
250
294
  e.tag.onClick(e);
251
295
  });
252
- p(this, "handleFiveCameraUpdate", () => {
296
+ d(this, "handleFiveCameraUpdate", () => {
253
297
  this.filterPointTag.forEach((e) => e.updateScreenPosition());
254
298
  });
255
- p(this, "handleFiveCameraFovUpdate", () => {
299
+ d(this, "handleFiveCameraFovUpdate", () => {
256
300
  this.handleFiveCameraUpdate(), this.five.off("render.prepare", this.handleFiveCameraUpdate), this.five.on("render.prepare", this.handleFiveCameraUpdate), setTimeout(() => {
257
301
  this.five.off("render.prepare", this.handleFiveCameraUpdate);
258
302
  }, 1e3);
259
303
  });
260
- p(this, "handleFivePanoArrived", () => l(this, null, function* () {
304
+ d(this, "handleFivePanoArrived", () => l(this, null, function* () {
261
305
  this.tags.forEach((e) => {
262
306
  e.state.visible = !1, e.temporaryState = c(m({}, e.temporaryState), { visible: !0 }), e.applyVisible(), e.updateVisible();
263
307
  }), this.temporaryState.visible = !0, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }), yield this.setUnfolded(), this.updateRender3DDomTag(), this.tags.filter(k).filter((e) => {
@@ -271,20 +315,20 @@ class uo extends R {
271
315
  t.position.copy(i.position), t.quaternion.copy(i.quaternion);
272
316
  const o = this.five.camera.position;
273
317
  t.lookAt(o.clone().setY(t.position.y));
274
- const s = i.quaternion.clone(), n = t.quaternion.clone(), r = j();
318
+ const s = i.quaternion.clone(), n = t.quaternion.clone(), r = W();
275
319
  r.onUpdate(({ progress: g }) => {
276
320
  i.quaternion.copy(s.clone().slerp(n, g));
277
321
  }), r.play();
278
322
  });
279
323
  }));
280
324
  /** 楼层切换时,需要更新标签可见性 */
281
- p(this, "handleFiveModelShownFloorChange", () => {
325
+ d(this, "handleFiveModelShownFloorChange", () => {
282
326
  this.tags.forEach((e) => e.updateVisible());
283
327
  });
284
- p(this, "onFiveEveryReady", () => {
328
+ d(this, "onFiveEveryReady", () => {
285
329
  this.setUnfoldedByCamera(), O(this.five.getCurrentState().mode) && this.tags.forEach((e) => e.updateVisible());
286
330
  });
287
- p(this, "render", () => {
331
+ d(this, "render", () => {
288
332
  this.renderQueue.forEach((e, t) => {
289
333
  const { keys: i } = e;
290
334
  if (t === "TagContainerSvelte") {
@@ -320,9 +364,9 @@ class uo extends R {
320
364
  }
321
365
  }), this.renderQueue.clear();
322
366
  });
323
- 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(), I(1, { namespace: B.PlayAudio });
367
+ 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(), I(1, { namespace: R.PlayAudio });
324
368
  try {
325
- Array.isArray(window.__PANOTAGPLUGIN_DEBUG_LIST__) || (window.__PANOTAGPLUGIN_DEBUG_LIST__ = []), this.NAME = S + "-" + window.__PANOTAGPLUGIN_DEBUG_LIST__.length, window.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), window.__PANOTAGPLUGIN_DEBUG__ || Object.defineProperty(window, "__PANOTAGPLUGIN_DEBUG__", {
369
+ Array.isArray(window.__PANOTAGPLUGIN_DEBUG_LIST__) || (window.__PANOTAGPLUGIN_DEBUG_LIST__ = []), this.NAME = C + "-" + window.__PANOTAGPLUGIN_DEBUG_LIST__.length, window.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), window.__PANOTAGPLUGIN_DEBUG__ || Object.defineProperty(window, "__PANOTAGPLUGIN_DEBUG__", {
326
370
  get: function() {
327
371
  return window.__PANOTAGPLUGIN_DEBUG_LIST__.sort((i, o) => o.tags.length - i.tags.length)[0];
328
372
  }
@@ -484,7 +528,7 @@ class uo extends R {
484
528
  */
485
529
  changeTagNormalById(e, t) {
486
530
  const i = this.getTagById(e);
487
- i && i.tag3DContentSvelte && (i.tag3DContentSvelte.currentNormal = F(t));
531
+ i && i.tag3DContentSvelte && (i.tag3DContentSvelte.currentNormal = A(t));
488
532
  }
489
533
  /**
490
534
  * @description 改变data
@@ -584,13 +628,13 @@ class uo extends R {
584
628
  this.state.enabled && (this.filterPointTag.forEach((h) => h.updateScreenPosition({ force: !0 })), this.temporaryState.visible = !0, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }));
585
629
  }, i = () => {
586
630
  this.state.enabled && (this.temporaryState.visible = !1, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }));
587
- }, { observe: o, unobserve: s } = T(
588
- y(() => {
631
+ }, { observe: o, unobserve: s } = b(
632
+ M(() => {
589
633
  this.store.resizeObserverDisposer && i();
590
634
  }, 500),
591
635
  e
592
- ), { observe: n, unobserve: r } = T(
593
- M(() => t(), 400),
636
+ ), { observe: n, unobserve: r } = b(
637
+ w(() => t(), 400),
594
638
  e
595
639
  );
596
640
  return o(), n(), () => {
@@ -604,13 +648,13 @@ class uo extends R {
604
648
  if (t.state && i !== void 0) {
605
649
  if (i === !0 && t.screenPosition) {
606
650
  const o = t.getConfig().unfoldedConfig;
607
- C(o).keep !== "unfolded" && (e = !0);
651
+ T(o).keep !== "unfolded" && (e = !0);
608
652
  }
609
653
  t.state.unfolded = i;
610
654
  }
611
655
  }), e && this.filterPointTag.forEach((t) => {
612
656
  const i = t.getConfig().unfoldedConfig;
613
- typeof i == "object" && (i.autoUnfold || i.autoUnfold === !1 || C(i.autoUnfold).enable === !1 || i.keep) || t.state && (t.state.unfolded = !1);
657
+ typeof i == "object" && (i.autoUnfold || i.autoUnfold === !1 || T(i.autoUnfold).enable === !1 || i.keep) || t.state && (t.state.unfolded = !1);
614
658
  });
615
659
  }
616
660
  changeTagMode(e, t) {
@@ -621,20 +665,14 @@ class uo extends R {
621
665
  * @description 添加 cameraUpdate, panoArrived 等事件监听
622
666
  */
623
667
  addEventListener() {
624
- const { five: e, hooks: t } = this;
625
- let i = !1;
626
- const o = y(() => {
627
- i || (i = !0, e.ready().then(() => {
628
- this.onFiveEveryReady(), i = !1;
629
- }));
630
- }, 150);
631
- return e.on("cameraUpdate", o), this.handleFivePanoArrived(), e.on("wantsMoveToPano", this.handleFiveWantsMoveToPano), e.on("models.refined", this.onFiveEveryReady), e.on("modeChange", this.handleFiveModeChange), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", this.handleFiveCameraUpdate), e.on("cameraFovUpdate", this.handleFiveCameraFovUpdate), e.on("panoArrived", this.handleFivePanoArrived), e.on("panoArrived", this.loadVideoFirstFrame), e.on("render.prepare", this.render), t.on("click", this.clickhandler), () => {
632
- e.off("wantsMoveToPano", this.handleFiveWantsMoveToPano), e.off("models.refined", this.onFiveEveryReady), e.off("modeChange", this.handleFiveModeChange), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", this.handleFiveCameraUpdate), e.off("cameraFovUpdate", this.handleFiveCameraFovUpdate), e.off("cameraUpdate", o), e.off("panoArrived", this.handleFivePanoArrived), e.off("panoArrived", this.loadVideoFirstFrame), e.off("render.prepare", this.render), t.off("click", this.clickhandler), this.store.eventListenerDisposer = void 0;
668
+ const { five: e, hooks: t } = this, i = j(this.five, this.onFiveEveryReady);
669
+ return this.handleFivePanoArrived(), e.on("wantsMoveToPano", this.handleFiveWantsMoveToPano), e.on("models.refined", this.onFiveEveryReady), e.on("modeChange", this.handleFiveModeChange), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", this.handleFiveCameraUpdate), e.on("cameraFovUpdate", this.handleFiveCameraFovUpdate), e.on("panoArrived", this.handleFivePanoArrived), e.on("panoArrived", this.loadVideoFirstFrame), e.on("render.prepare", this.render), t.on("click", this.clickhandler), () => {
670
+ i(), e.off("wantsMoveToPano", this.handleFiveWantsMoveToPano), e.off("models.refined", this.onFiveEveryReady), e.off("modeChange", this.handleFiveModeChange), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", this.handleFiveCameraUpdate), e.off("cameraFovUpdate", this.handleFiveCameraFovUpdate), e.off("panoArrived", this.handleFivePanoArrived), e.off("panoArrived", this.loadVideoFirstFrame), e.off("render.prepare", this.render), t.off("click", this.clickhandler), this.store.eventListenerDisposer = void 0;
633
671
  };
634
672
  }
635
673
  }
636
674
  export {
637
- uo as PanoTagPluginController,
638
- uo as default,
639
- co as pluginFlag
675
+ ar as PanoTagPluginController,
676
+ ar as default,
677
+ nr as pluginFlag
640
678
  };
@@ -1,7 +1,7 @@
1
1
  import r from "./controller/index.js";
2
- import { pluginFlag as qr } from "./controller/index.js";
3
- import { defaultGlobalConfig as zr } from "./typings/tag/TagConfig.js";
4
- import { ContentType as Br, DimensionType as Er, PointType as Hr } from "./Archive/deprecated.js";
2
+ import { pluginFlag as dp } from "./controller/index.js";
3
+ import { defaultGlobalConfig as cp } from "./typings/tag/TagConfig.js";
4
+ import { ContentType as Dp, DimensionType as Fp, PointType as Gp } from "./Archive/deprecated.js";
5
5
  import "three";
6
6
  import "../vendor/object-assign-deep/objectAssignDeep.js";
7
7
  import "../shared-utils/positionToVector3.js";
@@ -79,6 +79,9 @@ import "../shared-utils/Subscribe.js";
79
79
  import "../shared-utils/Utils/WorkUtil.js";
80
80
  import "../shared-utils/five/transformPosition.js";
81
81
  import "../shared-utils/three/temp.js";
82
+ import "../shared-utils/three/core/Raycaster.js";
83
+ import "../shared-utils/five/fiveEveryReadyListener.js";
84
+ import "../shared-utils/throttle.js";
82
85
  import "hammerjs";
83
86
  import "../shared-utils/three/PointSelector/index.js";
84
87
  import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
@@ -97,22 +100,75 @@ import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
97
100
  import "../vendor/three/build/three.module.js";
98
101
  import "../shared-utils/three/core/Sphere.js";
99
102
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
100
- import "../shared-utils/three/PointSelector/utils/html.js";
101
- import "../shared-utils/five/initialCSS3DRender.js";
103
+ import "../Sculpt/Meshes/Polygon.js";
104
+ import "../shared-utils/three/generatePolygonGeometry.js";
105
+ import "../shared-utils/three/earcut3D.js";
106
+ import "earcut";
107
+ import "../shared-utils/three/getNormal.js";
108
+ import "../PanoMeasurePlugin/utils/isIntersecting.js";
109
+ import "../Sculpt/typings/style.js";
110
+ import "../Sculpt/utils/three/ColoredMesh.js";
111
+ import "../shared-utils/three/IObject3D.js";
112
+ import "../Sculpt/utils/Modules/Global.js";
113
+ import "../Sculpt/utils/Modules/Cursor.js";
114
+ import "../Object3DHelperPlugin/Controller.js";
115
+ import "../base/BasePlugin.js";
116
+ import "../shared-utils/url/absoluteUrl.js";
117
+ import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
118
+ import "../Sculpt/utils/three/rayOnLine.js";
119
+ import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
120
+ import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
121
+ import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
122
+ import "../shared-utils/three/boundingBox.js";
123
+ import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
124
+ import "../shared-utils/Object3DHelper/utils/direction.js";
125
+ import "../shared-utils/Object3DHelper/Constants/color.js";
126
+ import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
127
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
102
128
  import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
103
129
  import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
104
130
  import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
131
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
132
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
133
+ import "../shared-utils/util.js";
134
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
135
+ import "../shared-utils/three/PointSelector/utils/html.js";
136
+ import "../shared-utils/five/initialCSS3DRender.js";
105
137
  import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
106
138
  import "../Sculpt/Meshes/Line.js";
107
- import "../Sculpt/typings/style.js";
108
139
  import "../shared-utils/five/FiveLine.js";
109
- import "../shared-utils/three/IObject3D.js";
110
140
  import "../Sculpt/utils/removeAllTag.js";
111
141
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
112
142
  import "../shared-utils/three/applyObjectMatrixWorld.js";
113
- import "../shared-utils/util.js";
114
143
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
144
+ import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
145
+ import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
146
+ import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
147
+ import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
148
+ import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
149
+ import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
150
+ import "../shared-utils/Object3DHelper/Controller/MoveController.js";
151
+ import "../shared-utils/Object3DHelper/Base/BaseController.js";
152
+ import "../shared-utils/threex/domevents/index.js";
153
+ import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
154
+ import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
155
+ import "../Object3DHelperPlugin/FiveControllerWrapper.js";
156
+ import "../shared-utils/Object3DHelper/index.js";
157
+ import "../shared-utils/Object3DHelper/Controller/RotateController.js";
158
+ import "../shared-utils/math/rad2Deg.js";
159
+ import "../shared-utils/math/deg2Rad.js";
160
+ import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
161
+ import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
162
+ import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
163
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
164
+ import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
165
+ import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
166
+ import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
167
+ import "../shared-utils/five/fiveModelLoad.js";
168
+ import "../shared-utils/five/FiveDomEvents.js";
169
+ import "../shared-utils/five/calculateThreeMouse.js";
115
170
  import "../shared-utils/isTouchDevice.js";
171
+ import "../shared-utils/three/geometryUtil.js";
116
172
  import "../shared-utils/five/getPosition.js";
117
173
  import "../shared-utils/five/getRaycasterByNdcPosition.js";
118
174
  import "../shared-utils/three/PointSelector/utils/contents.js";
@@ -142,7 +198,6 @@ import "../shared-utils/three/loadVideoTexture.js";
142
198
  import "../shared-utils/device.js";
143
199
  import "../shared-utils/three/getPositionsByObjectFit.js";
144
200
  import "../shared-utils/three/FragmentTransparencyMaterial.js";
145
- import "../shared-utils/three/getNormal.js";
146
201
  import "./controller/Tag/BaseTag.js";
147
202
  import "./utils/tag/calculateTagConfig.js";
148
203
  import "../shared-utils/typescript/entries.js";
@@ -165,17 +220,6 @@ import "./utils/normalPositionToPositions.js";
165
220
  import "../vendor/svelte/store/index.js";
166
221
  import "../CSS3DRenderPlugin/index.js";
167
222
  import "../CSS3DRenderPlugin/Controller.js";
168
- import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
169
- import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
170
- import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
171
- import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
172
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
173
- import "../shared-utils/five/fiveModelLoad.js";
174
- import "../shared-utils/url/absoluteUrl.js";
175
- import "../shared-utils/five/FiveDomEvents.js";
176
- import "../shared-utils/five/calculateThreeMouse.js";
177
- import "../shared-utils/three/core/Raycaster.js";
178
- import "../base/BasePlugin.js";
179
223
  import "../shared-utils/animationFrame/index.js";
180
224
  import "./utils/DebugUtil.js";
181
225
  import "./utils/addDebugPoints.js";
@@ -185,14 +229,14 @@ import "./Components/TagContainer.js";
185
229
  import "./Components/TagItem.js";
186
230
  import "./Components/Common/TagPoint.js";
187
231
  import "../shared-utils/animationFrame/BetterTween.js";
188
- const hr = (o, t) => new r(o, t);
232
+ const sp = (o, t) => new r(o, t);
189
233
  export {
190
- Br as ContentType,
191
- Er as DimensionType,
192
- hr as PanoTagPlugin,
234
+ Dp as ContentType,
235
+ Fp as DimensionType,
236
+ sp as PanoTagPlugin,
193
237
  r as PanoTagPluginController,
194
- Hr as PointType,
195
- hr as default,
196
- zr as defaultGlobalConfig,
197
- qr as pluginFlag
238
+ Gp as PointType,
239
+ sp as default,
240
+ cp as defaultGlobalConfig,
241
+ dp as pluginFlag
198
242
  };
@@ -26,6 +26,10 @@ import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
26
26
  import "../../../shared-utils/three/core/Sphere.js";
27
27
  import "animejs";
28
28
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
29
+ import "../../../Sculpt/Meshes/Polygon.js";
30
+ import "../../../Sculpt/utils/Modules/Global.js";
31
+ import "../../../vendor/hotkeys-js/dist/hotkeys.esm.js";
32
+ import "../../../Sculpt/utils/three/rayOnLine.js";
29
33
  import "../../../shared-utils/positionToVector3.js";
30
34
  import "../../../shared-utils/five/vector3ToScreen.js";
31
35
  import "../../../shared-utils/five/getFiveModel.js";
@@ -35,7 +39,10 @@ import "../../../shared-utils/Subscribe.js";
35
39
  import "../../../shared-utils/Utils/WorkUtil.js";
36
40
  import "../../../shared-utils/five/transformPosition.js";
37
41
  import "../../../shared-utils/three/temp.js";
42
+ import "../../../shared-utils/three/core/Raycaster.js";
38
43
  import "../../../shared-utils/dom/resizeObserver.js";
44
+ import "../../../shared-utils/five/fiveEveryReadyListener.js";
45
+ import "../../../shared-utils/throttle.js";
39
46
  import "../../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
40
47
  import "../../../shared-utils/three/Magnifier.js";
41
48
  import "../../../shared-utils/three/PointSelector/utils/PointHelper.js";
@@ -67,7 +74,56 @@ import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
67
74
  import "../../../shared-utils/three/PointSelector/utils/contents.js";
68
75
  import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
69
76
  import "../../../vendor/three/build/three.module.js";
70
- function $o(o, i, t) {
77
+ import "../../../shared-utils/three/generatePolygonGeometry.js";
78
+ import "../../../shared-utils/three/earcut3D.js";
79
+ import "earcut";
80
+ import "../../../shared-utils/three/getNormal.js";
81
+ import "../../../PanoMeasurePlugin/utils/isIntersecting.js";
82
+ import "../../../Sculpt/utils/three/ColoredMesh.js";
83
+ import "../../../shared-utils/three/geometryUtil.js";
84
+ import "../../../Sculpt/utils/Modules/Cursor.js";
85
+ import "../../../Object3DHelperPlugin/Controller.js";
86
+ import "../../../base/BasePlugin.js";
87
+ import "../../../shared-utils/url/absoluteUrl.js";
88
+ import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
89
+ import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
90
+ import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
91
+ import "../../../shared-utils/three/boundingBox.js";
92
+ import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
93
+ import "../../../shared-utils/Object3DHelper/utils/direction.js";
94
+ import "../../../shared-utils/Object3DHelper/Constants/color.js";
95
+ import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
96
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
97
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
98
+ import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
99
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
100
+ import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
101
+ import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
102
+ import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
103
+ import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
104
+ import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
105
+ import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
106
+ import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
107
+ import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
108
+ import "../../../shared-utils/threex/domevents/index.js";
109
+ import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
110
+ import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
111
+ import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
112
+ import "../../../shared-utils/Object3DHelper/index.js";
113
+ import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
114
+ import "../../../shared-utils/math/rad2Deg.js";
115
+ import "../../../shared-utils/math/deg2Rad.js";
116
+ import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
117
+ import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
118
+ import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
119
+ import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
120
+ import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
121
+ import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
122
+ import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
123
+ import "../../../shared-utils/five/fiveModelLoad.js";
124
+ import "../../../shared-utils/five/FiveDomEvents.js";
125
+ import "../../../shared-utils/five/calculateThreeMouse.js";
126
+ function it(o, i, t) {
71
127
  var v, b, j, C, A;
72
128
  const D = (v = t == null ? void 0 : t.useCache) != null ? v : !0;
73
129
  if (!o)
@@ -79,39 +135,39 @@ function $o(o, i, t) {
79
135
  return o.config;
80
136
  }
81
137
  const k = {}, d = {}, y = {};
82
- i.contentTypeConfig && Object.entries(i.contentTypeConfig).forEach(([r, n]) => {
138
+ i.contentTypeConfig && Object.entries(i.contentTypeConfig).forEach(([p, m]) => {
83
139
  var O, W;
84
- const e = r, a = e.split("-"), g = r.startsWith("["), m = g ? a[0].slice(1, -1) : void 0, c = g ? a.slice(1) : a, s = m ? ["PanoramaLike", "ModelLike"].includes(m) ? (O = d[m]) != null ? O : d[m] = {} : (W = y[m]) != null ? W : y[m] = {} : k;
85
- if (!s[e]) {
86
- if (c.length === 0 && (s[e] = n), c.length === 1) {
87
- const [p] = c;
88
- (o.contentType === p || p === "Any") && (s[e] = n);
140
+ const r = p, a = r.split("-"), g = p.startsWith("["), c = g ? a[0].slice(1, -1) : void 0, n = g ? a.slice(1) : a, s = c ? ["PanoramaLike", "ModelLike"].includes(c) ? (O = d[c]) != null ? O : d[c] = {} : (W = y[c]) != null ? W : y[c] = {} : k;
141
+ if (!s[r]) {
142
+ if (n.length === 0 && (s[r] = m), n.length === 1) {
143
+ const [e] = n;
144
+ (o.contentType === e || e === "Any") && (s[r] = m);
89
145
  }
90
- if (c.length === 2) {
91
- const [p = "Any", u = "Any"] = c;
92
- p === "Mixin" && o.contentType === u && (s[e] = n), (o.stickType === p || p === "Any") && (o.contentType === u || u === "Any") && (s[e] = n);
146
+ if (n.length === 2) {
147
+ const [e = "Any", u = "Any"] = n;
148
+ e === "Mixin" && o.contentType === u && (s[r] = m), (o.stickType === e || e === "Any") && (o.contentType === u || u === "Any") && (s[r] = m);
93
149
  }
94
- if (c.length === 3) {
95
- const [p = "Any", u, w] = c;
150
+ if (n.length === 3) {
151
+ const [e = "Any", u, w] = n;
96
152
  if (u === "Audio" && o.contentType === "Audio") {
97
153
  const L = o;
98
- (L.stickType === p || p === "Any") && L.data.appearance === w && (s[e] = n);
154
+ (L.stickType === e || e === "Any") && L.data.appearance === w && (s[r] = m);
99
155
  }
100
156
  }
101
157
  }
102
158
  });
103
159
  const h = (A = o.initialConfig) != null ? A : {}, M = l({}, N, i.globalConfig, ...Object.values(k)), G = l({}, M, h), f = {}, q = Object.values(Q.Mode);
104
- I(d).forEach(([r, n]) => {
105
- q.forEach((e) => {
106
- (r === "PanoramaLike" && R(e) || r === "ModelLike" && S(e)) && (f[e] = l({}, M, ...Object.values(n), h, { _isMerged: !0 }));
160
+ I(d).forEach(([p, m]) => {
161
+ q.forEach((r) => {
162
+ (p === "PanoramaLike" && R(r) || p === "ModelLike" && S(r)) && (f[r] = l({}, M, ...Object.values(m), h, { _isMerged: !0 }));
107
163
  });
108
- }), I(y).forEach(([r, n]) => {
109
- const e = f[r];
110
- f[r] = l({}, M, e, ...Object.values(n), h, { _isMerged: !0 });
164
+ }), I(y).forEach(([p, m]) => {
165
+ const r = f[p];
166
+ f[p] = l({}, M, r, ...Object.values(m), h, { _isMerged: !0 });
111
167
  });
112
168
  const T = _(F({}, G), { configWithFiveMode: f });
113
- return P(T), Object.values(f).forEach((r) => P(r)), T._isMerged = !0, T;
169
+ return P(T), Object.values(f).forEach((p) => P(p)), T._isMerged = !0, T;
114
170
  }
115
171
  export {
116
- $o as calculateTagConfig
172
+ it as calculateTagConfig
117
173
  };