@realsee/dnalogel 3.50.13 → 3.50.15-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/README.md +116 -0
  3. package/dist/Sculpt/Objects/Base/index.d.ts +1 -1
  4. package/dist/Sculpt/index.d.ts +2 -2
  5. package/dist/index.cjs.js +264 -264
  6. package/dist/index.js +4111 -4089
  7. package/dist/index.umd.js +266 -266
  8. package/dist/shared-utils/equal.d.ts +1 -1
  9. package/dist/shared-utils/index.d.ts +2 -1
  10. package/dist/shared-utils/tag.d.ts +19 -8
  11. package/dist/shared-utils/three/index.d.ts +1 -0
  12. package/libs/AreaMakerPlugin/Controller.js +107 -77
  13. package/libs/AreaMakerPlugin/index.js +39 -9
  14. package/libs/AreaMakerPlugin/utils/Item.js +68 -38
  15. package/libs/CSS3DRenderPlugin/Controller.js +38 -18
  16. package/libs/CSS3DRenderPlugin/index.js +41 -21
  17. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +63 -38
  18. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +103 -83
  19. package/libs/CruisePlugin/BaseController.js +72 -42
  20. package/libs/CruisePlugin/Move.js +35 -16
  21. package/libs/CruisePlugin/Work.js +67 -48
  22. package/libs/CruisePlugin/index.js +45 -26
  23. package/libs/CurrentPanoImagePlugin/Controller.js +71 -41
  24. package/libs/CurrentPanoImagePlugin/index.js +40 -10
  25. package/libs/GuideLinePlugin/Controller.js +76 -57
  26. package/libs/GuideLinePlugin/GuideLineItem.js +40 -21
  27. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +4 -3
  28. package/libs/GuideLinePlugin/GuideLineModeItem.js +34 -15
  29. package/libs/GuideLinePlugin/index.js +45 -26
  30. package/libs/ModelMakerPlugin/Controller.js +53 -35
  31. package/libs/ModelMakerPlugin/index.js +40 -22
  32. package/libs/ModelTVVideoPlugin/Plugin.js +52 -32
  33. package/libs/ModelTVVideoPlugin/index.js +28 -8
  34. package/libs/Object3DHelperPlugin/Controller.js +55 -36
  35. package/libs/Object3DHelperPlugin/index.js +43 -24
  36. package/libs/PanoCompassPlugin/Controller.js +39 -19
  37. package/libs/PanoCompassPlugin/index.js +40 -20
  38. package/libs/PanoDoorLabelPlugin/BaseController.js +62 -32
  39. package/libs/PanoDoorLabelPlugin/Controller.js +105 -75
  40. package/libs/PanoDoorLabelPlugin/index.js +40 -10
  41. package/libs/PanoMeasurePlugin/Components/Controller0.js +9 -9
  42. package/libs/PanoMeasurePlugin/Components/Controller1.js +9 -9
  43. package/libs/PanoMeasurePlugin/Controller/EditController.js +5 -5
  44. package/libs/PanoMeasurePlugin/Controller/WatchController.js +79 -53
  45. package/libs/PanoMeasurePlugin/Controller/index.js +18 -18
  46. package/libs/PanoMeasurePlugin/Model/area.js +46 -20
  47. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +36 -7
  48. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +9 -9
  49. package/libs/PanoMeasurePlugin/index.js +4 -4
  50. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +46 -18
  51. package/libs/PanoRulerProPlugin/Controller.js +88 -39
  52. package/libs/PanoRulerProPlugin/RulerItems.js +151 -102
  53. package/libs/PanoRulerProPlugin/index.js +53 -4
  54. package/libs/PanoSpatialTagPlugin/Plugin.js +58 -38
  55. package/libs/PanoSpatialTagPlugin/index.js +26 -6
  56. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +82 -52
  57. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +238 -209
  58. package/libs/PanoTagPlugin/Components/Tag/index.js +155 -128
  59. package/libs/PanoTagPlugin/Components/TagContainer.js +103 -76
  60. package/libs/PanoTagPlugin/Components/TagItem.js +34 -7
  61. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +32 -5
  62. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +62 -35
  63. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +60 -33
  64. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +61 -34
  65. package/libs/PanoTagPlugin/controller/TagRender.js +53 -34
  66. package/libs/PanoTagPlugin/controller/TagUtil.js +37 -18
  67. package/libs/PanoTagPlugin/controller/index.js +48 -29
  68. package/libs/PanoTagPlugin/index.js +46 -27
  69. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +62 -32
  70. package/libs/PanoVideoPlugin/Controller.js +98 -68
  71. package/libs/PanoVideoPlugin/VideoMeshController.js +58 -28
  72. package/libs/PanoVideoPlugin/index.js +43 -13
  73. package/libs/PipelinePlugin/Controller.js +95 -66
  74. package/libs/PipelinePlugin/index.js +40 -11
  75. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +46 -16
  76. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +45 -15
  77. package/libs/PipelinePlugin/utils/Objects/Pipe.js +63 -33
  78. package/libs/Sculpt/Meshes/Box.js +4 -3
  79. package/libs/Sculpt/Meshes/Cylinder.js +4 -3
  80. package/libs/Sculpt/Meshes/Line.js +13 -12
  81. package/libs/Sculpt/Meshes/LineWithDots.js +9 -7
  82. package/libs/Sculpt/Meshes/Point.js +4 -3
  83. package/libs/Sculpt/Meshes/Polygon.js +3 -2
  84. package/libs/Sculpt/Meshes/Prism.js +12 -10
  85. package/libs/Sculpt/Meshes/Rectangle.js +4 -3
  86. package/libs/Sculpt/Objects/Base/index.d.ts +1 -1
  87. package/libs/Sculpt/Objects/Line/Editor.js +8 -7
  88. package/libs/Sculpt/index.d.ts +2 -2
  89. package/libs/Sculpt/index.js +4 -3
  90. package/libs/Sculpt/utils/three/ColoredMesh.js +7 -6
  91. package/libs/base/BasePlugin.js +5 -4
  92. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +91 -62
  93. package/libs/floorplan/MapviewFloorplanPlugin/index.js +40 -11
  94. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +82 -53
  95. package/libs/floorplan/ModelFloorplanPlugin/index.js +40 -11
  96. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +75 -45
  97. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +41 -11
  98. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +107 -78
  99. package/libs/floorplan/TopviewFloorplanPlugin/index.js +40 -11
  100. package/libs/floorplan/index.js +2 -1
  101. package/libs/index.js +34 -34
  102. package/libs/shared-utils/equal.d.ts +1 -1
  103. package/libs/shared-utils/five/index.js +4 -3
  104. package/libs/shared-utils/five/lookObject.js +4 -3
  105. package/libs/shared-utils/index.d.ts +2 -1
  106. package/libs/shared-utils/index.js +60 -55
  107. package/libs/shared-utils/logger.js +1 -1
  108. package/libs/shared-utils/tag.d.ts +19 -8
  109. package/libs/shared-utils/tag.js +68 -49
  110. package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +3 -2
  111. package/libs/shared-utils/three/index.d.ts +1 -0
  112. package/libs/shared-utils/three/index.js +2 -1
  113. package/package.json +1 -1
