@realsee/dnalogel 3.43.0 → 3.44.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 (158) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/CSS3DRenderPlugin/utils/three/CSS3DObject.d.ts +4 -2
  3. package/dist/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +2 -1
  4. package/dist/CSS3DRenderPlugin/utils/three/CSS3DSprite.d.ts +4 -0
  5. package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +6 -1
  6. package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +1 -1
  7. package/dist/PanoMeasurePlugin/Controller/index.d.ts +2 -0
  8. package/dist/Sculpt/Meshes/Line.d.ts +19 -1
  9. package/dist/Sculpt/utils/color.d.ts +1 -1
  10. package/dist/index.cjs.js +102 -68
  11. package/dist/index.js +7374 -7116
  12. package/dist/index.umd.js +106 -72
  13. package/dist/shared-utils/five/getPosition.d.ts +12 -4
  14. package/dist/shared-utils/five/initialCSS3DRender.d.ts +2 -0
  15. package/dist/shared-utils/math/deg2Rad.d.ts +1 -1
  16. package/dist/shared-utils/math/rad2Deg.d.ts +1 -1
  17. package/dist/shared-utils/positionToVector3.d.ts +6 -6
  18. package/{libs/shared-utils/three/PointSelector.d.ts → dist/shared-utils/three/PointSelector/index.d.ts} +23 -7
  19. package/dist/shared-utils/three/{PointHelper.d.ts → PointSelector/utils/PointHelper.d.ts} +11 -3
  20. package/dist/shared-utils/three/PointSelector/utils/PointHelper2.d.ts +30 -0
  21. package/dist/shared-utils/three/{PointSelectorHelper.d.ts → PointSelector/utils/PointSelectorHelper.d.ts} +9 -10
  22. package/dist/shared-utils/three/PointSelector/utils/typing.d.ts +8 -0
  23. package/dist/shared-utils/three/index.d.ts +2 -3
  24. package/libs/AreaMakerPlugin/Controller.js +5 -18
  25. package/libs/AreaMakerPlugin/index.js +4 -17
  26. package/libs/AreaMakerPlugin/utils/Item.js +13 -26
  27. package/libs/CSS3DRenderPlugin/Controller.js +9 -6
  28. package/libs/CSS3DRenderPlugin/index.js +12 -9
  29. package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +6 -6
  30. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.d.ts +4 -2
  31. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +73 -56
  32. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +11 -4
  33. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +2 -1
  34. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +14 -14
  35. package/libs/CSS3DRenderPlugin/utils/three/CSS3DSprite.d.ts +4 -0
  36. package/libs/CSS3DRenderPlugin/utils/three/CSS3DSprite.js +13 -0
  37. package/libs/CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js +85 -0
  38. package/libs/CruisePlugin/BaseController.js +20 -33
  39. package/libs/CruisePlugin/Move.js +25 -23
  40. package/libs/CruisePlugin/Work.js +10 -8
  41. package/libs/CruisePlugin/index.js +23 -21
  42. package/libs/CurrentPanoImagePlugin/Controller.js +30 -43
  43. package/libs/CurrentPanoImagePlugin/index.js +5 -18
  44. package/libs/GuideLinePlugin/Controller.js +15 -13
  45. package/libs/GuideLinePlugin/GuideLineItem.js +19 -17
  46. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +4 -5
  47. package/libs/GuideLinePlugin/GuideLineModeItem.js +21 -19
  48. package/libs/GuideLinePlugin/index.js +23 -21
  49. package/libs/ModelMakerPlugin/Controller.js +19 -30
  50. package/libs/ModelMakerPlugin/index.js +11 -22
  51. package/libs/ModelTVVideoPlugin/Plugin.js +13 -10
  52. package/libs/ModelTVVideoPlugin/index.js +12 -9
  53. package/libs/Object3DHelperPlugin/Controller.js +7 -5
  54. package/libs/Object3DHelperPlugin/index.js +23 -21
  55. package/libs/PanoCompassPlugin/Controller.js +18 -15
  56. package/libs/PanoCompassPlugin/index.js +21 -18
  57. package/libs/PanoDoorLabelPlugin/BaseController.js +24 -37
  58. package/libs/PanoDoorLabelPlugin/Controller.js +56 -69
  59. package/libs/PanoDoorLabelPlugin/index.js +5 -18
  60. package/libs/PanoMeasurePlugin/Components/Controller0.js +40 -47
  61. package/libs/PanoMeasurePlugin/Components/Controller1.js +72 -79
  62. package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +6 -1
  63. package/libs/PanoMeasurePlugin/Controller/BaseController.js +53 -39
  64. package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +1 -1
  65. package/libs/PanoMeasurePlugin/Controller/EditController.js +177 -153
  66. package/libs/PanoMeasurePlugin/Controller/MixedController.js +1 -1
  67. package/libs/PanoMeasurePlugin/Controller/WatchController.js +60 -74
  68. package/libs/PanoMeasurePlugin/Controller/index.d.ts +2 -0
  69. package/libs/PanoMeasurePlugin/Controller/index.js +59 -60
  70. package/libs/PanoMeasurePlugin/Model/area.js +30 -44
  71. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +3 -16
  72. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +42 -49
  73. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +1 -1
  74. package/libs/PanoMeasurePlugin/index.js +35 -40
  75. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +23 -36
  76. package/libs/PanoSpatialTagPlugin/Plugin.js +41 -38
  77. package/libs/PanoSpatialTagPlugin/index.js +10 -7
  78. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +29 -43
  79. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +55 -69
  80. package/libs/PanoTagPlugin/Components/Tag/index.js +9 -19
  81. package/libs/PanoTagPlugin/Components/TagContainer.js +42 -52
  82. package/libs/PanoTagPlugin/Components/TagItem.js +9 -19
  83. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +23 -33
  84. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +29 -39
  85. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +11 -21
  86. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +18 -28
  87. package/libs/PanoTagPlugin/controller/TagRender.js +18 -16
  88. package/libs/PanoTagPlugin/controller/TagUtil.js +12 -9
  89. package/libs/PanoTagPlugin/controller/index.js +27 -25
  90. package/libs/PanoTagPlugin/index.js +28 -26
  91. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +43 -57
  92. package/libs/PanoVideoPlugin/Controller.js +52 -65
  93. package/libs/PanoVideoPlugin/VideoMeshController.js +11 -25
  94. package/libs/PanoVideoPlugin/index.js +8 -21
  95. package/libs/PipelinePlugin/Controller.js +44 -57
  96. package/libs/PipelinePlugin/index.js +5 -18
  97. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +20 -34
  98. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +16 -30
  99. package/libs/PipelinePlugin/utils/Objects/Pipe.js +39 -53
  100. package/libs/Sculpt/Meshes/Box.js +3 -3
  101. package/libs/Sculpt/Meshes/Cylinder.js +14 -14
  102. package/libs/Sculpt/Meshes/Line.d.ts +19 -1
  103. package/libs/Sculpt/Meshes/Line.js +40 -41
  104. package/libs/Sculpt/Meshes/LineWithDots.js +5 -6
  105. package/libs/Sculpt/Meshes/Point.js +3 -3
  106. package/libs/Sculpt/Meshes/Polyline.js +3 -3
  107. package/libs/Sculpt/Meshes/Prism.js +11 -12
  108. package/libs/Sculpt/Meshes/Rectangle.js +3 -3
  109. package/libs/Sculpt/Objects/Point/Editor.js +10 -10
  110. package/libs/Sculpt/Objects/Polygon/Editor.js +6 -6
  111. package/libs/Sculpt/Objects/Polyline/Editor.js +4 -4
  112. package/libs/Sculpt/index.js +3 -3
  113. package/libs/Sculpt/utils/Modules/Global.js +1 -1
  114. package/libs/Sculpt/utils/color.d.ts +1 -1
  115. package/libs/Sculpt/utils/three/ColoredMesh.js +3 -3
  116. package/libs/base/BasePlugin.js +4 -4
  117. package/libs/floorplan/Components/Compass.js +29 -31
  118. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +9 -22
  119. package/libs/floorplan/MapviewFloorplanPlugin/index.js +6 -19
  120. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +5 -18
  121. package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -18
  122. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +48 -61
  123. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -18
  124. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +28 -41
  125. package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -18
  126. package/libs/floorplan/index.js +3 -3
  127. package/libs/index.js +140 -137
  128. package/libs/shared-utils/five/getPosition.d.ts +12 -4
  129. package/libs/shared-utils/five/getPosition.js +23 -23
  130. package/libs/shared-utils/five/index.js +2 -2
  131. package/libs/shared-utils/five/initialCSS3DRender.d.ts +2 -0
  132. package/libs/shared-utils/five/initialCSS3DRender.js +17 -0
  133. package/libs/shared-utils/five/lookObject.js +3 -3
  134. package/libs/shared-utils/index.js +38 -40
  135. package/libs/shared-utils/logger.js +1 -1
  136. package/libs/shared-utils/math/deg2Rad.d.ts +1 -1
  137. package/libs/shared-utils/math/rad2Deg.d.ts +1 -1
  138. package/libs/shared-utils/positionToVector3.d.ts +6 -6
  139. package/{dist/shared-utils/three/PointSelector.d.ts → libs/shared-utils/three/PointSelector/index.d.ts} +23 -7
  140. package/libs/shared-utils/three/{PointSelector.js → PointSelector/index.js} +54 -45
  141. package/libs/shared-utils/three/{PointHelper.d.ts → PointSelector/utils/PointHelper.d.ts} +11 -3
  142. package/libs/shared-utils/three/PointSelector/utils/PointHelper.js +95 -0
  143. package/libs/shared-utils/three/PointSelector/utils/PointHelper2.d.ts +30 -0
  144. package/libs/shared-utils/three/PointSelector/utils/PointHelper2.js +153 -0
  145. package/libs/shared-utils/three/{PointSelectorHelper.d.ts → PointSelector/utils/PointSelectorHelper.d.ts} +9 -10
  146. package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +60 -0
  147. package/libs/{PanoMeasurePlugin/Modules/rangePiece → shared-utils/three/PointSelector/utils}/html.js +3 -4
  148. package/libs/shared-utils/three/PointSelector/utils/typing.d.ts +8 -0
  149. package/libs/shared-utils/three/index.d.ts +2 -3
  150. package/libs/shared-utils/three/index.js +3 -3
  151. package/package.json +3 -3
  152. package/dist/shared-utils/three/PointDomHelper.d.ts +0 -18
  153. package/libs/shared-utils/three/PointDomHelper.d.ts +0 -18
  154. package/libs/shared-utils/three/PointDomHelper.js +0 -62
  155. package/libs/shared-utils/three/PointHelper.js +0 -73
  156. package/libs/shared-utils/three/PointSelectorHelper.js +0 -52
  157. /package/dist/{PanoMeasurePlugin/Modules/rangePiece → shared-utils/three/PointSelector/utils}/html.d.ts +0 -0
  158. /package/libs/{PanoMeasurePlugin/Modules/rangePiece → shared-utils/three/PointSelector/utils}/html.d.ts +0 -0
