@realsee/dnalogel 3.31.1-dev.0 → 3.32.0-dev.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 (167) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/PanoSpatialTagPlugin/store.d.ts +1 -0
  3. package/dist/PanoTagPlugin/controller/TagCache.d.ts +1 -1
  4. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +4 -1
  5. package/dist/PanoTagPlugin/controller/index.d.ts +1 -0
  6. package/dist/PanoTagPlugin/typings/controller.d.ts +1 -0
  7. package/dist/index.cjs.js +66 -66
  8. package/dist/index.js +5849 -5666
  9. package/dist/index.umd.js +59 -59
  10. package/libs/AreaMakerPlugin/Controller.js +54 -44
  11. package/libs/AreaMakerPlugin/index.js +13 -3
  12. package/libs/AreaMakerPlugin/utils/Item.js +13 -3
  13. package/libs/CruisePlugin/Move.js +50 -37
  14. package/libs/CruisePlugin/Work.js +19 -6
  15. package/libs/CruisePlugin/index.js +23 -10
  16. package/libs/GuideLinePlugin/Components/Tag.js +58 -48
  17. package/libs/GuideLinePlugin/Controller.js +46 -33
  18. package/libs/GuideLinePlugin/GuideLineItem.js +19 -6
  19. package/libs/GuideLinePlugin/GuideLineModeItem.js +19 -6
  20. package/libs/GuideLinePlugin/index.js +23 -10
  21. package/libs/ItemLabelPlugin/ItemLabelComponent.js +152 -139
  22. package/libs/ItemLabelPlugin/ItemLabelItem.js +67 -57
  23. package/libs/ItemLabelPlugin/Plugin.js +37 -26
  24. package/libs/ItemLabelPlugin/index.js +16 -5
  25. package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +116 -103
  26. package/libs/ModelItemLabelPlugin/ItemLabelItem.js +45 -35
  27. package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +35 -24
  28. package/libs/ModelItemLabelPlugin/index.js +16 -5
  29. package/libs/ModelMakerPlugin/Controller.js +33 -23
  30. package/libs/ModelMakerPlugin/index.js +13 -3
  31. package/libs/ModelMakerPlugin/utils/Text.js +43 -33
  32. package/libs/ModelMakerPlugin/utils/tagRenderer.js +28 -18
  33. package/libs/ModelRoomLabelPlugin/Controller.js +20 -8
  34. package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +52 -42
  35. package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +75 -61
  36. package/libs/ModelRoomLabelPlugin/index.js +17 -5
  37. package/libs/PanoDoorLabelPlugin/Controller.js +38 -28
  38. package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +55 -45
  39. package/libs/PanoDoorLabelPlugin/index.js +14 -4
  40. package/libs/PanoMeasurePlugin/Components/Common/CircleButton.js +70 -60
  41. package/libs/PanoMeasurePlugin/Components/Common/Exit.js +32 -22
  42. package/libs/PanoMeasurePlugin/Components/Common/Switcher0.js +75 -62
  43. package/libs/PanoMeasurePlugin/Components/Common/Switcher1.js +110 -97
  44. package/libs/PanoMeasurePlugin/Components/Controller0.js +72 -61
  45. package/libs/PanoMeasurePlugin/Components/Controller1.js +33 -22
  46. package/libs/PanoMeasurePlugin/Components/Tip.js +76 -66
  47. package/libs/PanoMeasurePlugin/Controller/index.js +28 -17
  48. package/libs/PanoMeasurePlugin/Modules/GuideController.js +26 -16
  49. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +34 -23
  50. package/libs/PanoMeasurePlugin/index.js +27 -16
  51. package/libs/PanoRulerProPlugin/Controller.js +38 -27
  52. package/libs/PanoRulerProPlugin/RulerItem.js +94 -79
  53. package/libs/PanoRulerProPlugin/RulerItems.js +95 -82
  54. package/libs/PanoRulerProPlugin/index.js +15 -4
  55. package/libs/PanoSpatialTagPlugin/Components/origins.js +51 -38
  56. package/libs/PanoSpatialTagPlugin/Components/tag.js +32 -22
  57. package/libs/PanoSpatialTagPlugin/Plugin.js +115 -104
  58. package/libs/PanoSpatialTagPlugin/index.js +13 -2
  59. package/libs/PanoSpatialTagPlugin/store.d.ts +1 -0
  60. package/libs/PanoSpatialTagPlugin/store.js +2 -2
  61. package/libs/PanoTagPlugin/Components/Common/Arrow.js +44 -34
  62. package/libs/PanoTagPlugin/Components/Common/Audio.js +99 -89
  63. package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +123 -112
  64. package/libs/PanoTagPlugin/Components/Common/Icon/audioIcon.js +55 -45
  65. package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +59 -49
  66. package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +79 -69
  67. package/libs/PanoTagPlugin/Components/Common/Media.js +145 -131
  68. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +35 -25
  69. package/libs/PanoTagPlugin/Components/Common/Shadow.js +58 -48
  70. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +35 -24
  71. package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +97 -86
  72. package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +109 -96
  73. package/libs/PanoTagPlugin/Components/Common/Text/MText.js +128 -118
  74. package/libs/PanoTagPlugin/Components/Common/TextItem.js +59 -49
  75. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +100 -90
  76. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +92 -81
  77. package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +68 -57
  78. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +45 -35
  79. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +122 -110
  80. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +53 -42
  81. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +130 -115
  82. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +66 -54
  83. package/libs/PanoTagPlugin/Components/Tag/PanoramaTag.js +62 -52
  84. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +66 -56
  85. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +109 -98
  86. package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +54 -43
  87. package/libs/PanoTagPlugin/Components/Tag/index.js +161 -148
  88. package/libs/PanoTagPlugin/Components/TagContainer.js +77 -62
  89. package/libs/PanoTagPlugin/Components/TagItem.js +182 -169
  90. package/libs/PanoTagPlugin/controller/TagCache.d.ts +1 -1
  91. package/libs/PanoTagPlugin/controller/TagCache.js +5 -5
  92. package/libs/PanoTagPlugin/controller/TagComputer.js +2 -2
  93. package/libs/PanoTagPlugin/controller/TagRender.js +56 -43
  94. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +4 -1
  95. package/libs/PanoTagPlugin/controller/TagUtil.js +78 -70
  96. package/libs/PanoTagPlugin/controller/index.d.ts +1 -0
  97. package/libs/PanoTagPlugin/controller/index.js +84 -65
  98. package/libs/PanoTagPlugin/index.js +28 -15
  99. package/libs/PanoTagPlugin/typings/controller.d.ts +1 -0
  100. package/libs/base/BasePlugin.js +1 -1
  101. package/libs/components/AreaLabel/LabelItem.js +56 -51
  102. package/libs/floorplan/Components/BaseImage.js +43 -39
  103. package/libs/floorplan/Components/Camera.js +41 -32
  104. package/libs/floorplan/Components/Compass.js +27 -24
  105. package/libs/floorplan/Components/CurrentFloor.js +167 -162
  106. package/libs/floorplan/Components/Main.js +85 -76
  107. package/libs/floorplan/Components/MissingFloor.js +24 -21
  108. package/libs/floorplan/Components/Normalmage.js +25 -22
  109. package/libs/floorplan/Components/RoomHighlight/Room.js +28 -25
  110. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +69 -61
  111. package/libs/floorplan/Components/RoomLabels/RoomLabel.js +104 -101
  112. package/libs/floorplan/Components/RoomLabels/RoomLabels.js +65 -57
  113. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +125 -118
  114. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +25 -22
  115. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +43 -40
  116. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +32 -29
  117. package/libs/floorplan/Components/RuleLabels/RuleItem.js +49 -41
  118. package/libs/floorplan/Components/RuleLabels/RuleLabels.js +102 -94
  119. package/libs/floorplan/Components/SvgImage.js +30 -27
  120. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +18 -6
  121. package/libs/floorplan/MapviewFloorplanPlugin/index.js +19 -7
  122. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +58 -46
  123. package/libs/floorplan/ModelFloorplanPlugin/index.js +19 -7
  124. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +77 -65
  125. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +95 -83
  126. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +70 -53
  127. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +112 -100
  128. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +40 -28
  129. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +16 -4
  130. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +30 -18
  131. package/libs/floorplan/TopviewFloorplanPlugin/index.js +19 -7
  132. package/libs/floorplan/index.js +1 -0
  133. package/libs/index.js +143 -129
  134. package/libs/shared-utils/logger.js +1 -1
  135. package/libs/vendor/svelte/src/runtime/internal/Component.js +122 -0
  136. package/libs/vendor/svelte/src/runtime/internal/ResizeObserverSingleton.js +1 -0
  137. package/libs/vendor/svelte/src/runtime/internal/animations.js +1 -0
  138. package/libs/vendor/svelte/src/runtime/internal/await_block.js +47 -0
  139. package/libs/vendor/svelte/src/runtime/internal/dev.js +1 -0
  140. package/libs/vendor/svelte/src/runtime/internal/disclose-version/index.js +2 -0
  141. package/libs/vendor/svelte/src/runtime/internal/dom.js +214 -0
  142. package/libs/vendor/svelte/src/runtime/internal/each.js +46 -0
  143. package/libs/vendor/svelte/src/runtime/internal/environment.js +7 -0
  144. package/libs/vendor/svelte/src/runtime/internal/globals.js +7 -0
  145. package/libs/vendor/svelte/src/runtime/internal/index.js +1 -0
  146. package/libs/vendor/svelte/src/runtime/internal/lifecycle.js +63 -0
  147. package/libs/vendor/svelte/src/runtime/internal/loop.js +21 -0
  148. package/libs/vendor/svelte/src/runtime/internal/scheduler.js +66 -0
  149. package/libs/vendor/svelte/src/runtime/internal/spread.js +26 -0
  150. package/libs/vendor/svelte/src/runtime/internal/ssr.js +1 -0
  151. package/libs/vendor/svelte/src/runtime/internal/style_manager.js +48 -0
  152. package/libs/vendor/svelte/src/runtime/internal/transitions.js +192 -0
  153. package/libs/vendor/svelte/src/runtime/internal/utils.js +110 -0
  154. package/libs/vendor/svelte/{store → src/runtime/store}/index.js +5 -5
  155. package/libs/vendor/svelte/{transition → src/runtime/transition}/index.js +1 -1
  156. package/libs/vendor/svelte/src/shared/boolean_attributes.js +1 -0
  157. package/libs/vendor/svelte/src/shared/utils/names.js +1 -0
  158. package/libs/vendor/svelte/src/shared/version.js +4 -0
  159. package/libs/vendor/svelte-carousel/src/components/Arrow/Arrow.js +29 -25
  160. package/libs/vendor/svelte-carousel/src/components/Carousel/Carousel.js +197 -225
  161. package/libs/vendor/svelte-carousel/src/components/Dot/Dot.js +16 -12
  162. package/libs/vendor/svelte-carousel/src/components/Dots/Dots.js +65 -59
  163. package/libs/vendor/svelte-carousel/src/components/Progress/Progress.js +32 -29
  164. package/package.json +5 -6
  165. package/libs/vendor/svelte/internal/index.js +0 -749
  166. /package/libs/vendor/svelte/{easing → src/runtime/easing}/index.js +0 -0
  167. /package/libs/vendor/svelte/{index.js → src/runtime/index.js} +0 -0