@@ -4,14 +4,63 @@ import "../vendor/svelte/internal/index.js";
4
4
  import "@realsee/five";
5
5
  import "../shared-utils/animationFrame/index.js";
6
6
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
7
+ import "../shared-utils/tag.js";
8
+ import "../shared-utils/positionToVector3.js";
9
+ import "three";
10
+ import "../shared-utils/five/vector3ToScreen.js";
11
+ import "../shared-utils/five/getFiveModel.js";
12
+ import "../shared-utils/Utils/FiveUtil.js";
13
+ import "../shared-utils/Utils/BaseUtil.js";
14
+ import "../shared-utils/Subscribe.js";
15
+ import "../shared-utils/Utils/WorkUtil.js";
16
+ import "../shared-utils/five/transformPosition.js";
17
+ import "../shared-utils/three/temp.js";
18
+ import "../shared-utils/dom/resizeObserver.js";
19
+ import "hammerjs";
20
+ import "../shared-utils/three/PointSelector/index.js";
21
+ import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
22
+ import "../shared-utils/three/Magnifier.js";
23
+ import "../shared-utils/three/PointSelector/utils/PointHelper.js";
24
+ import "../shared-utils/three/Assets/index.js";
25
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
26
+ import "three/examples/jsm/renderers/CSS3DRenderer";
27
+ import "../CSS3DRenderPlugin/utils/even.js";
28
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
29
+ import "../shared-utils/three/centerPoint.js";
30
+ import "../shared-utils/three/getObjectVisible.js";
31
+ import "@realsee/five/line";
32
+ import "../vendor/three/examples/jsm/lines/LineGeometry.js";
33
+ import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
34
+ import "../vendor/three/build/three.module.js";
35
+ import "../shared-utils/three/core/Sphere.js";
36
+ import "animejs";
37
+ import "../shared-utils/isNil.js";
38
+ import "../shared-utils/three/PointSelector/utils/html.js";
39
+ import "../shared-utils/five/initialCSS3DRender.js";
40
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
41
+ import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
42
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
43
+ import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
44
+ import "../Sculpt/Meshes/Line.js";
45
+ import "../Sculpt/typings/style.js";
46
+ import "../shared-utils/five/FiveLine.js";
47
+ import "../shared-utils/three/IObject3D.js";
48
+ import "../Sculpt/utils/removeAllTag.js";
49
+ import "../Sculpt/utils/Meshes/getLengthHTML.js";
50
+ import "../shared-utils/three/applyObjectMatrixWorld.js";
51
+ import "../shared-utils/util.js";
52
+ import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
53
+ import "../shared-utils/isTouchDevice.js";
54
+ import "../shared-utils/five/getPosition.js";
55
+ import "../shared-utils/five/getRaycasterByNdcPosition.js";
56
+ import "../shared-utils/three/PointSelector/utils/contents.js";
7
57
  import "../shared-utils/equal.js";
8
58
  import "../shared-utils/isTruelyObject.js";
9
59
  import "../shared-utils/math/planimetry.js";
10
60
  import "../shared-utils/throttle.js";
11
- import "three";
12
61
  import "./RulerItem.js";
13
- const d = (r, o) => new t(r, o);
62
+ const ar = (r, o) => new t(r, o);
14
63
  export {
15
- d as PanoRulerProPlugin,
16
- d as default
64
+ ar as PanoRulerProPlugin,
65
+ ar as default
17
66
  };
@@ -1,4 +1,4 @@
1
- import * as a from "three";
1
+ import * as p from "three";
2
2
  import { Subscribe as yo, Five as To } from "@realsee/five";
