@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
@@ -2,36 +2,36 @@ var $ = Object.defineProperty, _ = Object.defineProperties;
2
2
  var k = Object.getOwnPropertyDescriptors;
3
3
  var R = Object.getOwnPropertySymbols;
4
4
  var P = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable;
5
- var C = (s, e, t) => e in s ? $(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, g = (s, e) => {
5
+ var C = (o, e, t) => e in o ? $(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, g = (o, e) => {
6
6
  for (var t in e || (e = {}))
7
- P.call(e, t) && C(s, t, e[t]);
7
+ P.call(e, t) && C(o, t, e[t]);
8
8
  if (R)
9
9
  for (var t of R(e))
10
- L.call(e, t) && C(s, t, e[t]);
11
- return s;
12
- }, v = (s, e) => _(s, k(e));
13
- var n = (s, e, t) => (C(s, typeof e != "symbol" ? e + "" : e, t), t);
14
- var f = (s, e, t) => new Promise((r, o) => {
15
- var d = (p) => {
10
+ L.call(e, t) && C(o, t, e[t]);
11
+ return o;
12
+ }, v = (o, e) => _(o, k(e));
13
+ var n = (o, e, t) => (C(o, typeof e != "symbol" ? e + "" : e, t), t);
14
+ var l = (o, e, t) => new Promise((r, s) => {
15
+ var d = (c) => {
16
16
  try {
17
- u(t.next(p));
18
- } catch (m) {
19
- o(m);
17
+ f(t.next(c));
18
+ } catch (S) {
19
+ s(S);
20
20
  }
21
- }, S = (p) => {
21
+ }, u = (c) => {
22
22
  try {
23
- u(t.throw(p));
24
- } catch (m) {
25
- o(m);
23
+ f(t.throw(c));
24
+ } catch (S) {
25
+ s(S);
26
26
  }
27
- }, u = (p) => p.done ? r(p.value) : Promise.resolve(p.value).then(d, S);
28
- u((t = t.apply(s, e)).next());
27
+ }, f = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(d, u);
28
+ f((t = t.apply(o, e)).next());
29
29
  });
30
30
  import { anyPositionToVector3 as q } from "../../../shared-utils/positionToVector3.js";
31
31
  import B from "./CSS3DRenderer.js";
32
32
  import { Subscribe as A } from "../../../shared-utils/Subscribe.js";
33
33
  import { CSS3DObjectPlus as W } from "./CSS3DObject.js";
34
- import { MinRatio as Zt } from "./CSS3DObject.js";
34
+ import { MinRatio as tt } from "./CSS3DObject.js";
35
35
  import { CSS3DFrontScene as H, CSS3DBehindScene as T } from "./CSS3DScene.js";
36
36
  import { CSS3DFrontGroup as U, CSS3DBehindGroup as z } from "./CSS3DGroup.js";
37
37
  import { CSS3DObject as j } from "three/examples/jsm/renderers/CSS3DRenderer";
@@ -67,76 +67,24 @@ import "../../../Sculpt/Meshes/Line.js";
67
67
  import "../../../Sculpt/typings/style.js";
68
68
  import "../../../shared-utils/five/FiveLine.js";
69
69
  import "@realsee/five/line";
70
- import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
71
- import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
72
- import "../../../vendor/three/build/three.module.js";
70
+ import "../../../shared-utils/isNil.js";
73
71
  import "../../../shared-utils/three/IObject3D.js";
74
72
  import "../../../Sculpt/utils/removeAllTag.js";
75
73
  import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
76
74
  import "../../../shared-utils/three/applyObjectMatrixWorld.js";
77
75
  import "../../../shared-utils/util.js";
76
+ import "../../../shared-utils/three/core/LineGeometry.js";
78
77
  import "../../../shared-utils/three/core/Sphere.js";
79
78
  import "animejs";
80
- import "../../../shared-utils/isNil.js";
81
79
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
82
- import "../../../Sculpt/Meshes/Polygon.js";
83
- import "../../../shared-utils/three/generatePolygonGeometry.js";
84
- import "../../../shared-utils/three/earcut3D.js";
85
- import "earcut";
86
- import "../../../shared-utils/three/getNormal.js";
87
- import "../../../PanoMeasurePlugin/utils/isIntersecting.js";
88
- import "../../../Sculpt/utils/three/ColoredMesh.js";
89
- import "../../../Sculpt/utils/Modules/Global.js";
90
- import "../../../Sculpt/utils/Modules/Cursor.js";
91
- import "../../../Object3DHelperPlugin/Controller.js";
92
- import "../../../base/BasePlugin.js";
93
- import "../../../shared-utils/url/absoluteUrl.js";
94
- import "../../../vendor/hotkeys-js/dist/hotkeys.esm.js";
95
- import "../../../Sculpt/utils/three/rayOnLine.js";
96
- import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
97
- import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
98
- import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
99
- import "../../../shared-utils/three/boundingBox.js";
100
- import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
101
- import "../../../shared-utils/Object3DHelper/utils/direction.js";
102
- import "../../../shared-utils/Object3DHelper/Constants/color.js";
103
- import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
104
- import "./CSS3DRender.js";
105
- import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
106
- import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
107
- import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
108
- import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
109
- import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
110
- import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
111
- import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
112
- import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
113
- import "../../../shared-utils/threex/domevents/index.js";
114
- import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
115
- import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
116
- import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
117
- import "../../../shared-utils/Object3DHelper/index.js";
118
- import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
119
- import "../../../shared-utils/math/rad2Deg.js";
120
- import "../../../shared-utils/math/deg2Rad.js";
121
- import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
122
- import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
123
- import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
124
- import "../generateBehindFiveElement.js";
125
- import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
126
- import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
127
- import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
128
- import "../../../shared-utils/five/fiveModelLoad.js";
129
- import "../../../shared-utils/five/FiveDomEvents.js";
130
- import "../../../shared-utils/five/calculateThreeMouse.js";
131
- import "../../../shared-utils/isTouchDevice.js";
132
- import "../../../shared-utils/three/geometryUtil.js";
133
80
  import "./CSS3DSprite.js";
81
+ import "../../../shared-utils/isTouchDevice.js";
134
82
  import "../../../shared-utils/five/getPosition.js";
135
83
  import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
136
84
  import "../../../shared-utils/three/PointSelector/utils/contents.js";
137
85
  import "../getAllCSS3DObject.js";
138
- const J = 3, G = "CSS3DRenderer", l = `${G}@${J}`, a = () => {
139
- console.error(`${l} is disposed`);
86
+ const J = 3, G = "CSS3DRenderer", m = `${G}@${J}`, p = () => {
87
+ console.error(`${m} is disposed`);
140
88
  }, i = {
141
89
  css3DObjects: [],
142
90
  frontModeStore: {
@@ -146,14 +94,14 @@ const J = 3, G = "CSS3DRenderer", l = `${G}@${J}`, a = () => {
146
94
  css3DRenderer: new B()
147
95
  }
148
96
  };
149
- function w(s) {
150
- return i.css3DObjects.find((e) => e.id === s);
97
+ function w(o) {
98
+ return i.css3DObjects.find((e) => e.id === o);
151
99
  }
152
- function K(s) {
153
- i.frontModeStore.css3DRenderer.setWrapper(s);
100
+ function K(o) {
101
+ i.frontModeStore.css3DRenderer.setWrapper(o);
154
102
  }
155
- function Q(s) {
156
- i.behindModeStore.css3DRenderer.setWrapper(s);
103
+ function Q(o) {
104
+ i.behindModeStore.css3DRenderer.setWrapper(o);
157
105
  }
158
106
  class y {
159
107
  // eslint-disable-next-line @typescript-eslint/no-useless-constructor
@@ -204,9 +152,9 @@ class y {
204
152
  */
205
153
  n(this, "create3DElement", (e, t, r) => {
206
154
  if (this.state.disposed)
207
- return a();
208
- const o = (() => {
209
- const c = {
155
+ return p();
156
+ const s = (() => {
157
+ const h = {
210
158
  ratio: 216e-5,
211
159
  devicePixelRatio: 1,
212
160
  mode: "front",
@@ -215,27 +163,27 @@ class y {
215
163
  pointerEvents: "none",
216
164
  wrapperStyle: {}
217
165
  };
218
- return Object.assign(c, r);
166
+ return Object.assign(h, r);
219
167
  })(), d = t.map(q);
220
168
  if ((d == null ? void 0 : d.length) < 4)
221
- return console.error(`${l}: requires 4 point but params may have fewer`);
222
- const { ratio: S, devicePixelRatio: u, mode: p, autoRender: m, container: O, pointerEvents: F, wrapperStyle: I } = o;
169
+ return console.error(`${m}: requires 4 point but params may have fewer`);
170
+ const { ratio: u, devicePixelRatio: f, mode: c, autoRender: S, container: O, pointerEvents: F, wrapperStyle: I } = s;
223
171
  let b = !1;
224
- const h = this.createObject(d, { ratio: S, dpr: u, container: O, mode: p, pointerEvents: F, wrapperStyle: I });
225
- i.css3DObjects.push(h), o.scene && this.setScene(o.scene);
172
+ const a = this.createObject(d, { ratio: u, dpr: f, container: O, mode: c, pointerEvents: F, wrapperStyle: I });
173
+ i.css3DObjects.push(a), s.scene && this.setScene(s.scene);
226
174
  const N = () => {
227
175
  if (b)
228
176
  return;
229
- const c = h.mode === "front" ? this.getFrontCSS3DObjectGroup() : this.getBehindCSS3DObjectGroup();
230
- c && c.add(h);
177
+ const h = a.mode === "front" ? this.getFrontCSS3DObjectGroup() : this.getBehindCSS3DObjectGroup();
178
+ h && h.add(a);
231
179
  }, E = () => {
232
180
  b || (N(), this.render(e), this.hooks.emit("render"));
233
- }, D = (c) => this.setVisibleById(h.id, c), M = (c) => this.setEnabledById(h.id, c), x = () => (b = !0, h.removeFromParent(), !0), V = p === "front" ? i.frontModeStore.css3DRenderer : i.behindModeStore.css3DRenderer;
234
- return m && E(), {
235
- id: h.uuid,
181
+ }, D = (h) => this.setVisibleById(a.id, h), M = (h) => this.setEnabledById(a.id, h), x = () => (b = !0, a.removeFromParent(), !0), V = c === "front" ? i.frontModeStore.css3DRenderer : i.behindModeStore.css3DRenderer;
182
+ return S && E(), {
183
+ id: a.uuid,
236
184
  container: O,
237
- css3DObject: h,
238
- render: m ? void 0 : E,
185
+ css3DObject: a,
186
+ render: S ? void 0 : E,
239
187
  show: () => D(!0),
240
188
  hide: () => D(!1),
241
189
  setVisible: D,
@@ -243,7 +191,7 @@ class y {
243
191
  disable: () => M(!1),
244
192
  setEnabled: M,
245
193
  dispose: x,
246
- appendToElement: (c) => V.setWrapper(c)
194
+ appendToElement: (h) => V.setWrapper(h)
247
195
  };
248
196
  });
249
197
  n(this, "setVisibleById", (e, t) => {
@@ -254,8 +202,8 @@ class y {
254
202
  const r = w(e);
255
203
  if (!r)
256
204
  return;
257
- const o = r.mode === "front" ? this.getFrontCSS3DObjectGroup({ addGroupIfNotExists: !1 }) : this.getBehindCSS3DObjectGroup({ addGroupIfNotExists: !1 });
258
- o && (t ? o.add(r) : o.remove(r));
205
+ const s = r.mode === "front" ? this.getFrontCSS3DObjectGroup({ addGroupIfNotExists: !1 }) : this.getBehindCSS3DObjectGroup({ addGroupIfNotExists: !1 });
206
+ s && (t ? s.add(r) : s.remove(r));
259
207
  });
260
208
  n(this, "createObject", (e, t) => {
261
209
  const r = new W(v(g({ cornerPoints: e }, t), { style: t.wrapperStyle }));
@@ -286,7 +234,7 @@ class y {
286
234
  }
287
235
  setState(e, t = { userAction: !0 }) {
288
236
  if (this.state.disposed)
289
- return a();
237
+ return p();
290
238
  const r = g({}, this.state);
291
239
  this.state = Object.assign(this.state, e), r.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), r.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), r.disposed !== this.state.disposed && this.handleDispose(), this.hooks.emit("stateChange", { state: this.state, prevState: r, userAction: t.userAction });
292
240
  }
@@ -294,27 +242,27 @@ class y {
294
242
  this.setState({ disposed: !0 }), this.hooks.emit("dispose");
295
243
  }
296
244
  show() {
297
- return f(this, arguments, function* ({ userAction: e } = { userAction: !0 }) {
245
+ return l(this, arguments, function* ({ userAction: e } = { userAction: !0 }) {
298
246
  if (this.state.disposed)
299
- return a();
247
+ return p();
300
248
  this.setState({ visible: !0 }, { userAction: e }), this.hooks.emit("show", { userAction: e });
301
249
  });
302
250
  }
303
251
  hide() {
304
- return f(this, arguments, function* ({ userAction: e } = { userAction: !0 }) {
252
+ return l(this, arguments, function* ({ userAction: e } = { userAction: !0 }) {
305
253
  if (this.state.disposed)
306
- return a();
254
+ return p();
307
255
  this.setState({ visible: !1 }, { userAction: e }), this.hooks.emit("hide", { userAction: e });
308
256
  });
309
257
  }
310
258
  enable({ userAction: e } = { userAction: !0 }) {
311
259
  if (this.state.disposed)
312
- return a();
260
+ return p();
313
261
  this.setState({ enabled: !0 }, { userAction: e }), this.hooks.emit("enable", { userAction: e });
314
262
  }
315
263
  disable({ userAction: e } = { userAction: !0 }) {
316
264
  if (this.state.disposed)
317
- return a();
265
+ return p();
318
266
  this.setState({ enabled: !1 }, { userAction: e }), this.hooks.emit("disable", { userAction: e });
319
267
  }
320
268
  getFrontCSS3DScene({ createSceneIfNotExists: e = !1 } = {}) {
@@ -323,24 +271,24 @@ class y {
323
271
  if (t)
324
272
  return t;
325
273
  if (e) {
326
- const o = new H();
327
- i.frontModeStore.css3DScene = o;
274
+ const s = new H();
275
+ i.frontModeStore.css3DScene = s;
328
276
  }
329
277
  return i.frontModeStore.css3DScene;
330
278
  }
331
279
  getBehindCSS3DScene({ createSceneIfNotExists: e = !1 } = {}) {
332
- var r, o;
280
+ var r, s;
333
281
  const t = (r = i.behindModeStore) == null ? void 0 : r.css3DScene;
334
282
  if (t)
335
283
  return t;
336
284
  if (e) {
337
- const d = (o = i.behindModeStore.scene) != null ? o : this.scene;
285
+ const d = (s = i.behindModeStore.scene) != null ? s : this.scene;
338
286
  if (!d) {
339
- console.error(`${l}: scene is required when mode is behind`);
287
+ console.error(`${m}: scene is required when mode is behind`);
340
288
  return;
341
289
  }
342
- const S = new T(d);
343
- i.behindModeStore.css3DScene = S, i.behindModeStore.scene = d;
290
+ const u = new T(d);
291
+ i.behindModeStore.css3DScene = u, i.behindModeStore.scene = d;
344
292
  }
345
293
  return i.behindModeStore.css3DScene;
346
294
  }
@@ -352,34 +300,34 @@ class y {
352
300
  var r;
353
301
  const t = this.getBehindCSS3DScene({ createSceneIfNotExists: e });
354
302
  if (e && t && this.scene) {
355
- const o = (r = this.store.behindModeGroup) != null ? r : new z(this.scene);
356
- this.store.behindModeGroup = o, t.getObjectById(o.id) || t.add(o);
303
+ const s = (r = this.store.behindModeGroup) != null ? r : new z(this.scene);
304
+ this.store.behindModeGroup = s, t.getObjectById(s.id) || t.add(s);
357
305
  }
358
306
  return this.store.behindModeGroup;
359
307
  }
360
308
  render(e) {
361
309
  var t, r;
362
310
  if (this.getFrontCSS3DObjectGroup({ addGroupIfNotExists: !1 }).CSS3DObjectLength > 0) {
363
- const o = this.getFrontCSS3DScene({ createSceneIfNotExists: !0 });
364
- if (!o)
365
- return console.error(`${l}: css3DScene is required when mode is front`);
366
- i.frontModeStore.css3DRenderer.renderEveryFrame(o, e);
311
+ const s = this.getFrontCSS3DScene({ createSceneIfNotExists: !0 });
312
+ if (!s)
313
+ return console.error(`${m}: css3DScene is required when mode is front`);
314
+ i.frontModeStore.css3DRenderer.renderEveryFrame(s, e);
367
315
  }
368
316
  if (((r = (t = this.getBehindCSS3DObjectGroup({ addGroupIfNotExists: !1 })) == null ? void 0 : t.CSS3DObjectLength) != null ? r : 0) > 0) {
369
- const o = this.getBehindCSS3DScene({ createSceneIfNotExists: !0 });
370
- if (!o)
371
- return console.error(`${l}: css3DScene is required when mode is behind`);
372
- i.behindModeStore.css3DRenderer.renderEveryFrame(o, e);
317
+ const s = this.getBehindCSS3DScene({ createSceneIfNotExists: !0 });
318
+ if (!s)
319
+ return console.error(`${m}: css3DScene is required when mode is behind`);
320
+ i.behindModeStore.css3DRenderer.renderEveryFrame(s, e);
373
321
  }
374
322
  }
375
323
  handleShow() {
376
- return f(this, null, function* () {
324
+ return l(this, null, function* () {
377
325
  var e;
378
326
  this.store.frontModeGroup.setVisible(!0), (e = this.store.behindModeGroup) == null || e.setVisible(!0);
379
327
  });
380
328
  }
381
329
  handleHide() {
382
- return f(this, null, function* () {
330
+ return l(this, null, function* () {
383
331
  var e;
384
332
  this.store.frontModeGroup.setVisible(!1), (e = this.store.behindModeGroup) == null || e.setVisible(!1);
385
333
  });
@@ -390,10 +338,10 @@ class y {
390
338
  }
391
339
  handleDisable() {
392
340
  var e, t, r;
393
- this.store.frontModeGroup.children.forEach((o) => {
394
- o instanceof j && o.element instanceof Element && o.element.parentNode !== null && o.element.remove();
395
- }), (e = this.store.behindModeGroup) == null || e.children.forEach((o) => {
396
- o instanceof j && o.element instanceof Element && o.element.parentNode !== null && o.element.remove();
341
+ this.store.frontModeGroup.children.forEach((s) => {
342
+ s instanceof j && s.element instanceof Element && s.element.parentNode !== null && s.element.remove();
343
+ }), (e = this.store.behindModeGroup) == null || e.children.forEach((s) => {
344
+ s instanceof j && s.element instanceof Element && s.element.parentNode !== null && s.element.remove();
397
345
  }), (t = this.getFrontCSS3DScene()) == null || t.remove(this.store.frontModeGroup), this.store.behindModeGroup && ((r = this.getBehindCSS3DScene()) == null || r.remove(this.store.behindModeGroup));
398
346
  }
399
347
  handleDispose() {
@@ -403,7 +351,7 @@ class y {
403
351
  n(y, "setFrontModeContainer", K), n(y, "setBehindModeContainer", Q);
404
352
  export {
405
353
  y as CSS3DRender,
406
- Zt as MinRatio,
407
- l as PLUGIN,
354
+ tt as MinRatio,
355
+ m as PLUGIN,
408
356
  i as globalStore
409
357
  };