@@ -1,12 +1,12 @@
1
1
  var A = Object.defineProperty;
2
2
  var R = Object.getOwnPropertySymbols;
3
- var k = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
3
+ var k = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
4
4
  var C = (d, m, t) => m in d ? A(d, m, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[m] = t, j = (d, m) => {
5
5
  for (var t in m || (m = {}))
6
6
  k.call(m, t) && C(d, t, m[t]);
7
7
  if (R)
8
8
  for (var t of R(m))
9
- E.call(m, t) && C(d, t, m[t]);
9
+ I.call(m, t) && C(d, t, m[t]);
10
10
  return d;
11
11
  };
12
12
  var u = (d, m, t) => (C(d, typeof m != "symbol" ? m + "" : m, t), t);
@@ -26,9 +26,9 @@ var S = (d, m, t) => new Promise((e, o) => {
26
26
  }, a = (s) => s.done ? e(s.value) : Promise.resolve(s.value).then(i, r);
27
27
  a((t = t.apply(d, m)).next());
28
28
  });
29
- import { TagComputer as I } from "./TagComputer.js";
30
- import { Group as y, Quaternion as V, Vector3 as b, Matrix4 as v } from "three";
31
- import O from "../Components/TagContainer.js";
29
+ import { TagComputer as V } from "./TagComputer.js";
30
+ import { Group as y, Quaternion as O, Vector3 as b, Matrix4 as v } from "three";
31
+ import E from "../Components/TagContainer.js";
32
32
  import x from "../Components/Tag/index.js";
