@realsee/dnalogel 3.50.14 → 3.50.15-alpha.1

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 (110) hide show
  1. package/README.md +116 -0
  2. package/dist/Sculpt/Objects/Base/index.d.ts +1 -1
  3. package/dist/Sculpt/index.d.ts +4 -4
  4. package/dist/index.cjs.js +262 -262
  5. package/dist/index.js +4235 -4231
  6. package/dist/index.umd.js +263 -263
  7. package/dist/shared-utils/five/index.d.ts +2 -0
  8. package/dist/shared-utils/tag.d.ts +1 -1
  9. package/dist/shared-utils/three/index.d.ts +1 -0
  10. package/libs/AreaMakerPlugin/Controller.js +104 -74
  11. package/libs/AreaMakerPlugin/index.js +33 -3
  12. package/libs/AreaMakerPlugin/utils/Item.js +66 -36
  13. package/libs/CSS3DRenderPlugin/Controller.js +39 -19
  14. package/libs/CSS3DRenderPlugin/index.js +34 -14
  15. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +60 -35
  16. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +98 -78
  17. package/libs/CruisePlugin/BaseController.js +59 -29
  18. package/libs/CruisePlugin/Move.js +33 -14
  19. package/libs/CruisePlugin/Work.js +66 -47
  20. package/libs/CruisePlugin/index.js +38 -19
  21. package/libs/CurrentPanoImagePlugin/Controller.js +68 -38
  22. package/libs/CurrentPanoImagePlugin/index.js +34 -4
  23. package/libs/GuideLinePlugin/Controller.js +69 -50
  24. package/libs/GuideLinePlugin/GuideLineItem.js +34 -15
  25. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
  26. package/libs/GuideLinePlugin/GuideLineModeItem.js +34 -15
  27. package/libs/GuideLinePlugin/index.js +38 -19
  28. package/libs/ModelMakerPlugin/Controller.js +60 -42
  29. package/libs/ModelMakerPlugin/index.js +34 -16
  30. package/libs/ModelTVVideoPlugin/Plugin.js +48 -28
  31. package/libs/ModelTVVideoPlugin/index.js +24 -4
  32. package/libs/Object3DHelperPlugin/Controller.js +49 -30
  33. package/libs/Object3DHelperPlugin/index.js +36 -17
  34. package/libs/PanoCompassPlugin/Controller.js +33 -13
  35. package/libs/PanoCompassPlugin/index.js +34 -14
  36. package/libs/PanoDoorLabelPlugin/BaseController.js +55 -25
  37. package/libs/PanoDoorLabelPlugin/Controller.js +99 -69
  38. package/libs/PanoDoorLabelPlugin/index.js +34 -4
  39. package/libs/PanoMeasurePlugin/Components/Controller0.js +8 -8
  40. package/libs/PanoMeasurePlugin/Components/Controller1.js +8 -8
  41. package/libs/PanoMeasurePlugin/Controller/WatchController.js +75 -49
  42. package/libs/PanoMeasurePlugin/Controller/index.js +16 -16
  43. package/libs/PanoMeasurePlugin/Model/area.js +41 -15
  44. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +29 -0
  45. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +8 -8
  46. package/libs/PanoMeasurePlugin/index.js +3 -3
  47. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +43 -15
  48. package/libs/PanoRulerProPlugin/Controller.js +60 -30
  49. package/libs/PanoRulerProPlugin/RulerItems.js +85 -55
  50. package/libs/PanoRulerProPlugin/index.js +33 -3
  51. package/libs/PanoSpatialTagPlugin/Plugin.js +54 -34
  52. package/libs/PanoSpatialTagPlugin/index.js +22 -2
  53. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +79 -49
  54. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +235 -206
  55. package/libs/PanoTagPlugin/Components/Tag/index.js +152 -125
  56. package/libs/PanoTagPlugin/Components/TagContainer.js +97 -70
  57. package/libs/PanoTagPlugin/Components/TagItem.js +31 -4
  58. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +29 -2
  59. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +55 -28
  60. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +53 -26
  61. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +54 -27
  62. package/libs/PanoTagPlugin/controller/TagRender.js +48 -29
  63. package/libs/PanoTagPlugin/controller/TagUtil.js +33 -14
  64. package/libs/PanoTagPlugin/controller/index.js +49 -30
  65. package/libs/PanoTagPlugin/index.js +41 -22
  66. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +59 -29
  67. package/libs/PanoVideoPlugin/Controller.js +91 -61
  68. package/libs/PanoVideoPlugin/VideoMeshController.js +56 -26
  69. package/libs/PanoVideoPlugin/index.js +36 -6
  70. package/libs/PipelinePlugin/Controller.js +80 -51
  71. package/libs/PipelinePlugin/index.js +34 -5
  72. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +44 -14
  73. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +43 -13
  74. package/libs/PipelinePlugin/utils/Objects/Pipe.js +61 -31
  75. package/libs/Sculpt/Meshes/Box.js +3 -2
  76. package/libs/Sculpt/Meshes/Cylinder.js +3 -2
  77. package/libs/Sculpt/Meshes/Line.js +9 -8
  78. package/libs/Sculpt/Meshes/LineWithDots.js +8 -7
  79. package/libs/Sculpt/Meshes/Point.js +3 -2
  80. package/libs/Sculpt/Meshes/Polygon.js +3 -2
  81. package/libs/Sculpt/Meshes/Prism.js +9 -8
  82. package/libs/Sculpt/Meshes/Rectangle.js +3 -2
  83. package/libs/Sculpt/Objects/Base/index.d.ts +1 -1
  84. package/libs/Sculpt/Objects/Line/Editor.js +7 -6
  85. package/libs/Sculpt/index.d.ts +4 -4
  86. package/libs/Sculpt/index.js +3 -2
  87. package/libs/Sculpt/utils/three/ColoredMesh.js +6 -5
  88. package/libs/base/BasePlugin.js +4 -3
  89. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +89 -60
  90. package/libs/floorplan/MapviewFloorplanPlugin/index.js +34 -5
  91. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +79 -50
  92. package/libs/floorplan/ModelFloorplanPlugin/index.js +34 -5
  93. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +68 -38
  94. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +34 -4
  95. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +104 -75
  96. package/libs/floorplan/TopviewFloorplanPlugin/index.js +34 -5
  97. package/libs/floorplan/index.js +1 -0
  98. package/libs/index.js +28 -28
  99. package/libs/shared-utils/five/fiveModelLoad.js +1 -0
  100. package/libs/shared-utils/five/index.d.ts +2 -0
  101. package/libs/shared-utils/five/index.js +3 -2
  102. package/libs/shared-utils/five/lookObject.js +3 -2
  103. package/libs/shared-utils/index.js +42 -35
  104. package/libs/shared-utils/logger.js +1 -1
  105. package/libs/shared-utils/tag.d.ts +1 -1
  106. package/libs/shared-utils/tag.js +41 -41
  107. package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +3 -2
  108. package/libs/shared-utils/three/index.d.ts +1 -0
  109. package/libs/shared-utils/three/index.js +1 -0
  110. package/package.json +1 -1
