@realsee/dnalogel 3.42.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 +8 -1
  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 +7597 -7330
  12. package/dist/index.umd.js +103 -69
  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 +80 -93
  79. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +55 -69
  80. package/libs/PanoTagPlugin/Components/Tag/index.js +135 -145
  81. package/libs/PanoTagPlugin/Components/TagContainer.js +42 -52
  82. package/libs/PanoTagPlugin/Components/TagItem.js +74 -84
  83. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +87 -88
  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
@@ -1,26 +1,26 @@
1
- var Q = Object.defineProperty, X = Object.defineProperties;
2
- var Z = Object.getOwnPropertyDescriptors;
1
+ var Z = Object.defineProperty, _ = Object.defineProperties;
2
+ var G = Object.getOwnPropertyDescriptors;
3
3
  var y = Object.getOwnPropertySymbols;
4
- var F = Object.prototype.hasOwnProperty, D = Object.prototype.propertyIsEnumerable;
5
- var x = (c, i, e) => i in c ? Q(c, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[i] = e, p = (c, i) => {
4
+ var D = Object.prototype.hasOwnProperty, j = Object.prototype.propertyIsEnumerable;
5
+ var x = (u, i, e) => i in u ? Z(u, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : u[i] = e, p = (u, i) => {
6
6
  for (var e in i || (i = {}))
7
- F.call(i, e) && x(c, e, i[e]);
7
+ D.call(i, e) && x(u, e, i[e]);
8
8
  if (y)
9
9
  for (var e of y(i))
10
- D.call(i, e) && x(c, e, i[e]);
11
- return c;
12
- }, M = (c, i) => X(c, Z(i));
13
- var B = (c, i) => {
10
+ j.call(i, e) && x(u, e, i[e]);
11
+ return u;
12
+ }, M = (u, i) => _(u, G(i));
13
+ var B = (u, i) => {
14
14
  var e = {};
15
- for (var t in c)
16
- F.call(c, t) && i.indexOf(t) < 0 && (e[t] = c[t]);
17
- if (c != null && y)
18
- for (var t of y(c))
19
- i.indexOf(t) < 0 && D.call(c, t) && (e[t] = c[t]);
15
+ for (var t in u)
16
+ D.call(u, t) && i.indexOf(t) < 0 && (e[t] = u[t]);
17
+ if (u != null && y)
18
+ for (var t of y(u))
19
+ i.indexOf(t) < 0 && j.call(u, t) && (e[t] = u[t]);
20
20
  return e;
21
21
  };
22
- var f = (c, i, e) => (x(c, typeof i != "symbol" ? i + "" : i, e), e);
23
- var I = (c, i, e) => new Promise((t, r) => {
22
+ var f = (u, i, e) => (x(u, typeof i != "symbol" ? i + "" : i, e), e);
23
+ var I = (u, i, e) => new Promise((t, r) => {
24
24
  var n = (s) => {
25
25
  try {
26
26
  o(e.next(s));
@@ -34,33 +34,33 @@ var I = (c, i, e) => new Promise((t, r) => {
34
34
  r(a);
35
35
  }
36
36
  }, o = (s) => s.done ? t(s.value) : Promise.resolve(s.value).then(n, l);
37
- o((e = e.apply(c, i)).next());
37
+ o((e = e.apply(u, i)).next());
38
38
  });
39
- import { Subscribe as _ } from "../../../shared-utils/Subscribe.js";
39
+ import { Subscribe as K } from "../../../shared-utils/Subscribe.js";
40
40
  import { calculateTagConfig as U } from "../../utils/tag/calculateTagConfig.js";
41
- import { getTagStickType as G } from "../../utils/tag/format.js";
42
- import { isPanoramaLike as w, isModelLike as K } from "../../../shared-utils/five/mode.js";
43
- import * as V from "three";
41
+ import { getTagStickType as Y } from "../../utils/tag/format.js";
42
+ import { isPanoramaLike as w, isModelLike as T } from "../../../shared-utils/five/mode.js";
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 Y, reblink as ee } from "../../../shared-utils/three/blink.js";
50
- import { vectorToCoordinates as ie } from "../../../shared-utils/vectorToCoordinate.js";
51
- import { transformPosition as j } from "../../../shared-utils/five/transformPosition.js";
52
- import { isNil as A, notNil as te } 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 O } from "../../../shared-utils/positionToVector3.js";
57
- import { getTagPosition as R, getTagCenterPosition as E } from "../../utils/tagPosition.js";
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
- import { isMediaPlaneTag as re, isMediaModelTag as T } from "../../utils/tag/tagCheck.js";
61
- import { getUrlExt as L } from "../../../shared-utils/url/getUrl.js";
60
+ import { isMediaPlaneTag as re, isMediaModelTag as V } from "../../utils/tag/tagCheck.js";
61
+ import { getUrlExt as N } from "../../../shared-utils/url/getUrl.js";
62
62
  import { getFloorIndex as le } from "../../../shared-utils/five/getFloorIndex.js";
63
- import { safeObj as $ } from "../../../shared-utils/safeObj.js";
63
+ import { safeObj as z } from "../../../shared-utils/safeObj.js";
64
64
  import { toArray as ae } from "../../../shared-utils/util.js";
65
65
  import { Cache as fe } from "../../utils/Cache.js";
66
66
  import { sleep as de } from "../../../CruisePlugin/utils/sleep.js";
@@ -69,24 +69,14 @@ 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";
85
75
  import "../../../shared-utils/Utils/WorkUtil.js";
86
76
  import "../../../shared-utils/five/getFiveModel.js";
87
- const C = new V.Raycaster();
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");
@@ -116,14 +106,14 @@ class ri {
116
106
  f(this, "computedConfig");
117
107
  f(this, "cache");
118
108
  f(this, "entryFromModel");
119
- var s, a, u, g;
109
+ var s, a, c, g;
120
110
  this.plugin = i;
121
- const t = G(e);
111
+ const t = Y(e);
122
112
  e.stickType = t;
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 = (u = e.enabled) != null ? u : !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,11 +121,11 @@ 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(O).map((h) => j(h, m).toArray()) : j(O(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
- const d = new V.Matrix4().fromArray(e.matrix);
126
+ const d = new S.Matrix4().fromArray(e.matrix);
137
127
  return d.premultiply(i.workUtil.transform), d.elements;
138
- })() : e.matrix, this.initialConfig = n, this.computedConfig = l, this.stickType = t, this.config = e.config, this.fiveState = e.fiveState, this.normal = e.normal, this.cache = new fe(), this.hooks = new _(), Object.keys(e).forEach((d) => {
128
+ })() : e.matrix, this.initialConfig = n, this.computedConfig = l, this.stickType = t, this.config = e.config, this.fiveState = e.fiveState, this.normal = e.normal, this.cache = new fe(), this.hooks = new K(), Object.keys(e).forEach((d) => {
139
129
  this[d] === void 0 && e[d] !== void 0 && (this[d] = e[d]);
140
130
  });
141
131
  }
@@ -149,8 +139,8 @@ class ri {
149
139
  return this.plugin.workUtil;
150
140
  }
151
141
  get centerPosition() {
152
- const i = R(this);
153
- return oe(...Array.isArray(i) ? i : [i]);
142
+ const i = L(this);
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 (A(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
- }, ie(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
  /**
@@ -202,13 +192,13 @@ class ri {
202
192
  const e = (o = this.enabled) != null ? o : !0, t = (s = this.state) == null ? void 0 : s.visible, r = e && t;
203
193
  r === !1 && (this.state.visible = !0, this.enabled = !0, this.applyVisible(), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), this.plugin.render(), yield de(0), this.dom && (this.dom.style.visibility = "hidden"), this.contentDom && (this.contentDom.style.visibility = "hidden"));
204
194
  const n = (() => {
205
- var u;
195
+ var c;
206
196
  const a = [];
207
- return a.push(this.dom), this.stickType !== "2DPoint" && a.push(this.contentDom), a.push((u = this.model) == null ? void 0 : u.object), a.push(this.mediaPlane), a.filter(Boolean);
197
+ return a.push(this.dom), this.stickType !== "2DPoint" && a.push(this.contentDom), a.push((c = this.model) == null ? void 0 : c.object), a.push(this.mediaPlane), a.filter(Boolean);
208
198
  })();
209
199
  if (!n.length)
210
200
  return;
211
- yield (r ? Y : ee)(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 A(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)
@@ -354,10 +344,10 @@ class ri {
354
344
  if (t[0].type === "Video")
355
345
  return navigator.userAgent.toLowerCase().indexOf("firefox") > -1 && navigator.userAgent.toLowerCase().indexOf("mobile") > -1 ? "Dom" : "Mesh";
356
346
  if (t[0].type === "Image")
357
- return L(t[0].url) === "gif" ? "Dom" : "Mesh";
347
+ return N(t[0].url) === "gif" ? "Dom" : "Mesh";
358
348
  }
359
- } else if (T(this))
360
- return t.length === 1 && t[0].type === "Image" ? L(t[0].url) === "gif" ? "Dom" : "Mesh" : "BehindDom";
349
+ } else if (V(this))
350
+ return t.length === 1 && t[0].type === "Image" ? N(t[0].url) === "gif" ? "Dom" : "Mesh" : "BehindDom";
361
351
  }
362
352
  })();
363
353
  return i != null ? i : "Dom";
@@ -382,7 +372,7 @@ class ri {
382
372
  if ((m == null ? void 0 : m.value) === !1)
383
373
  return m;
384
374
  if (s.followModelVisibility === !0 && ["poincare", "aerophoto", "sand"].includes(this.workUtil.fromType) && (r === "Floorplan" || r === "Mapview")) {
385
- const u = this.computeVisibleByFloorIndex(), { value: h } = u, v = B(u, ["value"]);
375
+ const c = this.computeVisibleByFloorIndex(), { value: h } = c, v = B(c, ["value"]);
386
376
  if (h === !1)
387
377
  return p({ value: !1, checkedList: n, reason: "followModelVisibility check failed" }, v);
388
378
  }
@@ -440,7 +430,7 @@ class ri {
440
430
  if (n || (n = (o = (l = this.fiveState) == null ? void 0 : l.mode) != null ? o : this.workUtil.observers.length ? "Panorama" : "ModelLike"), Array.isArray(n))
441
431
  return n.includes(e);
442
432
  if (n === "ModelLike")
443
- return K(e);
433
+ return T(e);
444
434
  if (n === "PanoramaLike")
445
435
  return !w(e);
446
436
  if (n === "all")
@@ -448,7 +438,16 @@ class ri {
448
438
  if (typeof n == "string")
449
439
  return n === e;
450
440
  };
451
- if ((() => t())() === !1)
441
+ if ((() => {
442
+ var l;
443
+ const n = t();
444
+ if (E((l = this.fiveState) == null ? void 0 : l.panoIndex) && i.entryFromModel) {
445
+ if (T(e) && n ? this.entryFromModel = !1 : this.entryFromModel = !0, T(e))
446
+ return !0;
447
+ } else
448
+ this.entryFromModel = !1;
449
+ return n;
450
+ })() === !1)
452
451
  return {
453
452
  value: !1,
454
453
  reason: "current mode is not included in visibleFiveMode",
@@ -458,36 +457,36 @@ class ri {
458
457
  }
459
458
  /** 通过射线检测标签可用性 */
460
459
  computeVisibleByIntersect(i) {
461
- var s, a, u, g;
462
- const e = $($((s = this.getConfig().visibleConfig) != null ? s : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, r = w(this.five.getCurrentState().mode) ? this.workUtil.getObserverPosition(t) : this.five.camera.position;
460
+ var s, a, c, g;
461
+ const e = z(z((s = this.getConfig().visibleConfig) != null ? s : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, r = w(this.five.getCurrentState().mode) ? this.workUtil.getObserverPosition(t) : this.five.camera.position;
463
462
  if (r === void 0)
464
463
  return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: t } };
465
464
  const n = ae(
466
465
  (() => {
467
466
  var m;
468
467
  const d = (m = e.checkPoints) != null ? m : "center";
469
- return d === "center" ? E(this) : d === "corner" ? R(this) : Array.isArray(d) ? d : [];
468
+ return d === "center" ? $(this) : d === "corner" ? L(this) : Array.isArray(d) ? d : [];
470
469
  })()
471
470
  );
472
471
  let l = 0, o = 0;
473
472
  for (const d of n) {
474
- const m = new V.Vector3().subVectors(d, r).normalize();
473
+ const m = new S.Vector3().subVectors(d, r).normalize();
475
474
  let h;
476
475
  C.set(r, m);
477
476
  const [v] = this.fiveUtil.model.intersectRaycaster(C);
478
477
  h = v == null ? void 0 : v.distance;
479
478
  const k = (() => {
480
- if (!T(this))
479
+ if (!V(this))
481
480
  return;
482
- const W = this.plugin.tags.filter(T).map((q) => {
483
- var S;
484
- return (S = q.model) == null ? void 0 : S.object;
485
- }).filter(te), [H] = C.intersectObjects(W, !0);
486
- return H;
487
- })(), N = r.distanceTo(d), z = (a = e.distanceAccuracy) != null ? a : 0.01;
488
- h = Math.min(h != null ? h : 1 / 0, (u = k == null ? void 0 : k.distance) != null ? u : 1 / 0), h + z >= N ? l++ : o++;
489
- const J = (g = e.needPassed) != null ? g : 1;
490
- if (l >= J)
481
+ const q = this.plugin.tags.filter(V).map((X) => {
482
+ var F;
483
+ return (F = X.model) == null ? void 0 : F.object;
484
+ }).filter(E), [Q] = C.intersectObjects(q, !0);
485
+ return Q;
486
+ })(), J = r.distanceTo(d), W = (a = e.distanceAccuracy) != null ? a : 0.01;
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++;
488
+ const H = (g = e.needPassed) != null ? g : 1;
489
+ if (l >= H)
491
490
  return { value: !0 };
492
491
  }
493
492
  return o === 0 ? { value: !0 } : {
@@ -501,12 +500,12 @@ class ri {
501
500
  };
502
501
  }
503
502
  computeVisibleByFloorIndex() {
504
- var r, n, l, o, s, a, u;
503
+ var r, n, l, o, s, a, c;
505
504
  let i = 0;
506
505
  const e = (r = this.fiveState) == null ? void 0 : r.panoIndex;
507
506
  e !== void 0 ? i = (n = this.workUtil.getObserver(e)) == null ? void 0 : n.floorIndex : i = le(
508
507
  this.workUtil.work,
509
- (u = (a = (o = (l = this.model) == null ? void 0 : l.object) == null ? void 0 : o.position) != null ? a : (s = this.mediaPlane) == null ? void 0 : s.position) != null ? u : E(this)
508
+ (c = (a = (o = (l = this.model) == null ? void 0 : l.object) == null ? void 0 : o.position) != null ? a : (s = this.mediaPlane) == null ? void 0 : s.position) != null ? c : $(this)
510
509
  );
511
510
  const t = this.fiveUtil.model.shownFloor;
512
511
  return {
@@ -553,8 +552,8 @@ class ri {
553
552
  const s = this.computeTagProject();
554
553
  if (!s)
555
554
  return !1;
556
- const { x: a, y: u, z: g } = s;
557
- return !(Math.abs(g) > 1 || Math.abs(a) > 1 || Math.abs(u) > 1);
555
+ const { x: a, y: c, z: g } = s;
556
+ return !(Math.abs(g) > 1 || Math.abs(a) > 1 || Math.abs(c) > 1);
558
557
  }).map((o) => ({ tag: o, id: o.id, tagConfig: o.getConfig().unfoldedConfig })).filter(({ tagConfig: o }) => {
559
558
  var s, a;
560
559
  return !(typeof o == "function" || o.keep || o.autoUnfold === !1 || ((s = o.autoUnfold) == null ? void 0 : s.enable) === !1 || ((a = o.autoUnfold) == null ? void 0 : a.strategy) !== "MinimumDistance");
@@ -613,5 +612,5 @@ class ri {
613
612
  }
614
613
  }
615
614
  export {
616
- ri as BaseTag
615
+ _e as BaseTag
617
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
  };
@@ -1,8 +1,8 @@
1
- var h = Object.defineProperty;
2
- var f = (n, s, t) => s in n ? h(n, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[s] = t;
3
- var a = (n, s, t) => (f(n, typeof s != "symbol" ? s + "" : s, t), t);
1
+ var f = Object.defineProperty;
2
+ var m = (n, s, t) => s in n ? f(n, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[s] = t;
3
+ var a = (n, s, t) => (m(n, typeof s != "symbol" ? s + "" : s, t), t);
4
4
  import { BaseTag as g } from "./BaseTag.js";
5
- import * as u from "three";
5
+ import * as c from "three";
6
6
  import { cancelIdleCallback as b, requestIdleCallback as y } from "../../utils/requestIdleCallback.js";
7
7
  import "../../../shared-utils/Subscribe.js";
8
8
  import "../../utils/tag/calculateTagConfig.js";
@@ -13,26 +13,16 @@ import "../../typings/tag/TagConfig.js";
13
13
  import "@realsee/five";
14
14
  import "../../../shared-utils/five/mode.js";
15
15
  import "hammerjs";
16
- import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
17
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
18
- import "../../../shared-utils/positionToVector3.js";
19
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
20
16
  import "three/examples/jsm/renderers/CSS3DRenderer";
21
- import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
22
- import "../../../shared-utils/util.js";
23
- import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
24
- import "../../../CSS3DRenderPlugin/utils/even.js";
25
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
26
- import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
27
- import "../../../shared-utils/three/centerPoint.js";
28
- import "../../../shared-utils/three/getObjectVisible.js";
29
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
30
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
31
- import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
17
+ import "@realsee/five/line";
32
18
  import "../../../shared-utils/three/THREESphere.js";
33
19
  import "animejs";
20
+ import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
34
21
  import "../../utils/tag/format.js";
22
+ import "../../../shared-utils/three/centerPoint.js";
23
+ import "../../../shared-utils/positionToVector3.js";
35
24
  import "../../../shared-utils/three/blink.js";
25
+ import "../../../shared-utils/util.js";
36
26
  import "../../../shared-utils/vectorToCoordinate.js";
37
27
  import "../../../shared-utils/formatRad.js";
38
28
  import "../../../shared-utils/five/transformPosition.js";
@@ -51,8 +41,8 @@ import "../../../shared-utils/five/getFloorIndex.js";
51
41
  import "../../../shared-utils/safeObj.js";
52
42
  import "../../utils/Cache.js";
53
43
  import "../../../CruisePlugin/utils/sleep.js";
54
- const v = new u.Vector2();
55
- class gt extends g {
44
+ const v = new c.Vector2();
45
+ class rt extends g {
56
46
  constructor(t, e) {
57
47
  super(t, e);
58
48
  a(this, "__Object__");
@@ -118,12 +108,12 @@ class gt extends g {
118
108
  const d = (() => {
119
109
  if (!this.currentConfig.simulate3D)
120
110
  return 1;
121
- const c = 2 * Math.tan(0.5 * this.five.camera.fov / 180 * Math.PI), m = this.getDistance(void 0, 1);
122
- return Math.max(Math.min(1 - c * m / 40, 1), 0.5);
123
- })(), p = this.five.renderer.getSize(v);
111
+ const p = 2 * Math.tan(0.5 * this.five.camera.fov / 180 * Math.PI), h = this.getDistance(void 0, 1);
112
+ return Math.max(Math.min(1 - p * h / 40, 1), 0.5);
113
+ })(), u = this.five.renderer.getSize(v);
124
114
  this.screenPosition = {
125
- leftPx: (r.x + 1) / 2 * p.x,
126
- topPx: (-r.y + 1) / 2 * p.y,
115
+ leftPx: (r.x + 1) / 2 * u.x,
116
+ topPx: (-r.y + 1) / 2 * u.y,
127
117
  scale: d
128
118
  };
129
119
  } else
@@ -138,12 +128,12 @@ class gt extends g {
138
128
  }
139
129
  }
140
130
  computeNormal() {
141
- return new u.Vector3().fromArray(this.normal);
131
+ return new c.Vector3().fromArray(this.normal);
142
132
  }
143
133
  destroy() {
144
134
  this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
145
135
  }
146
136
  }
147
137
  export {
148
- gt as PointTag
138
+ rt as PointTag
149
139
  };