33
33
  import { CSS3DRenderPlugin as G } from "../../CSS3DRenderPlugin/index.js";
34
34
  import { loadGLTF as F } from "../../shared-utils/three/GLTFLoader.js";
@@ -67,8 +67,8 @@ import "../utils/normalPositionToPositions.js";
67
67
  import "./TagCache.js";
68
68
  import "../../base/BasePlugin.js";
69
69
  import "../../shared-utils/url/absoluteUrl.js";
70
- import "../../vendor/svelte/store/index.js";
71
- import "../../vendor/svelte/internal/index.js";
70
+ import "../../vendor/svelte/src/runtime/store/index.js";
71
+ import "../../vendor/svelte/src/runtime/internal/utils.js";
72
72
  import "../../shared-utils/device.js";
73
73
  import "../../shared-utils/five/FiveDomEvents.js";
74
74
  import "../../shared-utils/five/calculateThreeMouse.js";
@@ -88,13 +88,25 @@ import "../Assets/Icon.js";
88
88
  import "../../shared-utils/three/getPositionsByObjectFit.js";
89
89
  import "../../shared-utils/three/FragmentTransparencyMaterial.js";
90
90
  import "../../shared-utils/three/getNormal.js";
91
+ import "../../vendor/svelte/src/runtime/internal/dom.js";
92
+ import "../../vendor/svelte/src/runtime/internal/transitions.js";
93
+ import "../../vendor/svelte/src/runtime/internal/environment.js";
94
+ import "../../vendor/svelte/src/runtime/internal/loop.js";
95
+ import "../../vendor/svelte/src/runtime/internal/style_manager.js";
96
+ import "../../vendor/svelte/src/runtime/internal/scheduler.js";
97
+ import "../../vendor/svelte/src/runtime/internal/lifecycle.js";
98
+ import "../../vendor/svelte/src/runtime/internal/each.js";
99
+ import "../../vendor/svelte/src/runtime/internal/Component.js";
100
+ import "../../vendor/svelte/src/runtime/internal/disclose-version/index.js";
101
+ import "../../vendor/svelte/src/shared/version.js";
91
102
  import "../Components/TagItem.js";
92
103
  import "../utils/noTypecheck.js";
93
104
  import "../Components/Common/TagPoint.js";
94
105
  import "../Components/Common/Shadow.js";
95
- import "../../vendor/svelte/transition/index.js";
96
- import "../../vendor/svelte/easing/index.js";
106
+ import "../../vendor/svelte/src/runtime/transition/index.js";
107
+ import "../../vendor/svelte/src/runtime/easing/index.js";
97
108
  import "../Components/Common/Icon/Icon.js";
109
+ import "../../vendor/svelte/src/runtime/internal/await_block.js";
98
110
  import "../utils/getImageInfo.js";
99
111
  import "../utils/px2rem.js";
100
112
  import "../../vendor/classnames/index.js";
@@ -115,6 +127,7 @@ import "../Components/Common/Text/MText.js";
115
127
  import "../Components/Tag/ImageTextTag.js";
116
128
  import "../Components/Common/Line/Polyline.js";
117
129
  import "../Components/Common/Media.js";
130
+ import "../../vendor/svelte/src/runtime/internal/spread.js";
118
131
  import "../../vendor/svelte-carousel/src/components/Carousel/Carousel.js";
119
132
  import "../../vendor/svelte-carousel/src/components/Dots/Dots.js";
120
133
  import "../../vendor/svelte-carousel/src/components/Dot/Dot.js";
@@ -162,7 +175,7 @@ import "../../CSS3DRenderPlugin/Controller.js";
162
175
  import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
163
176
  import "@realsee/five/gltf-loader";
164
177
  const q = /* @__PURE__ */ new Map(), $ = /* @__PURE__ */ new Map();