@@ -59,24 +59,10 @@ import "../../vendor/svelte-carousel/src/utils/interval.js";
59
59
  import "./Common/MediaItem.js";
60
60
  import "./Tag/MarketingTag.js";
61
61
  import "hammerjs";
62
- import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
63
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
64
- import "../../shared-utils/positionToVector3.js";
65
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
66
62
  import "three/examples/jsm/renderers/CSS3DRenderer";
67
- import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
68
- import "../../shared-utils/util.js";
69
- import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
70
- import "../../CSS3DRenderPlugin/utils/even.js";
71
- import "../../shared-utils/Subscribe.js";
72
- import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
73
- import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
74
- import "../../shared-utils/three/centerPoint.js";
75
- import "../../shared-utils/three/getObjectVisible.js";
76
- import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
77
- import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
78
- import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
63
+ import "@realsee/five/line";
79
64
  import "../../shared-utils/three/THREESphere.js";
65
+ import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
80
66
  import "../utils/noTypecheck.js";
81
67
  import "./Tag/AudioTag/index.js";
82
68
  import "./Tag/AudioTag/AudioTag.js";
@@ -93,11 +79,13 @@ import "./Tag/PanoramaTag.js";
93
79
  import "./Tag/CustomTag.js";
94
80
  import "../../vendor/classnames/index.js";
