@realsee/dnalogel 3.50.17-alpha.0 → 3.51.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 (118) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/ModelMakerPlugin/Controller.d.ts +2 -0
  3. package/dist/Sculpt/utils/export.d.ts +18 -0
  4. package/dist/index.cjs.js +207 -207
  5. package/dist/index.js +34866 -34775
  6. package/dist/index.umd.js +211 -211
  7. package/dist/shared-utils/five/fiveEveryReadyListener.d.ts +2 -0
  8. package/dist/shared-utils/index.d.ts +1 -0
  9. package/dist/shared-utils/tag.d.ts +40 -1
  10. package/dist/shared-utils/three/temp.d.ts +2 -2
  11. package/libs/AreaMakerPlugin/Controller.js +100 -46
  12. package/libs/AreaMakerPlugin/index.js +64 -10
  13. package/libs/AreaMakerPlugin/utils/Item.js +156 -100
  14. package/libs/CSS3DRenderPlugin/Controller.js +93 -44
  15. package/libs/CSS3DRenderPlugin/index.js +62 -13
  16. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +105 -49
  17. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +130 -77
  18. package/libs/CruisePlugin/BaseController.js +143 -89
  19. package/libs/CruisePlugin/Move.js +83 -39
  20. package/libs/CruisePlugin/Work.js +95 -51
  21. package/libs/CruisePlugin/index.js +66 -22
  22. package/libs/CurrentPanoImagePlugin/Controller.js +139 -85
  23. package/libs/CurrentPanoImagePlugin/index.js +63 -9
  24. package/libs/GuideLinePlugin/Controller.js +57 -13
  25. package/libs/GuideLinePlugin/GuideLineItem.js +63 -19
  26. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +6 -2
  27. package/libs/GuideLinePlugin/GuideLineModeItem.js +58 -14
  28. package/libs/GuideLinePlugin/index.js +66 -22
  29. package/libs/ModelMakerPlugin/Controller.d.ts +2 -0
  30. package/libs/ModelMakerPlugin/Controller.js +190 -129
  31. package/libs/ModelMakerPlugin/index.js +63 -21
  32. package/libs/ModelMakerPlugin/item/baseItem.js +4 -2
  33. package/libs/ModelMakerPlugin/item/boxItem.js +5 -3
  34. package/libs/ModelMakerPlugin/item/polygonItem.js +9 -7
  35. package/libs/ModelMakerPlugin/item/prismItem.js +5 -3
  36. package/libs/ModelTVVideoPlugin/Plugin.js +96 -47
  37. package/libs/ModelTVVideoPlugin/index.js +55 -6
  38. package/libs/Object3DHelperPlugin/Controller.js +42 -25
  39. package/libs/Object3DHelperPlugin/index.js +28 -12
  40. package/libs/PanoCompassPlugin/Controller.js +92 -44
  41. package/libs/PanoCompassPlugin/index.js +63 -15
  42. package/libs/PanoDoorLabelPlugin/BaseController.js +79 -25
  43. package/libs/PanoDoorLabelPlugin/Controller.js +132 -78
  44. package/libs/PanoDoorLabelPlugin/index.js +63 -9
  45. package/libs/PanoMeasurePlugin/Components/Controller0.js +126 -77
  46. package/libs/PanoMeasurePlugin/Components/Controller1.js +139 -90
  47. package/libs/PanoMeasurePlugin/Controller/EditController.js +120 -71
  48. package/libs/PanoMeasurePlugin/Controller/WatchController.js +120 -70
  49. package/libs/PanoMeasurePlugin/Controller/index.js +132 -86
  50. package/libs/PanoMeasurePlugin/Model/area.js +72 -22
  51. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +56 -0
  52. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +64 -15
  53. package/libs/PanoMeasurePlugin/index.js +62 -16
  54. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +57 -2
  55. package/libs/PanoRulerProPlugin/Controller.js +88 -33
  56. package/libs/PanoRulerProPlugin/RulerItems.js +146 -91
  57. package/libs/PanoRulerProPlugin/index.js +64 -9
  58. package/libs/PanoSpatialTagPlugin/Plugin.js +177 -128
  59. package/libs/PanoSpatialTagPlugin/index.js +53 -4
  60. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +116 -60
  61. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +192 -136
  62. package/libs/PanoTagPlugin/Components/Tag/index.js +194 -139
  63. package/libs/PanoTagPlugin/Components/TagContainer.js +112 -57
  64. package/libs/PanoTagPlugin/Components/TagItem.js +204 -149
  65. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +157 -101
  66. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +75 -20
  67. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +86 -31
  68. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +93 -37
  69. package/libs/PanoTagPlugin/controller/TagRender.js +62 -18
  70. package/libs/PanoTagPlugin/controller/TagUtil.js +123 -79
  71. package/libs/PanoTagPlugin/controller/index.js +110 -72
  72. package/libs/PanoTagPlugin/index.js +72 -28
  73. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +77 -21
  74. package/libs/PanoVideoPlugin/Controller.js +95 -41
  75. package/libs/PanoVideoPlugin/VideoMeshController.js +119 -63
  76. package/libs/PanoVideoPlugin/index.js +66 -12
  77. package/libs/PipelinePlugin/Controller.js +173 -119
  78. package/libs/PipelinePlugin/index.js +63 -9
  79. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +70 -14
  80. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +58 -2
  81. package/libs/PipelinePlugin/utils/Objects/Pipe.js +98 -42
  82. package/libs/Sculpt/Meshes/Box.js +3 -2
  83. package/libs/Sculpt/Meshes/Cylinder.js +10 -6
  84. package/libs/Sculpt/Meshes/Line.js +43 -38
  85. package/libs/Sculpt/Meshes/LineWithDots.js +14 -10
  86. package/libs/Sculpt/Meshes/Point.js +24 -20
  87. package/libs/Sculpt/Meshes/Polygon.js +5 -2
  88. package/libs/Sculpt/Meshes/Prism.js +19 -16
  89. package/libs/Sculpt/Objects/Line/Editor.js +6 -5
  90. package/libs/Sculpt/index.js +15 -14
  91. package/libs/Sculpt/utils/export.d.ts +18 -0
  92. package/libs/Sculpt/utils/export.js +21 -0
  93. package/libs/Sculpt/utils/three/ColoredMesh.js +26 -22
  94. package/libs/base/BasePlugin.js +14 -10
  95. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +146 -94
  96. package/libs/floorplan/MapviewFloorplanPlugin/index.js +62 -10
  97. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +109 -56
  98. package/libs/floorplan/ModelFloorplanPlugin/index.js +62 -9
  99. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +116 -63
  100. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +62 -9
  101. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +105 -52
  102. package/libs/floorplan/TopviewFloorplanPlugin/index.js +62 -9
  103. package/libs/floorplan/index.js +4 -0
  104. package/libs/index.js +208 -206
  105. package/libs/shared-utils/five/fiveEveryReadyListener.d.ts +2 -0
  106. package/libs/shared-utils/five/fiveEveryReadyListener.js +15 -0
  107. package/libs/shared-utils/five/index.js +6 -2
  108. package/libs/shared-utils/five/lookObject.js +31 -27
  109. package/libs/shared-utils/index.d.ts +1 -0
  110. package/libs/shared-utils/index.js +19 -17
  111. package/libs/shared-utils/logger.js +1 -1
  112. package/libs/shared-utils/tag.d.ts +40 -1
  113. package/libs/shared-utils/tag.js +139 -86
  114. package/libs/shared-utils/three/index.js +4 -0
  115. package/libs/shared-utils/three/temp.d.ts +2 -2
  116. package/libs/shared-utils/three/temp.js +4 -4
  117. package/package.json +1 -1
  118. package/README.md +0 -116
