@realsee/dnalogel 3.51.0 → 3.52.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 (278) hide show
  1. package/CHANGELOG.md +12 -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 -1
  20. package/dist/Sculpt/Objects/Base/index.d.ts +2 -1
  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 +12 -0
  30. package/dist/Sculpt/index.d.ts +11 -10
  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 +35153 -54255
  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 -1
  171. package/libs/Sculpt/Meshes/Rectangle.js +7 -10
  172. package/libs/Sculpt/Meshes/RectangleWithEdge.js +17 -20
  173. package/libs/Sculpt/Objects/Base/index.d.ts +2 -1
  174. package/libs/Sculpt/Objects/Base/index.js +16 -17
  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 +34 -30
  179. package/libs/Sculpt/Objects/Cylinder/index.d.ts +3 -0
  180. package/libs/Sculpt/Objects/Cylinder/index.js +46 -42
  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 +12 -0
  193. package/libs/Sculpt/Objects/Rectangle/index.js +142 -81
  194. package/libs/Sculpt/index.d.ts +11 -10
  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,15 +2,15 @@ var R = Object.defineProperty, F = Object.defineProperties;
2
2
  var C = Object.getOwnPropertyDescriptors;
3
3
  var f = Object.getOwnPropertySymbols;
4
4
  var O = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