95
81
  import "../controller/Tag/ModelTag.js";
82
+ import "../../shared-utils/positionToVector3.js";
96
83
  import "../../shared-utils/three/GLTFLoader.js";
97
84
  import "@realsee/five/gltf-loader";
98
85
  import "../utils/planeNormal.js";
99
86
  import "../utils/tag/tagCheck.js";
100
87
  import "../utils/model/mediaPlane.js";
88
+ import "../../shared-utils/three/centerPoint.js";
101
89
  import "../../shared-utils/three/loadTexture.js";
102
90
  import "../../shared-utils/three/Quadrangle.js";
103
91
  import "../../shared-utils/math/pointsIsRectangle.js";
@@ -107,6 +95,7 @@ import "../../shared-utils/three/getPositionsByObjectFit.js";
107
95
  import "../../shared-utils/three/FragmentTransparencyMaterial.js";
108
96
  import "../../shared-utils/three/getNormal.js";
109
97
  import "../controller/Tag/BaseTag.js";
98
+ import "../../shared-utils/Subscribe.js";
110
99
  import "../utils/tag/calculateTagConfig.js";
111
100
  import "../../vendor/object-assign-deep/objectAssignDeep.js";
112
101
  import "../../shared-utils/typescript/entries.js";
@@ -116,6 +105,7 @@ import "@realsee/five";
116
105
  import "../../shared-utils/five/mode.js";
117
106
  import "../utils/tag/format.js";
118
107
  import "../../shared-utils/three/blink.js";
108
+ import "../../shared-utils/util.js";
119
109
  import "../../shared-utils/vectorToCoordinate.js";
120
110
  import "../../shared-utils/formatRad.js";
121
111
  import "../../shared-utils/five/transformPosition.js";
@@ -140,21 +130,21 @@ function k(a, t, i) {
140
130
  return e[8] = t[i], e;
141
131
  }