@@ -1,6 +1,6 @@
1
1
  var r = Object.defineProperty;
2
- var s = (t, i, e) => i in t ? r(t, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[i] = e;
3
- var o = (t, i, e) => (s(t, typeof i != "symbol" ? i + "" : i, e), e);
2
+ var s = (e, i, t) => i in e ? r(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t;
3
+ var o = (e, i, t) => (s(e, typeof i != "symbol" ? i + "" : i, t), t);
4
4
  import { ModelMakerBaseItem as p } from "./baseItem.js";
5
5
  import "three";
6
6
  import "../../shared-utils/three/addIfNotExists.js";
@@ -14,18 +14,20 @@ import "../../shared-utils/Utils/BaseUtil.js";
14
14
  import "../../shared-utils/Utils/WorkUtil.js";
15
15
  import "../../shared-utils/five/transformPosition.js";
16
16
  import "../../shared-utils/three/temp.js";
17
+ import "../../shared-utils/three/core/Raycaster.js";
17
18
  import "../../shared-utils/dom/resizeObserver.js";
19
+ import "../../shared-utils/five/fiveEveryReadyListener.js";
20
+ import "../../shared-utils/throttle.js";
18
21
  import "../../shared-utils/three/boundingBox.js";
19
22
  import "../../shared-utils/three/core/Sphere.js";
20
23
  import "../utils/getFiveDomEvent.js";
21
24
  import "../../shared-utils/five/FiveDomEvents.js";
22
25
  import "../../shared-utils/three/getObjectVisible.js";
23
26
  import "../../shared-utils/five/calculateThreeMouse.js";
24
- import "../../shared-utils/three/core/Raycaster.js";
25
27
  import "../../shared-utils/isTouchDevice.js";
26
- class R extends p {
27
- constructor(...e) {
28
- super(...e);
28
+ class z extends p {
29
+ constructor(...t) {
30
+ super(...t);
29
31
  o(this, "hideTag", () => {
30
32
  this.tag.hide();
31
33
  });
@@ -45,5 +47,5 @@ class R extends p {
45
47
  }
46
48
  }
47
49
  export {
48
- R as ModelMakerPolygonItem
50
+ z as ModelMakerPolygonItem
49
51
  };
@@ -25,19 +25,21 @@ import "../../shared-utils/Utils/BaseUtil.js";
25
25
  import "../../shared-utils/Utils/WorkUtil.js";
26
26
  import "../../shared-utils/five/transformPosition.js";
27
27
  import "../../shared-utils/three/temp.js";
28
+ import "../../shared-utils/three/core/Raycaster.js";
28
29
  import "../../shared-utils/dom/resizeObserver.js";
30
+ import "../../shared-utils/five/fiveEveryReadyListener.js";
31
+ import "../../shared-utils/throttle.js";
29
32
  import "../utils/getFiveDomEvent.js";
30
33
  import "../../shared-utils/five/FiveDomEvents.js";
31
34
  import "../../shared-utils/three/getObjectVisible.js";
32
35
  import "../../shared-utils/five/calculateThreeMouse.js";
33
- import "../../shared-utils/three/core/Raycaster.js";
34
36
  import "../../shared-utils/isTouchDevice.js";
35
- class J extends f {
37
+ class L extends f {
36
38
  constructor(...o) {
37
39
  const r = o[0], m = M(r.model), a = new u.Vector3().lerpVectors(n(m, 0), n(m, 5), 0.5);
38
40
  super(s(e({}, r), { position: a })), this.enable();
39
41
  }
40
42
  }
41
43
  export {
42
- J as ModelMakerPrismItem
44
+ L as ModelMakerPrismItem
43
45
  };
@@ -1,20 +1,20 @@
1
1
  var R = (s, g, e) => new Promise((f, v) => {
2
- var b = (l) => {
2
+ var b = (u) => {
3
3
  try {
4
- h(e.next(l));
4
+ h(e.next(u));
5
5
  } catch (x) {
6
6
  v(x);
7
7
  }
8
- }, w = (l) => {
8
+ }, w = (u) => {
9
9
  try {
10
- h(e.throw(l));
10
+ h(e.throw(u));
11
11
  } catch (x) {
12
12
  v(x);
13
13
  }
14
- }, h = (l) => l.done ? f(l.value) : Promise.resolve(l.value).then(b, w);
14
+ }, h = (u) => u.done ? f(u.value) : Promise.resolve(u.value).then(b, w);
15
15
  h((e = e.apply(s, g)).next());
16
16
  });
17
- import * as c from "three";
17
+ import * as d from "three";
18
18
  import { parseModelTVVideoPoints as S } from "./utils/parseData.js";
19
19
  import { CSS3DRenderPlugin as z } from "../CSS3DRenderPlugin/index.js";
20
20
  import { Image_Play_Icon_With_Text as O } from "../PanoTagPlugin/Assets/Icon.js";
@@ -40,7 +40,10 @@ import "../shared-utils/Utils/BaseUtil.js";
40
40
  import "../shared-utils/Utils/WorkUtil.js";
41
41
  import "../shared-utils/five/transformPosition.js";
42
42
  import "../shared-utils/three/temp.js";
43
+ import "../shared-utils/three/core/Raycaster.js";
43
44
  import "../shared-utils/dom/resizeObserver.js";
45
+ import "../shared-utils/five/fiveEveryReadyListener.js";
46
+ import "../shared-utils/throttle.js";
44
47
  import "hammerjs";
45
48
  import "../shared-utils/three/PointSelector/index.js";
46
49
  import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
@@ -66,18 +69,64 @@ import "../shared-utils/three/core/Sphere.js";
66
69
  import "animejs";
67
70
  import "../shared-utils/isNil.js";
68
71
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
69
- import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
72
+ import "../Sculpt/Meshes/Polygon.js";
73
+ import "../shared-utils/three/generatePolygonGeometry.js";
74
+ import "../shared-utils/three/earcut3D.js";
75
+ import "earcut";
76
+ import "../shared-utils/three/getNormal.js";
77
+ import "../PanoMeasurePlugin/utils/isIntersecting.js";
78
+ import "../Sculpt/utils/three/ColoredMesh.js";
79
+ import "../Sculpt/utils/Modules/Global.js";
80
+ import "../Sculpt/utils/Modules/Cursor.js";
81
+ import "../Object3DHelperPlugin/Controller.js";
82
+ import "../base/BasePlugin.js";
83
+ import "../shared-utils/url/absoluteUrl.js";
84
+ import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
85
+ import "../Sculpt/utils/three/rayOnLine.js";
86
+ import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
87
+ import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
88
+ import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
89
+ import "../shared-utils/three/boundingBox.js";
90
+ import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
91
+ import "../shared-utils/Object3DHelper/utils/direction.js";
92
+ import "../shared-utils/Object3DHelper/Constants/color.js";
93
+ import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
94
+ import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
95
+ import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
96
+ import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
97
+ import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
98
+ import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
99
+ import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
100
+ import "../shared-utils/Object3DHelper/Controller/MoveController.js";
101
+ import "../shared-utils/Object3DHelper/Base/BaseController.js";
102
+ import "../shared-utils/threex/domevents/index.js";
103
+ import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
104
+ import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
105
+ import "../Object3DHelperPlugin/FiveControllerWrapper.js";
106
+ import "../shared-utils/Object3DHelper/index.js";
107
+ import "../shared-utils/Object3DHelper/Controller/RotateController.js";
108
+ import "../shared-utils/math/rad2Deg.js";
109
+ import "../shared-utils/math/deg2Rad.js";
110
+ import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
111
+ import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
112
+ import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
113
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
114
+ import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
115
+ import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
116
+ import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
117
+ import "../shared-utils/five/fiveModelLoad.js";
118
+ import "../shared-utils/five/FiveDomEvents.js";
119
+ import "../shared-utils/five/calculateThreeMouse.js";
70
120
  import "../shared-utils/isTouchDevice.js";
121
+ import "../shared-utils/three/geometryUtil.js";
122
+ import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
71
123
  import "../shared-utils/five/getPosition.js";
72
124
  import "../shared-utils/five/getRaycasterByNdcPosition.js";
73
125
  import "../shared-utils/three/PointSelector/utils/contents.js";
74
126
  import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
75
127
  import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
76
128
  import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
77
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
78
- import "../shared-utils/five/fiveModelLoad.js";
79
- import "../shared-utils/url/absoluteUrl.js";
80
- const We = (s, { videoElement: g }) => {
129
+ const Ct = (s, { videoElement: g }) => {
81
130
  const e = {
82
131
  videoMeshes: [],
83
132
  videoTextureEnabled: !1,
@@ -112,27 +161,27 @@ const We = (s, { videoElement: g }) => {
112
161
  t();
113
162
  else
114
163
  return s.once("modelLoaded", () => t());
115
- }, l = () => {
164
+ }, u = () => {
116
165
  e.enabled && (e.enabled = !1, e.videoMeshes.forEach((t) => {
117
166
  t.geometry.dispose(), t.material.dispose(), s.scene.remove(t), e.videoTexture && e.videoTexture.image.pause();
118
167
  }), e.videoMeshes = [], s.needsRender = !0);
119
168
  }, x = () => e.rectPoints.map((t, i) => {
120
- const n = new c.BufferGeometry(), o = 128, d = [];
121
- d.push(...t[0].toArray());
169
+ const n = new d.BufferGeometry(), o = 128, m = [];
170
+ m.push(...t[0].toArray());
122
171
  for (let r = 1; r < o; r++)
123
- d.push(
172
+ m.push(
124
173
  t[0].x + (t[1].x - t[0].x) * r / o,
125
174
  t[0].y + (t[1].y - t[0].y) * r / o,
126
175
  t[0].z + (t[1].z - t[0].z) * r / o
127
176
  );
128
- d.push(...t[1].toArray()), d.push(...t[2].toArray());
177
+ m.push(...t[1].toArray()), m.push(...t[2].toArray());
129
178
  for (let r = 1; r < o; r++)
130
- d.push(
179
+ m.push(
131
180
  t[2].x + (t[3].x - t[2].x) * r / o,
132
181
  t[2].y + (t[3].y - t[2].y) * r / o,
133
182
  t[2].z + (t[3].z - t[2].z) * r / o
134
183
  );
135
- d.push(...t[3].toArray());
184
+ m.push(...t[3].toArray());
136
185
  const a = [];
137
186
  a.push(0, 1);
138
187
  for (let r = 1; r < o; r++)
@@ -141,15 +190,15 @@ const We = (s, { videoElement: g }) => {
141
190
  for (let r = 1; r < o; r++)
142
191
  a.push(1, r / o);
143
192
  a.push(1, 1);
144
- const m = [];
193
+ const p = [];
145
194
  for (let r = 0; r < o; r++)
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({
195
+ p.push(r, r + 1, o * 2 - r, r, o * 2 - r, o * 2 + 1 - r);
196
+ n.setAttribute("position", new d.BufferAttribute(new Float32Array(m), 3)), n.setAttribute("uv", new d.BufferAttribute(new Float32Array(a), 2)), n.setIndex(new d.BufferAttribute(new Uint32Array(p), 1));
197
+ const c = new d.MeshBasicMaterial({
149
198
  map: e.videoTextureEnabled ? e.videoTexture : e.imageTexture,
150
- side: c.DoubleSide
151
- }), p = new c.Mesh(n, u);
152
- p.renderOrder = 1, p.name = `ModelTVVideoPlugin-${i}-${performance.now()}`;
199
+ side: d.DoubleSide
200
+ }), l = new d.Mesh(n, c);
201
+ l.renderOrder = 1, l.name = `ModelTVVideoPlugin-${i}-${performance.now()}`;
153
202
  const I = [t[1], t[2], t[3], t[0]], y = f.create3DDomContainer(I);
154
203
  if (y != null && y.container) {
155
204
  const r = document.createElement("div");
@@ -157,30 +206,30 @@ const We = (s, { videoElement: g }) => {
157
206
  const T = document.createElement("img");
158
207
  T.src = O, T.style.width = "200px", T.style.pointerEvents = "auto", T.onclick = () => {
159
208
  e.videoTexture.image.muted = !1, e.videoTexture.image.play();
160
- }, r.appendChild(T), v.set(p, y);
209
+ }, r.appendChild(T), v.set(l, y);
161
210
  }
162
- return p;
211
+ return l;
163
212
  }), F = (t) => {
164
- const i = new c.TextureLoader().load(t);
165
- return i.minFilter = c.LinearFilter, i.magFilter = c.LinearFilter, i.format = c.RGBFormat, i;
213
+ const i = new d.TextureLoader().load(t);
214
+ return i.minFilter = d.LinearFilter, i.magFilter = d.LinearFilter, i.format = d.RGBFormat, i;
166
215
  }, P = (t, i) => {
167
216
  let n = i;
168
- return new Promise((o, d) => {
217
+ return new Promise((o, m) => {
169
218
  const a = new XMLHttpRequest();
170
219
  a.onreadystatechange = () => {
171
220
  if (a.readyState === 4)
172
221
  if (a.status === 200) {
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 }));
222
+ const p = window.URL || window.webkitURL;
223
+ n = n || document.createElement("video"), n.crossOrigin = "anonymous", n.muted = !0, n.loop = !0, n.playsInline = !0, n.src = p.createObjectURL(a.response);
224
+ const c = new d.VideoTexture(n);
225
+ c.minFilter = d.LinearFilter, c.magFilter = d.LinearFilter, c.format = d.RGBFormat, o(Object.assign(c, { videoSource: t }));
177
226
  } else
178
- d(new Error("Video download Error: " + a.status));
179
- }, a.onerror = (m) => d(m), a.open("GET", t), a.responseType = "blob", a.send();
227
+ m(new Error("Video download Error: " + a.status));
228
+ }, a.onerror = (p) => m(p), a.open("GET", t), a.responseType = "blob", a.send();
180
229
  });
181
230
  }, L = (t, i) => R(void 0, null, function* () {
182
- const { video_src: n, video_poster_src: o, points: d } = t;
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();
231
+ const { video_src: n, video_poster_src: o, points: m } = t;
232
+ e.videoSource = n, e.rectPoints = S(m).map((a) => a.map(({ x: p, y: c, z: l }) => new d.Vector3(p, c, l))), e.imageTexture = F(o), i && (e.videoElement = i), e.videoTexture = yield P(e.videoSource, e.videoElement), e.enabled = !!t.enable, e.enabled && h();
184
233
  }), E = (t) => {
185
234
  if (!e.enabled)
186
235
  return;
@@ -194,20 +243,20 @@ const We = (s, { videoElement: g }) => {
194
243
  return;
195
244
  const t = s.camera.position;
196
245
  if (v.forEach((i, n) => {
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();
246
+ const o = i.css3DObject.position.clone(), m = o.clone().sub(t).normalize(), a = new d.Raycaster(t, m), p = s.model.intersectRaycaster(a)[0], c = o.distanceTo(t), l = 0.01;
247
+ p && p.distance + l < c ? i.hide() : i.show();
199
248
  }), !w()) {
200
249
  const i = e.rectPoints.find((n) => {
201
250
  const o = n[0].clone().add(n[1]).add(n[2]).add(n[3]).divideScalar(4);
202
- return n.map((d) => d.clone().add(o).divideScalar(2)).filter((d) => {
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);
251
+ return n.map((m) => m.clone().add(o).divideScalar(2)).filter((m) => {
252
+ const a = m.distanceTo(t), p = new d.Raycaster(t, m.clone().sub(t).normalize()), c = s.model.intersectRaycaster(p)[0], l = 0.01;
253
+ return !(c && c.distance + l < a);
205
254
  }).length >= 2;
206
255
  });
207
256
  (!i || i.length === 0) && b(!0);
208
257
  }
209
258
  }, V = () => {
210
- l(), e.videoTexture = void 0, s.off("modeChange", M), s.off("wantsTapGesture", E), s.off("panoArrived", A), s.off("renderFrame", () => {
259
+ u(), e.videoTexture = void 0, s.off("modeChange", M), s.off("wantsTapGesture", E), s.off("panoArrived", A), s.off("renderFrame", () => {
211
260
  e.videoMeshes.forEach((t) => {
212
261
  t && (t.needsRender = !0);
213
262
  });
@@ -217,9 +266,9 @@ const We = (s, { videoElement: g }) => {
217
266
  e.videoMeshes.forEach((t) => {
218
267
  t && (t.needsRender = !0);
219
268
  });
220
- }), { enable: h, disable: l, load: L, dispose: V, state: e, css3DRenderPlugin: f };
269
+ }), { enable: h, disable: u, load: L, dispose: V, state: e, css3DRenderPlugin: f };
221
270
  };
222
271
  export {
223
- We as ModelTVVideoPlugin,
224
- We as default
272
+ Ct as ModelTVVideoPlugin,
273
+ Ct as default
225
274
  };
@@ -1,5 +1,5 @@
1
1
  import { ModelTVVideoPlugin as r } from "./Plugin.js";
2
- import { DIRECTION as Io } from "./typings.js";
2
+ import { DIRECTION as fr } from "./typings.js";
3
3
  import "three";
4
4
  import "./utils/parseData.js";
5
5
  import "../CSS3DRenderPlugin/index.js";
@@ -24,7 +24,10 @@ import "../shared-utils/Utils/BaseUtil.js";
24
24
  import "../shared-utils/Utils/WorkUtil.js";
25
25
  import "../shared-utils/five/transformPosition.js";
26
26
  import "../shared-utils/three/temp.js";
27
+ import "../shared-utils/three/core/Raycaster.js";
27
28
  import "../shared-utils/dom/resizeObserver.js";
29
+ import "../shared-utils/five/fiveEveryReadyListener.js";
30
+ import "../shared-utils/throttle.js";
28
31
  import "hammerjs";
29
32
  import "../shared-utils/three/PointSelector/index.js";
30
33
  import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
@@ -50,20 +53,66 @@ import "../shared-utils/three/core/Sphere.js";
50
53
  import "animejs";
51
54
  import "../shared-utils/isNil.js";
52
55
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
53
- import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
56
+ import "../Sculpt/Meshes/Polygon.js";
57
+ import "../shared-utils/three/generatePolygonGeometry.js";
58
+ import "../shared-utils/three/earcut3D.js";
59
+ import "earcut";
60
+ import "../shared-utils/three/getNormal.js";
61
+ import "../PanoMeasurePlugin/utils/isIntersecting.js";
62
+ import "../Sculpt/utils/three/ColoredMesh.js";
63
+ import "../Sculpt/utils/Modules/Global.js";
64
+ import "../Sculpt/utils/Modules/Cursor.js";
65
+ import "../Object3DHelperPlugin/Controller.js";
66
+ import "../base/BasePlugin.js";
67
+ import "../shared-utils/url/absoluteUrl.js";
68
+ import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
69
+ import "../Sculpt/utils/three/rayOnLine.js";
70
+ import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
71
+ import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
72
+ import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
73
+ import "../shared-utils/three/boundingBox.js";
74
+ import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
75
+ import "../shared-utils/Object3DHelper/utils/direction.js";
76
+ import "../shared-utils/Object3DHelper/Constants/color.js";
77
+ import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
78
+ import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
79
+ import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
80
+ import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
81
+ import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
82
+ import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
83
+ import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
84
+ import "../shared-utils/Object3DHelper/Controller/MoveController.js";
85
+ import "../shared-utils/Object3DHelper/Base/BaseController.js";
86
+ import "../shared-utils/threex/domevents/index.js";
87
+ import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
88
+ import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
89
+ import "../Object3DHelperPlugin/FiveControllerWrapper.js";
90
+ import "../shared-utils/Object3DHelper/index.js";
91
+ import "../shared-utils/Object3DHelper/Controller/RotateController.js";
92
+ import "../shared-utils/math/rad2Deg.js";
93
+ import "../shared-utils/math/deg2Rad.js";
94
+ import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
95
+ import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
96
+ import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
97
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
98
+ import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
99
+ import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
100
+ import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
101
+ import "../shared-utils/five/fiveModelLoad.js";
102
+ import "../shared-utils/five/FiveDomEvents.js";
103
+ import "../shared-utils/five/calculateThreeMouse.js";
54
104
  import "../shared-utils/isTouchDevice.js";
105
+ import "../shared-utils/three/geometryUtil.js";
106
+ import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
55
107
  import "../shared-utils/five/getPosition.js";
56
108
  import "../shared-utils/five/getRaycasterByNdcPosition.js";
57
109
  import "../shared-utils/three/PointSelector/utils/contents.js";
58
110
  import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
59
111
  import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
60
112
  import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
61
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
62
- import "../shared-utils/five/fiveModelLoad.js";
63
- import "../shared-utils/url/absoluteUrl.js";
64
113
  import "../PanoTagPlugin/Assets/Icon.js";
65
114
  export {
66
- Io as DIRECTION,
115
+ fr as DIRECTION,
67
116
  r as ModelTVVideoPlugin,
68
117
  r as default
69
118
  };
@@ -1,16 +1,16 @@
1
1
  var x = Object.defineProperty;
2
2
  var P = Object.getOwnPropertySymbols;
3
3
  var I = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
4
- var S = (p, o, e) => o in p ? x(p, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[o] = e, n = (p, o) => {
4
+ var S = (n, o, e) => o in n ? x(n, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[o] = e, p = (n, o) => {
5
5
  for (var e in o || (o = {}))
6
- I.call(o, e) && S(p, e, o[e]);
6
+ I.call(o, e) && S(n, e, o[e]);
7
7
  if (P)
8
8
  for (var e of P(o))
9
- W.call(o, e) && S(p, e, o[e]);
10
- return p;
9
+ W.call(o, e) && S(n, e, o[e]);
10
+ return n;
11
11
  };
12
- var f = (p, o, e) => (S(p, typeof o != "symbol" ? o + "" : o, e), e);
13
- var g = (p, o, e) => new Promise((t, r) => {
12
+ var f = (n, o, e) => (S(n, typeof o != "symbol" ? o + "" : o, e), e);
13
+ var g = (n, o, e) => new Promise((t, r) => {
14
14
  var s = (h) => {
15
15
  try {
16
16
  b(e.next(h));
@@ -24,7 +24,7 @@ var g = (p, o, e) => new Promise((t, r) => {
24
24
  r(l);
25
25
  }
26
26
  }, b = (h) => h.done ? t(h.value) : Promise.resolve(h.value).then(s, d);
27
- b((e = e.apply(p, o)).next());
27
+ b((e = e.apply(n, o)).next());
28
28
  });
29
29
  import { Controller as L } from "../base/BasePlugin.js";
30
30
  import "three";
@@ -54,7 +54,10 @@ import "../shared-utils/Utils/BaseUtil.js";
54
54
  import "../shared-utils/Utils/WorkUtil.js";
55
55
  import "../shared-utils/five/transformPosition.js";
56
56
  import "../shared-utils/three/temp.js";
57
+ import "../shared-utils/three/core/Raycaster.js";
57
58
  import "../shared-utils/dom/resizeObserver.js";
59
+ import "../shared-utils/five/fiveEveryReadyListener.js";
60
+ import "../shared-utils/throttle.js";
58
61
  import "hammerjs";
59
62
  import "../shared-utils/three/PointSelector/index.js";
60
63
  import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
@@ -74,6 +77,27 @@ import "../vendor/three/build/three.module.js";
74
77
  import "animejs";
75
78
  import "../shared-utils/isNil.js";
76
79
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
80
+ import "../Sculpt/Meshes/Polygon.js";
81
+ import "../shared-utils/three/generatePolygonGeometry.js";
82
+ import "../shared-utils/three/earcut3D.js";
83
+ import "earcut";
84
+ import "../shared-utils/three/getNormal.js";
85
+ import "../PanoMeasurePlugin/utils/isIntersecting.js";
86
+ import "../Sculpt/typings/style.js";
87
+ import "../Sculpt/utils/three/ColoredMesh.js";
88
+ import "../shared-utils/three/IObject3D.js";
89
+ import "../Sculpt/utils/Modules/Global.js";
90
+ import "../Sculpt/utils/Modules/Cursor.js";
91
+ import "./Controller.js";
92
+ import "../shared-utils/five/FiveDomEvents.js";
93
+ import "../shared-utils/five/calculateThreeMouse.js";
94
+ import "../shared-utils/isTouchDevice.js";
95
+ import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
96
+ import "../Sculpt/utils/three/rayOnLine.js";
97
+ import "../shared-utils/three/geometryUtil.js";
98
+ import "../Sculpt/utils/Meshes/getLengthHTML.js";
99
+ import "../shared-utils/three/applyObjectMatrixWorld.js";
100
+ import "../shared-utils/util.js";
77
101
  import "../shared-utils/three/PointSelector/utils/html.js";
78
102
  import "../shared-utils/five/initialCSS3DRender.js";
79
103
  import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
@@ -81,15 +105,9 @@ import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
81
105
  import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
82
106
  import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
83
107
  import "../Sculpt/Meshes/Line.js";
84
- import "../Sculpt/typings/style.js";
85
108
  import "../shared-utils/five/FiveLine.js";
86
- import "../shared-utils/three/IObject3D.js";
87
109
  import "../Sculpt/utils/removeAllTag.js";
88
- import "../Sculpt/utils/Meshes/getLengthHTML.js";
89
- import "../shared-utils/three/applyObjectMatrixWorld.js";
90
- import "../shared-utils/util.js";
91
110
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
92
- import "../shared-utils/isTouchDevice.js";
93
111
  import "../shared-utils/five/getPosition.js";
94
112
  import "../shared-utils/five/getRaycasterByNdcPosition.js";
95
113
  import "../shared-utils/three/PointSelector/utils/contents.js";
@@ -101,6 +119,9 @@ import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
101
119
  import "../shared-utils/Object3DHelper/utils/direction.js";
102
120
  import "../shared-utils/Object3DHelper/Constants/color.js";
103
121
  import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
122
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
123
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
124
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
104
125
  import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
105
126
  import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
106
127
  import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
@@ -108,14 +129,10 @@ import "../shared-utils/Object3DHelper/Base/BaseController.js";
108
129
  import "../shared-utils/threex/domevents/index.js";
109
130
  import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
110
131
  import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
111
- import "../Sculpt/utils/three/rayOnLine.js";
112
132
  import "../shared-utils/math/rad2Deg.js";
113
133
  import "../shared-utils/math/deg2Rad.js";
114
134
  import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
115
135
  import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
116
- import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
117
- import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
118
- import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
119
136
  const w = "Object3DHelperPlugin", D = w, X = () => {
120
137
  console.error(`${D} is disposed`);
121
138
  }, Y = () => {
@@ -123,7 +140,7 @@ const w = "Object3DHelperPlugin", D = w, X = () => {
123
140
  }, Z = () => {
124
141
  console.error(`${D} is disabled`);
125
142
  };
126
- class _r extends L {
143
+ class et extends L {
127
144
  constructor(e) {
128
145
  super(e);
129
146
  f(this, "name", w);
@@ -176,8 +193,8 @@ class _r extends L {
176
193
  return X();
177
194
  if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
178
195
  return Z();
179
- const r = n({}, this.state);
180
- this.state = n(n({}, this.state), e), e.disposed !== void 0 && e.disposed !== r.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== r.visible && this.handleVisible(e.visible), e.enabled !== void 0 && e.enabled !== r.enabled && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: r });
196
+ const r = p({}, this.state);
197
+ this.state = p(p({}, this.state), e), e.disposed !== void 0 && e.disposed !== r.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== r.visible && this.handleVisible(e.visible), e.enabled !== void 0 && e.enabled !== r.enabled && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: r });
181
198
  }
182
199
  getObject3DHelper(e) {
183
200
  return this.objectHelperMap.get(e);
@@ -199,7 +216,7 @@ class _r extends L {
199
216
  console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);
200
217
  return;
201
218
  }
202
- const r = new N(), s = [], d = (M = this.five.getElement()) == null ? void 0 : M.parentElement, b = this.five.camera, l = n(n({}, {
219
+ const r = new N(), s = [], d = (M = this.five.getElement()) == null ? void 0 : M.parentElement, b = this.five.camera, l = p(p({}, {
203
220
  moveHelper: !0,
204
221
  rotateHelper: !0,
205
222
  scaleHelper: !0,
@@ -210,11 +227,11 @@ class _r extends L {
210
227
  return typeof i == "boolean" ? i : i.enable;
211
228
  };
212
229
  if (C(y)) {
213
- const i = n(n({}, this.getConfig(l.moveHelper)), l), m = new _(e, n({}, i)), a = new H(this.five, U, e, m, i, u, v);
230
+ const i = p(p({}, this.getConfig(l.moveHelper)), l), m = new _(e, p({}, i)), a = new H(this.five, U, e, m, i, u, v);
214
231
  r.addControllers({ moveController: a.helperController }), s.push(() => a.dispose());
215
232
  }
216
233
  if (C(B)) {
217
- const i = n(n({}, this.getConfig(l.rotateHelper)), l), m = new $(e, n({ container: d }, i)), a = new H(this.five, V, e, m, i, u, v);
234
+ const i = p(p({}, this.getConfig(l.rotateHelper)), l), m = new $(e, p({ container: d }, i)), a = new H(this.five, V, e, m, i, u, v);
218
235
  r.addControllers({ rotateController: a.helperController }), s.push(() => a.dispose());
219
236
  }
220
237
  if (C(k)) {
@@ -251,7 +268,7 @@ class _r extends L {
251
268
  }
252
269
  });
253
270
  } else {
254
- const i = n(n({}, this.getConfig(l.scaleHelper)), l), m = new K(e, i), a = new H(this.five, Q, e, m, i, u, v);
271
+ const i = p(p({}, this.getConfig(l.scaleHelper)), l), m = new K(e, i), a = new H(this.five, Q, e, m, i, u, v);
255
272
  r.addControllers({ scaleController: a.helperController }), s.push(() => a.dispose());
256
273
  }
257
274
  return this.objectHelperMap.set(e, { helper: r, disposers: s }), r.controllers;
@@ -295,6 +312,6 @@ class _r extends L {
295
312
  }
296
313
  }
297
314
  export {
298
- _r as Object3DHelperController,
315
+ et as Object3DHelperController,
299
316
  D as PLUGIN
300
317
  };