@realsee/dnalogel 3.51.0 → 3.52.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 (278) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/Object3DHelperPlugin/Controller.d.ts +9 -9
  3. package/dist/Object3DHelperPlugin/FiveControllerWrapper.d.ts +4 -2
  4. package/dist/PanoMeasurePlugin/Model/area.d.ts +1 -1
  5. package/dist/PanoMeasurePlugin/Model/polygon.d.ts +1 -1
  6. package/dist/PanoMeasurePlugin/typings/data.d.ts +1 -2
  7. package/dist/Sculpt/Editors/BoxMeshEditor.d.ts +5 -0
  8. package/dist/Sculpt/Editors/CircleMeshEditor.d.ts +5 -0
  9. package/dist/Sculpt/Editors/CylinderMeshEditor.d.ts +5 -0
  10. package/dist/Sculpt/Editors/PrismMeshEditor.d.ts +5 -0
  11. package/dist/Sculpt/Editors/RectangleMeshEditor.d.ts +5 -0
  12. package/dist/Sculpt/Meshes/Box.d.ts +6 -24
  13. package/dist/Sculpt/Meshes/Circle.d.ts +0 -4
  14. package/dist/Sculpt/Meshes/Cylinder.d.ts +0 -1
  15. package/dist/Sculpt/Meshes/Line.d.ts +9 -22
  16. package/dist/Sculpt/Meshes/Polygon.d.ts +1 -5
  17. package/dist/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
  18. package/dist/Sculpt/Meshes/Prism.d.ts +29 -10
  19. package/dist/Sculpt/Meshes/Rectangle.d.ts +1 -5
  20. package/dist/Sculpt/Objects/Base/index.d.ts +3 -3
  21. package/dist/Sculpt/Objects/Box/index.d.ts +7 -2
  22. package/dist/Sculpt/Objects/Circle/index.d.ts +3 -0
  23. package/dist/Sculpt/Objects/Cylinder/index.d.ts +3 -0
  24. package/dist/Sculpt/Objects/Line/index.d.ts +3 -0
  25. package/dist/Sculpt/Objects/Point/index.d.ts +3 -0
  26. package/dist/Sculpt/Objects/Polygon/index.d.ts +3 -0
  27. package/dist/Sculpt/Objects/Polyline/index.d.ts +3 -0
  28. package/dist/Sculpt/Objects/Prism/index.d.ts +3 -0
  29. package/dist/Sculpt/Objects/Rectangle/index.d.ts +13 -2
  30. package/dist/Sculpt/index.d.ts +10 -19
  31. package/dist/Sculpt/typings/style.d.ts +6 -0
  32. package/dist/Sculpt/utils/export.d.ts +24 -18
  33. package/dist/Sculpt/utils/sortPositionsByCameraPosition.d.ts +5 -0
  34. package/dist/Sculpt/utils/three/ColoredMesh.d.ts +4 -0
  35. package/dist/index.cjs.js +88 -3009
  36. package/dist/index.d.ts +79 -1
  37. package/dist/index.js +35141 -54254
  38. package/dist/index.umd.js +81 -3002
  39. package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +1 -0
  40. package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +7 -3
  41. package/dist/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +0 -1
  42. package/dist/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.d.ts +3 -1
  43. package/dist/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts +2 -0
  44. package/dist/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -1
  45. package/dist/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  46. package/dist/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +4 -2
  47. package/dist/shared-utils/Object3DHelper/typings/index.d.ts +1 -1
  48. package/dist/shared-utils/Object3DHelper/utils/calculateScaleByCamera.d.ts +4 -1
  49. package/dist/shared-utils/five/FiveLine.d.ts +18 -14
  50. package/dist/shared-utils/index.d.ts +0 -1
  51. package/dist/shared-utils/math/planimetry.d.ts +1 -1
  52. package/dist/shared-utils/tag.d.ts +5 -7
  53. package/dist/shared-utils/three/boundingBox.d.ts +14 -20
  54. package/dist/shared-utils/three/core/LineGeometry.d.ts +13 -0
  55. package/dist/shared-utils/three/core/PrismGeometry.d.ts +14 -0
  56. package/dist/shared-utils/three/geometryUtil.d.ts +8 -0
  57. package/dist/shared-utils/three/getNormal.d.ts +5 -2
  58. package/libs/AreaMakerPlugin/Controller.js +47 -100
  59. package/libs/AreaMakerPlugin/index.js +12 -65
  60. package/libs/AreaMakerPlugin/utils/Item.js +102 -157
  61. package/libs/CSS3DRenderPlugin/Controller.js +45 -93
  62. package/libs/CSS3DRenderPlugin/index.js +15 -63
  63. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +51 -106
  64. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +79 -131
  65. package/libs/CruisePlugin/BaseController.js +90 -143
  66. package/libs/CruisePlugin/Move.js +39 -83
  67. package/libs/CruisePlugin/Work.js +52 -96
  68. package/libs/CruisePlugin/index.js +23 -67
  69. package/libs/CurrentPanoImagePlugin/Controller.js +88 -141
  70. package/libs/CurrentPanoImagePlugin/index.js +11 -64
  71. package/libs/GuideLinePlugin/Controller.js +13 -57
  72. package/libs/GuideLinePlugin/GuideLineItem.js +20 -64
  73. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -8
  74. package/libs/GuideLinePlugin/GuideLineModeItem.js +15 -59
  75. package/libs/GuideLinePlugin/index.js +23 -67
  76. package/libs/ModelMakerPlugin/Controller.js +125 -165
  77. package/libs/ModelMakerPlugin/index.js +23 -63
  78. package/libs/ModelMakerPlugin/item/baseItem.js +2 -3
  79. package/libs/ModelMakerPlugin/item/boxItem.js +2 -3
  80. package/libs/ModelMakerPlugin/item/polygonItem.js +6 -7
  81. package/libs/ModelMakerPlugin/item/prismItem.js +2 -3
  82. package/libs/ModelMakerPlugin/utils/getFiveDomEvent.js +2 -3
  83. package/libs/ModelTVVideoPlugin/Plugin.js +49 -97
  84. package/libs/ModelTVVideoPlugin/index.js +8 -56
  85. package/libs/Object3DHelperPlugin/Controller.d.ts +9 -9
  86. package/libs/Object3DHelperPlugin/Controller.js +105 -92
  87. package/libs/Object3DHelperPlugin/FiveControllerWrapper.d.ts +4 -2
  88. package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +35 -30
  89. package/libs/Object3DHelperPlugin/index.js +15 -30
  90. package/libs/PanoCompassPlugin/Controller.js +46 -93
  91. package/libs/PanoCompassPlugin/index.js +17 -64
  92. package/libs/PanoCursorRaycasterPlugin/index.js +4 -3
  93. package/libs/PanoDoorLabelPlugin/BaseController.js +27 -80
  94. package/libs/PanoDoorLabelPlugin/Controller.js +80 -133
  95. package/libs/PanoDoorLabelPlugin/index.js +11 -64
  96. package/libs/PanoMeasurePlugin/Components/Controller0.js +79 -128
  97. package/libs/PanoMeasurePlugin/Components/Controller1.js +92 -141
  98. package/libs/PanoMeasurePlugin/Controller/BaseController.js +3 -2
  99. package/libs/PanoMeasurePlugin/Controller/EditController.js +73 -122
  100. package/libs/PanoMeasurePlugin/Controller/MixedController.js +3 -2
  101. package/libs/PanoMeasurePlugin/Controller/ViewController.js +3 -2
  102. package/libs/PanoMeasurePlugin/Controller/WatchController.js +72 -121
  103. package/libs/PanoMeasurePlugin/Controller/index.js +89 -135
  104. package/libs/PanoMeasurePlugin/Model/area.d.ts +1 -1
  105. package/libs/PanoMeasurePlugin/Model/area.js +25 -74
  106. package/libs/PanoMeasurePlugin/Model/index.js +3 -2
  107. package/libs/PanoMeasurePlugin/Model/line.js +1 -0
  108. package/libs/PanoMeasurePlugin/Model/polygon.d.ts +1 -1
  109. package/libs/PanoMeasurePlugin/Model/polygon.js +7 -7
  110. package/libs/PanoMeasurePlugin/Model/polyline.js +3 -2
  111. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -56
  112. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +17 -66
  113. package/libs/PanoMeasurePlugin/index.js +18 -64
  114. package/libs/PanoMeasurePlugin/typings/data.d.ts +1 -2
  115. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +5 -59
  116. package/libs/PanoMeasurePlugin/utils/line.js +3 -2
  117. package/libs/PanoRulerProPlugin/Controller.js +34 -89
  118. package/libs/PanoRulerProPlugin/RulerItems.js +92 -147
  119. package/libs/PanoRulerProPlugin/index.js +10 -65
  120. package/libs/PanoSpatialTagPlugin/Plugin.js +130 -178
  121. package/libs/PanoSpatialTagPlugin/index.js +6 -54
  122. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +61 -116
  123. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +138 -193
  124. package/libs/PanoTagPlugin/Components/Tag/index.js +140 -194
  125. package/libs/PanoTagPlugin/Components/TagContainer.js +58 -112
  126. package/libs/PanoTagPlugin/Components/TagItem.js +137 -191
  127. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +109 -164
  128. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +22 -76
  129. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +33 -87
  130. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +39 -94
  131. package/libs/PanoTagPlugin/controller/TagRender.js +18 -62
  132. package/libs/PanoTagPlugin/controller/TagUtil.js +80 -124
  133. package/libs/PanoTagPlugin/controller/index.js +37 -81
  134. package/libs/PanoTagPlugin/index.js +28 -72
  135. package/libs/PanoTagPlugin/utils/model/mediaPlane.js +14 -14
  136. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +22 -77
  137. package/libs/PanoVideoPlugin/Controller.js +43 -96
  138. package/libs/PanoVideoPlugin/VideoMeshController.js +64 -119
  139. package/libs/PanoVideoPlugin/index.js +14 -67
  140. package/libs/PipelinePlugin/Controller.js +123 -176
  141. package/libs/PipelinePlugin/index.js +11 -64
  142. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +15 -70
  143. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -58
  144. package/libs/PipelinePlugin/utils/Objects/Pipe.js +42 -97
  145. package/libs/Sculpt/Editors/BoxMeshEditor.d.ts +5 -0
  146. package/libs/Sculpt/Editors/BoxMeshEditor.js +98 -0
  147. package/libs/Sculpt/Editors/CircleMeshEditor.d.ts +5 -0
  148. package/libs/Sculpt/Editors/CircleMeshEditor.js +9 -0
  149. package/libs/Sculpt/Editors/CylinderMeshEditor.d.ts +5 -0
  150. package/libs/Sculpt/Editors/CylinderMeshEditor.js +41 -0
  151. package/libs/Sculpt/Editors/PrismMeshEditor.d.ts +5 -0
  152. package/libs/Sculpt/Editors/PrismMeshEditor.js +43 -0
  153. package/libs/Sculpt/Editors/RectangleMeshEditor.d.ts +5 -0
  154. package/libs/Sculpt/Editors/RectangleMeshEditor.js +70 -0
  155. package/libs/Sculpt/Meshes/Box.d.ts +6 -24
  156. package/libs/Sculpt/Meshes/Box.js +22 -93
  157. package/libs/Sculpt/Meshes/Circle.d.ts +0 -4
  158. package/libs/Sculpt/Meshes/Circle.js +18 -27
  159. package/libs/Sculpt/Meshes/Cylinder.d.ts +0 -1
  160. package/libs/Sculpt/Meshes/Cylinder.js +17 -24
  161. package/libs/Sculpt/Meshes/Line.d.ts +9 -22
  162. package/libs/Sculpt/Meshes/Line.js +85 -104
  163. package/libs/Sculpt/Meshes/LineWithDots.js +10 -14
  164. package/libs/Sculpt/Meshes/Point.js +29 -34
  165. package/libs/Sculpt/Meshes/Polygon.d.ts +1 -5
  166. package/libs/Sculpt/Meshes/Polygon.js +40 -53
  167. package/libs/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
  168. package/libs/Sculpt/Meshes/Prism.d.ts +29 -10
  169. package/libs/Sculpt/Meshes/Prism.js +108 -84
  170. package/libs/Sculpt/Meshes/Rectangle.d.ts +1 -5
  171. package/libs/Sculpt/Meshes/Rectangle.js +12 -22
  172. package/libs/Sculpt/Meshes/RectangleWithEdge.js +17 -20
  173. package/libs/Sculpt/Objects/Base/index.d.ts +3 -3
  174. package/libs/Sculpt/Objects/Base/index.js +20 -25
  175. package/libs/Sculpt/Objects/Box/index.d.ts +7 -2
  176. package/libs/Sculpt/Objects/Box/index.js +72 -60
  177. package/libs/Sculpt/Objects/Circle/index.d.ts +3 -0
  178. package/libs/Sculpt/Objects/Circle/index.js +41 -37
  179. package/libs/Sculpt/Objects/Cylinder/index.d.ts +3 -0
  180. package/libs/Sculpt/Objects/Cylinder/index.js +66 -62
  181. package/libs/Sculpt/Objects/Line/Editor.js +8 -10
  182. package/libs/Sculpt/Objects/Line/index.d.ts +3 -0
  183. package/libs/Sculpt/Objects/Line/index.js +45 -41
  184. package/libs/Sculpt/Objects/Point/index.d.ts +3 -0
  185. package/libs/Sculpt/Objects/Point/index.js +33 -29
  186. package/libs/Sculpt/Objects/Polygon/index.d.ts +3 -0
  187. package/libs/Sculpt/Objects/Polygon/index.js +67 -63
  188. package/libs/Sculpt/Objects/Polyline/index.d.ts +3 -0
  189. package/libs/Sculpt/Objects/Polyline/index.js +46 -42
  190. package/libs/Sculpt/Objects/Prism/index.d.ts +3 -0
  191. package/libs/Sculpt/Objects/Prism/index.js +58 -53
  192. package/libs/Sculpt/Objects/Rectangle/index.d.ts +13 -2
  193. package/libs/Sculpt/Objects/Rectangle/index.js +143 -81
  194. package/libs/Sculpt/index.d.ts +10 -19
  195. package/libs/Sculpt/index.js +105 -107
  196. package/libs/Sculpt/typings/style.d.ts +6 -0
  197. package/libs/Sculpt/utils/export.d.ts +24 -18
  198. package/libs/Sculpt/utils/export.js +52 -19
  199. package/libs/Sculpt/utils/sortPositionsByCameraPosition.d.ts +5 -0
  200. package/libs/Sculpt/utils/sortPositionsByCameraPosition.js +9 -0
  201. package/libs/Sculpt/utils/three/ColoredMesh.d.ts +4 -0
  202. package/libs/Sculpt/utils/three/ColoredMesh.js +40 -37
  203. package/libs/base/BasePlugin.js +10 -15
  204. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +96 -147
  205. package/libs/floorplan/MapviewFloorplanPlugin/index.js +12 -63
  206. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +53 -105
  207. package/libs/floorplan/ModelFloorplanPlugin/index.js +11 -63
  208. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +65 -118
  209. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +11 -64
  210. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +54 -106
  211. package/libs/floorplan/TopviewFloorplanPlugin/index.js +11 -63
  212. package/libs/floorplan/index.js +0 -5
  213. package/libs/index.d.ts +79 -1
  214. package/libs/index.js +229 -215
  215. package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +1 -0
  216. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +112 -122
  217. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +7 -3
  218. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +60 -39
  219. package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +47 -47
  220. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +0 -1
  221. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +28 -28
  222. package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.d.ts +3 -1
  223. package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js +25 -18
  224. package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts +2 -0
  225. package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +18 -14
  226. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -1
  227. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -0
  228. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  229. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +2 -1
  230. package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +4 -2
  231. package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.js +40 -28
  232. package/libs/shared-utils/Object3DHelper/typings/index.d.ts +1 -1
  233. package/libs/shared-utils/Object3DHelper/utils/calculateScaleByCamera.d.ts +4 -1
  234. package/libs/shared-utils/Object3DHelper/utils/calculateScaleByCamera.js +4 -4
  235. package/libs/shared-utils/five/FiveDomEvents.js +88 -88
  236. package/libs/shared-utils/five/FiveLine.d.ts +18 -14
  237. package/libs/shared-utils/five/FiveLine.js +31 -13
  238. package/libs/shared-utils/five/index.js +2 -7
  239. package/libs/shared-utils/five/lookObject.js +27 -32
  240. package/libs/shared-utils/index.d.ts +0 -1
  241. package/libs/shared-utils/index.js +31 -33
  242. package/libs/shared-utils/logger.js +1 -1
  243. package/libs/shared-utils/math/planimetry.d.ts +1 -1
  244. package/libs/shared-utils/tag.d.ts +5 -7
  245. package/libs/shared-utils/tag.js +1 -1
  246. package/libs/shared-utils/three/boundingBox.d.ts +14 -20
  247. package/libs/shared-utils/three/core/LineGeometry.d.ts +13 -0
  248. package/libs/shared-utils/three/core/LineGeometry.js +26 -0
  249. package/libs/shared-utils/three/core/PrismGeometry.d.ts +14 -0
  250. package/libs/shared-utils/three/core/PrismGeometry.js +42 -0
  251. package/libs/shared-utils/three/earcut3D.js +5 -5
  252. package/libs/shared-utils/three/geometryUtil.d.ts +8 -0
  253. package/libs/shared-utils/three/geometryUtil.js +3 -1
  254. package/libs/shared-utils/three/getNormal.d.ts +5 -2
  255. package/libs/shared-utils/three/getNormal.js +6 -5
  256. package/libs/shared-utils/three/index.js +0 -5
  257. package/package.json +1 -1
  258. package/dist/Sculpt/Objects/Box/Editor.d.ts +0 -5
  259. package/dist/Sculpt/Objects/Circle/Editor.d.ts +0 -5
  260. package/dist/Sculpt/Objects/Cylinder/Editor.d.ts +0 -5
  261. package/dist/Sculpt/Objects/Prism/Editor.d.ts +0 -5
  262. package/dist/Sculpt/Objects/Rectangle/Editor.d.ts +0 -5
  263. package/dist/Sculpt/utils/getBetterNormal.d.ts +0 -2
  264. package/libs/Sculpt/Objects/Box/Editor.d.ts +0 -5
  265. package/libs/Sculpt/Objects/Box/Editor.js +0 -44
  266. package/libs/Sculpt/Objects/Circle/Editor.d.ts +0 -5
  267. package/libs/Sculpt/Objects/Circle/Editor.js +0 -9
  268. package/libs/Sculpt/Objects/Cylinder/Editor.d.ts +0 -5
  269. package/libs/Sculpt/Objects/Cylinder/Editor.js +0 -41
  270. package/libs/Sculpt/Objects/Prism/Editor.d.ts +0 -5
  271. package/libs/Sculpt/Objects/Prism/Editor.js +0 -44
  272. package/libs/Sculpt/Objects/Rectangle/Editor.d.ts +0 -5
  273. package/libs/Sculpt/Objects/Rectangle/Editor.js +0 -9
  274. package/libs/Sculpt/utils/getBetterNormal.d.ts +0 -2
  275. package/libs/Sculpt/utils/getBetterNormal.js +0 -8
  276. package/libs/vendor/three/build/three.module.js +0 -19336
  277. package/libs/vendor/three/examples/jsm/lines/LineGeometry.js +0 -28
  278. package/libs/vendor/three/examples/jsm/lines/LineSegmentsGeometry.js +0 -69