142
132
  function b(a) {
143
- let t, i = [], e = /* @__PURE__ */ new Map(), m, r, n = (
133
+ let t, i = [], e = /* @__PURE__ */ new Map(), m, r, p = (
144
134
  /*tags*/
145
135
  a[0]
146
136
  );
147
- const f = (p) => (
137
+ const f = (n) => (
148
138
  /*tag*/
149
- p[8].id
139
+ n[8].id
150
140
  );
151
- for (let p = 0; p < n.length; p += 1) {
152
- let o = k(a, n, p), s = f(o);
153
- e.set(s, i[p] = y(s, o));
141
+ for (let n = 0; n < p.length; n += 1) {
142
+ let o = k(a, p, n), s = f(o);
143
+ e.set(s, i[n] = y(s, o));
154
144
  }
155
145
  return {
156
146
  c() {
157
- var p;
147
+ var n;
158
148
  t = C("div");
159
149
  for (let o = 0; o < i.length; o += 1)
160
150
  i[o].c();
@@ -164,46 +154,46 @@ function b(a) {
164
154
  t,
165
155
  "z-index",
166
156
  /*zIndex*/
167
- (p = a[6]) != null ? p : ""
157
+ (n = a[6]) != null ? n : ""
168
158
  );
169
159
  },
170
- m(p, o) {
171
- _(p, t, o);
160
+ m(n, o) {
161
+ _(n, t, o);
172
162
  for (let s = 0; s < i.length; s += 1)
173
163
  i[s] && i[s].m(t, null);
174
164
  r = !0;
175
165
  },
176
- p(p, o) {
166
+ p(n, o) {
177
167
  var s;
178
168
  o & /*state, temporaryState, tags, mediaStore, rendererMap, contentTypeMap*/
179
- 63 && (n = /*tags*/
180
- p[0], S(), i = j(i, o, f, 1, p, n, e, t, A, y, null, k), M()), (!r || o & /*state, temporaryState*/
169
+ 63 && (p = /*tags*/
170
+ n[0], S(), i = j(i, o, f, 1, n, p, e, t, A, y, null, k), M()), (!r || o & /*state, temporaryState*/
181
171
  48) && h(t, "hide", !/*state*/
182
- p[4].visible || !/*temporaryState*/
183
- p[5].visible), o & /*zIndex*/
172
+ n[4].visible || !/*temporaryState*/
173
+ n[5].visible), o & /*zIndex*/
184
174
  64 && g(
185
175
  t,
186
176
  "z-index",
187
177
  /*zIndex*/
188
- (s = p[6]) != null ? s : ""
178
+ (s = n[6]) != null ? s : ""
189
179
  );
190
180
  },
191
- i(p) {
181
+ i(n) {
192
182
  if (!r) {
193
- for (let o = 0; o < n.length; o += 1)
183
+ for (let o = 0; o < p.length; o += 1)
194
184
  c(i[o]);
195
185
  m || B(() => {
196
186
  m = D(t, J, {}), m.start();
197
187
  }), r = !0;
198
188
  }
199
189
  },
200
- o(p) {
190
+ o(n) {
201
191
  for (let o = 0; o < i.length; o += 1)
202
192
  u(i[o]);
203
193
  r = !1;
204
194
  },
205
- d(p) {
206
- p && d(t);
195
+ d(n) {
196
+ n && d(t);
207
197
  for (let o = 0; o < i.length; o += 1)
208
198
  i[o].d();
209
199
  }
@@ -244,23 +234,23 @@ function y(a, t) {
244
234
  c() {
245
235
  i = z(), E(e.$$.fragment), this.first = i;
246
236
  },
247
- m(r, n) {
248
- _(r, i, n), F(e, r, n), m = !0;
237
+ m(r, p) {
238
+ _(r, i, p), F(e, r, p), m = !0;
249
239
  },
250
- p(r, n) {
240
+ p(r, p) {
251
241
  t = r;
252
242
  const f = {};
253
- n & /*state*/
243
+ p & /*state*/
254
244
  16 && (f.state = /*state*/
255
- t[4]), n & /*temporaryState*/
245
+ t[4]), p & /*temporaryState*/
256
246
  32 && (f.temporaryState = /*temporaryState*/
257
- t[5]), n & /*tags*/
247
+ t[5]), p & /*tags*/
258
248
  1 && (f.tag = /*tag*/
259
- t[8]), n & /*mediaStore*/
249
+ t[8]), p & /*mediaStore*/
260
250
  2 && (f.mediaStore = /*mediaStore*/
261
- t[1]), n & /*rendererMap*/
251
+ t[1]), p & /*rendererMap*/
262
252
  4 && (f.rendererMap = /*rendererMap*/
263
- t[2]), n & /*contentTypeMap*/
253
+ t[2]), p & /*contentTypeMap*/
264
254
  8 && (f.contentTypeMap = /*contentTypeMap*/
265
255
  t[3]), e.$set(f);
266
256
  },
@@ -306,21 +296,21 @@ function L(a) {
306
296
  };
307
297
  }
308
298
  function O(a, t, i) {
309
- let { tags: e = [] } = t, { hooks: m } = t, { mediaStore: r } = t, { rendererMap: n } = t, { contentTypeMap: f } = t, { state: p } = t, { temporaryState: o } = t, { zIndex: s = void 0 } = t;
299
+ let { tags: e = [] } = t, { hooks: m } = t, { mediaStore: r } = t, { rendererMap: p } = t, { contentTypeMap: f } = t, { state: n } = t, { temporaryState: o } = t, { zIndex: s = void 0 } = t;
310
300
  return I("hooks", m), a.$$set = (l) => {
311
- "tags" in l && i(0, e = l.tags), "hooks" in l && i(7, m = l.hooks), "mediaStore" in l && i(1, r = l.mediaStore), "rendererMap" in l && i(2, n = l.rendererMap), "contentTypeMap" in l && i(3, f = l.contentTypeMap), "state" in l && i(4, p = l.state), "temporaryState" in l && i(5, o = l.temporaryState), "zIndex" in l && i(6, s = l.zIndex);
301
+ "tags" in l && i(0, e = l.tags), "hooks" in l && i(7, m = l.hooks), "mediaStore" in l && i(1, r = l.mediaStore), "rendererMap" in l && i(2, p = l.rendererMap), "contentTypeMap" in l && i(3, f = l.contentTypeMap), "state" in l && i(4, n = l.state), "temporaryState" in l && i(5, o = l.temporaryState), "zIndex" in l && i(6, s = l.zIndex);
312
302
  }, [
313
303
  e,
314
304
  r,
315
- n,
316
- f,
317
305
  p,
306
+ f,
307
+ n,
318
308
  o,
319
309
  s,
320
310
  m
321
311
  ];
322
312
  }
323
- class di extends v {
313
+ class mi extends v {
324
314
  constructor(t) {
325
315
  super(), w(
326
316
  this,
@@ -343,5 +333,5 @@ class di extends v {
343
333
  }
344
334
  }
345
335
  export {
346
- di as default
336
+ mi as default
347
337
  };
@@ -5,11 +5,11 @@ import { noTypecheck as V } from "../utils/noTypecheck.js";
5
5
  import tt from "./Common/TagPoint.js";
6
6
  import { isModelLike as et } from "../../shared-utils/five/mode.js";
7
7
  import "hammerjs";
8
- import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
9
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
10
- import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
8
+ import "three/examples/jsm/renderers/CSS3DRenderer";
9
+ import "@realsee/five/line";
11
10
  import "../../shared-utils/three/THREESphere.js";
12
11
  import "animejs";
12
+ import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
13
13
  import "./Tag/TextTag/index.js";
14
14
  import "./Tag/TextTag/TextTag.js";
15
15
  import "./Common/Line/Straight.js";
@@ -65,20 +65,6 @@ import "../../vendor/svelte-carousel/src/utils/ProgressManager.js";
65
65
  import "../../vendor/svelte-carousel/src/utils/interval.js";
66
66
  import "./Common/MediaItem.js";
67
67
  import "./Tag/MarketingTag.js";
68
- import "../../shared-utils/positionToVector3.js";
69
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
70
- import "three/examples/jsm/renderers/CSS3DRenderer";
71
- import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
72
- import "../../shared-utils/util.js";
73
- import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
74
- import "../../CSS3DRenderPlugin/utils/even.js";
75
- import "../../shared-utils/Subscribe.js";
76
- import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
77
- import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
78
- import "../../shared-utils/three/centerPoint.js";
79
- import "../../shared-utils/three/getObjectVisible.js";
80
- import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
81
- import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
82
68
  import "./Tag/AudioTag/index.js";
83
69
  import "./Tag/AudioTag/AudioTag.js";
84
70
  import "./Common/Audio.js";
@@ -94,11 +80,13 @@ import "./Tag/PanoramaTag.js";
94
80
  import "./Tag/CustomTag.js";
95
81
  import "../../vendor/classnames/index.js";
96
82
  import "../controller/Tag/ModelTag.js";
83
+ import "../../shared-utils/positionToVector3.js";
97
84
  import "../../shared-utils/three/GLTFLoader.js";
98
85
  import "@realsee/five/gltf-loader";
99
86
  import "../utils/planeNormal.js";
100
87
  import "../utils/tag/tagCheck.js";
101
88
  import "../utils/model/mediaPlane.js";
89
+ import "../../shared-utils/three/centerPoint.js";
102
90
  import "../../shared-utils/three/loadTexture.js";
103
91
  import "../../shared-utils/three/Quadrangle.js";
104
92
  import "../../shared-utils/math/pointsIsRectangle.js";
@@ -108,6 +96,7 @@ import "../../shared-utils/three/getPositionsByObjectFit.js";
108
96
  import "../../shared-utils/three/FragmentTransparencyMaterial.js";
109
97
  import "../../shared-utils/three/getNormal.js";
110
98
  import "../controller/Tag/BaseTag.js";
99
+ import "../../shared-utils/Subscribe.js";
111
100
  import "../utils/tag/calculateTagConfig.js";
112
101
  import "../../vendor/object-assign-deep/objectAssignDeep.js";
113
102
  import "../../shared-utils/typescript/entries.js";
@@ -116,6 +105,7 @@ import "../typings/tag/TagConfig.js";
116
105
  import "@realsee/five";
117
106
  import "../utils/tag/format.js";
118
107
  import "../../shared-utils/three/blink.js";
108
+ import "../../shared-utils/util.js";
119
109
  import "../../shared-utils/vectorToCoordinate.js";
120
110
  import "../../shared-utils/formatRad.js";
121
111
  import "../../shared-utils/five/transformPosition.js";
@@ -469,7 +459,7 @@ function at(o, t, i) {
469
459
  H
470
460
  ];
471
461
  }
472
- class Di extends J {
462
+ class Si extends J {
473
463
  constructor(t) {
474
464
  super(), K(
475
465
  this,
@@ -490,5 +480,5 @@ class Di extends J {
490
480
  }
491
481
  }
492
482
  export {
493
- Di as default
483
+ Si as default
494
484
  };
@@ -42,21 +42,21 @@ import { getTagStickType as Y } from "../../utils/tag/format.js";
42
42
  import { isPanoramaLike as w, isModelLike as T } from "../../../shared-utils/five/mode.js";
43
43
  import * as S from "three";
44
44
  import "hammerjs";
45
- import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
46
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
47
- import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
45
+ import "three/examples/jsm/renderers/CSS3DRenderer";
46
+ import { centerPoint as ee } from "../../../shared-utils/three/centerPoint.js";
47
+ import "@realsee/five/line";
48
+ import { anyPositionToVector3 as A } from "../../../shared-utils/positionToVector3.js";
48
49
  import "../../../shared-utils/three/THREESphere.js";
49
- import { blink as ee, reblink as ie } from "../../../shared-utils/three/blink.js";
50
- import { vectorToCoordinates as te } from "../../../shared-utils/vectorToCoordinate.js";
51
- import { transformPosition as A } from "../../../shared-utils/five/transformPosition.js";
52
- import { isNil as O, notNil as R } from "../../../shared-utils/isNil.js";
53
- import { lookPoint as ne } from "../../../shared-utils/five/lookPoint.js";
54
- import { uuid as se } from "../../../shared-utils/uuid.js";
50
+ import { blink as ie, reblink as te } from "../../../shared-utils/three/blink.js";
51
+ import { vectorToCoordinates as ne } from "../../../shared-utils/vectorToCoordinate.js";
52
+ import { transformPosition as O } from "../../../shared-utils/five/transformPosition.js";
53
+ import { isNil as R, notNil as E } from "../../../shared-utils/isNil.js";
54
+ import { lookPoint as se } from "../../../shared-utils/five/lookPoint.js";
55
+ import { uuid as oe } from "../../../shared-utils/uuid.js";
56
+ import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
55
57
  import { objectAssignDeepExports as b } from "../../../vendor/object-assign-deep/objectAssignDeep.js";
56
- import { anyPositionToVector3 as E } from "../../../shared-utils/positionToVector3.js";
57
58
  import { getTagPosition as L, getTagCenterPosition as $ } from "../../utils/tagPosition.js";
58
59
  import { checkRange as P } from "../../utils/checkRange.js";
59
- import { centerPoint as oe } from "../../../shared-utils/three/centerPoint.js";
60
60
  import { isMediaPlaneTag as re, isMediaModelTag as V } from "../../utils/tag/tagCheck.js";
61
61
  import { getUrlExt as N } from "../../../shared-utils/url/getUrl.js";
62
62
  import { getFloorIndex as le } from "../../../shared-utils/five/getFloorIndex.js";
@@ -69,16 +69,6 @@ import "../../utils/tag/adaptConfig.js";
69
69
  import "../../typings/tag/TagConfig.js";
70
70
  import "@realsee/five";
71
71
  import "animejs";
72
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
73
- import "three/examples/jsm/renderers/CSS3DRenderer";
74
- import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
75
- import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
76
- import "../../../CSS3DRenderPlugin/utils/even.js";
77
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
78
- import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
79
- import "../../../shared-utils/three/getObjectVisible.js";
80
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
81
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
82
72
  import "../../../shared-utils/formatRad.js";
83
73
  import "../../../shared-utils/Utils/FiveUtil.js";
84
74
  import "../../../shared-utils/Utils/BaseUtil.js";
@@ -86,7 +76,7 @@ import "../../../shared-utils/Utils/WorkUtil.js";
86
76
  import "../../../shared-utils/five/getFiveModel.js";
87
77
  const C = new S.Raycaster();
88
78
  C.params.Points.threshold = 0.1;
89
- class ri {
79
+ class _e {
90
80
  constructor(i, e) {
91
81
  f(this, "plugin");
92
82
  f(this, "id");
@@ -123,7 +113,7 @@ class ri {
123
113
  const r = JSON.parse(JSON.stringify(e.data)), n = (s = e.initialConfig) != null ? s : e.config ? JSON.parse(JSON.stringify(e.config)) : {};
124
114
  e.initialConfig = n;
125
115
  const l = U(e, i.config), o = this.getConfig(e);
126
- e.config = o, this.id = (a = e.id) != null ? a : se(), this.enabled = (c = e.enabled) != null ? c : !0, this.contentType = e.contentType, this.data = (g = o.initialData) != null && g.important ? b(e.data, r, o.initialData) : b(e.data, o.initialData, r), this.state = p({
116
+ e.config = o, this.id = (a = e.id) != null ? a : oe(), this.enabled = (c = e.enabled) != null ? c : !0, this.contentType = e.contentType, this.data = (g = o.initialData) != null && g.important ? b(e.data, r, o.initialData) : b(e.data, o.initialData, r), this.state = p({
127
117
  visible: void 0,
128
118
  unfolded: !this.can("fold")
129
119
  }, o.initialState), this.originPosition = e.position, e.originPosition = this.originPosition, this.position = (() => {
@@ -131,7 +121,7 @@ class ri {
131
121
  if (!d)
132
122
  return;
133
123
  const m = i.workUtil.transform;
134
- return Array.isArray(d) && d.length === 4 ? d.map(E).map((h) => A(h, m).toArray()) : A(E(d), m).toArray();
124
+ return Array.isArray(d) && d.length === 4 ? d.map(A).map((h) => O(h, m).toArray()) : O(A(d), m).toArray();
135
125
  })(), this.matrix = e.matrix ? (() => {
136
126
  const d = new S.Matrix4().fromArray(e.matrix);
137
127
  return d.premultiply(i.workUtil.transform), d.elements;
@@ -150,7 +140,7 @@ class ri {
150
140
  }
151
141
  get centerPosition() {
152
142
  const i = L(this);
153
- return oe(...Array.isArray(i) ? i : [i]);
143
+ return ee(...Array.isArray(i) ? i : [i]);
154
144
  }
155
145
  get currentConfig() {
156
146
  var r, n;
@@ -181,16 +171,16 @@ class ri {
181
171
  const t = (r = i == null ? void 0 : i.targetMode) != null ? r : this.five.state.mode;
182
172
  if (t === "Panorama") {
183
173
  const n = e == null ? void 0 : e.panoIndex;
184
- if (O(n))
174
+ if (R(n))
185
175
  return;
186
176
  const l = this.workUtil.getObserverPosition(n), o = this.centerPosition.clone().sub(l).normalize();
187
177
  this.five.setState(p({
188
178
  mode: "Panorama",
189
179
  workCode: this.workUtil.workCode,
190
180
  panoIndex: n
191
- }, te(o))), yield this.five.ready();
181
+ }, ne(o))), yield this.five.ready();
192
182
  } else
193
- t === "Mapview" && (yield ne(this.five, this.centerPosition, i == null ? void 0 : i.pointConfig));
183
+ t === "Mapview" && (yield se(this.five, this.centerPosition, i == null ? void 0 : i.pointConfig));
194
184
  });
195
185
  }
196
186
  /**
@@ -208,7 +198,7 @@ class ri {
208
198
  })();
209
199
  if (!n.length)
210
200
  return;
211
- yield (r ? ee : ie)(n, p({
201
+ yield (r ? ie : te)(n, p({
212
202
  begin: () => {
213
203
  r === !1 && (this.dom && (this.dom.style.visibility = ""), this.contentDom && (this.contentDom.style.visibility = ""));
214
204
  },
@@ -309,7 +299,7 @@ class ri {
309
299
  return !1;
310
300
  const e = p(p({}, this.five.getCurrentState()), i);
311
301
  let t = this.cache.getVisible(this, e);
312
- return O(t) && (t = this.computeVisible(e).value, this.cache.setVisible(this, e, t)), t;
302
+ return R(t) && (t = this.computeVisible(e).value, this.cache.setVisible(this, e, t)), t;
313
303
  }
314
304
  getUnfoldedByPanoIndex(i) {
315
305
  if (!this.currentVisible)
@@ -451,7 +441,7 @@ class ri {
451
441
  if ((() => {
452
442
  var l;
453
443
  const n = t();
454
- if (R((l = this.fiveState) == null ? void 0 : l.panoIndex) && i.entryFromModel) {
444
+ if (E((l = this.fiveState) == null ? void 0 : l.panoIndex) && i.entryFromModel) {
455
445
  if (T(e) && n ? this.entryFromModel = !1 : this.entryFromModel = !0, T(e))
456
446
  return !0;
457
447
  } else
@@ -491,7 +481,7 @@ class ri {
491
481
  const q = this.plugin.tags.filter(V).map((X) => {
492
482
  var F;
493
483
  return (F = X.model) == null ? void 0 : F.object;
494
- }).filter(R), [Q] = C.intersectObjects(q, !0);
484
+ }).filter(E), [Q] = C.intersectObjects(q, !0);
495
485
  return Q;
496
486
  })(), J = r.distanceTo(d), W = (a = e.distanceAccuracy) != null ? a : 0.01;
497
487
  h = Math.min(h != null ? h : 1 / 0, (c = k == null ? void 0 : k.distance) != null ? c : 1 / 0), h + W >= J ? l++ : o++;
@@ -622,5 +612,5 @@ class ri {
622
612
  }
623
613
  }
624
614
  export {
625
- ri as BaseTag
615
+ _e as BaseTag
626
616
  };
@@ -1,21 +1,21 @@
1
1
  var f = Object.defineProperty;
2
- var b = (m, r, i) => r in m ? f(m, r, { enumerable: !0, configurable: !0, writable: !0, value: i }) : m[r] = i;
3
- var l = (m, r, i) => (b(m, typeof r != "symbol" ? r + "" : r, i), i);
4
- var d = (m, r, i) => new Promise((s, o) => {
5
- var a = (t) => {
2
+ var b = (a, r, i) => r in a ? f(a, r, { enumerable: !0, configurable: !0, writable: !0, value: i }) : a[r] = i;
3
+ var l = (a, r, i) => (b(a, typeof r != "symbol" ? r + "" : r, i), i);
4
+ var d = (a, r, i) => new Promise((s, e) => {
5
+ var m = (t) => {
6
6
  try {
7
- e(i.next(t));
7
+ o(i.next(t));
8
8
  } catch (n) {
9
- o(n);
9
+ e(n);
10
10
  }
11
11
  }, p = (t) => {
12
12
  try {
13
- e(i.throw(t));
13
+ o(i.throw(t));
14
14
  } catch (n) {
15
- o(n);
15
+ e(n);
16
16
  }
17
- }, e = (t) => t.done ? s(t.value) : Promise.resolve(t.value).then(a, p);
18
- e((i = i.apply(m, r)).next());
17
+ }, o = (t) => t.done ? s(t.value) : Promise.resolve(t.value).then(m, p);
18
+ o((i = i.apply(a, r)).next());
19
19
  });
20
20
  import { arrayPositionToVector3 as h } from "../../../shared-utils/positionToVector3.js";
21
21
  import { loadGLTF as j } from "../../../shared-utils/three/GLTFLoader.js";
@@ -44,24 +44,14 @@ import "../../typings/tag/TagConfig.js";
44
44
  import "@realsee/five";
45
45
  import "../../../shared-utils/five/mode.js";
46
46
  import "hammerjs";
47
- import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
48
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
49
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
50
47
  import "three/examples/jsm/renderers/CSS3DRenderer";
51
- import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
52
- import "../../../shared-utils/util.js";
53
- import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
54
- import "../../../CSS3DRenderPlugin/utils/even.js";
55
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
56
- import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
57
- import "../../../shared-utils/three/getObjectVisible.js";
58
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
59
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
60
- import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
48
+ import "@realsee/five/line";
61
49
  import "../../../shared-utils/three/THREESphere.js";
62
50
  import "animejs";
51
+ import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
63
52
  import "../../utils/tag/format.js";
64
53
  import "../../../shared-utils/three/blink.js";
54
+ import "../../../shared-utils/util.js";
65
55
  import "../../../shared-utils/vectorToCoordinate.js";
66
56
  import "../../../shared-utils/formatRad.js";
67
57
  import "../../../shared-utils/five/transformPosition.js";
@@ -79,7 +69,7 @@ import "../../../shared-utils/five/getFloorIndex.js";
79
69
  import "../../../shared-utils/safeObj.js";
80
70
  import "../../utils/Cache.js";
81
71
  import "../../../CruisePlugin/utils/sleep.js";
82
- class Et extends D {
72
+ class Mt extends D {
83
73
  constructor(i, s) {
84
74
  super(i, s);
85
75
  l(this, "loading", !1);
@@ -90,47 +80,47 @@ class Et extends D {
90
80
  if (!i)
91
81
  return;
92
82
  this.loading = !0;
93
- const s = j(i).then((e) => d(this, null, function* () {
83
+ const s = j(i).then((o) => d(this, null, function* () {
94
84
  var c;
95
- const t = Object.assign(e.scene, {
85
+ const t = Object.assign(o.scene, {
96
86
  customID: this.id,
97
87
  isTagModel: !0,
98
88
  removeEventListener: this.getConfig().clickable === !1 ? () => {
99
- } : this.addObjectClickHandler(this, e.scene, (g) => {
89
+ } : this.addObjectClickHandler(this, o.scene, (g) => {
100
90
  this.plugin.hooks.emit("click", { target: "TagModel", tag: this, event: g });
101
91
  })
102
92
  });
103
93
  return t.visible = this.currentVisible, new u.Matrix4().fromArray(this.matrix).decompose(t.position, t.quaternion, t.scale), t.updateWorldMatrix(!0, !0), t.visible = yield this.getVisible(), (c = this.getConfig().modelConfig) != null && c.autoLookAtEnabled && t.lookAt(this.five.camera.position.clone().setY(t.position.y)), t;
104
94
  }));
105
95
  this.model = { promise: s };
106
- const o = yield s;
96
+ const e = yield s;
107
97
  if (this.loading = !1, ((p = this.model) == null ? void 0 : p.promise) !== s || !this.plugin.tags.includes(this))
108
98
  return;
109
- this.model.object = o;
110
- const a = this.plugin.gltfObjectGroup.children.find((e) => e.customID === this.id);
111
- if (a && (this.plugin.gltfObjectGroup.remove(a), a.removeEventListener()), this.plugin.updateRender3DDomTag(), T(this)) {
99
+ this.model.object = e;
100
+ const m = this.plugin.gltfObjectGroup.children.find((o) => o.customID === this.id);
101
+ if (m && (this.plugin.gltfObjectGroup.remove(m), m.removeEventListener()), this.plugin.updateRender3DDomTag(), T(this)) {
112
102
  if (this.computeRenderType() === "Mesh" && !this.mediaPlane) {
113
- const e = this.data.mediaPosition.map(h);
103
+ const o = this.data.mediaPosition.map(h);
114
104
  this.mediaPlane = new M(this.data.mediaData[0].url, this.data.mediaPosition.map(h), {
115
105
  objectFit: this.data.objectFit
116
106
  });
117
- const t = new u.Vector3().addVectors(e[0], e[2]).divideScalar(2);
118
- this.mediaPlane.position.copy(t), o.add(this.mediaPlane);
107
+ const t = new u.Vector3().addVectors(o[0], o[2]).divideScalar(2);
108
+ this.mediaPlane.position.copy(t), e.add(this.mediaPlane);
119
109
  }
120
- this.computeRenderType() !== "Mesh" && (o.updateTagCss3DObjectMatrix = () => this.plugin.updateTagCss3DObjectMatrix(this, o), o.updateTagCss3DObjectMatrix());
110
+ this.computeRenderType() !== "Mesh" && (e.updateTagCss3DObjectMatrix = () => this.plugin.updateTagCss3DObjectMatrix(this, e), e.updateTagCss3DObjectMatrix());
121
111
  }
122
- return this.plugin.gltfObjectGroup.add(o), o;
112
+ return this.plugin.gltfObjectGroup.add(e), e;
123
113
  }));
124
114
  this.state.unfolded = !0;
125
115
  }
126
116
  applyVisible() {
127
- var i, s, o;
128
- (i = this.model) != null && i.object && (this.model.object.visible = this.currentVisible), (s = this.tag3DContentSvelte) == null || s.svelteApp.$set({ tag: this, state: this.plugin.state }), (o = this.tag3DContentSvelte) == null || o.css3DInstance.setVisible(this.currentVisible);
117
+ var i, s, e;
118
+ (i = this.model) != null && i.object && (this.model.object.visible = this.currentVisible), (s = this.tag3DContentSvelte) == null || s.svelteApp.$set({ tag: this, state: this.plugin.state }), (e = this.tag3DContentSvelte) == null || e.css3DInstance.setVisible(this.currentVisible);
129
119
  }
130
120
  computeNormal() {
131
121
  return v(this.data.mediaPosition);
132
122
  }
133
123
  }
134
124
  export {
135
- Et as ModelTag
125
+ Mt as ModelTag
136
126
  };
@@ -22,24 +22,14 @@ import "../../typings/tag/TagConfig.js";
22
22
  import "@realsee/five";
23
23
  import "../../../shared-utils/five/mode.js";
24
24
  import "hammerjs";
25
- import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
26
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
27
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
28
25
  import "three/examples/jsm/renderers/CSS3DRenderer";
29
- import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
30
- import "../../../shared-utils/util.js";
31
- import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
32
- import "../../../CSS3DRenderPlugin/utils/even.js";
33
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
34
- import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
35
- import "../../../shared-utils/three/getObjectVisible.js";
36
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
37
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
38
- import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
26
+ import "@realsee/five/line";
39
27
  import "../../../shared-utils/three/THREESphere.js";
40
28
  import "animejs";
29
+ import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
41
30
  import "../../utils/tag/format.js";
42
31
  import "../../../shared-utils/three/blink.js";
32
+ import "../../../shared-utils/util.js";
43
33
  import "../../../shared-utils/vectorToCoordinate.js";
44
34
  import "../../../shared-utils/formatRad.js";
45
35
  import "../../../shared-utils/five/transformPosition.js";
@@ -59,13 +49,13 @@ import "../../../shared-utils/safeObj.js";
59
49
  import "../../utils/Cache.js";
60
50
  import "../../../CruisePlugin/utils/sleep.js";
61
51
  const P = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map();
62
- class Re extends f {
52
+ class fe extends f {
63
53
  constructor(t, e) {
64
54
  super(t, e), this.state.unfolded = !0;
65
55
  }
66
56
  applyVisible() {
67
- var e, r, o, n, a, i;
68
- this.computeRenderType() === "Mesh" ? ((r = (e = this.data.mediaData) == null ? void 0 : e[0]) == null ? void 0 : r.type) === "Video" ? this.renderVideoPlane() : ((n = (o = this.data.mediaData) == null ? void 0 : o[0]) == null ? void 0 : n.type) === "Image" && this.renderImagePlane() : ((a = this.tag3DContentSvelte) == null || a.svelteApp.$set({ tag: this, state: this.plugin.state }), (i = this.tag3DContentSvelte) == null || i.css3DInstance.setVisible(this.currentVisible));
57
+ var e, r, a, o, n, i;
58
+ this.computeRenderType() === "Mesh" ? ((r = (e = this.data.mediaData) == null ? void 0 : e[0]) == null ? void 0 : r.type) === "Video" ? this.renderVideoPlane() : ((o = (a = this.data.mediaData) == null ? void 0 : a[0]) == null ? void 0 : o.type) === "Image" && this.renderImagePlane() : ((n = this.tag3DContentSvelte) == null || n.svelteApp.$set({ tag: this, state: this.plugin.state }), (i = this.tag3DContentSvelte) == null || i.css3DInstance.setVisible(this.currentVisible));
69
59
  }
70
60
  renderVideoPlane() {
71
61
  var i;
@@ -75,8 +65,8 @@ class Re extends f {
75
65
  const { url: e } = t;
76
66
  if (!e)
77
67
  return;
78
- const r = this.currentVisible, o = (() => !!(this.mediaPlane && !r))(), n = (() => !!(!this.mediaPlane && r))(), a = (() => !!(this.mediaPlane && this.mediaPlane.src !== e))();
79
- if ((o || a) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0), n || a) {
68
+ const r = this.currentVisible, a = (() => !!(this.mediaPlane && !r))(), o = (() => !!(!this.mediaPlane && r))(), n = (() => !!(this.mediaPlane && this.mediaPlane.src !== e))();
69
+ if ((a || n) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0), o || n) {
80
70
  const p = this.position.map(d), s = new u(e, p, {
81
71
  videoCoverSrc: t.videoCoverUrl,
82
72
  playButton: this.data.playIcon,
@@ -101,8 +91,8 @@ class Re extends f {
101
91
  const { url: e } = t;
102
92
  if (!e)
103
93
  return;
104
- const r = this.position.map(d), o = this.currentVisible, n = (() => !!(this.mediaPlane && !o))(), a = (() => !!(!this.mediaPlane && o))(), i = (() => !!(this.mediaPlane && this.mediaPlane.src !== e))();
105
- (n || i) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0), (a || i) && (this.mediaPlane = new c(e, r, { objectFit: this.data.objectFit }), this.getConfig().clickable !== !1 && this.plugin.domEvents.addAutoBindEventListener(
94
+ const r = this.position.map(d), a = this.currentVisible, o = (() => !!(this.mediaPlane && !a))(), n = (() => !!(!this.mediaPlane && a))(), i = (() => !!(this.mediaPlane && this.mediaPlane.src !== e))();
95
+ (o || i) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0), (n || i) && (this.mediaPlane = new c(e, r, { objectFit: this.data.objectFit }), this.getConfig().clickable !== !1 && this.plugin.domEvents.addAutoBindEventListener(
106
96
  this.mediaPlane,
107
97
  "click",
108
98
  (p) => {
@@ -116,5 +106,5 @@ class Re extends f {
116
106
  }
117
107
  }
118
108
  export {
119
- Re as PlaneTag
109
+ fe as PlaneTag
120
110
  };