@@ -1,51 +1,52 @@
1
1
  var H = Object.defineProperty;
2
2
  var P = Object.getOwnPropertySymbols;
3
3
  var L = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
4
- var w = (h, o, e) => o in h ? H(h, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[o] = e, E = (h, o) => {
4
+ var w = (p, o, e) => o in p ? H(p, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[o] = e, E = (p, o) => {
5
5
  for (var e in o || (o = {}))
6
- L.call(o, e) && w(h, e, o[e]);
6
+ L.call(o, e) && w(p, e, o[e]);
7
7
  if (P)
8
8
  for (var e of P(o))
9
- S.call(o, e) && w(h, e, o[e]);
10
- return h;
9
+ S.call(o, e) && w(p, e, o[e]);
10
+ return p;
11
11
  };
12
- var n = (h, o, e) => (w(h, typeof o != "symbol" ? o + "" : o, e), e);
13
- var F = (h, o, e) => new Promise((t, r) => {
14
- var p = (l) => {
12
+ var n = (p, o, e) => (w(p, typeof o != "symbol" ? o + "" : o, e), e);
13
+ var F = (p, o, e) => new Promise((t, r) => {
14
+ var l = (h) => {
15
15
  try {
16
- i(e.next(l));
17
- } catch (m) {
18
- r(m);
16
+ i(e.next(h));
17
+ } catch (c) {
18
+ r(c);
19
19
  }
20
- }, a = (l) => {
20
+ }, a = (h) => {
21
21
  try {
22
- i(e.throw(l));
23
- } catch (m) {
24
- r(m);
22
+ i(e.throw(h));
23
+ } catch (c) {
24
+ r(c);
25
25
  }
26
- }, i = (l) => l.done ? t(l.value) : Promise.resolve(l.value).then(p, a);
27
- i((e = e.apply(h, o)).next());
26
+ }, i = (h) => h.done ? t(h.value) : Promise.resolve(h.value).then(l, a);
27
+ i((e = e.apply(p, o)).next());
28
28
  });
29
29
  import { Controller as z } from "../base/BasePluginWithData.js";
30
- import * as c from "three";
30
+ import * as m from "three";
31
31
  import { ModelMakerBoxItem as B } from "./item/boxItem.js";
32
32
  import { PrismMesh as A } from "../Sculpt/Meshes/Prism.js";
33
33
  import { anyPositionToVector3 as O } from "../shared-utils/positionToVector3.js";
34
34
  import { PolygonWithEdgeMesh as Q } from "../Sculpt/Meshes/PolygonWithEdge.js";
35
35
  import "../shared-utils/tag.js";
36
36
  import "hammerjs";
37
+ import "../shared-utils/three/PointSelector/index.js";
37
38
  import "three/examples/jsm/renderers/CSS3DRenderer";
38
39
  import "@realsee/five/line";
39
40
  import "../vendor/three/examples/jsm/lines/LineGeometry.js";
40
41
  import { boxVertex as g } from "../shared-utils/three/boundingBox.js";
41
42
  import "animejs";
42
43
  import { notNil as I } from "../shared-utils/isNil.js";
44
+ import { waitFiveModelLoaded as q } from "../shared-utils/five/fiveModelLoad.js";
43
45
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
44
- import { tagRendererMap as q } from "./utils/tagRenderer.js";
45
- import { ModelMakerPrismItem as G } from "./item/prismItem.js";
46
- import { ModelMakerPolygonItem as U } from "./item/polygonItem.js";
47
- import { getFiveDomEvent as Y } from "./utils/getFiveDomEvent.js";
48
- import { waitFiveModelLoaded as $ } from "../shared-utils/five/fiveModelLoad.js";
46
+ import { tagRendererMap as G } from "./utils/tagRenderer.js";
47
+ import { ModelMakerPrismItem as U } from "./item/prismItem.js";
48
+ import { ModelMakerPolygonItem as Y } from "./item/polygonItem.js";
49
+ import { getFiveDomEvent as $ } from "./utils/getFiveDomEvent.js";
49
50
  import "../base/BasePlugin.js";
50
51
  import "../shared-utils/Subscribe.js";
51
52
  import "../shared-utils/three/core/Sphere.js";
@@ -64,6 +65,7 @@ import "../Sculpt/utils/removeAllTag.js";
64
65
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
65
66
  import "../shared-utils/three/applyObjectMatrixWorld.js";
66
67
  import "../shared-utils/util.js";
68
+ import "../shared-utils/three/core/Raycaster.js";
67
69
  import "../Sculpt/Meshes/Polygon.js";
68
70
  import "../shared-utils/three/generatePolygonGeometry.js";
69
71
  import "../shared-utils/three/earcut3D.js";
@@ -72,7 +74,6 @@ import "../shared-utils/three/getNormal.js";
72
74
  import "../PanoMeasurePlugin/utils/isIntersecting.js";
73
75
  import "../Sculpt/utils/three/ColoredMesh.js";
74
76
  import "../shared-utils/three/geometryUtil.js";
75
- import "../shared-utils/three/core/Raycaster.js";
76
77
  import "../Sculpt/Meshes/Polyline.js";
77
78
  import "../Sculpt/Meshes/LineWithDots.js";
78
79
  import "../Sculpt/Meshes/Point.js";
@@ -80,6 +81,25 @@ import "../shared-utils/three/closeVectors.js";
80
81
  import "../shared-utils/five/vector3ToScreen.js";
81
82
  import "../shared-utils/three/temp.js";
82
83
  import "../shared-utils/dom/resizeObserver.js";
84
+ import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
85
+ import "../shared-utils/three/Magnifier.js";
86
+ import "../shared-utils/three/PointSelector/utils/PointHelper.js";
87
+ import "../shared-utils/three/Assets/index.js";
88
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
89
+ import "../CSS3DRenderPlugin/utils/even.js";
90
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
91
+ import "../shared-utils/three/getObjectVisible.js";
92
+ import "../shared-utils/three/PointSelector/utils/html.js";
93
+ import "../shared-utils/five/initialCSS3DRender.js";
94
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
95
+ import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
96
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
97
+ import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
98
+ import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
99
+ import "../shared-utils/isTouchDevice.js";
100
+ import "../shared-utils/five/getPosition.js";
101
+ import "../shared-utils/five/getRaycasterByNdcPosition.js";
102
+ import "../shared-utils/three/PointSelector/utils/contents.js";
83
103
  import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
84
104
  import "../vendor/three/build/three.module.js";
85
105
  import "./utils/Text.js";
@@ -89,16 +109,14 @@ import "../components/AreaLabel/Assets/roomLabelBg.js";
89
109
  import "./item/baseItem.js";
90
110
  import "../shared-utils/three/addIfNotExists.js";
91
111
  import "../shared-utils/five/FiveDomEvents.js";
92
- import "../shared-utils/three/getObjectVisible.js";
93
112
  import "../shared-utils/five/calculateThreeMouse.js";
94
- import "../shared-utils/isTouchDevice.js";
95
- class at extends z {
113
+ class xt extends z {
96
114
  constructor(e, t) {
97
- var r, p;
115
+ var r, l;
98
116
  super(e);
99
117
  n(this, "state");
100
118
  n(this, "items", []);
101
- n(this, "group", new c.Group());
119
+ n(this, "group", new m.Group());
102
120
  n(this, "data");
103
121
  n(this, "tagRendererMap", {});
104
122
  n(this, "fiveDomEvents");
@@ -122,11 +140,11 @@ class at extends z {
122
140
  n(this, "updateTagRenderer", () => {
123
141
  this.items.forEach((e) => {
124
142
  var r;
125
- const t = (r = this.tagRendererMap[e.type]) != null ? r : q[e.type];
143
+ const t = (r = this.tagRendererMap[e.type]) != null ? r : G[e.type];
126
144
  t && e.__renderer !== t && (e.__renderer = t, typeof e.__disposeRenderer == "function" && e.__disposeRenderer(), e.tag.container.innerHTML = "", e.__disposeRenderer = t(e.tag.container, e));
127
145
  });
128
146
  });
129
- this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.occlusionVisibility = (r = t == null ? void 0 : t.occlusionVisibility) != null ? r : !1, this.occlusionMode = (p = t == null ? void 0 : t.occlusionMode) != null ? p : "translucence", this.fiveDomEvents = Y(e), this.tagWrapper = (() => {
147
+ this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.occlusionVisibility = (r = t == null ? void 0 : t.occlusionVisibility) != null ? r : !1, this.occlusionMode = (l = t == null ? void 0 : t.occlusionMode) != null ? l : "translucence", this.fiveDomEvents = $(e), this.tagWrapper = (() => {
130
148
  var i;
131
149
  const a = document.createElement("div");
132
150
  return a.style.position = "absolute", a.style.top = "0", a.style.left = "0", a.style.width = "100%", a.style.height = "100%", a.style.pointerEvents = "none", a.style.zIndex = `${(i = t == null ? void 0 : t.tagContainerZIndex) != null ? i : ""}`, a;
@@ -135,23 +153,23 @@ class at extends z {
135
153
  load(e) {
136
154
  return F(this, null, function* () {
137
155
  var a;
138
- if (this.clear(), this.data = e, yield $(this.five), this.data !== e)
156
+ if (this.clear(), this.data = e, yield q(this.five), this.data !== e)
139
157
  return;
140
158
  this.clear();
141
- const t = typeof this.occlusionVisibility == "boolean" ? this.occlusionVisibility : !1, r = this.occlusionMode, p = 1.6;
159
+ const t = typeof this.occlusionVisibility == "boolean" ? this.occlusionVisibility : !1, r = this.occlusionMode, l = 1.6;
142
160
  (a = e == null ? void 0 : e.list) == null || a.forEach((i) => {
143
- var l, m, _;
161
+ var h, c, _;
144
162
  if (i.type === "triangles") {
145
163
  const s = new Q();
146
164
  s.setPoints(i.object_data.points), s.setStyle({
147
165
  color: i.object_data.color,
148
- opacity: ((l = i.object_data.opacity) != null ? l : 0.4) / 2,
166
+ opacity: ((h = i.object_data.opacity) != null ? h : 0.4) / 2,
149
167
  lineColor: i.object_data.color,
150
- lineWidth: p,
168
+ lineWidth: l,
151
169
  occlusionVisibility: t,
152
170
  occlusionMode: r
153
171
  }), this.fiveDomEvents.addEventListener(s, "hover", () => s.highlight()), this.fiveDomEvents.addEventListener(s, "unHover", () => s.unhighlight());
154
- const d = new U({
172
+ const d = new Y({
155
173
  five: this.five,
156
174
  tagWrapper: this.tagWrapper,
157
175
  model: s,
@@ -168,16 +186,16 @@ class at extends z {
168
186
  return [u[0], u[1] + ((y = i.object_data.fixedY) != null ? y : 0), u[2]];
169
187
  });
170
188
  d.push(d[0]);
171
- const v = i.object_data.height + ((m = i.object_data.fixedHeight) != null ? m : 0) + this.zFightingOffset, M = O(d[0]).add(new c.Vector3().setY(v));
189
+ const v = i.object_data.height + ((c = i.object_data.fixedHeight) != null ? c : 0) + this.zFightingOffset, M = O(d[0]).add(new m.Vector3().setY(v));
172
190
  s.setPoints({ points: d, heightPoint: M }), s.setStyle({
173
191
  color: i.object_data.color,
174
192
  opacity: ((_ = i.object_data.opacity) != null ? _ : 0.4) / 2,
175
193
  lineColor: i.object_data.color,
176
- lineWidth: p,
194
+ lineWidth: l,
177
195
  occlusionVisibility: t,
178
196
  occlusionMode: r
179
197
  });
180
- const f = new G({
198
+ const f = new U({
181
199
  five: this.five,
182
200
  tagWrapper: this.tagWrapper,
183
201
  model: s,
@@ -187,7 +205,7 @@ class at extends z {
187
205
  });
188
206
  this.items.push(f);
189
207
  } else if (i.type === "box") {
190
- const s = new A(), { start: d, end: v, rotation: M = [0, 0, 0, 0], opacity: f, color: u } = i.object_data, y = new c.Vector3().fromArray(d), R = new c.Vector3().fromArray(v), T = new c.Euler().fromArray(M), x = new c.Quaternion().setFromEuler(T), C = x.clone().inverse(), V = new c.Vector3().lerpVectors(y, R, 0.5), W = V.clone().negate(), j = y.clone().add(W).applyQuaternion(C), k = R.clone().add(W).applyQuaternion(C), b = new c.Box3(j.clone().max(k), j.clone().min(k));
208
+ const s = new A(), { start: d, end: v, rotation: M = [0, 0, 0, 0], opacity: f, color: u } = i.object_data, y = new m.Vector3().fromArray(d), R = new m.Vector3().fromArray(v), T = new m.Euler().fromArray(M), x = new m.Quaternion().setFromEuler(T), C = x.clone().inverse(), V = new m.Vector3().lerpVectors(y, R, 0.5), W = V.clone().negate(), j = y.clone().add(W).applyQuaternion(C), k = R.clone().add(W).applyQuaternion(C), b = new m.Box3(j.clone().max(k), j.clone().min(k));
191
209
  s.setPoints({
192
210
  points: [g(b, 2), g(b, 3), g(b, 7), g(b, 6), g(b, 2)],
193
211
  heightPoint: g(b, 0)
@@ -195,7 +213,7 @@ class at extends z {
195
213
  color: u,
196
214
  opacity: (f != null ? f : 0.4) / 2,
197
215
  lineColor: u,
198
- lineWidth: p,
216
+ lineWidth: l,
199
217
  occlusionVisibility: t,
200
218
  occlusionMode: r
201
219
  });
@@ -253,5 +271,5 @@ class at extends z {
253
271
  }
254
272
  }
255
273
  export {
256
- at as Controller
274
+ xt as Controller
257
275
  };
@@ -14,15 +14,45 @@ import "../shared-utils/five/transformPosition.js";
14
14
  import "../shared-utils/three/temp.js";
15
15
  import "../shared-utils/dom/resizeObserver.js";
16
16
  import "hammerjs";
17
+ import "../shared-utils/three/PointSelector/index.js";
18
+ import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
19
+ import "../shared-utils/three/Magnifier.js";
20
+ import "../shared-utils/three/PointSelector/utils/PointHelper.js";
21
+ import "../shared-utils/three/Assets/index.js";
22
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
17
23
  import "three/examples/jsm/renderers/CSS3DRenderer";
24
+ import "../CSS3DRenderPlugin/utils/even.js";
25
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
26
+ import "../shared-utils/three/centerPoint.js";
27
+ import "../shared-utils/three/getObjectVisible.js";
18
28
  import "@realsee/five/line";
19
29
  import "../vendor/three/examples/jsm/lines/LineGeometry.js";
20
30
  import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
21
31
  import "../vendor/three/build/three.module.js";
22
32
  import "../shared-utils/three/core/Sphere.js";
23
33
  import "animejs";
24
- import "../shared-utils/url/absoluteUrl.js";
34
+ import "../shared-utils/isNil.js";
25
35
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
36
+ import "../shared-utils/three/PointSelector/utils/html.js";
37
+ import "../shared-utils/five/initialCSS3DRender.js";
38
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
39
+ import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
40
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
41
+ import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
42
+ import "../Sculpt/Meshes/Line.js";
43
+ import "../Sculpt/typings/style.js";
44
+ import "../shared-utils/five/FiveLine.js";
45
+ import "../shared-utils/three/IObject3D.js";
46
+ import "../Sculpt/utils/removeAllTag.js";
47
+ import "../Sculpt/utils/Meshes/getLengthHTML.js";
48
+ import "../shared-utils/three/applyObjectMatrixWorld.js";
49
+ import "../shared-utils/util.js";
50
+ import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
51
+ import "../shared-utils/isTouchDevice.js";
52
+ import "../shared-utils/five/getPosition.js";
53
+ import "../shared-utils/five/getRaycasterByNdcPosition.js";
54
+ import "../shared-utils/three/PointSelector/utils/contents.js";
55
+ import "../shared-utils/url/absoluteUrl.js";
26
56
  import "./item/boxItem.js";
27
57
  import "./item/polygonItem.js";
28
58
  import "./item/baseItem.js";
@@ -30,21 +60,9 @@ import "../shared-utils/three/addIfNotExists.js";
30
60
  import "../shared-utils/three/boundingBox.js";
31
61
  import "./utils/getFiveDomEvent.js";
32
62
  import "../shared-utils/five/FiveDomEvents.js";
33
- import "../shared-utils/three/getObjectVisible.js";
34
63
  import "../shared-utils/five/calculateThreeMouse.js";
35
64
  import "../shared-utils/three/core/Raycaster.js";
36
- import "../shared-utils/isTouchDevice.js";
37
65
  import "../Sculpt/Meshes/Prism.js";
38
- import "../shared-utils/three/IObject3D.js";
39
- import "../Sculpt/Meshes/Line.js";
40
- import "../Sculpt/typings/style.js";
41
- import "../shared-utils/five/FiveLine.js";
42
- import "../shared-utils/three/centerPoint.js";
43
- import "../Sculpt/utils/removeAllTag.js";
44
- import "../Sculpt/utils/Meshes/getLengthHTML.js";
45
- import "../shared-utils/three/applyObjectMatrixWorld.js";
46
- import "../shared-utils/util.js";
47
- import "../shared-utils/isNil.js";
48
66
  import "../Sculpt/Meshes/Polygon.js";
49
67
  import "../shared-utils/three/generatePolygonGeometry.js";
50
68
  import "../shared-utils/three/earcut3D.js";
@@ -58,14 +76,14 @@ import "../Sculpt/Meshes/Polyline.js";
58
76
  import "../Sculpt/Meshes/LineWithDots.js";
59
77
  import "../Sculpt/Meshes/Point.js";
60
78
  import "../shared-utils/three/closeVectors.js";
79
+ import "../shared-utils/five/fiveModelLoad.js";
61
80
  import "./utils/tagRenderer.js";
62
81
  import "./utils/Text.js";
63
82
  import "../vendor/svelte/internal/index.js";
64
83
  import "../components/AreaLabel/LabelItem.js";
65
84
  import "../components/AreaLabel/Assets/roomLabelBg.js";
66
85
  import "./item/prismItem.js";
67
- import "../shared-utils/five/fiveModelLoad.js";
68
- const so = (...o) => new r(...o);
86
+ const Go = (...o) => new r(...o);
69
87
  export {
70
- so as ModelMakerPlugin
88
+ Go as ModelMakerPlugin
71
89
  };
@@ -1,17 +1,17 @@
1
1
  var R = (s, g, e) => new Promise((f, v) => {
2
- var b = (m) => {
2
+ var b = (l) => {
3
3
  try {
4
- h(e.next(m));
4
+ h(e.next(l));
5
5
  } catch (x) {
6
6
  v(x);
7
7
  }
8
- }, w = (m) => {
8
+ }, w = (l) => {
9
9
  try {
10
- h(e.throw(m));
10
+ h(e.throw(l));
11
11
  } catch (x) {
12
12
  v(x);
13
13
  }
14
- }, h = (m) => m.done ? f(m.value) : Promise.resolve(m.value).then(b, w);
14
+ }, h = (l) => l.done ? f(l.value) : Promise.resolve(l.value).then(b, w);
15
15
  h((e = e.apply(s, g)).next());
16
16
  });
17
17
  import * as c from "three";
@@ -42,22 +42,42 @@ import "../shared-utils/five/transformPosition.js";
42
42
  import "../shared-utils/three/temp.js";
43
43
  import "../shared-utils/dom/resizeObserver.js";
44
44
  import "hammerjs";
45
+ import "../shared-utils/three/PointSelector/index.js";
46
+ import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
47
+ import "../shared-utils/three/Magnifier.js";
48
+ import "../shared-utils/three/PointSelector/utils/PointHelper.js";
49
+ import "../shared-utils/three/Assets/index.js";
50
+ import "../shared-utils/three/PointSelector/utils/html.js";
51
+ import "../shared-utils/five/initialCSS3DRender.js";
52
+ import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
53
+ import "../Sculpt/Meshes/Line.js";
54
+ import "../Sculpt/typings/style.js";
55
+ import "../shared-utils/five/FiveLine.js";
45
56
  import "@realsee/five/line";
46
57
  import "../vendor/three/examples/jsm/lines/LineGeometry.js";
47
58
  import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
48
59
  import "../vendor/three/build/three.module.js";
60
+ import "../shared-utils/three/IObject3D.js";
61
+ import "../Sculpt/utils/removeAllTag.js";
62
+ import "../Sculpt/utils/Meshes/getLengthHTML.js";
63
+ import "../shared-utils/three/applyObjectMatrixWorld.js";
64
+ import "../shared-utils/util.js";
49
65
  import "../shared-utils/three/core/Sphere.js";
50
66
  import "animejs";
51
67
  import "../shared-utils/isNil.js";
52
68
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
69
+ import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
70
+ import "../shared-utils/isTouchDevice.js";
71
+ import "../shared-utils/five/getPosition.js";
72
+ import "../shared-utils/five/getRaycasterByNdcPosition.js";
73
+ import "../shared-utils/three/PointSelector/utils/contents.js";
53
74
  import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
54
75
  import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
55
- import "../shared-utils/util.js";
56
76
  import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
57
77
  import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
58
- import "../shared-utils/url/absoluteUrl.js";
59
78
  import "../shared-utils/five/fiveModelLoad.js";
60
- const Me = (s, { videoElement: g }) => {
79
+ import "../shared-utils/url/absoluteUrl.js";
80
+ const We = (s, { videoElement: g }) => {
61
81
  const e = {
62
82
  videoMeshes: [],
63
83
  videoTextureEnabled: !1,
@@ -92,7 +112,7 @@ const Me = (s, { videoElement: g }) => {
92
112
  t();
93
113
  else
94
114
  return s.once("modelLoaded", () => t());
95
- }, m = () => {
115
+ }, l = () => {
96
116
  e.enabled && (e.enabled = !1, e.videoMeshes.forEach((t) => {
97
117
  t.geometry.dispose(), t.material.dispose(), s.scene.remove(t), e.videoTexture && e.videoTexture.image.pause();
98
118
  }), e.videoMeshes = [], s.needsRender = !0);
@@ -121,14 +141,14 @@ const Me = (s, { videoElement: g }) => {
121
141
  for (let r = 1; r < o; r++)
122
142
  a.push(1, r / o);
123
143
  a.push(1, 1);
124
- const u = [];
144
+ const m = [];
125
145
  for (let r = 0; r < o; r++)
126
- u.push(r, r + 1, o * 2 - r, r, o * 2 - r, o * 2 + 1 - r);
127
- n.setAttribute("position", new c.BufferAttribute(new Float32Array(d), 3)), n.setAttribute("uv", new c.BufferAttribute(new Float32Array(a), 2)), n.setIndex(new c.BufferAttribute(new Uint32Array(u), 1));
128
- const l = new c.MeshBasicMaterial({
146
+ m.push(r, r + 1, o * 2 - r, r, o * 2 - r, o * 2 + 1 - r);
147
+ n.setAttribute("position", new c.BufferAttribute(new Float32Array(d), 3)), n.setAttribute("uv", new c.BufferAttribute(new Float32Array(a), 2)), n.setIndex(new c.BufferAttribute(new Uint32Array(m), 1));
148
+ const u = new c.MeshBasicMaterial({
129
149
  map: e.videoTextureEnabled ? e.videoTexture : e.imageTexture,
130
150
  side: c.DoubleSide
131
- }), p = new c.Mesh(n, l);
151
+ }), p = new c.Mesh(n, u);
132
152
  p.renderOrder = 1, p.name = `ModelTVVideoPlugin-${i}-${performance.now()}`;
133
153
  const I = [t[1], t[2], t[3], t[0]], y = f.create3DDomContainer(I);
134
154
  if (y != null && y.container) {
@@ -150,17 +170,17 @@ const Me = (s, { videoElement: g }) => {
150
170
  a.onreadystatechange = () => {
151
171
  if (a.readyState === 4)
152
172
  if (a.status === 200) {
153
- const u = window.URL || window.webkitURL;
154
- n = n || document.createElement("video"), n.crossOrigin = "anonymous", n.muted = !0, n.loop = !0, n.playsInline = !0, n.src = u.createObjectURL(a.response);
155
- const l = new c.VideoTexture(n);
156
- l.minFilter = c.LinearFilter, l.magFilter = c.LinearFilter, l.format = c.RGBFormat, o(Object.assign(l, { videoSource: t }));
173
+ const m = window.URL || window.webkitURL;
174
+ n = n || document.createElement("video"), n.crossOrigin = "anonymous", n.muted = !0, n.loop = !0, n.playsInline = !0, n.src = m.createObjectURL(a.response);
175
+ const u = new c.VideoTexture(n);
176
+ u.minFilter = c.LinearFilter, u.magFilter = c.LinearFilter, u.format = c.RGBFormat, o(Object.assign(u, { videoSource: t }));
157
177
  } else
158
178
  d(new Error("Video download Error: " + a.status));
159
- }, a.onerror = (u) => d(u), a.open("GET", t), a.responseType = "blob", a.send();
179
+ }, a.onerror = (m) => d(m), a.open("GET", t), a.responseType = "blob", a.send();
160
180
  });
161
181
  }, L = (t, i) => R(void 0, null, function* () {
162
182
  const { video_src: n, video_poster_src: o, points: d } = t;
163
- e.videoSource = n, e.rectPoints = S(d).map((a) => a.map(({ x: u, y: l, z: p }) => new c.Vector3(u, l, p))), e.imageTexture = F(o), i && (e.videoElement = i), e.videoTexture = yield P(e.videoSource, e.videoElement), e.enabled = !!t.enable, e.enabled && h();
183
+ e.videoSource = n, e.rectPoints = S(d).map((a) => a.map(({ x: m, y: u, z: p }) => new c.Vector3(m, u, p))), e.imageTexture = F(o), i && (e.videoElement = i), e.videoTexture = yield P(e.videoSource, e.videoElement), e.enabled = !!t.enable, e.enabled && h();
164
184
  }), E = (t) => {
165
185
  if (!e.enabled)
166
186
  return;
@@ -174,20 +194,20 @@ const Me = (s, { videoElement: g }) => {
174
194
  return;
175
195
  const t = s.camera.position;
176
196
  if (v.forEach((i, n) => {
177
- const o = i.css3DObject.position.clone(), d = o.clone().sub(t).normalize(), a = new c.Raycaster(t, d), u = s.model.intersectRaycaster(a)[0], l = o.distanceTo(t), p = 0.01;
178
- u && u.distance + p < l ? i.hide() : i.show();
197
+ const o = i.css3DObject.position.clone(), d = o.clone().sub(t).normalize(), a = new c.Raycaster(t, d), m = s.model.intersectRaycaster(a)[0], u = o.distanceTo(t), p = 0.01;
198
+ m && m.distance + p < u ? i.hide() : i.show();
179
199
  }), !w()) {
180
200
  const i = e.rectPoints.find((n) => {
181
201
  const o = n[0].clone().add(n[1]).add(n[2]).add(n[3]).divideScalar(4);
182
202
  return n.map((d) => d.clone().add(o).divideScalar(2)).filter((d) => {
183
- const a = d.distanceTo(t), u = new c.Raycaster(t, d.clone().sub(t).normalize()), l = s.model.intersectRaycaster(u)[0], p = 0.01;
184
- return !(l && l.distance + p < a);
203
+ const a = d.distanceTo(t), m = new c.Raycaster(t, d.clone().sub(t).normalize()), u = s.model.intersectRaycaster(m)[0], p = 0.01;
204
+ return !(u && u.distance + p < a);
185
205
  }).length >= 2;
186
206
  });
187
207
  (!i || i.length === 0) && b(!0);
188
208
  }
189
209
  }, V = () => {
190
- m(), e.videoTexture = void 0, s.off("modeChange", M), s.off("wantsTapGesture", E), s.off("panoArrived", A), s.off("renderFrame", () => {
210
+ l(), e.videoTexture = void 0, s.off("modeChange", M), s.off("wantsTapGesture", E), s.off("panoArrived", A), s.off("renderFrame", () => {
191
211
  e.videoMeshes.forEach((t) => {
192
212
  t && (t.needsRender = !0);
193
213
  });
@@ -197,9 +217,9 @@ const Me = (s, { videoElement: g }) => {
197
217
  e.videoMeshes.forEach((t) => {
198
218
  t && (t.needsRender = !0);
199
219
  });
200
- }), { enable: h, disable: m, load: L, dispose: V, state: e, css3DRenderPlugin: f };
220
+ }), { enable: h, disable: l, load: L, dispose: V, state: e, css3DRenderPlugin: f };
201
221
  };
202
222
  export {
203
- Me as ModelTVVideoPlugin,
204
- Me as default
223
+ We as ModelTVVideoPlugin,
224
+ We as default
205
225
  };
@@ -1,5 +1,5 @@
1
1
  import { ModelTVVideoPlugin as r } from "./Plugin.js";
2
- import { DIRECTION as S } from "./typings.js";
2
+ import { DIRECTION as Io } from "./typings.js";
3
3
  import "three";
4
4
  import "./utils/parseData.js";
5
5
  import "../CSS3DRenderPlugin/index.js";
@@ -26,24 +26,44 @@ import "../shared-utils/five/transformPosition.js";
26
26
  import "../shared-utils/three/temp.js";
27
27
  import "../shared-utils/dom/resizeObserver.js";
28
28
  import "hammerjs";
29
+ import "../shared-utils/three/PointSelector/index.js";
30
+ import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
31
+ import "../shared-utils/three/Magnifier.js";
32
+ import "../shared-utils/three/PointSelector/utils/PointHelper.js";
33
+ import "../shared-utils/three/Assets/index.js";
34
+ import "../shared-utils/three/PointSelector/utils/html.js";
35
+ import "../shared-utils/five/initialCSS3DRender.js";
36
+ import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
37
+ import "../Sculpt/Meshes/Line.js";
38
+ import "../Sculpt/typings/style.js";
39
+ import "../shared-utils/five/FiveLine.js";
29
40
  import "@realsee/five/line";
30
41
  import "../vendor/three/examples/jsm/lines/LineGeometry.js";
31
42
  import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
32
43
  import "../vendor/three/build/three.module.js";
44
+ import "../shared-utils/three/IObject3D.js";
45
+ import "../Sculpt/utils/removeAllTag.js";
46
+ import "../Sculpt/utils/Meshes/getLengthHTML.js";
47
+ import "../shared-utils/three/applyObjectMatrixWorld.js";
48
+ import "../shared-utils/util.js";
33
49
  import "../shared-utils/three/core/Sphere.js";
34
50
  import "animejs";
35
51
  import "../shared-utils/isNil.js";
36
52
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
53
+ import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
54
+ import "../shared-utils/isTouchDevice.js";
55
+ import "../shared-utils/five/getPosition.js";
56
+ import "../shared-utils/five/getRaycasterByNdcPosition.js";
57
+ import "../shared-utils/three/PointSelector/utils/contents.js";
37
58
  import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
38
59
  import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
39
- import "../shared-utils/util.js";
40
60
  import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
41
61
  import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
42
- import "../shared-utils/url/absoluteUrl.js";
43
62
  import "../shared-utils/five/fiveModelLoad.js";
63
+ import "../shared-utils/url/absoluteUrl.js";
44
64
  import "../PanoTagPlugin/Assets/Icon.js";
45
65
  export {
46
- S as DIRECTION,
66
+ Io as DIRECTION,
47
67
  r as ModelTVVideoPlugin,
48
68
  r as default
49
69
  };