5
- var d = (o, i, t) => i in o ? R(o, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[i] = t, a = (o, i) => {
6
- for (var t in i || (i = {}))
7
- O.call(i, t) && d(o, t, i[t]);
5
+ var d = (o, i, e) => i in o ? R(o, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[i] = e, a = (o, i) => {
6
+ for (var e in i || (i = {}))
7
+ O.call(i, e) && d(o, e, i[e]);
8
8
  if (f)
9
- for (var t of f(i))
10
- S.call(i, t) && d(o, t, i[t]);
9
+ for (var e of f(i))
10
+ S.call(i, e) && d(o, e, i[e]);
11
11
  return o;
12
12
  }, l = (o, i) => F(o, C(i));
13
- var m = (o, i, t) => (d(o, typeof i != "symbol" ? i + "" : i, t), t);
13
+ var s = (o, i, e) => (d(o, typeof i != "symbol" ? i + "" : i, e), e);
14
14
  import { CSS3DRender as j } from "./utils/three/CSS3DRender.js";
15
15
  import x from "./utils/generateBehindFiveElement.js";
16
16
  import "../shared-utils/tag.js";
@@ -19,16 +19,11 @@ import "hammerjs";
19
19
  import "../shared-utils/three/PointSelector/index.js";
20
20
  import "three/examples/jsm/renderers/CSS3DRenderer";
21
21
  import "@realsee/five/line";
22
- import "../vendor/three/examples/jsm/lines/LineGeometry.js";
23
22
  import "../shared-utils/three/core/Sphere.js";
24
23
  import "animejs";
25
24
  import { waitFiveModelLoaded as P } from "../shared-utils/five/fiveModelLoad.js";
26
25
  import { absoluteUrl as w } from "../shared-utils/url/absoluteUrl.js";
27
26
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
28
- import "../Sculpt/Meshes/Polygon.js";
29
- import "../Sculpt/utils/Modules/Global.js";
30
- import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
31
- import "../Sculpt/utils/three/rayOnLine.js";
32
27
  import "../shared-utils/positionToVector3.js";
33
28
  import "./utils/three/CSS3DRenderer.js";
34
29
  import "./utils/three/THREEJS_CSS3DRenderer.js";
@@ -69,65 +64,22 @@ import "../shared-utils/three/IObject3D.js";
69
64
  import "../Sculpt/utils/removeAllTag.js";
70
65
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
71
66
  import "../shared-utils/three/applyObjectMatrixWorld.js";
67
+ import "../shared-utils/three/core/LineGeometry.js";
72
68
  import "./utils/three/CSS3DSprite.js";
73
69
  import "../shared-utils/isTouchDevice.js";
74
70
  import "../shared-utils/five/getPosition.js";
75
71
  import "../shared-utils/five/getRaycasterByNdcPosition.js";
76
72
  import "../shared-utils/three/PointSelector/utils/contents.js";
77
- import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
78
- import "../vendor/three/build/three.module.js";
79
- import "../shared-utils/three/generatePolygonGeometry.js";
80
- import "../shared-utils/three/earcut3D.js";
81
- import "earcut";
82
- import "../shared-utils/three/getNormal.js";
83
- import "../PanoMeasurePlugin/utils/isIntersecting.js";
84
- import "../Sculpt/utils/three/ColoredMesh.js";
85
- import "../shared-utils/three/geometryUtil.js";
86
- import "../Sculpt/utils/Modules/Cursor.js";
87
- import "../Object3DHelperPlugin/Controller.js";
88
- import "../base/BasePlugin.js";
89
- import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
90
- import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
91
- import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
92
- import "../shared-utils/three/boundingBox.js";
93
- import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
94
- import "../shared-utils/Object3DHelper/utils/direction.js";
95
- import "../shared-utils/Object3DHelper/Constants/color.js";
96
- import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
97
- import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
98
- import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
99
- import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
100
- import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
101
- import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
102
- import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
103
- import "../shared-utils/Object3DHelper/Controller/MoveController.js";
104
- import "../shared-utils/Object3DHelper/Base/BaseController.js";
105
- import "../shared-utils/threex/domevents/index.js";
106
- import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
107
- import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
108
- import "../Object3DHelperPlugin/FiveControllerWrapper.js";
109
- import "../shared-utils/Object3DHelper/index.js";
110
- import "../shared-utils/Object3DHelper/Controller/RotateController.js";
111
- import "../shared-utils/math/rad2Deg.js";
112
- import "../shared-utils/math/deg2Rad.js";
113
- import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
114
- import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
115
- import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
116
- import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
117
- import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
118
- import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
119
- import "../shared-utils/five/FiveDomEvents.js";
120
- import "../shared-utils/five/calculateThreeMouse.js";
121
73
  const b = "v2.0.1", E = `CSS3DRenderPlugin@${b}`;
122
- class Te extends j {
123
- constructor(t) {
74
+ class Ae extends j {
75
+ constructor(e) {
124
76
  super();
125
- m(this, "five");
126
- m(this, "behindFiveContainer");
127
- m(this, "frontFiveContainer");
128
- m(this, "VERSION", b);
129
- m(this, "staticPrefix", "//vr-image-4.realsee-cdn.cn");
130
- m(this, "created3DElementResults", []);
77
+ s(this, "five");
78
+ s(this, "behindFiveContainer");
79
+ s(this, "frontFiveContainer");
80
+ s(this, "VERSION", b);
81
+ s(this, "staticPrefix", "//vr-image-4.realsee-cdn.cn");
82
+ s(this, "created3DElementResults", []);
131
83
  /**
132
84
  * @description 根据传入的四个点位创建一个 3d dom容器,可以通过ReactDom.render()的方式将react组件放到容器中
133
85
  * @param { Vector3Position[] } points 矩形四个点坐标
@@ -163,56 +115,56 @@ class Te extends j {
163
115
  * } | void
164
116
  * ```
165
117
  */
166
- m(this, "create3DDomContainer", (t, e) => {
118
+ s(this, "create3DDomContainer", (e, t) => {
167
119
  if (this.state.disposed)
168
120
  return;
169
- const p = (() => {
170
- var n;
171
- (e == null ? void 0 : e.dpr) !== void 0 && console.warn(`${E}: please use "config.devicePixelRatio" replace "config.dpr"`);
172
- const s = {
121
+ const n = (() => {
122
+ var p;
123
+ (t == null ? void 0 : t.dpr) !== void 0 && console.warn(`${E}: please use "config.devicePixelRatio" replace "config.dpr"`);
124
+ const m = {
173
125
  ratio: 216e-5,
174
- devicePixelRatio: (n = e == null ? void 0 : e.dpr) != null ? n : 1,
126
+ devicePixelRatio: (p = t == null ? void 0 : t.dpr) != null ? p : 1,
175
127
  mode: "front",
176
128
  autoRender: !0,
177
129
  wrapperStyle: {}
178
130
  };
179
- return Object.assign(s, e, (e == null ? void 0 : e.mode) === "behind" ? { scene: this.five.scene } : void 0);
180
- })(), { autoRender: h } = p;
181
- p.mode === "behind" && p.behindFiveContainer && (this.behindFiveContainer = p.behindFiveContainer);
182
- const r = this.create3DElement(this.five.camera, t, l(a({}, p), { autoRender: !1 }));
131
+ return Object.assign(m, t, (t == null ? void 0 : t.mode) === "behind" ? { scene: this.five.scene } : void 0);
132
+ })(), { autoRender: h } = n;
133
+ n.mode === "behind" && n.behindFiveContainer && (this.behindFiveContainer = n.behindFiveContainer);
134
+ const r = this.create3DElement(this.five.camera, e, l(a({}, n), { autoRender: !1 }));
183
135
  if (!r)
184
136
  return;
185
137
  const D = r.dispose;
186
138
  r.dispose = () => (this.created3DElementResults.includes(r) && this.created3DElementResults.splice(this.created3DElementResults.indexOf(r), 1), D());
187
139
  const c = () => {
188
- var n, v;
189
- const s = r.css3DObject.mode === "front" ? (v = this.frontFiveContainer) != null ? v : (n = this.five.getElement()) == null ? void 0 : n.parentElement : this.getBehindFiveElement();
190
- if (!s)
191
- return console.error(`${E}: wrapper is ${s}; mode is ${r.css3DObject.mode}`);
192
- r.appendToElement(s), r.render(), this.created3DElementResults.push(r);
140
+ var p, v;
141
+ const m = r.css3DObject.mode === "front" ? (v = this.frontFiveContainer) != null ? v : (p = this.five.getElement()) == null ? void 0 : p.parentElement : this.getBehindFiveElement();
142
+ if (!m)
143
+ return console.error(`${E}: wrapper is ${m}; mode is ${r.css3DObject.mode}`);
144
+ r.appendToElement(m), r.render(), this.created3DElementResults.push(r);
193
145
  }, u = () => {
194
146
  r.css3DObject.mode === "front" && c(), r.css3DObject.mode === "behind" && P(this.five).then(() => c());
195
147
  };
196
148
  return h && u(), l(a({}, r), { render: h ? void 0 : u });
197
149
  });
198
- this.five = t;
150
+ this.five = e;
199
151
  }
200
152
  /** @deprecated disposeAll() renamed as dispose() */
201
153
  disposeAll() {
202
154
  return this.dispose();
203
155
  }
204
- setState(...t) {
205
- const e = super.setState(...t);
206
- return this.five.needsRender = !0, e;
156
+ setState(...e) {
157
+ const t = super.setState(...e);
158
+ return this.five.needsRender = !0, t;
207
159
  }
208
- appendToFrontFiveContainer(t) {
209
- this.frontFiveContainer = t, this.created3DElementResults.forEach((e) => {
210
- e.css3DObject.mode === "front" && e.appendToElement(t);
160
+ appendToFrontFiveContainer(e) {
161
+ this.frontFiveContainer = e, this.created3DElementResults.forEach((t) => {
162
+ t.css3DObject.mode === "front" && t.appendToElement(e);
211
163
  });
212
164
  }
213
- appendToBehindFiveContainer(t) {
214
- this.behindFiveContainer = t, this.created3DElementResults.forEach((e) => {
215
- e.css3DObject.mode === "behind" && e.appendToElement(t);
165
+ appendToBehindFiveContainer(e) {
166
+ this.behindFiveContainer = e, this.created3DElementResults.forEach((t) => {
167
+ t.css3DObject.mode === "behind" && t.appendToElement(e);
216
168
  });
217
169
  }
218
170
  getBehindFiveElement() {
@@ -221,16 +173,16 @@ class Te extends j {
221
173
  /**
222
174
  * @description: 获取静态资源的url
223
175
  */
224
- absoluteUrl(t) {
225
- return w(this.staticPrefix, t);
176
+ absoluteUrl(e) {
177
+ return w(this.staticPrefix, e);
226
178
  }
227
179
  clear() {
228
- this.created3DElementResults.forEach((t) => {
229
- t.dispose();
180
+ this.created3DElementResults.forEach((e) => {
181
+ e.dispose();
230
182
  }), this.created3DElementResults = [];
231
183
  }
232
184
  }
233
185
  export {
234
186
  E as PLUGIN_NAME,
235
- Te as default
187
+ Ae as default
236
188
  };
@@ -1,5 +1,5 @@
1
1
  import o from "./Controller.js";
2
- import { CSS3DRender as po } from "./utils/three/CSS3DRender.js";
2
+ import { CSS3DRender as dr } from "./utils/three/CSS3DRender.js";
3
3
  import "./utils/generateBehindFiveElement.js";
4
4
  import "../shared-utils/tag.js";
5
5
  import "../shared-utils/positionToVector3.js";
@@ -29,67 +29,10 @@ import "./utils/three/OpacityMesh.js";
29
29
  import "../shared-utils/three/centerPoint.js";
30
30
  import "../shared-utils/three/getObjectVisible.js";
31
31
  import "@realsee/five/line";
32
- import "../vendor/three/examples/jsm/lines/LineGeometry.js";
33
- import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
34
- import "../vendor/three/build/three.module.js";
32
+ import "../shared-utils/isNil.js";
35
33
  import "../shared-utils/three/core/Sphere.js";
36
34
  import "animejs";
37
- import "../shared-utils/isNil.js";
38
35
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
39
- import "../Sculpt/Meshes/Polygon.js";
40
- import "../shared-utils/three/generatePolygonGeometry.js";
41
- import "../shared-utils/three/earcut3D.js";
42
- import "earcut";
43
- import "../shared-utils/three/getNormal.js";
44
- import "../PanoMeasurePlugin/utils/isIntersecting.js";
45
- import "../Sculpt/typings/style.js";
46
- import "../Sculpt/utils/three/ColoredMesh.js";
47
- import "../shared-utils/three/IObject3D.js";
48
- import "../Sculpt/utils/Modules/Global.js";
49
- import "../Sculpt/utils/Modules/Cursor.js";
50
- import "../Object3DHelperPlugin/Controller.js";
51
- import "../base/BasePlugin.js";
52
- import "../shared-utils/url/absoluteUrl.js";
53
- import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
54
- import "../Sculpt/utils/three/rayOnLine.js";
55
- import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
56
- import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
57
- import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
58
- import "../shared-utils/three/boundingBox.js";
59
- import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
60
- import "../shared-utils/Object3DHelper/utils/direction.js";
61
- import "../shared-utils/Object3DHelper/Constants/color.js";
62
- import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
63
- import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
64
- import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
65
- import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
66
- import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
67
- import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
68
- import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
69
- import "../shared-utils/Object3DHelper/Controller/MoveController.js";
70
- import "../shared-utils/Object3DHelper/Base/BaseController.js";
71
- import "../shared-utils/threex/domevents/index.js";
72
- import "../shared-utils/util.js";
73
- import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
74
- import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
75
- import "../Object3DHelperPlugin/FiveControllerWrapper.js";
76
- import "../shared-utils/Object3DHelper/index.js";
77
- import "../shared-utils/Object3DHelper/Controller/RotateController.js";
78
- import "../shared-utils/math/rad2Deg.js";
79
- import "../shared-utils/math/deg2Rad.js";
80
- import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
81
- import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
82
- import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
83
- import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
84
- import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
85
- import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
86
- import "../shared-utils/five/fiveModelLoad.js";
87
- import "../shared-utils/five/FiveDomEvents.js";
88
- import "../shared-utils/five/calculateThreeMouse.js";
89
- import "../shared-utils/isTouchDevice.js";
90
- import "../shared-utils/three/geometryUtil.js";
91
- import "../Sculpt/utils/Meshes/getLengthHTML.js";
92
- import "../shared-utils/three/applyObjectMatrixWorld.js";
93
36
  import "../shared-utils/three/PointSelector/utils/html.js";
94
37
  import "../shared-utils/five/initialCSS3DRender.js";
95
38
  import "./utils/three/CSS3DRenderer.js";
@@ -97,18 +40,27 @@ import "./utils/three/THREEJS_CSS3DRenderer.js";
97
40
  import "./utils/createResizeObserver.js";
98
41
  import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
99
42
  import "../Sculpt/Meshes/Line.js";
43
+ import "../Sculpt/typings/style.js";
100
44
  import "../shared-utils/five/FiveLine.js";
45
+ import "../shared-utils/three/IObject3D.js";
101
46
  import "../Sculpt/utils/removeAllTag.js";
47
+ import "../Sculpt/utils/Meshes/getLengthHTML.js";
48
+ import "../shared-utils/three/applyObjectMatrixWorld.js";
49
+ import "../shared-utils/util.js";
50
+ import "../shared-utils/three/core/LineGeometry.js";
102
51
  import "./utils/three/CSS3DSprite.js";
52
+ import "../shared-utils/isTouchDevice.js";
103
53
  import "../shared-utils/five/getPosition.js";
104
54
  import "../shared-utils/five/getRaycasterByNdcPosition.js";
105
55
  import "../shared-utils/three/PointSelector/utils/contents.js";
56
+ import "../shared-utils/five/fiveModelLoad.js";
57
+ import "../shared-utils/url/absoluteUrl.js";
106
58
  import "./utils/three/CSS3DScene.js";
107
59
  import "./utils/getAllCSS3DObject.js";
108
60
  import "./utils/three/CSS3DGroup.js";
109
- const oo = (r) => new o(r);
61
+ const nr = (r) => new o(r);
110
62
  export {
111
- po as CSS3DRender,
112
- oo as CSS3DRenderPlugin,
113
- oo as default
63
+ dr as CSS3DRender,
64
+ nr as CSS3DRenderPlugin,
65
+ nr as default
114
66
  };
@@ -1,8 +1,8 @@
1
1
  var A = Object.defineProperty;
2
- var D = (h, m, t) => m in h ? A(h, m, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[m] = t;
3
- var e = (h, m, t) => (D(h, typeof m != "symbol" ? m + "" : m, t), t);
2
+ var D = (c, p, t) => p in c ? A(c, p, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[p] = t;
3
+ var o = (c, p, t) => (D(c, typeof p != "symbol" ? p + "" : p, t), t);
4
4
  import { CSS3DObject as N } from "three/examples/jsm/renderers/CSS3DRenderer";
5
- import { Vector3 as p } from "three";
5
+ import { Vector3 as n } from "three";
6
6
  import { even as E } from "../even.js";
7
7
  import { Subscribe as Q } from "../../../shared-utils/Subscribe.js";
8
8
  import R from "./OpacityMesh.js";
@@ -12,15 +12,10 @@ import "../../../shared-utils/tag.js";
12
12
  import "hammerjs";
13
13
  import "../../../shared-utils/three/PointSelector/index.js";
14
14
  import "@realsee/five/line";
15
- import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
15
+ import { isNil as O } from "../../../shared-utils/isNil.js";
16
16
  import "../../../shared-utils/three/core/Sphere.js";
17
17
  import "animejs";
18
- import { isNil as O } from "../../../shared-utils/isNil.js";
19
18
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
20
- import "../../../Sculpt/Meshes/Polygon.js";
21
- import "../../../Sculpt/utils/Modules/Global.js";
22
- import "../../../vendor/hotkeys-js/dist/hotkeys.esm.js";
23
- import "../../../Sculpt/utils/three/rayOnLine.js";
24
19
  import "../../../shared-utils/positionToVector3.js";
25
20
  import "../../../shared-utils/five/vector3ToScreen.js";
26
21
  import "../../../shared-utils/five/getFiveModel.js";
@@ -52,132 +47,82 @@ import "../../../Sculpt/utils/removeAllTag.js";
52
47
  import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
53
48
  import "../../../shared-utils/three/applyObjectMatrixWorld.js";
54
49
  import "../../../shared-utils/util.js";
50
+ import "../../../shared-utils/three/core/LineGeometry.js";
55
51
  import "./CSS3DSprite.js";
56
52
  import "../../../shared-utils/isTouchDevice.js";
57
53
  import "../../../shared-utils/five/getPosition.js";
58
54
  import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
59
55
  import "../../../shared-utils/three/PointSelector/utils/contents.js";
60
- import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
61
- import "../../../vendor/three/build/three.module.js";
62
- import "../../../shared-utils/three/generatePolygonGeometry.js";
63
- import "../../../shared-utils/three/earcut3D.js";
64
- import "earcut";
65
- import "../../../shared-utils/three/getNormal.js";
66
- import "../../../PanoMeasurePlugin/utils/isIntersecting.js";
67
- import "../../../Sculpt/utils/three/ColoredMesh.js";
68
- import "../../../shared-utils/three/geometryUtil.js";
69
- import "../../../Sculpt/utils/Modules/Cursor.js";
70
- import "../../../Object3DHelperPlugin/Controller.js";
71
- import "../../../base/BasePlugin.js";
72
- import "../../../shared-utils/url/absoluteUrl.js";
73
- import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
74
- import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
75
- import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
76
- import "../../../shared-utils/three/boundingBox.js";
77
- import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
78
- import "../../../shared-utils/Object3DHelper/utils/direction.js";
79
- import "../../../shared-utils/Object3DHelper/Constants/color.js";
80
- import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
81
- import "./CSS3DRender.js";
82
- import "./CSS3DScene.js";
83
- import "../getAllCSS3DObject.js";
84
- import "./CSS3DGroup.js";
85
- import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
86
- import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
87
- import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
88
- import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
89
- import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
90
- import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
91
- import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
92
- import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
93
- import "../../../shared-utils/threex/domevents/index.js";
94
- import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
95
- import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
96
- import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
97
- import "../../../shared-utils/Object3DHelper/index.js";
98
- import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
99
- import "../../../shared-utils/math/rad2Deg.js";
100
- import "../../../shared-utils/math/deg2Rad.js";
101
- import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
102
- import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
103
- import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
104
- import "../generateBehindFiveElement.js";
105
- import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
106
- import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
107
- import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
108
- import "../../../shared-utils/five/fiveModelLoad.js";
109
- import "../../../shared-utils/five/FiveDomEvents.js";
110
- import "../../../shared-utils/five/calculateThreeMouse.js";
111
56
  const $ = 1, W = `CSS3DObjectPlus@${$}`, k = 216e-5, z = 3e-3;
112
- class _i extends N {
57
+ class zt extends N {
113
58
  constructor(t) {
114
59
  var x, b, w, g, V;
115
60
  if (O(t.cornerPoints) && O(t.width))
116
61
  throw new Error("cornerPoints and width cannot be both empty");
117
- const i = (x = t.container) != null ? x : document.createElement("div"), r = (b = t.cornerPoints) != null ? b : (() => {
118
- const o = t.width / 2;
62
+ const i = (x = t.container) != null ? x : document.createElement("div"), s = (b = t.cornerPoints) != null ? b : (() => {
63
+ const e = t.width / 2;
119
64
  return [
120
- new p(-o, o, 0),
121
- new p(-o, -o, 0),
122
- new p(o, -o, 0),
123
- new p(o, o, 0)
65
+ new n(-e, e, 0),
66
+ new n(-e, -e, 0),
67
+ new n(e, -e, 0),
68
+ new n(e, e, 0)
124
69
  ];
125
- })(), s = (w = t.ratio) != null ? w : z, P = (g = t.dpr) != null ? g : 1, F = (V = t.pointerEvents) != null ? V : "auto", n = Math.max(k, s), l = r[0].distanceTo(r[1]), d = r[1].distanceTo(r[2]), c = E(l / s * P), a = E(d / s * P), y = L(...r);
70
+ })(), r = (w = t.ratio) != null ? w : z, P = (g = t.dpr) != null ? g : 1, F = (V = t.pointerEvents) != null ? V : "auto", h = Math.max(k, r), l = s[0].distanceTo(s[1]), d = s[1].distanceTo(s[2]), m = E(l / r * P), a = E(d / r * P), y = L(...s);
126
71
  let u;
127
- if (n === s)
128
- i.style.width = `${c}px`, i.style.height = `${a}px`, u = i;
72
+ if (h === r)
73
+ i.style.width = `${m}px`, i.style.height = `${a}px`, u = i;
129
74
  else {
130
- const o = document.createElement("div");
131
- o.style.width = `${c}px`, o.style.height = `${a}px`, o.style.pointerEvents = "none";
132
- const S = s / n;
133
- i.style.position = "absolute", i.style.left = "0", i.style.top = "0", i.style.width = `${S * c}px`, i.style.height = `${S * a}px`, o.appendChild(i), u = o;
75
+ const e = document.createElement("div");
76
+ e.style.width = `${m}px`, e.style.height = `${a}px`, e.style.pointerEvents = "none";
77
+ const S = r / h;
78
+ i.style.position = "absolute", i.style.left = "0", i.style.top = "0", i.style.width = `${S * m}px`, i.style.height = `${S * a}px`, e.appendChild(i), u = e;
134
79
  }
135
80
  super(u);
136
- e(this, "version", $);
137
- e(this, "isCSS3DObjectPlus", !0);
138
- e(this, "isCSS3DObject", !0);
139
- e(this, "name", W);
140
- e(this, "container");
141
- e(this, "width");
142
- e(this, "height");
143
- e(this, "domWidthPx");
144
- e(this, "domHeightPx");
145
- e(this, "cornerPoints");
146
- e(this, "centerPosition");
147
- e(this, "ratio");
148
- e(this, "mode", "front");
149
- e(this, "hooks", new Q());
150
- e(this, "opacityMesh");
151
- e(this, "selfVisible", !0);
152
- e(this, "setVisible", (t) => {
81
+ o(this, "version", $);
82
+ o(this, "isCSS3DObjectPlus", !0);
83
+ o(this, "isCSS3DObject", !0);
84
+ o(this, "name", W);
85
+ o(this, "container");
86
+ o(this, "width");
87
+ o(this, "height");
88
+ o(this, "domWidthPx");
89
+ o(this, "domHeightPx");
90
+ o(this, "cornerPoints");
91
+ o(this, "centerPosition");
92
+ o(this, "ratio");
93
+ o(this, "mode", "front");
94
+ o(this, "hooks", new Q());
95
+ o(this, "opacityMesh");
96
+ o(this, "selfVisible", !0);
97
+ o(this, "setVisible", (t) => {
153
98
  this.selfVisible = t, this.visible = T(this.parent) && this.selfVisible, this.opacityMesh && (this.opacityMesh.visible = this.visible);
154
99
  });
155
- e(this, "updateVisible", () => {
100
+ o(this, "updateVisible", () => {
156
101
  this.setVisible(this.selfVisible);
157
102
  });
158
103
  /**
159
104
  * @description: 生成透明Mesh
160
105
  */
161
- e(this, "createOpacityMesh", (t) => {
162
- const { domWidthPx: i, domHeightPx: r } = t, s = new R(i, r);
163
- return s.position.copy(t.position), s.rotation.copy(t.rotation), s.scale.copy(t.scale), s;
106
+ o(this, "createOpacityMesh", (t) => {
107
+ const { domWidthPx: i, domHeightPx: s } = t, r = new R(i, s);
108
+ return r.position.copy(t.position), r.rotation.copy(t.rotation), r.scale.copy(t.scale), r;
164
109
  });
165
- if (i.style.pointerEvents = F, Object.assign(i.style, t.style), this.scale.set(n, n, n), this.cornerPoints = r, this.ratio = s, this.container = i, t.mode && (this.mode = t.mode), n === s)
166
- this.width = l, this.height = d, this.domWidthPx = c, this.domHeightPx = a, this.centerPosition = y;
110
+ if (i.style.pointerEvents = F, Object.assign(i.style, t.style), this.scale.set(h, h, h), this.cornerPoints = s, this.ratio = r, this.container = i, t.mode && (this.mode = t.mode), h === r)
111
+ this.width = l, this.height = d, this.domWidthPx = m, this.domHeightPx = a, this.centerPosition = y;
167
112
  else {
168
- const o = s / n;
169
- this.width = o * l, this.height = o * d, this.domWidthPx = o * c, this.domHeightPx = o * a, this.centerPosition = new p().subVectors(y, r[0]).multiplyScalar(o).add(r[0]);
113
+ const e = r / h;
114
+ this.width = e * l, this.height = e * d, this.domWidthPx = e * m, this.domHeightPx = e * a, this.centerPosition = new n().subVectors(y, s[0]).multiplyScalar(e).add(s[0]);
170
115
  }
171
116
  i.classList.add(`${W}__container`);
172
- const C = new p().subVectors(r[1], r[0]), M = new p().subVectors(r[3], r[0]), H = new p().crossVectors(C, M).normalize();
117
+ const C = new n().subVectors(s[1], s[0]), M = new n().subVectors(s[3], s[0]), H = new n().crossVectors(C, M).normalize();
173
118
  this.lookAt(H);
174
- const f = this.up.clone().applyQuaternion(this.quaternion), v = M.clone(), j = new p().crossVectors(f, v).normalize();
119
+ const f = this.up.clone().applyQuaternion(this.quaternion), v = M.clone(), j = new n().crossVectors(f, v).normalize();
175
120
  this.rotateOnWorldAxis(j, f.angleTo(v)), this.position.copy(y), this.addEventListener("added", () => {
176
- var o;
177
- this.mode === "front" && ((o = this.opacityMesh) == null || o.removeFromParent());
121
+ var e;
122
+ this.mode === "front" && ((e = this.opacityMesh) == null || e.removeFromParent());
178
123
  }), this.addEventListener("removed", () => {
179
- var o;
180
- (o = this.opacityMesh) == null || o.removeFromParent();
124
+ var e;
125
+ (e = this.opacityMesh) == null || e.removeFromParent();
181
126
  });
182
127
  }
183
128
  removeFromParent() {
@@ -215,7 +160,7 @@ class _i extends N {
215
160
  }
216
161
  }
217
162
  export {
218
- _i as CSS3DObjectPlus,
163
+ zt as CSS3DObjectPlus,
219
164
  z as DefaultRatio,
220
165
  k as MinRatio
221
166
  };