@@ -1,30 +1,30 @@
1
1
  var c = Object.defineProperty;
2
2
  var u = Object.getOwnPropertySymbols;
3
3
  var v = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
4
- var l = (s, r, t) => r in s ? c(s, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[r] = t, f = (s, r) => {
5
- for (var t in r || (r = {}))
6
- v.call(r, t) && l(s, t, r[t]);
4
+ var n = (a, s, e) => s in a ? c(a, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[s] = e, f = (a, s) => {
5
+ for (var e in s || (s = {}))
6
+ v.call(s, e) && n(a, e, s[e]);
7
7
  if (u)
8
- for (var t of u(r))
9
- S.call(r, t) && l(s, t, r[t]);
10
- return s;
8
+ for (var e of u(s))
9
+ S.call(s, e) && n(a, e, s[e]);
10
+ return a;
11
11
  };
12
- var o = (s, r, t) => (l(s, typeof r != "symbol" ? r + "" : r, t), t);
13
- var n = (s, r, t) => new Promise((i, e) => {
14
- var a = (p) => {
12
+ var d = (a, s, e) => (n(a, typeof s != "symbol" ? s + "" : s, e), e);
13
+ var m = (a, s, e) => new Promise((t, i) => {
14
+ var r = (o) => {
15
15
  try {
16
- d(t.next(p));
17
- } catch (h) {
18
- e(h);
16
+ l(e.next(o));
17
+ } catch (p) {
18
+ i(p);
19
19
  }
20
- }, b = (p) => {
20
+ }, b = (o) => {
21
21
  try {
22
- d(t.throw(p));
23
- } catch (h) {
24
- e(h);
22
+ l(e.throw(o));
23
+ } catch (p) {
24
+ i(p);
25
25
  }
26
- }, d = (p) => p.done ? i(p.value) : Promise.resolve(p.value).then(a, b);
27
- d((t = t.apply(s, r)).next());
26
+ }, l = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(r, b);
27
+ l((e = e.apply(a, s)).next());
28
28
  });
29
29
  import { Controller as y } from "../base/BasePlugin.js";
30
30
  import "../shared-utils/tag.js";
@@ -33,15 +33,10 @@ import "hammerjs";
33
33
  import "../shared-utils/three/PointSelector/index.js";
34
34
  import "three/examples/jsm/renderers/CSS3DRenderer";
35
35
  import "@realsee/five/line";
36
- import "../vendor/three/examples/jsm/lines/LineGeometry.js";
37
36
  import "../shared-utils/three/core/Sphere.js";
38
37
  import "animejs";
39
38
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
40
39
  import { equal as L } from "../shared-utils/equal.js";
41
- import "../Sculpt/Meshes/Polygon.js";
42
- import "../Sculpt/utils/Modules/Global.js";
43
- import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
44
- import "../Sculpt/utils/three/rayOnLine.js";
45
40
  import { objectAssignDeepExports as C } from "../vendor/object-assign-deep/objectAssignDeep.js";
46
41
  import "../shared-utils/Subscribe.js";
47
42
  import "../shared-utils/Utils/FiveUtil.js";
@@ -81,131 +76,83 @@ import "../Sculpt/utils/removeAllTag.js";
81
76
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
82
77
  import "../shared-utils/three/applyObjectMatrixWorld.js";
83
78
  import "../shared-utils/util.js";
79
+ import "../shared-utils/three/core/LineGeometry.js";
84
80
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
85
81
  import "../shared-utils/isTouchDevice.js";
86
82
  import "../shared-utils/five/getPosition.js";
87
83
  import "../shared-utils/five/getRaycasterByNdcPosition.js";
88
84
  import "../shared-utils/three/PointSelector/utils/contents.js";
89
- import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
90
- import "../vendor/three/build/three.module.js";
91
- import "../shared-utils/three/generatePolygonGeometry.js";
92
- import "../shared-utils/three/earcut3D.js";
93
- import "earcut";
94
- import "../shared-utils/three/getNormal.js";
95
- import "../PanoMeasurePlugin/utils/isIntersecting.js";
96
- import "../Sculpt/utils/three/ColoredMesh.js";
97
- import "../shared-utils/three/geometryUtil.js";
98
- import "../Sculpt/utils/Modules/Cursor.js";
99
- import "../Object3DHelperPlugin/Controller.js";
100
- import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
101
- import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
102
- import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
103
- import "../shared-utils/three/boundingBox.js";
104
- import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
105
- import "../shared-utils/Object3DHelper/utils/direction.js";
106
- import "../shared-utils/Object3DHelper/Constants/color.js";
107
- import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
108
- import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
109
- import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
110
- import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
111
- import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
112
- import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
113
- import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
114
- import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
115
- import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
116
- import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
117
- import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
118
- import "../shared-utils/Object3DHelper/Controller/MoveController.js";
119
- import "../shared-utils/Object3DHelper/Base/BaseController.js";
120
- import "../shared-utils/threex/domevents/index.js";
121
- import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
122
- import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
123
- import "../Object3DHelperPlugin/FiveControllerWrapper.js";
124
- import "../shared-utils/Object3DHelper/index.js";
125
- import "../shared-utils/Object3DHelper/Controller/RotateController.js";
126
- import "../shared-utils/math/rad2Deg.js";
127
- import "../shared-utils/math/deg2Rad.js";
128
- import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
129
- import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
130
- import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
131
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
132
- import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
133
- import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
134
- import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
135
- import "../shared-utils/five/fiveModelLoad.js";
136
- import "../shared-utils/five/FiveDomEvents.js";
137
- import "../shared-utils/five/calculateThreeMouse.js";
138
85
  import "../shared-utils/isTruelyObject.js";
139
- const g = "CruisePlugin", m = `${g}`, Ii = (s) => `${m}--${s}`;
140
- class wi extends y {
141
- constructor(t, i) {
142
- super(t, i);
143
- o(this, "state", {
86
+ const g = "CruisePlugin", h = `${g}`, we = (a) => `${h}--${a}`;
87
+ class Ge extends y {
88
+ constructor(e, t) {
89
+ super(e, t);
90
+ d(this, "state", {
144
91
  visible: !0,
145
92
  enabled: !0,
146
93
  disposed: !1,
147
94
  playing: !1,
148
95
  speed: 1
149
96
  });
150
- o(this, "data");
151
- o(this, "config");
152
- o(this, "pauseDataMap", /* @__PURE__ */ new Map());
153
- o(this, "privateState", {
97
+ d(this, "data");
98
+ d(this, "config");
99
+ d(this, "pauseDataMap", /* @__PURE__ */ new Map());
100
+ d(this, "privateState", {
154
101
  playing: !1,
155
102
  broke: !1,
156
103
  modeChanging: !1
157
104
  });
158
- o(this, "GuideLine");
159
- o(this, "disposedErrorLog", () => {
160
- console.error(`${m} is disposed`);
105
+ d(this, "GuideLine");
106
+ d(this, "disposedErrorLog", () => {
107
+ console.error(`${h} is disposed`);
161
108
  });
162
- o(this, "disableWarnLog", () => {
163
- console.warn(`${m} is disabled`);
109
+ d(this, "disableWarnLog", () => {
110
+ console.warn(`${h} is disabled`);
164
111
  });
165
- o(this, "disableErrorLog", () => {
166
- console.error(`${m} is disabled`);
112
+ d(this, "disableErrorLog", () => {
113
+ console.error(`${h} is disabled`);
167
114
  });
168
- this.config = i, Object.assign(window, { [`__${g}_DEBUG__`]: this });
115
+ this.config = t, Object.assign(window, { [`__${g}_DEBUG__`]: this });
169
116
  }
170
117
  /**
171
118
  * @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
172
119
  */
173
- play(t) {
174
- this.setState({ playing: !0 }, t);
120
+ play(e) {
121
+ this.setState({ playing: !0 }, e);
175
122
  }
176
123
  /**
177
124
  * @description Pause
178
125
  */
179
- pause(t) {
180
- this.setState({ playing: !1 }, t);
126
+ pause(e) {
127
+ this.setState({ playing: !1 }, e);
181
128
  }
182
129
  /**
183
130
  * @description Show guide line
184
131
  */
185
- show(t) {
186
- return n(this, null, function* () {
187
- this.setState({ visible: !0 }, t);
132
+ show(e) {
133
+ return m(this, null, function* () {
134
+ this.setState({ visible: !0 }, e);
188
135
  });
189
136
  }
190
137
  /**
191
138
  * @description Hide guide line
192
139
  */
193
- hide(t) {
194
- return n(this, null, function* () {
195
- this.setState({ visible: !1 }, t);
140
+ hide(e) {
141
+ return m(this, null, function* () {
142
+ this.setState({ visible: !1 }, e);
196
143
  });
197
144
  }
198
145
  /**
199
146
  * @description Enable
200
147
  */
201
- enable(t) {
202
- this.setState({ enabled: !0 }, t);
148
+ enable(e) {
149
+ this.setState({ enabled: !0 }, e);
203
150
  }
204
151
  /**
205
152
  * @description Disable
206
153
  */
207
- disable(t) {
208
- this.setState({ enabled: !1 }, t);
154
+ disable(e) {
155
+ this.setState({ enabled: !1 }, e);
209
156
  }
210
157
  /**
211
158
  * @description Dispose
@@ -216,57 +163,57 @@ class wi extends y {
216
163
  /**
217
164
  * @description Set state
218
165
  */
219
- setState(t, i) {
220
- var a;
166
+ setState(e, t) {
167
+ var r;
221
168
  if (this.state.disposed)
222
169
  return this.disposedErrorLog();
223
- if (!this.state.enabled && t.enabled !== !0 && t.disposed !== !0)
170
+ if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
224
171
  return this.disableErrorLog();
225
- const e = f({}, this.state);
226
- this.state = C({}, this.state, t), t.disposed !== void 0 && t.disposed !== e.disposed && t.disposed && this.handleDispose(), t.visible !== void 0 && t.visible !== e.visible && this.handleVisible(t.visible, i == null ? void 0 : i.userAction), t.enabled !== void 0 && t.enabled !== e.enabled && this.handleEnable(t.enabled, i == null ? void 0 : i.userAction), t.playing !== void 0 && t.playing !== e.playing && this.changePlayState(t.playing, i), t.speed !== void 0 && t.speed !== e.speed && this.changeSpeed(t.speed), L(e, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: e, userAction: (a = i == null ? void 0 : i.userAction) != null ? a : !0 });
172
+ const i = f({}, this.state);
173
+ this.state = C({}, this.state, e), e.disposed !== void 0 && e.disposed !== i.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== i.visible && this.handleVisible(e.visible, t == null ? void 0 : t.userAction), e.enabled !== void 0 && e.enabled !== i.enabled && this.handleEnable(e.enabled, t == null ? void 0 : t.userAction), e.playing !== void 0 && e.playing !== i.playing && this.changePlayState(e.playing, t), e.speed !== void 0 && e.speed !== i.speed && this.changeSpeed(e.speed), L(i, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: (r = t == null ? void 0 : t.userAction) != null ? r : !0 });
227
174
  }
228
175
  /**
229
176
  * @description Clear pause data
230
177
  */
231
178
  clearPauseData() {
232
- var t, i;
233
- if ((t = this.data) != null && t.id)
234
- return this.pauseDataMap.delete((i = this.data) == null ? void 0 : i.id);
179
+ var e, t;
180
+ if ((e = this.data) != null && e.id)
181
+ return this.pauseDataMap.delete((t = this.data) == null ? void 0 : t.id);
235
182
  }
236
- changePlayState(t, i) {
183
+ changePlayState(e, t) {
237
184
  this.actionIfStateIsEnabled(
238
185
  () => {
239
- var e;
240
- return this.hooks.emit("playStateChange", t ? "playing" : "pause", { userAction: (e = i == null ? void 0 : i.userAction) != null ? e : !0 });
186
+ var i;
187
+ return this.hooks.emit("playStateChange", e ? "playing" : "pause", { userAction: (i = t == null ? void 0 : t.userAction) != null ? i : !0 });
241
188
  }
242
- ), t ? this.handlePlay(i) : this.handlePause(i), this.state.playing = t;
189
+ ), e ? this.handlePlay(t) : this.handlePause(t), this.state.playing = e;
243
190
  }
244
- handleEnable(t, i = !0) {
245
- var e, a;
246
- t ? ((e = this.GuideLine) == null || e.enable(), this.hooks.emit("enable", { userAction: i })) : ((a = this.GuideLine) == null || a.disable(), this.changePlayState(!1, { userAction: i }), this.hooks.emit("disable", { userAction: i })), this.state.enabled = t;
191
+ handleEnable(e, t = !0) {
192
+ var i, r;
193
+ e ? ((i = this.GuideLine) == null || i.enable(), this.hooks.emit("enable", { userAction: t })) : ((r = this.GuideLine) == null || r.disable(), this.changePlayState(!1, { userAction: t }), this.hooks.emit("disable", { userAction: t })), this.state.enabled = e;
247
194
  }
248
- handleVisible(t, i = !0) {
249
- var e, a;
250
- t ? ((e = this.GuideLine) == null || e.show(), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: i }))) : ((a = this.GuideLine) == null || a.hide(), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: i }))), this.state.visible = t;
195
+ handleVisible(e, t = !0) {
196
+ var i, r;
197
+ e ? ((i = this.GuideLine) == null || i.show(), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: t }))) : ((r = this.GuideLine) == null || r.hide(), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: t }))), this.state.visible = e;
251
198
  }
252
199
  /**
253
200
  * @description: listen interupted by five gesture
254
201
  */
255
- addInterruptListener(t) {
256
- const i = () => {
257
- this.privateState.modeChanging || t();
258
- }, e = (a) => {
259
- a !== "mouseMove" && (t(), this.five.off("gesture", e));
202
+ addInterruptListener(e) {
203
+ const t = () => {
204
+ this.privateState.modeChanging || e();
205
+ }, i = (r) => {
206
+ r !== "mouseMove" && (e(), this.five.off("gesture", i));
260
207
  };
261
- return this.five.on("gesture", e), this.five.once("wantsChangeMode", i), () => {
262
- this.five.off("gesture", e), this.five.off("wantsChangeMode", i);
208
+ return this.five.on("gesture", i), this.five.once("wantsChangeMode", t), () => {
209
+ this.five.off("gesture", i), this.five.off("wantsChangeMode", t);
263
210
  };
264
211
  }
265
212
  /**
266
213
  * @description Get duration by speed
267
214
  */
268
- getSpeededDuration(t) {
269
- return t / this.state.speed;
215
+ getSpeededDuration(e) {
216
+ return e / this.state.speed;
270
217
  }
271
218
  /**
272
219
  * @description Force interupt five updateCamera
@@ -275,18 +222,18 @@ class wi extends y {
275
222
  this.five.updateCamera({}, 0);
276
223
  }
277
224
  getPauseData() {
278
- var t;
279
- if ((t = this.data) != null && t.id)
225
+ var e;
226
+ if ((e = this.data) != null && e.id)
280
227
  return this.pauseDataMap.get(this.data.id);
281
228
  }
282
229
  /**
283
230
  * @description Set pause data
284
231
  */
285
232
  setPauseData() {
286
- var i;
287
- const t = (i = this.data) == null ? void 0 : i.id;
288
- if (t)
289
- return this.pauseDataMap.set(t, {
233
+ var t;
234
+ const e = (t = this.data) == null ? void 0 : t.id;
235
+ if (e)
236
+ return this.pauseDataMap.set(e, {
290
237
  fiveState: this.five.getCurrentState(),
291
238
  playedProgress: this.getProgress()
292
239
  });
@@ -299,19 +246,19 @@ class wi extends y {
299
246
  }
300
247
  // TODO
301
248
  handleDispose() {
302
- var t;
303
- this.setState({ playing: !1 }), this.clearPauseData(), this.clear(), (t = this.GuideLine) == null || t.dispose(), this.GuideLine = void 0;
249
+ var e;
250
+ this.setState({ playing: !1 }), this.clearPauseData(), this.clear(), (e = this.GuideLine) == null || e.dispose(), this.GuideLine = void 0;
304
251
  }
305
252
  /**
306
253
  * @description Action function if plugin is enable
307
254
  */
308
- actionIfStateIsEnabled(t, i) {
255
+ actionIfStateIsEnabled(e, t) {
309
256
  if (this.state.enabled)
310
- return t();
311
- i != null && i.warnLog && this.disableWarnLog();
257
+ return e();
258
+ t != null && t.warnLog && this.disableWarnLog();
312
259
  }
313
260
  }
314
261
  export {
315
- wi as default,
316
- Ii as pluginFlag
262
+ Ge as default,
263
+ we as pluginFlag
317
264
  };
@@ -2,30 +2,30 @@ var T = Object.defineProperty, x = Object.defineProperties;
2
2
  var D = Object.getOwnPropertyDescriptors;
3
3
  var k = Object.getOwnPropertySymbols;
4
4
  var E = Object.prototype.hasOwnProperty, F = Object.prototype.propertyIsEnumerable;
5
- var d = (m, i, t) => i in m ? T(m, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : m[i] = t, u = (m, i) => {
5
+ var d = (e, i, t) => i in e ? T(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, u = (e, i) => {
6
6
  for (var t in i || (i = {}))
7
- E.call(i, t) && d(m, t, i[t]);
7
+ E.call(i, t) && d(e, t, i[t]);
8
8
  if (k)
9
9
  for (var t of k(i))
10
- F.call(i, t) && d(m, t, i[t]);
11
- return m;
12
- }, c = (m, i) => x(m, D(i));
13
- var n = (m, i, t) => (d(m, typeof i != "symbol" ? i + "" : i, t), t);
14
- var w = (m, i, t) => new Promise((r, p) => {
15
- var e = (o) => {
10
+ F.call(i, t) && d(e, t, i[t]);
11
+ return e;
12
+ }, c = (e, i) => x(e, D(i));
13
+ var n = (e, i, t) => (d(e, typeof i != "symbol" ? i + "" : i, t), t);
14
+ var w = (e, i, t) => new Promise((r, m) => {
15
+ var p = (o) => {
16
16
  try {
17
17
  a(t.next(o));
18
18
  } catch (s) {
19
- p(s);
19
+ m(s);
20
20
  }
21
21
  }, h = (o) => {
22
22
  try {
23
23
  a(t.throw(o));
24
24
  } catch (s) {
25
- p(s);
25
+ m(s);
26
26
  }
27
- }, a = (o) => o.done ? r(o.value) : Promise.resolve(o.value).then(e, h);
28
- a((t = t.apply(m, i)).next());
27
+ }, a = (o) => o.done ? r(o.value) : Promise.resolve(o.value).then(p, h);
28
+ a((t = t.apply(e, i)).next());
29
29
  });
30
30
  import z from "./BaseController.js";
31
31
  import { objectAssignDeepExports as g } from "../vendor/object-assign-deep/objectAssignDeep.js";
@@ -35,16 +35,11 @@ import "hammerjs";
35
35
  import "../shared-utils/three/PointSelector/index.js";
36
36
  import "three/examples/jsm/renderers/CSS3DRenderer";
37
37
  import "@realsee/five/line";
38
- import "../vendor/three/examples/jsm/lines/LineGeometry.js";
39
38
  import { anyPositionToVector3 as O } from "../shared-utils/positionToVector3.js";
40
39
  import "../shared-utils/three/core/Sphere.js";
41
40
  import "animejs";
42
41
  import { uuid as A } from "../shared-utils/uuid.js";
43
42
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
44
- import "../Sculpt/Meshes/Polygon.js";
45
- import "../Sculpt/utils/Modules/Global.js";
46
- import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
47
- import "../Sculpt/utils/three/rayOnLine.js";
48
43
  import { getFiveStateOnCurve as v } from "./utils/getFiveStateOnCurve.js";
49
44
  import M from "../GuideLinePlugin/index.js";
50
45
  import "../base/BasePlugin.js";
@@ -87,64 +82,17 @@ import "../Sculpt/utils/removeAllTag.js";
87
82
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
88
83
  import "../shared-utils/three/applyObjectMatrixWorld.js";
89
84
  import "../shared-utils/util.js";
85
+ import "../shared-utils/three/core/LineGeometry.js";
90
86
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
91
87
  import "../shared-utils/isTouchDevice.js";
92
88
  import "../shared-utils/five/getPosition.js";
93
89
  import "../shared-utils/five/getRaycasterByNdcPosition.js";
94
90
  import "../shared-utils/three/PointSelector/utils/contents.js";
95
- import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
96
- import "../vendor/three/build/three.module.js";
97
- import "../shared-utils/three/generatePolygonGeometry.js";
98
- import "../shared-utils/three/earcut3D.js";
99
- import "earcut";
100
- import "../shared-utils/three/getNormal.js";
101
- import "../PanoMeasurePlugin/utils/isIntersecting.js";
102
- import "../Sculpt/utils/three/ColoredMesh.js";
103
- import "../shared-utils/three/geometryUtil.js";
104
- import "../Sculpt/utils/Modules/Cursor.js";
105
- import "../Object3DHelperPlugin/Controller.js";
106
- import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
107
- import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
108
- import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
109
- import "../shared-utils/three/boundingBox.js";
110
- import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
111
- import "../shared-utils/Object3DHelper/utils/direction.js";
112
- import "../shared-utils/Object3DHelper/Constants/color.js";
113
- import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
114
- import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
115
- import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
116
- import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
117
- import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
118
- import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
119
- import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
120
- import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
121
- import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
122
- import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
123
- import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
124
- import "../shared-utils/Object3DHelper/Controller/MoveController.js";
125
- import "../shared-utils/Object3DHelper/Base/BaseController.js";
126
- import "../shared-utils/threex/domevents/index.js";
127
- import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
128
- import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
129
- import "../Object3DHelperPlugin/FiveControllerWrapper.js";
130
- import "../shared-utils/Object3DHelper/index.js";
131
- import "../shared-utils/Object3DHelper/Controller/RotateController.js";
132
- import "../shared-utils/math/rad2Deg.js";
133
- import "../shared-utils/math/deg2Rad.js";
134
- import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
135
- import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
136
- import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
137
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
138
- import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
139
- import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
140
- import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
141
- import "../shared-utils/five/fiveModelLoad.js";
142
- import "../shared-utils/five/FiveDomEvents.js";
143
- import "../shared-utils/five/calculateThreeMouse.js";
144
91
  import "../shared-utils/vectorToCoordinate.js";
145
92
  import "../shared-utils/formatRad.js";
146
93
  import "../GuideLinePlugin/Controller.js";
147
94
  import "../base/BasePluginWithData.js";
95
+ import "../shared-utils/five/fiveModelLoad.js";
148
96
  import "../GuideLinePlugin/GuideLineItem/index.js";
149
97
  import "../GuideLinePlugin/GuideLineModeItem/index.js";
150
98
  import "../shared-utils/log.js";
@@ -249,6 +197,7 @@ import "../shared-utils/three/loadVideoTexture.js";
249
197
  import "../shared-utils/device.js";
250
198
  import "../shared-utils/three/getPositionsByObjectFit.js";
251
199
  import "../shared-utils/three/FragmentTransparencyMaterial.js";
200
+ import "../shared-utils/three/getNormal.js";
252
201
  import "../PanoTagPlugin/controller/Tag/BaseTag.js";
253
202
  import "../PanoTagPlugin/utils/tag/calculateTagConfig.js";
254
203
  import "../shared-utils/typescript/entries.js";
@@ -268,6 +217,13 @@ import "../PanoTagPlugin/utils/normalPositionToPositions.js";
268
217
  import "../vendor/svelte/store/index.js";
269
218
  import "../CSS3DRenderPlugin/index.js";
270
219
  import "../CSS3DRenderPlugin/Controller.js";
220
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
221
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
222
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
223
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
224
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
225
+ import "../shared-utils/five/FiveDomEvents.js";
226
+ import "../shared-utils/five/calculateThreeMouse.js";
271
227
  import "../PanoTagPlugin/utils/DebugUtil.js";
272
228
  import "../PanoTagPlugin/utils/addDebugPoints.js";
273
229
  import "../PanoTagPlugin/controller/Tag/PointTag.js";
@@ -287,7 +243,7 @@ import "./utils/coordinatesToVector.js";
287
243
  import "./utils/safeCall.js";
288
244
  import "./utils/sleep.js";
289
245
  import "../shared-utils/five/fiveLoaded.js";
290
- class Am extends z {
246
+ class Bo extends z {
291
247
  constructor(t, r) {
292
248
  var h;
293
249
  super(t, r);
@@ -311,25 +267,25 @@ class Am extends z {
311
267
  const t = this.getPauseData();
312
268
  let r = (o = t == null ? void 0 : t.playedProgress) != null ? o : 0;
313
269
  (r < 0 || r >= 1) && (r = 0);
314
- const p = 1 - r, e = this.getDuration(), a = (performance.now() - this.playStartedTime) / e;
315
- return 1 - p + a;
270
+ const m = 1 - r, p = this.getDuration(), a = (performance.now() - this.playStartedTime) / p;
271
+ return 1 - m + a;
316
272
  });
317
- const p = {
273
+ const m = {
318
274
  config: {
319
275
  speedConfig: {
320
276
  moveSpeed: 2,
321
277
  moveSpeedUnit: "m/s"
322
278
  }
323
279
  }
324
- }, e = {
280
+ }, p = {
325
281
  allowBroke: !0
326
282
  };
327
- this.state = g({}, p, this.state), this.config = g({}, e, this.config), this.baseCurveOffset = g({ x: 0, y: 0, z: 0 }, { y: 2 }, (h = this.config) == null ? void 0 : h.offset);
283
+ this.state = g({}, m, this.state), this.config = g({}, p, this.config), this.baseCurveOffset = g({ x: 0, y: 0, z: 0 }, { y: 2 }, (h = this.config) == null ? void 0 : h.offset);
328
284
  }
329
285
  load(t, r) {
330
286
  var a, o, s, f, y, S, C, P, b;
331
287
  this.handlePause(), this.clear(), this.data = u({ id: A() }, t);
332
- const p = (() => {
288
+ const m = (() => {
333
289
  if (this.data.path instanceof L.Curve)
334
290
  return this.data.path.curves[0];
335
291
  {
@@ -339,16 +295,16 @@ class Am extends z {
339
295
  return new L.CatmullRomCurve3(l, void 0, "catmullrom", 0.5);
340
296
  }
341
297
  })();
342
- if (!p)
298
+ if (!m)
343
299
  return;
344
- if (this.curve = p, this.curveOffset = {
300
+ if (this.curve = m, this.curveOffset = {
345
301
  x: this.baseCurveOffset.x + ((o = (a = this.data.offset) == null ? void 0 : a.x) != null ? o : 0),
346
302
  y: this.baseCurveOffset.y + ((f = (s = this.data.offset) == null ? void 0 : s.y) != null ? f : 0),
347
303
  z: this.baseCurveOffset.z + ((S = (y = this.data.offset) == null ? void 0 : y.z) != null ? S : 0)
348
304
  }, !this.curve)
349
305
  throw new Error("curve is not defined");
350
- const e = this.curve.getLength(), h = this.state.config.speedConfig.moveSpeedUnit === "m/ms" ? 1 : 1e3;
351
- if (this.duration = e / (this.state.config.speedConfig.moveSpeed / h), Array.isArray(this.data.path)) {
306
+ const p = this.curve.getLength(), h = this.state.config.speedConfig.moveSpeedUnit === "m/ms" ? 1 : 1e3;
307
+ if (this.duration = p / (this.state.config.speedConfig.moveSpeed / h), Array.isArray(this.data.path)) {
352
308
  const l = this.data.path.map(O).map((G) => G.toArray());
353
309
  !this.GuideLine && (((C = this.config) == null ? void 0 : C.useGuideLine) !== !1 && t.useGuildLine || (P = this.config) != null && P.useGuideLine && t.useGuildLine !== !1) && (this.GuideLine = M(this.five, this.config)), (b = this.GuideLine) == null || b.load({
354
310
  lines: [
@@ -366,11 +322,11 @@ class Am extends z {
366
322
  return new Promise((t, r) => w(this, null, function* () {
367
323
  var o;
368
324
  this.hooks.emit("play", { userAction: !0 });
369
- const p = this.getPauseData();
370
- let e = (o = p == null ? void 0 : p.playedProgress) != null ? o : 0;
371
- (e < 0 || e >= 1) && (e = 0);
372
- const h = v(this.curve, e, this.curveOffset);
373
- if (this.hooks.emit("progressChange", e), this.five.setState(c(u({}, h), { mode: "Model" })), yield this.five.ready(), this.playStartedTime = performance.now(), this.config.allowBroke) {
325
+ const m = this.getPauseData();
326
+ let p = (o = m == null ? void 0 : m.playedProgress) != null ? o : 0;
327
+ (p < 0 || p >= 1) && (p = 0);
328
+ const h = v(this.curve, p, this.curveOffset);
329
+ if (this.hooks.emit("progressChange", p), this.five.setState(c(u({}, h), { mode: "Model" })), yield this.five.ready(), this.playStartedTime = performance.now(), this.config.allowBroke) {
374
330
  const s = this.addInterruptListener(() => {
375
331
  this.state.playing && (this.hooks.emit("broke"), this.handlePause(), s(), r(new Error("broke")));
376
332
  });
@@ -395,5 +351,5 @@ class Am extends z {
395
351
  }
396
352
  }
397
353
  export {
398
- Am as default
354
+ Bo as default
399
355
  };