3
3
  import { CSS3DRenderPlugin as Mo } from "../CSS3DRenderPlugin/index.js";
4
4
  import Po from "./Components/origins.js";
@@ -18,11 +18,6 @@ import "three/examples/jsm/renderers/CSS3DRenderer";
18
18
  import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
19
19
  import "../shared-utils/three/centerPoint.js";
20
20
  import "../shared-utils/three/getObjectVisible.js";
21
- import "hammerjs";
22
- import "@realsee/five/line";
23
- import "../vendor/three/examples/jsm/lines/LineGeometry.js";
24
- import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
25
- import "../vendor/three/build/three.module.js";
26
21
  import "../shared-utils/tag.js";
27
22
  import "../shared-utils/five/vector3ToScreen.js";
28
23
  import "../shared-utils/five/getFiveModel.js";
@@ -32,13 +27,38 @@ import "../shared-utils/Utils/WorkUtil.js";
32
27
  import "../shared-utils/five/transformPosition.js";
33
28
  import "../shared-utils/three/temp.js";
34
29
  import "../shared-utils/dom/resizeObserver.js";
30
+ import "hammerjs";
31
+ import "../shared-utils/three/PointSelector/index.js";
32
+ import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
33
+ import "../shared-utils/three/Magnifier.js";
34
+ import "../shared-utils/three/PointSelector/utils/PointHelper.js";
35
+ import "../shared-utils/three/Assets/index.js";
36
+ import "../shared-utils/three/PointSelector/utils/html.js";
37
+ import "../shared-utils/five/initialCSS3DRender.js";
38
+ import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
39
+ import "../Sculpt/Meshes/Line.js";
40
+ import "../Sculpt/typings/style.js";
41
+ import "../shared-utils/five/FiveLine.js";
42
+ import "@realsee/five/line";
43
+ import "../vendor/three/examples/jsm/lines/LineGeometry.js";
44
+ import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
45
+ import "../vendor/three/build/three.module.js";
46
+ import "../shared-utils/three/IObject3D.js";
47
+ import "../Sculpt/utils/removeAllTag.js";
48
+ import "../Sculpt/utils/Meshes/getLengthHTML.js";
49
+ import "../shared-utils/three/applyObjectMatrixWorld.js";
50
+ import "../shared-utils/util.js";
35
51
  import "../shared-utils/three/core/Sphere.js";
36
52
  import "animejs";
37
53
  import "../shared-utils/isNil.js";
38
54
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
55
+ import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
56
+ import "../shared-utils/isTouchDevice.js";
57
+ import "../shared-utils/five/getPosition.js";
58
+ import "../shared-utils/five/getRaycasterByNdcPosition.js";
59
+ import "../shared-utils/three/PointSelector/utils/contents.js";
39
60
  import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
40
61
  import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
41
- import "../shared-utils/util.js";
42
62
  import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
43
63
  import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
44
64
  import "../shared-utils/url/absoluteUrl.js";
@@ -46,7 +66,7 @@ import "../shared-utils/five/fiveModelLoad.js";
46
66
  import "../vendor/svelte/internal/index.js";
47
67
  import "./store.js";
48
68
  import "../vendor/svelte/store/index.js";