165
- class Ti extends I {
178
+ class ki extends V {
166
179
  constructor(t) {
167
180
  super(t);
168
181
  u(this, "rendererMap", /* @__PURE__ */ new Map());
@@ -184,7 +197,7 @@ class Ti extends I {
184
197
  return;
185
198
  t.loading = !0;
186
199
  const o = F(e).then((s) => {
187
- var p;
200
+ var l;
188
201
  const n = Object.assign(s.scene, {
189
202
  customID: t.id,
190
203
  isTagModel: !0,
@@ -193,7 +206,7 @@ class Ti extends I {
193
206
  this.hooks.emit("click", { target: "TagModel", tag: t, event: h });
194
207
  })
195
208
  });
196
- return n.visible = this.getCurrentVisibleState(t), new v().fromArray(t.matrix).decompose(n.position, n.quaternion, n.scale), n.updateWorldMatrix(!0, !0), n.visible = this.getVisible(t), (p = this.getTagConfig(t).modelConfig) != null && p.autoLookAtEnabled && n.lookAt(this.five.camera.position.clone().setY(n.position.y)), n;
209
+ return n.visible = this.getCurrentVisibleState(t), new v().fromArray(t.matrix).decompose(n.position, n.quaternion, n.scale), n.updateWorldMatrix(!0, !0), n.visible = this.getVisible(t), (l = this.getTagConfig(t).modelConfig) != null && l.autoLookAtEnabled && n.lookAt(this.five.camera.position.clone().setY(n.position.y)), n;
197
210
  });
198
211
  t.model = { promise: o };
199
212
  const i = yield o;
@@ -249,7 +262,7 @@ class Ti extends I {
249
262
  var o, i;
250
263
  return ((i = (o = e.data.mediaData) == null ? void 0 : o[0]) == null ? void 0 : i.type) === "Video";
251
264
  }).forEach((e) => {
252
- var l;
265
+ var p;
253
266
  const o = e.data.mediaData[0];
254
267
  if (!o)
255
268
  return;
@@ -258,10 +271,10 @@ class Ti extends I {
258
271
  return;
259
272
  const r = this.getCurrentVisibleState(e), a = (() => !!(e.mediaPlane && !r))(), s = (() => !!(!e.mediaPlane && r))(), n = (() => !!(e.mediaPlane && e.mediaPlane.src !== i))();
260
273
  if ((a || n) && e.mediaPlane && (this.imagePlaneGroup.remove(e.mediaPlane), e.mediaPlane.dispose(), e.mediaPlane.removeFromParent(), e.mediaPlane = void 0), s || n) {
261
- const p = e.position.map(g), h = new L(i, p, {
274
+ const l = e.position.map(g), h = new L(i, l, {
262
275
  videoCoverSrc: o.videoCoverUrl,
263
276
  playButton: e.data.playIcon,
264
- paused: !((l = e.data.autoplayConfig) != null && l.autoplayVideo),
277
+ paused: !((p = e.data.autoplayConfig) != null && p.autoplayVideo),
265
278
  objectFit: e.data.objectFit,
266
279
  videoTextureMap: q,
267
280
  ImageTextureMap: $,
@@ -290,8 +303,8 @@ class Ti extends I {
290
303
  (a || n) && e.mediaPlane && (this.imagePlaneGroup.remove(e.mediaPlane), e.mediaPlane.dispose(), e.mediaPlane.removeFromParent(), e.mediaPlane = void 0), (s || n) && (e.mediaPlane = new w(o, i, { objectFit: e.data.objectFit }), this.getTagConfig(e).clickable !== !1 && this.domEvents.addAutoBindEventListener(
291
304
  e.mediaPlane,
292
305
  "click",
293
- (l) => {
294
- this.hooks.emit("click", { tag: e, target: "TagContent", event: l.origDomEvent });
306
+ (p) => {
307
+ this.hooks.emit("click", { tag: e, target: "TagContent", event: p.origDomEvent });
295
308
  },
296
309
  { noEmitWhenHide: !0 }
297
310
  ), this.imagePlaneGroup.add(e.mediaPlane));
@@ -304,10 +317,10 @@ class Ti extends I {
304
317
  this.filterCSS3DTag.forEach((e) => {
305
318
  var o, i, r;
306
319
  if (e.tag3DContentSvelte) {
307
- const { svelteApp: a, css3DInstance: s, initialNormal: n, currentNormal: l } = e.tag3DContentSvelte;
308
- if (a.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !n.equals(l)) {
309
- const p = new V().setFromUnitVectors(n, l);
310
- s.css3DObject.setRotationFromQuaternion(p);
320
+ const { svelteApp: a, css3DInstance: s, initialNormal: n, currentNormal: p } = e.tag3DContentSvelte;
321
+ if (a.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !n.equals(p)) {
322
+ const l = new O().setFromUnitVectors(n, p);
323
+ s.css3DObject.setRotationFromQuaternion(l);
311
324
  }
312
325
  return;
313
326
  } else {
@@ -321,26 +334,26 @@ class Ti extends I {
321
334
  const s = this.getTagNormal(e);
322
335
  if (!s)
323
336
  return;
324
- const n = this.getTagConfig(e), l = j({ wrapperStyle: { zIndex: this.calculateTagZIndex(e).toString() } }, n.tag3DConfig);
325
- if (this.getRenderType(e) === "BehindDom" || l.mode === "behind") {
326
- l.mode = "behind", l.container = document.createElement("div");
337
+ const n = this.getTagConfig(e), p = j({ wrapperStyle: { zIndex: this.calculateTagZIndex(e).toString() } }, n.tag3DConfig);
338
+ if (this.getRenderType(e) === "BehindDom" || p.mode === "behind") {
339
+ p.mode = "behind", p.container = document.createElement("div");
327
340
  const f = "black";
328
- l.container.style.backgroundColor = f, l.container.style.border = `3px solid ${f}`, this.css3DRenderPlugin.hooks.on("render", () => {
341
+ p.container.style.backgroundColor = f, p.container.style.border = `3px solid ${f}`, this.css3DRenderPlugin.hooks.on("render", () => {
329
342
  var c;
330
- if (p.css3DObject.opacityMesh && n.clickable !== !1) {
331
- const P = this.addObjectClickHandler(e, p.css3DObject.opacityMesh, (T) => {
343
+ if (l.css3DObject.opacityMesh && n.clickable !== !1) {
344
+ const P = this.addObjectClickHandler(e, l.css3DObject.opacityMesh, (T) => {
332
345
  this.hooks.emit("click", { event: T, target: "TagContent", tag: e });
333
346
  });
334
347
  (c = this.store.css3DRenderDisposer.get(e.id)) == null || c.push(P);
335
348
  }
336
349
  });
337
350
  }
338
- const p = this.css3DRenderPlugin.create3DDomContainer(a, l);
339
- if (!p)
351
+ const l = this.css3DRenderPlugin.create3DDomContainer(a, p);
352
+ if (!l)
340
353
  return;
341
- this.store.css3DRenderDisposer.set(e.id, [p.dispose]);
354
+ this.store.css3DRenderDisposer.set(e.id, [l.dispose]);
342
355
  const h = new x({
343
- target: p.container,
356
+ target: l.container,
344
357
  props: {
345
358
  tag: e,
346
359
  hooks: this.hooks,
@@ -352,12 +365,12 @@ class Ti extends I {
352
365
  });
353
366
  e.tag3DContentSvelte = {
354
367
  svelteApp: h,
355
- domContainer: p,
356
- css3DInstance: p,
368
+ domContainer: l,
369
+ css3DInstance: l,
357
370
  initialNormal: s,
358
371
  currentNormal: s,
359
372
  dispose: () => {
360
- h.$destroy(), p.dispose();
373
+ h.$destroy(), l.dispose();
361
374
  }
362
375
  }, D(e) && ((r = e.model) != null && r.object) && this.updateTagCss3DObjectMatrix(e, e.model.object);
363
376
  }
@@ -399,7 +412,7 @@ class Ti extends I {
399
412
  if (!r || r.length !== 4 || !Array.isArray(r[0]) || !Array.isArray(r[2]))
400
413
  return;
401
414
  e.updateWorldMatrix(!1, !1);
402
- const a = e.matrixWorld, s = new b().fromArray(r[0]), n = new b().fromArray(r[2]), l = W(s, n).add(new b(0, 0, 5e-4)), p = new v().setPosition(l), h = new v().makeScale(o, o, o), f = new v().multiply(a).multiply(p).multiply(h);
415
+ const a = e.matrixWorld, s = new b().fromArray(r[0]), n = new b().fromArray(r[2]), p = W(s, n).add(new b(0, 0, 5e-4)), l = new v().setPosition(p), h = new v().makeScale(o, o, o), f = new v().multiply(a).multiply(l).multiply(h);
403
416
  f.decompose(i.position, i.quaternion, i.scale);
404
417
  const c = i.opacityMesh;
405
418
  c && f.decompose(c.position, c.quaternion, c.scale);
@@ -476,16 +489,16 @@ class Ti extends I {
476
489
  }
477
490
  }
478
491
  updateDomView(t = {}) {
479
- var o, i;
480
- const e = this.filterPointTag.filter((r) => r.state.visible);
492
+ var o;
493
+ const e = this.filterPointTag.filter((i) => i.state.visible);
481
494
  if (this.TagContainerSvelte)
482
495
  this.TagContainerSvelte.$set({ tags: e, state: this.state, temporaryState: this.temporaryState });
483
496
  else {
484
- const r = (o = this.five.getElement()) == null ? void 0 : o.parentElement;
485
- if (!r)
497
+ const i = this.container;
498
+ if (!i)
486
499
  return console.error("updateRenderPlaneTag: tag2DContainer not found");
487
- this.TagContainerSvelte = new O({
488
- target: r,
500
+ this.TagContainerSvelte = new E({
501
+ target: i,
489
502
  props: {
490
503
  hooks: this.hooks,
491
504
  tags: e,
@@ -494,12 +507,12 @@ class Ti extends I {
494
507
  mediaStore: this.mediaStore,
495
508
  rendererMap: this.rendererMap,
496
509
  contentTypeMap: this.contentTypeMap,
497
- withAnimation: (i = t == null ? void 0 : t.withAnimation) != null ? i : this.store.visibleWithAnimation
510
+ withAnimation: (o = t == null ? void 0 : t.withAnimation) != null ? o : this.store.visibleWithAnimation
498
511
  }
499
512
  });
500
513
  }
501
514
  }
502
515
  }
503
516
  export {
504
- Ti as TagRender
517
+ ki as TagRender
505
518
  };
@@ -10,11 +10,13 @@ import { FiveDomEvents } from '../../shared-utils/five/FiveDomEvents';
10
10
  import { WorkUtil } from '../../shared-utils/Utils/WorkUtil';
11
11
  export declare abstract class TagUtil extends TagCache {
12
12
  tags: TagInstance[];
13
+ get container(): Element;
14
+ set container(container: Element);
13
15
  config: Pick<Tags, 'globalConfig' | 'contentTypeConfig'>;
14
16
  tagsLengthWillUpdate: boolean;
17
+ workUtil: WorkUtil;
15
18
  set workCode(workCode: string);
16
19
  get workCode(): string;
17
- workUtil: WorkUtil;
18
20
  protected mediaStore: MediaStore;
19
21
  /** css3DRenderPlugin */
20
22
  protected css3DRenderPlugin?: CSS3DRenderPluginExportType;
@@ -29,6 +31,7 @@ export declare abstract class TagUtil extends TagCache {
29
31
  disposed: boolean;
30
32
  };
31
33
  protected domEvents: FiveDomEvents;
34
+ private _container;
32
35
  protected constructor(five: Five);
33
36
  getTagById<C extends TagContentType = TagContentType, S extends StickType = StickType>(id: TagId): TagInstance<C, S> | undefined;
34
37
  /** 暂停当前标签内进行的所有多媒体 */
@@ -2,28 +2,28 @@ var q = Object.defineProperty, K = Object.defineProperties;
2
2
  var Q = Object.getOwnPropertyDescriptors;
3
3
  var V = Object.getOwnPropertySymbols;
4
4
  var Y = Object.prototype.hasOwnProperty, Z = Object.prototype.propertyIsEnumerable;
5
- var w = (l, s, e) => s in l ? q(l, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[s] = e, b = (l, s) => {
5
+ var w = (c, s, e) => s in c ? q(c, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[s] = e, b = (c, s) => {
6
6
  for (var e in s || (s = {}))
7
- Y.call(s, e) && w(l, e, s[e]);
7
+ Y.call(s, e) && w(c, e, s[e]);
8
8
  if (V)
9
9
  for (var e of V(s))
10
- Z.call(s, e) && w(l, e, s[e]);
11
- return l;
12
- }, R = (l, s) => K(l, Q(s));
13
- var u = (l, s, e) => (w(l, typeof s != "symbol" ? s + "" : s, e), e);
10
+ Z.call(s, e) && w(c, e, s[e]);
11
+ return c;
12
+ }, _ = (c, s) => K(c, Q(s));
13
+ var d = (c, s, e) => (w(c, typeof s != "symbol" ? s + "" : s, e), e);
14
14
  import { defaultGlobalConfig as ee } from "../typings/tag/TagConfig.js";
15
15
  import { objectAssignDeepExports as y } from "../../vendor/object-assign-deep/objectAssignDeep.js";
16
16
  import * as ie from "three";
17
17
  import { DefaultConfig as te } from "../tag.config.js";
18
18
  import { anyPositionToVector3 as C } from "../../shared-utils/positionToVector3.js";
19
19
  import { planeNormal as E } from "../utils/planeNormal.js";
20
- import { getTagCenterPosition as _ } from "../utils/tagPosition.js";
20
+ import { getTagCenterPosition as R } from "../utils/tagPosition.js";
21
21
  import { normalPositionToPositions as oe } from "../utils/normalPositionToPositions.js";
22
- import { TagCache as re } from "./TagCache.js";
23
- import { writable as ne } from "../../vendor/svelte/store/index.js";
22
+ import { TagCache as ne } from "./TagCache.js";
23
+ import { writable as re } from "../../vendor/svelte/src/runtime/store/index.js";
24
24
  import { isIOSWX as se } from "../../shared-utils/device.js";
25
25
  import { Five as fe } from "@realsee/five";
26
- import { isMediaPlaneTag as ae, isMediaModelTag as B, isPlaneTag as le, isPoint3DTag as ce } from "../utils/tag/tagCheck.js";
26
+ import { isMediaPlaneTag as ae, isMediaModelTag as B, isPlaneTag as ce, isPoint3DTag as le } from "../utils/tag/tagCheck.js";
27
27
  import { VideoPlane as de } from "../utils/model/mediaPlane.js";
28
28
  import { FiveDomEvents as ue } from "../../shared-utils/five/FiveDomEvents.js";
29
29
  import N from "../utils/tag/adaptConfig.js";
@@ -52,7 +52,7 @@ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
52
52
  import "../../shared-utils/three/getObjectVisible.js";
53
53
  import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
54
54
  import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
55
- import "../../vendor/svelte/internal/index.js";
55
+ import "../../vendor/svelte/src/runtime/internal/utils.js";
56
56
  import "../../shared-utils/three/loadTexture.js";
57
57
  import "../../shared-utils/three/Quadrangle.js";
58
58
  import "../../shared-utils/math/pointIsRectangle.js";
@@ -63,35 +63,36 @@ import "../../shared-utils/three/FragmentTransparencyMaterial.js";
63
63
  import "../../shared-utils/three/getNormal.js";
64
64
  import "../../shared-utils/five/calculateThreeMouse.js";
65
65
  import "../../shared-utils/Utils/BaseUtil.js";
66
- class ui extends re {
67
- // private _cache_pointTag?: PointTagInstance[]
68
- // private _cache_2DPointTag?: TagInstance<TagContentType, '2DPoint'>[]
69
- // private _cache_imagePlane?: TagInstance<'MediaPlane', 'Plane'>[]
70
- // private _cache_mediaModel?: TagInstance<'MediaModel', 'Model'>[]
71
- // private _cache_css3DTag?: (
72
- // | TagInstance<TagContentType, 'Plane'>
73
- // | TagInstance<TagContentType, 'Model'>
74
- // | TagInstance<TagContentType, '3DPoint'>
75
- // )[]
66
+ class ui extends ne {
76
67
  constructor(e) {
77
68
  super(e);
78
- u(this, "tags", []);
79
- u(this, "config", te);
80
- u(this, "tagsLengthWillUpdate", !0);
81
- u(this, "workUtil", new me(this.five));
82
- u(this, "mediaStore", ne({
69
+ d(this, "tags", []);
70
+ d(this, "config", te);
71
+ d(this, "tagsLengthWillUpdate", !0);
72
+ d(this, "workUtil", new me(this.five));
73
+ d(this, "mediaStore", re({
83
74
  currentMediaElement: null
84
75
  }));
85
76
  /** css3DRenderPlugin */
86
- u(this, "css3DRenderPlugin");
87
- u(this, "store", {
77
+ d(this, "css3DRenderPlugin");
78
+ d(this, "store", {
88
79
  disposers: [],
89
80
  disposed: !1,
90
81
  resizeObserverDisposerAdding: !1,
91
82
  css3DRenderDisposer: /* @__PURE__ */ new Map()
92
83
  });
93
- u(this, "domEvents", new ue(this.five));
94
- u(this, "loadVideoFirstFrame", () => {
84
+ d(this, "domEvents", new ue(this.five));
85
+ // private _cache_pointTag?: PointTagInstance[]
86
+ // private _cache_2DPointTag?: TagInstance<TagContentType, '2DPoint'>[]
87
+ // private _cache_imagePlane?: TagInstance<'MediaPlane', 'Plane'>[]
88
+ // private _cache_mediaModel?: TagInstance<'MediaModel', 'Model'>[]
89
+ // private _cache_css3DTag?: (
90
+ // | TagInstance<TagContentType, 'Plane'>
91
+ // | TagInstance<TagContentType, 'Model'>
92
+ // | TagInstance<TagContentType, '3DPoint'>
93
+ // )[]
94
+ d(this, "_container", null);
95
+ d(this, "loadVideoFirstFrame", () => {
95
96
  se && this.hooks.emit("loadVideoFirstFrame");
96
97
  });
97
98
  this.mediaStore.subscribe(({ currentMediaElement: i }) => {
@@ -105,6 +106,13 @@ class ui extends re {
105
106
  });
106
107
  });
107
108
  }
109
+ get container() {
110
+ var e;
111
+ return this._container || ((e = this.five.getElement()) == null ? void 0 : e.parentElement);
112
+ }
113
+ set container(e) {
114
+ this._container = e;
115
+ }
108
116
  set workCode(e) {
109
117
  this.workUtil.workCode = e;
110
118
  }
@@ -127,9 +135,9 @@ class ui extends re {
127
135
  * @description 获取标签配置
128
136
  */
129
137
  getTagConfig(e, i) {
130
- var n, f, c;
131
- const o = this.calculateTagConfig(e, { useCache: i == null ? void 0 : i.useCache }), t = (n = i == null ? void 0 : i.fiveMode) != null ? n : this.five.getCurrentState().mode, r = (f = o.configWithFiveMode) == null ? void 0 : f[t];
132
- return (c = r != null ? r : o) != null ? c : {};
138
+ var r, f, l;
139
+ const o = this.calculateTagConfig(e, { useCache: i == null ? void 0 : i.useCache }), t = (r = i == null ? void 0 : i.fiveMode) != null ? r : this.five.getCurrentState().mode, n = (f = o.configWithFiveMode) == null ? void 0 : f[t];
140
+ return (l = n != null ? n : o) != null ? l : {};
133
141
  }
134
142
  /**
135
143
  * @description 获取标签当前状态
@@ -144,8 +152,8 @@ class ui extends re {
144
152
  e.computedConfig = i;
145
153
  const o = this.getTagConfig(e);
146
154
  if (e.config = o, e.config.initialData) {
147
- const r = JSON.parse(JSON.stringify(e.data));
148
- e.data = (t = o.initialData) != null && t.important ? y(e.data, r, o.initialData) : y(e.data, o.initialData, r);
155
+ const n = JSON.parse(JSON.stringify(e.data));
156
+ e.data = (t = o.initialData) != null && t.important ? y(e.data, n, o.initialData) : y(e.data, o.initialData, n);
149
157
  }
150
158
  });
151
159
  }
@@ -200,16 +208,16 @@ class ui extends re {
200
208
  if (t.angle !== void 0)
201
209
  return t.angle;
202
210
  {
203
- const r = this.workUtil.getObserverPosition(o);
204
- if (r === void 0)
205
- throw new Error(`getAngle(): observerPosition is ${r}`);
206
- const n = (() => e.stickType === "3DPoint" ? C(e.normal) : E(e.position))();
207
- if (!n)
211
+ const n = this.workUtil.getObserverPosition(o);
212
+ if (n === void 0)
213
+ throw new Error(`getAngle(): observerPosition is ${n}`);
214
+ const r = (() => e.stickType === "3DPoint" ? C(e.normal) : E(e.position))();
215
+ if (!r)
208
216
  return;
209
- const f = _(e);
217
+ const f = R(e);
210
218
  if (!f)
211
219
  return;
212
- const c = new ie.Vector3().copy(r).sub(f), h = n.angleTo(c) * 180 / Math.PI;
220
+ const l = new ie.Vector3().copy(n).sub(f), h = r.angleTo(l) * 180 / Math.PI;
213
221
  return t.angle = h, t.angle;
214
222
  }
215
223
  }
@@ -217,42 +225,42 @@ class ui extends re {
217
225
  * @description 获取距离
218
226
  */
219
227
  getDistance(e, i) {
220
- const o = b(b({}, this.five.getCurrentState()), i), { panoIndex: t, mode: r } = o, n = A(r) ? this.getPanoIndexCache({ panoIndex: t, id: e.id }) : void 0;
221
- if ((n == null ? void 0 : n.distance) !== void 0)
222
- return n.distance;
223
- const f = _(e);
228
+ const o = b(b({}, this.five.getCurrentState()), i), { panoIndex: t, mode: n } = o, r = A(n) ? this.getPanoIndexCache({ panoIndex: t, id: e.id }) : void 0;
229
+ if ((r == null ? void 0 : r.distance) !== void 0)
230
+ return r.distance;
231
+ const f = R(e);
224
232
  if (!f)
225
233
  return -1;
226
- if (A(r)) {
227
- const c = this.workUtil.getObserverPosition(t);
228
- if (c === void 0)
234
+ if (A(n)) {
235
+ const l = this.workUtil.getObserverPosition(t);
236
+ if (l === void 0)
229
237
  return -1;
230
- const h = c.distanceTo(f);
231
- return n && (n.distance = h), h;
238
+ const h = l.distanceTo(f);
239
+ return r && (r.distance = h), h;
232
240
  }
233
- if ($(r))
241
+ if ($(n))
234
242
  return this.five.camera.position.distanceTo(f);
235
243
  }
236
244
  getPositions(e) {
237
- if (le(e))
245
+ if (ce(e))
238
246
  return e.position;
239
247
  if (B(e))
240
248
  return e.data.mediaPosition;
241
- if (ce(e))
249
+ if (le(e))
242
250
  return oe(this.five.camera.position, C(e.position), C(e.normal));
243
251
  }
244
252
  addObjectClickHandler(e, i, o) {
245
253
  if (!i || !this.domEvents)
246
254
  return () => {
247
255
  };
248
- const t = () => !(!this.getCurrentVisibleState(e) || e.loading), r = (n) => {
256
+ const t = () => !(!this.getCurrentVisibleState(e) || e.loading), n = (r) => {
249
257
  if (!t())
250
258
  return !1;
251
- o(n.origDomEvent);
259
+ o(r.origDomEvent);
252
260
  };
253
- return this.domEvents.addEventListener(i, "click", r), () => {
254
- var n;
255
- (n = this.domEvents) == null || n.removeEventListener(i, "click", r);
261
+ return this.domEvents.addEventListener(i, "click", n), () => {
262
+ var r;
263
+ (r = this.domEvents) == null || r.removeEventListener(i, "click", n);
256
264
  };
257
265
  }
258
266
  getTagNormal(e) {
@@ -312,10 +320,10 @@ class ui extends re {
312
320
  if ((I = e == null ? void 0 : e.config) != null && I._isMerged)
313
321
  return e.config;
314
322
  }
315
- const t = {}, r = {}, n = {};
316
- this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([d, m]) => {
323
+ const t = {}, n = {}, r = {};
324
+ this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([u, m]) => {
317
325
  var F, L;
318
- const a = d, D = a.split("-"), x = d.startsWith("["), T = x ? D[0].slice(1, -1) : void 0, g = x ? D.slice(1) : D, v = T ? ["PanoramaLike", "ModelLike"].includes(T) ? (F = r[T]) != null ? F : r[T] = {} : (L = n[T]) != null ? L : n[T] = {} : t;
326
+ const a = u, D = a.split("-"), x = u.startsWith("["), T = x ? D[0].slice(1, -1) : void 0, g = x ? D.slice(1) : D, v = T ? ["PanoramaLike", "ModelLike"].includes(T) ? (F = n[T]) != null ? F : n[T] = {} : (L = r[T]) != null ? L : r[T] = {} : t;
319
327
  if (!v[a]) {
320
328
  if (g.length === 0 && (v[a] = m), g.length === 1) {
321
329
  const [p] = g;
@@ -334,17 +342,17 @@ class ui extends re {
334
342
  }
335
343
  }
336
344
  });
337
- const f = (W = e.initialConfig) != null ? W : {}, c = y({}, ee, this.config.globalConfig, ...Object.values(t)), h = y({}, c, f), P = {}, G = Object.values(fe.Mode);
338
- z(r).forEach(([d, m]) => {
345
+ const f = (W = e.initialConfig) != null ? W : {}, l = y({}, ee, this.config.globalConfig, ...Object.values(t)), h = y({}, l, f), P = {}, G = Object.values(fe.Mode);
346
+ z(n).forEach(([u, m]) => {
339
347
  G.forEach((a) => {
340
- (d === "PanoramaLike" && A(a) || d === "ModelLike" && $(a)) && (P[a] = y({}, c, ...Object.values(m), f, { _isMerged: !0 }));
348
+ (u === "PanoramaLike" && A(a) || u === "ModelLike" && $(a)) && (P[a] = y({}, l, ...Object.values(m), f, { _isMerged: !0 }));
341
349
  });
342
- }), z(n).forEach(([d, m]) => {
343
- const a = P[d];
344
- P[d] = y({}, c, a, ...Object.values(m), f, { _isMerged: !0 });
350
+ }), z(r).forEach(([u, m]) => {
351
+ const a = P[u];
352
+ P[u] = y({}, l, a, ...Object.values(m), f, { _isMerged: !0 });
345
353
  });
346
- const k = R(b({}, h), { configWithFiveMode: P });
347
- return N(k), Object.values(P).forEach((d) => N(d)), k._isMerged = !0, k;
354
+ const k = _(b({}, h), { configWithFiveMode: P });
355
+ return N(k), Object.values(P).forEach((u) => N(u)), k._isMerged = !0, k;
348
356
  }
349
357
  }
350
358
  export {
@@ -21,6 +21,7 @@ declare class PanoTagPluginController extends TagRender {
21
21
  config?: Pick<Tags, 'contentTypeConfig' | 'globalConfig'>;
22
22
  debug?: boolean;
23
23
  });
24
+ appendTo(wrapper: Element): void;
24
25
  /**
25
26
  * @description 加载数据
26
27
  */