49
- const D = 1e-3, v = 0.01, Io = "https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png", Te = (n, r) => {
69
+ const D = 1e-3, v = 0.01, Io = "https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png", Fe = (n, r) => {
50
70
  var k, z, q, B, G, J, K, Q;
51
71
  let j = r == null ? void 0 : r.container, y = 1.4;
52
72
  const oo = (k = r == null ? void 0 : r.wait) != null ? k : 200, eo = (z = r == null ? void 0 : r.maxNumberOnScreen) != null ? z : 3, I = (q = r == null ? void 0 : r.minRad) != null ? q : Math.PI / 4, L = (B = r == null ? void 0 : r.nearTolerance) != null ? B : 100, to = (G = r == null ? void 0 : r.upsideHeight) != null ? G : 1.6, A = (J = r == null ? void 0 : r.minDistance) != null ? J : 1.2, f = (K = r == null ? void 0 : r.maxDistance) != null ? K : 3.5, C = Mo(n), S = document.createElement("div");
@@ -74,9 +94,9 @@ const D = 1e-3, v = 0.01, Io = "https://vrlab-image4.ljcdn.com/release/web/PanoS
74
94
  }, H = (e, s) => {
75
95
  if (o.tags.length === 0)
76
96
  return;
77
- const p = s.longitude - n.state.longitude, t = n.camera.clone();
78
- t.position.copy(s.offset), t.rotateOnWorldAxis(new a.Vector3(0, 1, 0), p), t.updateProjectionMatrix(), t.updateMatrixWorld(!0);
79
- const g = new a.Frustum(), P = new a.Matrix4();
97
+ const a = s.longitude - n.state.longitude, t = n.camera.clone();
98
+ t.position.copy(s.offset), t.rotateOnWorldAxis(new p.Vector3(0, 1, 0), a), t.updateProjectionMatrix(), t.updateMatrixWorld(!0);
99
+ const g = new p.Frustum(), P = new p.Matrix4();
80
100
  P.multiplyMatrices(t.projectionMatrix, t.matrixWorldInverse), g.setFromProjectionMatrix(P), o.tags.forEach((i) => {
81
101
  const $ = t.position.clone().setY(y).distanceTo(i.position);
82
102
  if ($ < A || $ > f || !g.containsPoint(i.position))
@@ -106,15 +126,15 @@ const D = 1e-3, v = 0.01, Io = "https://vrlab-image4.ljcdn.com/release/web/PanoS
106
126
  }, T = () => {
107
127
  if (o.forbidden || !o.enabled)
108
128
  return;
109
- const e = n.camera, s = e.getWorldDirection(new a.Vector3());
110
- o.origins = o.tags.map((p) => {
111
- const t = p.position.clone().project(e), g = p.position.clone().sub(e.position).setY(0).angleTo(s.setY(0)) < Math.PI / 2;
129
+ const e = n.camera, s = e.getWorldDirection(new p.Vector3());
130
+ o.origins = o.tags.map((a) => {
131
+ const t = a.position.clone().project(e), g = a.position.clone().sub(e.position).setY(0).angleTo(s.setY(0)) < Math.PI / 2;
112
132
  return {
113
- id: p.id,
133
+ id: a.id,
114
134
  front: g,
115
135
  left: (t.x + 1) / 2 * 100,
116
136
  top: (-t.y + 1) / 2 * 100,
117
- destroying: p.destroying
137
+ destroying: a.destroying
118
138
  };
119
139
  }), Y.$set({ origins: o.origins });
120
140
  }, M = () => {
@@ -124,7 +144,7 @@ const D = 1e-3, v = 0.01, Io = "https://vrlab-image4.ljcdn.com/release/web/PanoS
124
144
  e.length && (o.tags = o.tags.concat(e), T());
125
145
  }, oo));
126
146
  }, no = () => {
127
- const { clientWidth: e, clientHeight: s } = n.getElement(), p = [], t = n.camera, g = new a.Frustum(), P = new a.Matrix4(), i = t.getWorldDirection(new a.Vector3());
147
+ const { clientWidth: e, clientHeight: s } = n.getElement(), a = [], t = n.camera, g = new p.Frustum(), P = new p.Matrix4(), i = t.getWorldDirection(new p.Vector3());
128
148
  P.multiplyMatrices(t.projectionMatrix, t.matrixWorldInverse), g.setFromProjectionMatrix(P);
129
149
  const $ = o.tags.filter((d) => g.containsPoint(d.position) && !d.destroying).length, x = o.points.reduce((d, m) => {
130
150
  if (o.tags.find((l) => m.id === l.id && !l.destroying))
@@ -165,31 +185,31 @@ const D = 1e-3, v = 0.01, Io = "https://vrlab-image4.ljcdn.com/release/web/PanoS
165
185
  }
166
186
  return c !== void 0 ? d.splice(c, 0, h) : d.push(h), d;
167
187
  }, []);
168
- for (let d = 0, m = x.length; d < m && !($ + p.length >= eo); d++) {
188
+ for (let d = 0, m = x.length; d < m && !($ + a.length >= eo); d++) {
169
189
  const u = x[d];
170
- if (p.find((c) => u.id === c.id))
190
+ if (a.find((c) => u.id === c.id))
171
191
  continue;
172
192
  const E = u.position.clone().project(t);
173
- if (!o.tags.concat(p).every((c) => {
193
+ if (!o.tags.concat(a).every((c) => {
174
194
  if (c.position.clone().sub(t.position).setY(0).angleTo(i.setY(0)) > Math.PI / 2)
175
195
  return !0;
176
196
  const l = c.position.clone().project(t);
177
197
  return Math.sqrt(Math.pow((E.x - l.x) / 2 * e, 2) + Math.pow((E.y - l.y) / 2 * s, 2)) > L;
178
198
  }))
179
199
  continue;
180
- const w = new a.Raycaster(
200
+ const w = new p.Raycaster(
181
201
  t.position.clone().setY(y),
182
202
  u.position.clone().sub(t.position.clone().setY(y)).normalize(),
183
203
  0,
184
204
  u.distance + v
185
205
  ), [h] = o.intersectObjects ? w.intersectObjects(o.intersectObjects, !0) : n.model.loaded ? n.model.intersectRaycaster(w) : w.intersectObjects(n.model.children, !0);
186
206
  if (h && u.distance - h.distance < v) {
187
- const { position: c, normal: l, id: b, replacement: O } = u, fo = new a.Plane().setFromNormalAndCoplanarPoint(l, c), X = c.clone().sub(t.position).cross(new a.Vector3(0, 1, 0)).setLength(D), uo = [
207
+ const { position: c, normal: l, id: b, replacement: O } = u, fo = new p.Plane().setFromNormalAndCoplanarPoint(l, c), X = c.clone().sub(t.position).cross(new p.Vector3(0, 1, 0)).setLength(D), uo = [
188
208
  c.clone(),
189
209
  c.clone().add(X),
190
- c.clone().add(new a.Vector3(0, D, 0)).add(X),
191
- c.clone().add(new a.Vector3(0, D, 0))
192
- ].map((wo) => fo.projectPoint(wo, new a.Vector3())), { container: go, dispose: ho } = C.create3DDomContainer(uo) || {}, bo = new xo({
210
+ c.clone().add(new p.Vector3(0, D, 0)).add(X),
211
+ c.clone().add(new p.Vector3(0, D, 0))
212
+ ].map((wo) => fo.projectPoint(wo, new p.Vector3())), { container: go, dispose: ho } = C.create3DDomContainer(uo) || {}, bo = new xo({
193
213
  target: go,
194
214
  props: {
195
215
  id: b,
@@ -204,7 +224,7 @@ const D = 1e-3, v = 0.01, Io = "https://vrlab-image4.ljcdn.com/release/web/PanoS
204
224
  dispose: ho
205
225
  }
206
226
  });
207
- p.push({
227
+ a.push({
208
228
  position: c,
209
229
  normal: l,
210
230
  id: b,
@@ -212,15 +232,15 @@ const D = 1e-3, v = 0.01, Io = "https://vrlab-image4.ljcdn.com/release/web/PanoS
212
232
  });
213
233
  }
214
234
  }
215
- return p;
235
+ return a;
216
236
  }, io = (e) => {
217
237
  o.points = e.points.map((s) => {
218
- var p, t;
238
+ var a, t;
219
239
  return {
220
240
  id: s.id,
221
- position: new a.Vector3().fromArray(s.position),
222
- normal: new a.Vector3().fromArray(s.normal),
223
- replacement: (p = s.replacement) != null ? p : {},
241
+ position: new p.Vector3().fromArray(s.position),
242
+ normal: new p.Vector3().fromArray(s.normal),
243
+ replacement: (a = s.replacement) != null ? a : {},
224
244
  weight: (t = s.weight) != null ? t : -1
225
245
  };
226
246
  }), e.render && (o.render = e.render), e.template && (o.template = e.template), e.events && (o.events = e.events), e.enabled === !1 && (o.enabled = e.enabled), e.folded === !0 && (o.folded = e.folded);
@@ -236,11 +256,11 @@ const D = 1e-3, v = 0.01, Io = "https://vrlab-image4.ljcdn.com/release/web/PanoS
236
256
  o.folded = !1, o.tags.forEach((e) => {
237
257
  e.app.$set({ folded: o.folded });
238
258
  });
239
- }, ao = () => {
259
+ }, po = () => {
240
260
  o.folded = !0, o.tags.forEach((e) => {
241
261
  e.app.$set({ folded: o.folded });
242
262
  });
243
- }, po = (e) => {
263
+ }, ao = (e) => {
244
264
  o.tags.forEach((s) => {
245
265
  s.id === e && s.app.$set({ folded: !1 });
246
266
  });
@@ -251,7 +271,7 @@ const D = 1e-3, v = 0.01, Io = "https://vrlab-image4.ljcdn.com/release/web/PanoS
251
271
  }, U = () => {
252
272
  n.once("renderFrame", T);
253
273
  }, R = () => {
254
- j || (j = n.getElement().parentElement), j && j.appendChild(S), o.forbidden = !1, y = n.model.bounding.getCenter(new a.Vector3()).y, M(), n.on("panoWillArrive", H), n.on("panoArrived", F), n.on("modeChange", N), n.on("cameraUpdate", _);
274
+ j || (j = n.getElement().parentElement), j && j.appendChild(S), o.forbidden = !1, y = n.model.bounding.getCenter(new p.Vector3()).y, M(), n.on("panoWillArrive", H), n.on("panoArrived", F), n.on("modeChange", N), n.on("cameraUpdate", _);
255
275
  }, W = () => {
256
276
  Z = null, C.disposeAll(), Y.$destroy(), o.tags.forEach((e) => {
257
277
  e.app.$destroy(), e = null;
@@ -261,8 +281,8 @@ const D = 1e-3, v = 0.01, Io = "https://vrlab-image4.ljcdn.com/release/web/PanoS
261
281
  load: io,
262
282
  setIntersectObjects: ro,
263
283
  unfoldAll: lo,
264
- foldAll: ao,
265
- unfold: po,
284
+ foldAll: po,
285
+ unfold: ao,
266
286
  fold: mo,
267
287
  enable: so,
268
288
  disable: co,
@@ -271,6 +291,6 @@ const D = 1e-3, v = 0.01, Io = "https://vrlab-image4.ljcdn.com/release/web/PanoS
271
291
  };
272
292
  };
273
293
  export {
274
- Te as PanoSpatialTagPlugin,
275
- Te as default
294
+ Fe as PanoSpatialTagPlugin,
295
+ Fe as default
276
296
  };
@@ -15,11 +15,6 @@ import "three/examples/jsm/renderers/CSS3DRenderer";
15
15
  import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
16
16
  import "../shared-utils/three/centerPoint.js";
17
17
  import "../shared-utils/three/getObjectVisible.js";
18
- import "hammerjs";
19
- import "@realsee/five/line";
20
- import "../vendor/three/examples/jsm/lines/LineGeometry.js";
21
- import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
22
- import "../vendor/three/build/three.module.js";
23
18
  import "../shared-utils/tag.js";
24
19
  import "../shared-utils/five/vector3ToScreen.js";
25
20
  import "../shared-utils/five/getFiveModel.js";
@@ -29,13 +24,38 @@ import "../shared-utils/Utils/WorkUtil.js";
29
24
  import "../shared-utils/five/transformPosition.js";
30
25
  import "../shared-utils/three/temp.js";
31
26
  import "../shared-utils/dom/resizeObserver.js";
27
+ import "hammerjs";
28
+ import "../shared-utils/three/PointSelector/index.js";
29
+ import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
30
+ import "../shared-utils/three/Magnifier.js";
31
+ import "../shared-utils/three/PointSelector/utils/PointHelper.js";
32
+ import "../shared-utils/three/Assets/index.js";
33
+ import "../shared-utils/three/PointSelector/utils/html.js";
34
+ import "../shared-utils/five/initialCSS3DRender.js";
35
+ import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
36
+ import "../Sculpt/Meshes/Line.js";
37
+ import "../Sculpt/typings/style.js";
38
+ import "../shared-utils/five/FiveLine.js";
39
+ import "@realsee/five/line";
40
+ import "../vendor/three/examples/jsm/lines/LineGeometry.js";
41
+ import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
42
+ import "../vendor/three/build/three.module.js";
43
+ import "../shared-utils/three/IObject3D.js";
44
+ import "../Sculpt/utils/removeAllTag.js";
45
+ import "../Sculpt/utils/Meshes/getLengthHTML.js";
46
+ import "../shared-utils/three/applyObjectMatrixWorld.js";
47
+ import "../shared-utils/util.js";
32
48
  import "../shared-utils/three/core/Sphere.js";
33
49
  import "animejs";
34
50
  import "../shared-utils/isNil.js";
35
51
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
52
+ import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
53
+ import "../shared-utils/isTouchDevice.js";
54
+ import "../shared-utils/five/getPosition.js";
55
+ import "../shared-utils/five/getRaycasterByNdcPosition.js";
56
+ import "../shared-utils/three/PointSelector/utils/contents.js";
36
57
  import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
37
58
  import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
38
- import "../shared-utils/util.js";
39
59
  import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
40
60
  import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
41
61
  import "../shared-utils/url/absoluteUrl.js";
@@ -1,14 +1,15 @@
1
- import { SvelteComponent as j, init as q, safe_not_equal as O, append_styles as U, element as h, space as _, create_component as S, attr as z, set_style as y, toggle_class as b, insert as W, append as m, mount_component as A, listen as X, transition_in as D, transition_out as I, detach as B, destroy_component as R, getContext as E, bubble as G } from "../../../vendor/svelte/internal/index.js";
1
+ import { SvelteComponent as j, init as q, safe_not_equal as O, append_styles as U, element as h, space as _, create_component as S, attr as z, set_style as y, toggle_class as b, insert as W, append as f, mount_component as A, listen as X, transition_in as D, transition_out as I, detach as B, destroy_component as R, getContext as E, bubble as G } from "../../../vendor/svelte/internal/index.js";
2
2
  import H from "./Shadow.js";
3
3
  import J from "./Icon/Icon.js";
4
4
  import { Image_Default_Point as K } from "../../Assets/Icon.js";
5
+ import "../../../shared-utils/tag.js";
5
6
  import { isModelLike as N } from "../../../shared-utils/five/mode.js";
6
7
  import "three";
7
8
  import "hammerjs";
9
+ import "../../../shared-utils/three/PointSelector/index.js";
8
10
  import "three/examples/jsm/renderers/CSS3DRenderer";
9
11
  import "@realsee/five/line";
10
12
  import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
11
- import "../../../shared-utils/tag.js";
12
13
  import "../../../shared-utils/three/core/Sphere.js";
13
14
  import "animejs";
14
15
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
@@ -17,8 +18,6 @@ import "../../../vendor/svelte/easing/index.js";
17
18
  import "../../utils/noTypecheck.js";
18
19
  import "../../utils/getImageInfo.js";
19
20
  import "../../utils/px2rem.js";
20
- import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
21
- import "../../../vendor/three/build/three.module.js";
22
21
  import "../../../shared-utils/positionToVector3.js";
23
22
  import "../../../shared-utils/five/vector3ToScreen.js";
24
23
  import "../../../shared-utils/five/getFiveModel.js";
@@ -29,19 +28,50 @@ import "../../../shared-utils/Utils/WorkUtil.js";
29
28
  import "../../../shared-utils/five/transformPosition.js";
30
29
  import "../../../shared-utils/three/temp.js";
31
30
  import "../../../shared-utils/dom/resizeObserver.js";
31
+ import "../../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
32
+ import "../../../shared-utils/three/Magnifier.js";
33
+ import "../../../shared-utils/three/PointSelector/utils/PointHelper.js";
34
+ import "../../../shared-utils/three/Assets/index.js";
35
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
36
+ import "../../../CSS3DRenderPlugin/utils/even.js";
37
+ import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
38
+ import "../../../shared-utils/three/centerPoint.js";
39
+ import "../../../shared-utils/three/getObjectVisible.js";
40
+ import "../../../shared-utils/isNil.js";
41
+ import "../../../shared-utils/three/PointSelector/utils/html.js";
42
+ import "../../../shared-utils/five/initialCSS3DRender.js";
43
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
44
+ import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
45
+ import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
46
+ import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
47
+ import "../../../Sculpt/Meshes/Line.js";
48
+ import "../../../Sculpt/typings/style.js";
49
+ import "../../../shared-utils/five/FiveLine.js";
50
+ import "../../../shared-utils/three/IObject3D.js";
51
+ import "../../../Sculpt/utils/removeAllTag.js";
52
+ import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
53
+ import "../../../shared-utils/three/applyObjectMatrixWorld.js";
54
+ import "../../../shared-utils/util.js";
55
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
56
+ import "../../../shared-utils/isTouchDevice.js";
57
+ import "../../../shared-utils/five/getPosition.js";
58
+ import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
59
+ import "../../../shared-utils/three/PointSelector/utils/contents.js";
60
+ import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
61
+ import "../../../vendor/three/build/three.module.js";
32
62
  function Q(t) {
33
63
  U(t, "svelte-7aiuwz", '@charset "UTF-8";.tag-point-click-helper.svelte-7aiuwz.svelte-7aiuwz{position:absolute;pointer-events:auto;cursor:pointer;width:calc(100% + 0.75rem);height:calc(100% + 0.75rem);left:50%;top:50%;transform:translate(-50%, -50%)}.tag-point-wrapper.svelte-7aiuwz.svelte-7aiuwz{pointer-events:none;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}.tag-folded-point.svelte-7aiuwz.svelte-7aiuwz,.tag-unfolded-point.svelte-7aiuwz.svelte-7aiuwz{transition:all 0.5s}.tag-point-wrapper.svelte-7aiuwz .tag-unfolded-point.svelte-7aiuwz{display:flex;justify-content:center;align-items:center;position:absolute;width:100%;height:100%;border-radius:50%}.tag-point-wrapper.svelte-7aiuwz .tag-unfolded-point.svelte-7aiuwz:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.3125rem;height:0.3125rem;border-radius:50%;background-color:white}.tag-point-wrapper.svelte-7aiuwz .tag-unfolded-point.svelte-7aiuwz:before{content:"";position:absolute;width:0.875rem;height:0.875rem;border-radius:50%;background-color:rgba(0, 0, 0, 0.2)}.tag-point-wrapper.folded.svelte-7aiuwz .tag-folded-point.svelte-7aiuwz{opacity:1;scale:1}.tag-point-wrapper.folded.svelte-7aiuwz .tag-unfolded-point.svelte-7aiuwz{opacity:0;scale:1}.tag-point-wrapper.unfolded.svelte-7aiuwz .tag-folded-point.svelte-7aiuwz{opacity:0;scale:0.2}.tag-point-wrapper.unfolded.svelte-7aiuwz .tag-unfolded-point.svelte-7aiuwz{opacity:1;scale:1}');
34
64
  }
35
65
  function V(t) {
36
- let o, a, u, p, c, d, w, e, r, l, g, v;
37
- return p = new H({
66
+ let o, a, d, s, c, m, w, e, n, p, g, v;
67
+ return s = new H({
38
68
  props: {
39
69
  center: !0,
40
70
  blurRadius: 15,
41
71
  spreadRadius: 5,
42
72
  opacity: 0.3
43
73
  }
44
- }), r = new J({
74
+ }), n = new J({
45
75
  props: {
46
76
  icon: (
47
77
  /*url*/
@@ -52,14 +82,14 @@ function V(t) {
52
82
  t[1]
53
83
  )
54
84
  }
55
- }), r.$on(
85
+ }), n.$on(
56
86
  "iconLoaded",
57
87
  /*iconLoaded_handler*/
58
88
  t[7]
59
89
  ), {
60
90
  c() {
61
- o = h("div"), a = h("div"), u = _(), S(p.$$.fragment), c = _(), d = h("div"), w = _(), e = h("div"), S(r.$$.fragment), z(a, "class", "tag-point-click-helper svelte-7aiuwz"), z(d, "class", "tag-unfolded-point svelte-7aiuwz"), y(
62
- d,
91
+ o = h("div"), a = h("div"), d = _(), S(s.$$.fragment), c = _(), m = h("div"), w = _(), e = h("div"), S(n.$$.fragment), z(a, "class", "tag-point-click-helper svelte-7aiuwz"), z(m, "class", "tag-unfolded-point svelte-7aiuwz"), y(
92
+ m,
63
93
  "transition-delay",
64
94
  /*folded*/
65
95
  (t[3] ? (
@@ -86,18 +116,18 @@ function V(t) {
86
116
  t[3]
87
117
  );
88
118
  },
89
- m(i, s) {
90
- W(i, o, s), m(o, a), m(o, u), A(p, o, null), m(o, c), m(o, d), m(o, w), m(o, e), A(r, e, null), l = !0, g || (v = X(
119
+ m(i, l) {
120
+ W(i, o, l), f(o, a), f(o, d), A(s, o, null), f(o, c), f(o, m), f(o, w), f(o, e), A(n, e, null), p = !0, g || (v = X(
91
121
  a,
92
122
  "click",
93
123
  /*handlePointClick*/
94
124
  t[4]
95
125
  ), g = !0);
96
126
  },
97
- p(i, [s]) {
98
- s & /*folded*/
127
+ p(i, [l]) {
128
+ l & /*folded*/
99
129
  8 && y(
100
- d,
130
+ m,
101
131
  "transition-delay",
102
132
  /*folded*/
103
133
  (i[3] ? (
@@ -105,12 +135,12 @@ function V(t) {
105
135
  i[5]
106
136
  ) : 0) + "ms"
107
137
  );
108
- const n = {};
109
- s & /*url*/
110
- 4 && (n.icon = /*url*/
111
- i[2]), s & /*width*/
112
- 2 && (n.width = /*width*/
113
- i[1]), r.$set(n), s & /*folded*/
138
+ const r = {};
139
+ l & /*url*/
140
+ 4 && (r.icon = /*url*/
141
+ i[2]), l & /*width*/
142
+ 2 && (r.width = /*width*/
143
+ i[1]), n.$set(r), l & /*folded*/
114
144
  8 && y(
115
145
  e,
116
146
  "transition-delay",
@@ -119,13 +149,13 @@ function V(t) {
119
149
  /*foldDelay*/
120
150
  i[5]
121
151
  ) : 0) + "ms"
122
- ), (!l || s & /*unfolded*/
152
+ ), (!p || l & /*unfolded*/
123
153
  1) && b(
124
154
  o,
125
155
  "unfolded",
126
156
  /*unfolded*/
127
157
  i[0]
128
- ), (!l || s & /*folded*/
158
+ ), (!p || l & /*folded*/
129
159
  8) && b(
130
160
  o,
131
161
  "folded",
@@ -134,74 +164,74 @@ function V(t) {
134
164
  );
135
165
  },
136
166
  i(i) {
137
- l || (D(p.$$.fragment, i), D(r.$$.fragment, i), l = !0);
167
+ p || (D(s.$$.fragment, i), D(n.$$.fragment, i), p = !0);
138
168
  },
139
169
  o(i) {
140
- I(p.$$.fragment, i), I(r.$$.fragment, i), l = !1;
170
+ I(s.$$.fragment, i), I(n.$$.fragment, i), p = !1;
141
171
  },
142
172
  d(i) {
143
- i && B(o), R(p), R(r), g = !1, v();
173
+ i && B(o), R(s), R(n), g = !1, v();
144
174
  }
145
175
  };
146
176
  }
147
177
  function Y(t, o, a) {
148
- let u, p, c, d;
178
+ let d, s, c, m;
149
179
  const w = E("hooks");
150
- let { tag: e } = o, r, l = !1;
180
+ let { tag: e } = o, n, p = !1;
151
181
  const g = () => {
152
- r !== void 0 && clearTimeout(r), l = !0, r = setTimeout(
182
+ n !== void 0 && clearTimeout(n), p = !0, n = setTimeout(
153
183
  () => {
154
- l = !1;
184
+ p = !1;
155
185
  },
156
186
  800
157
187
  );
158
- }, v = (n) => {
159
- l || (e.entryFromModel && N(e.five.state.mode) ? e.find({ targetMode: "Panorama" }).then(() => e.unfoldAndFoldOthers()) : w.emit("click", { event: n, target: "TagPoint", tag: e }));
188
+ }, v = (r) => {
189
+ p || (e.entryFromModel && N(e.five.state.mode) ? e.find({ targetMode: "Panorama" }).then(() => e.unfoldAndFoldOthers()) : w.emit("click", { event: r, target: "TagPoint", tag: e }));
160
190
  }, i = (() => e.contentType === "Text" && e.data.appearance === "plane" ? 500 : 800)();
161
- function s(n) {
162
- G.call(this, t, n);
191
+ function l(r) {
192
+ G.call(this, t, r);
163
193
  }
164
- return t.$$set = (n) => {
165
- "tag" in n && a(6, e = n.tag);
194
+ return t.$$set = (r) => {
195
+ "tag" in r && a(6, e = r.tag);
166
196
  }, t.$$.update = () => {
167
- var n, k, T, L;
197
+ var r, k, T, L;
168
198
  t.$$.dirty & /*tag*/
169
- 64 && a(0, u = (n = e.state) == null ? void 0 : n.unfolded), t.$$.dirty & /*unfolded*/
170
- 1 && a(3, p = !u), t.$$.dirty & /*tag*/
199
+ 64 && a(0, d = (r = e.state) == null ? void 0 : r.unfolded), t.$$.dirty & /*unfolded*/
200
+ 1 && a(3, s = !d), t.$$.dirty & /*tag*/
171
201
  64 && a(2, c = (T = (k = e.style) == null ? void 0 : k.point) != null && T.url ? (L = e.style) == null ? void 0 : L.point : { url: K }), t.$$.dirty & /*tag*/
172
- 64 && a(1, d = (() => {
202
+ 64 && a(1, m = (() => {
173
203
  var M, $, C, F;
174
204
  const P = ($ = (M = e.style) == null ? void 0 : M.point) == null ? void 0 : $.width;
175
205
  if (typeof P == "number")
176
206
  return P;
177
- const f = (F = (C = e.style) == null ? void 0 : C.point) == null ? void 0 : F.size;
178
- if (typeof f == "number")
179
- return f;
180
- if (f === "S")
207
+ const u = (F = (C = e.style) == null ? void 0 : C.point) == null ? void 0 : F.size;
208
+ if (typeof u == "number")
209
+ return u;
210
+ if (u === "S")
181
211
  return 18;
182
- if (f === "M")
212
+ if (u === "M")
183
213
  return 20;
184
- if (f === "L")
214
+ if (u === "L")
185
215
  return 24;
186
- if (f === "XL")
216
+ if (u === "XL")
187
217
  return 28;
188
218
  })());
189
219
  }, g(), [
190
- u,
191
220
  d,
221
+ m,
192
222
  c,
193
- p,
223
+ s,
194
224
  v,
195
225
  i,
196
226
  e,
197
- s
227
+ l
198
228
  ];
199
229
  }
200
- class Ct extends j {
230
+ class ne extends j {
201
231
  constructor(o) {
202
232
  super(), q(this, o, Y, V, O, { tag: 6 }, Q);
203
233
  }
204
234
  }
205
235
  export {
206
- Ct as default
236
+ ne as default
207
237
  };