@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,42 +1,54 @@
1
- var c = Object.defineProperty;
2
- var l = (i, t, s) => t in i ? c(i, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : i[t] = s;
3
- var r = (i, t, s) => (l(i, typeof t != "symbol" ? t + "" : t, s), s);
4
- import * as o from "three";
5
- import { ScaleHelperAbstract as h } from "../Base/BaseHelper.js";
6
- import { calculateScaleByCamera as p } from "../utils/calculateScaleByCamera.js";
7
- class M extends h {
8
- constructor(s, e) {
9
- super(s, e);
10
- r(this, "scaleMeshes", []);
11
- r(this, "positions", []);
12
- e && (this.positions = e.positions);
1
+ var p = Object.defineProperty;
2
+ var h = (i, t, e) => t in i ? p(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
+ var c = (i, t, e) => (h(i, typeof t != "symbol" ? t + "" : t, e), e);
4
+ import * as n from "three";
5
+ import { ScaleHelperAbstract as d } from "../Base/BaseHelper.js";
6
+ import { calculateScaleByCamera as u } from "../utils/calculateScaleByCamera.js";
7
+ class S extends d {
8
+ constructor(e, s) {
9
+ super(e, s);
10
+ c(this, "name", "ScaleHelper");
11
+ c(this, "scaleMeshes", []);
12
+ c(this, "positions", []);
13
+ s && (this.positions = s.positions);
13
14
  }
14
- initialPosition(s) {
15
- this.position.copy(this.originObject3D.position), this.scaleMeshes.length && this.remove(...this.scaleMeshes);
16
- const e = typeof this.positions == "function" ? this.positions() : this.positions;
17
- e && (this.scaleMeshes = e.map((n) => {
18
- const a = m();
19
- return a.position.copy(n.handlePosition), a.scalePosition = n, a;
20
- }), this.add(...this.scaleMeshes));
15
+ initQuaternion() {
16
+ this.quaternion.copy(this.originObject3D.quaternion);
21
17
  }
22
- setScaleByCamera(s) {
23
- this.scaleMeshes.forEach((e) => {
24
- e.scale.setScalar(
25
- p(s, e.scalePosition.handlePosition.clone().applyMatrix4(this.matrixWorld))
18
+ initialPosition(e) {
19
+ this.position.copy(this.originObject3D.position);
20
+ const s = typeof this.positions == "function" ? this.positions() : this.positions;
21
+ s && (this.scaleMeshes = s.map((a, r) => {
22
+ var l;
23
+ const o = (l = this.scaleMeshes[r]) != null ? l : m();
24
+ return o.position.copy(a.handlePosition), o.scalePosition = a, this.addIfNotExists(o), o;
25
+ }));
26
+ }
27
+ setScaleByCamera(e) {
28
+ this.scaleMeshes.forEach((s) => {
29
+ s.scale.setScalar(
30
+ u(e, s.scalePosition.handlePosition.clone().applyMatrix4(this.matrixWorld))
26
31
  );
27
32
  });
28
33
  }
29
34
  }
30
35
  function m() {
31
- const t = new o.BoxGeometry(0.05, 0.05, 0.05), s = new o.MeshBasicMaterial({
36
+ const i = new n.Group();
37
+ i.name = "ScaleHelperCube";
38
+ const t = 0.05, e = new n.BoxGeometry(t, t, t), s = new n.MeshBasicMaterial({
39
+ color: 16776960,
40
+ transparent: !0,
41
+ side: n.DoubleSide
42
+ }), a = new n.MeshBasicMaterial({
32
43
  color: 16776960,
44
+ opacity: 0.4,
33
45
  depthTest: !1,
34
46
  depthWrite: !1,
35
47
  transparent: !0,
36
- side: o.DoubleSide
37
- }), e = new o.Mesh(t, s);
38
- return e.renderOrder = 10, e;
48
+ side: n.DoubleSide
49
+ }), r = new n.Mesh(e, s), o = new n.Mesh(e, a);
50
+ return r.name = "ScaleHelperCube-front", o.name = "ScaleHelperCube-behind", r.renderOrder = 11, o.renderOrder = 10, i.add(r, o), i;
39
51
  }
40
52
  export {
41
- M as ScaleHelper
53
+ S as ScaleHelper
42
54
  };
@@ -27,9 +27,9 @@ export interface ObjectHelperControllers {
27
27
  boundingBoxController?: BoundingBoxController;
28
28
  }
29
29
  export type ScaleCallback = (params: {
30
- ratio: number;
31
30
  intersectPoint: THREE.Vector3;
32
31
  scalePosition: ScalePosition;
32
+ offset: THREE.Vector3;
33
33
  }) => any;
34
34
  export type ScalePosition = {
35
35
  id?: string;
@@ -1,2 +1,5 @@
1
1
  import type * as THREE from 'three';
2
- export default function calculateScaleByCamera(camera: THREE.PerspectiveCamera, position: THREE.Vector3): number;
2
+ export default function calculateScaleByCamera(camera: any, position: THREE.Vector3, limit?: {
3
+ min?: number;
4
+ max?: number;
5
+ }): number;
@@ -1,7 +1,7 @@
1
- function v(c, s) {
2
- const e = c.position.distanceTo(s), o = c.fov, t = e / 3, a = o / 90;
3
- return t * a;
1
+ function S(e, o, a) {
2
+ const t = e.position.distanceTo(o), r = e.fov, b = e.distance || 3, D = t / 3, f = r / 90, u = b / 3, s = D * f * u, c = (a == null ? void 0 : a.min) || 0.6, n = a == null ? void 0 : a.max;
3
+ return c && s < c ? c : n && s > n ? n : s;
4
4
  }
5
5
  export {
6
- v as calculateScaleByCamera
6
+ S as calculateScaleByCamera
7
7
  };
@@ -1,67 +1,67 @@
1
- var x = Object.defineProperty;
2
- var D = Object.getOwnPropertySymbols;
3
- var S = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
4
- var M = (u, e, t) => e in u ? x(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t, L = (u, e) => {
1
+ var H = Object.defineProperty;
2
+ var L = Object.getOwnPropertySymbols;
3
+ var x = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
4
+ var M = (l, e, t) => e in l ? H(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t, w = (l, e) => {
5
5
  for (var t in e || (e = {}))
6
- S.call(e, t) && M(u, t, e[t]);
7
- if (D)
8
- for (var t of D(e))
9
- I.call(e, t) && M(u, t, e[t]);
10
- return u;
6
+ x.call(e, t) && M(l, t, e[t]);
7
+ if (L)
8
+ for (var t of L(e))
9
+ S.call(e, t) && M(l, t, e[t]);
10
+ return l;
11
11
  };
12
- var r = (u, e, t) => (M(u, typeof e != "symbol" ? e + "" : e, t), t);
13
- import { getObjectVisible as $ } from "../three/getObjectVisible.js";
14
- import { calculateThreeMouse as T } from "./calculateThreeMouse.js";
12
+ var o = (l, e, t) => (M(l, typeof e != "symbol" ? e + "" : e, t), t);
13
+ import { getObjectVisible as I } from "../three/getObjectVisible.js";
14
+ import { calculateThreeMouse as $ } from "./calculateThreeMouse.js";
15
15
  import { getFiveModel as W } from "./getFiveModel.js";
16
- import { THREERaycaster as w } from "../three/core/Raycaster.js";
17
- import { isTouchDevice as H } from "../isTouchDevice.js";
18
- class G {
16
+ import { THREERaycaster as D } from "../three/core/Raycaster.js";
17
+ class N {
19
18
  // 事件由five触发时,用来补充 originEvent 属性
20
19
  constructor(e, t) {
21
- r(this, "five");
20
+ o(this, "five");
22
21
  /**
23
22
  * @description: 拖动中
24
23
  */
25
- r(this, "dragging", !1);
26
- r(this, "boundObject", {});
27
- r(this, "config");
28
- r(this, "lastMouseDownEvent");
24
+ o(this, "dragging", !1);
25
+ o(this, "boundObject", {});
26
+ o(this, "config");
27
+ o(this, "lastMouseDownEvent");
29
28
  // 事件由five触发时,用来补充 originEvent 属性
30
- r(this, "lastTouchEvent");
31
- r(this, "handleWantsGesture", (e, t) => {
29
+ o(this, "lastTouchEvent");
30
+ o(this, "handleWantsGesture", (e, t) => {
31
+ var s;
32
32
  if (t.length !== 1)
33
33
  return;
34
34
  const n = t[0];
35
35
  if (n.raycaster) {
36
- const i = new w();
36
+ const i = new D();
37
37
  i.ray = n.raycaster.ray, i.near = n.raycaster.near, i.far = n.raycaster.far, i.camera = n.raycaster.camera, i.layers = n.raycaster.layers, i.params = n.raycaster.params, n.raycaster = i;
38
38
  }
39
39
  if (n) {
40
40
  if (e === "mouseMove" && this.onDomEvent("hover", n), e === "tap") {
41
41
  let i;
42
- !i && !H && (i = this.lastMouseDownEvent), !i && H && (i = this.lastTouchEvent), i || (i = new MouseEvent("click", { clientX: n.x, clientY: n.y }));
43
- const a = this.onDomEvent("click", n, i), d = this.onDomEvent("wantDblclick", n, i, this.boundObject.dblclick);
44
- if (a === !1 || d === !1)
42
+ i || (i = (s = this.lastMouseDownEvent) != null ? s : this.lastTouchEvent), i || (i = new MouseEvent("click", { clientX: n.x, clientY: n.y }));
43
+ const d = this.onDomEvent("click", n, i), c = this.onDomEvent("wantDblclick", n, i, this.boundObject.dblclick);
44
+ if (d === !1 || c === !1)
45
45
  return !1;
46
46
  }
47
47
  if (this.dragging)
48
48
  return !1;
49
49
  }
50
50
  });
51
- r(this, "handleDomEvent", (e, t, n) => {
52
- const i = { x: t.clientX, y: t.clientY };
53
- this.onDomEvent(e, i, t, n);
51
+ o(this, "handleDomEvent", (e, t, n) => {
52
+ const s = { x: t.clientX, y: t.clientY };
53
+ this.onDomEvent(e, s, t, n);
54
54
  });
55
- r(this, "handleMouseEvent", (e) => {
55
+ o(this, "handleMouseEvent", (e) => {
56
56
  this.handleDomEvent(e.type, e);
57
57
  });
58
- r(this, "handleMousedown", (e) => {
58
+ o(this, "handleMousedown", (e) => {
59
59
  this.lastMouseDownEvent = e, this.handleDomEvent("mousedown", e), this.handleDomEvent("dragstart", e, this.haveDragEventObject);
60
60
  });
61
- r(this, "handleTouchStart", (e) => {
61
+ o(this, "handleTouchStart", (e) => {
62
62
  this.lastTouchEvent = e;
63
63
  });
64
- r(this, "handleMouseup", (e) => {
64
+ o(this, "handleMouseup", (e) => {
65
65
  var t;
66
66
  this.dragging = !1, (t = this.haveDragEventObject) == null || t.forEach((n) => {
67
67
  n._dragging && (n._dragging = !1, this.notify({
@@ -72,7 +72,7 @@ class G {
72
72
  }));
73
73
  }), this.handleDomEvent("mouseup", e);
74
74
  });
75
- r(this, "handleMousemove", (e) => {
75
+ o(this, "handleMousemove", (e) => {
76
76
  var t;
77
77
  this.dragging && ((t = this.boundObject.drag) == null || t.forEach((n) => {
78
78
  n._dragging && this.notify({
@@ -84,86 +84,86 @@ class G {
84
84
  }));
85
85
  });
86
86
  // eslint-disable-next-line complexity
87
- r(this, "onDomEvent", (e, t, n, i = this.boundObject[e]) => {
88
- var m, g, p, o, y;
89
- if (!t || !i || (i == null ? void 0 : i.length) === 0)
87
+ o(this, "onDomEvent", (e, t, n, s = this.boundObject[e]) => {
88
+ var m, g, p, a, y;
89
+ if (!t || !s || (s == null ? void 0 : s.length) === 0)
90
90
  return;
91
- const a = [];
92
- ((m = this.config) == null ? void 0 : m.fiveModels) !== null && ((g = this.config) != null && g.fiveModels ? a.push(...this.config.fiveModels) : a.push(this.model));
93
- const d = a.filter((v) => v.loaded), l = (p = t.raycaster) != null ? p : this.getRaycaster(t);
94
- l.params.Points.threshold = 0.02;
95
- const s = l.intersectObjects(i, !0), h = [];
91
+ const i = [];
92
+ ((m = this.config) == null ? void 0 : m.fiveModels) !== null && ((g = this.config) != null && g.fiveModels ? i.push(...this.config.fiveModels) : i.push(this.model));
93
+ const d = i.filter((v) => v.loaded), c = (p = t.raycaster) != null ? p : this.getRaycaster(t);
94
+ c.params.Points.threshold = 0.02;
95
+ const r = c.intersectObjects(s, !0), h = [];
96
96
  d.forEach((v) => {
97
- const _ = v.intersectRaycaster(l);
97
+ const _ = v.intersectRaycaster(c);
98
98
  h.push(..._);
99
99
  });
100
100
  const f = 0.01;
101
- if (h.length > 0 && s.length > 0 && h[0].distance + f < s[0].distance)
101
+ if (h.length > 0 && r.length > 0 && h[0].distance + f < r[0].distance)
102
102
  return;
103
- const c = (o = s == null ? void 0 : s[0]) == null ? void 0 : o.object;
103
+ const u = (a = r == null ? void 0 : r[0]) == null ? void 0 : a.object;
104
104
  if (e === "wantDblclick")
105
105
  return !1;
106
- if ((!c || !this.objectIsBound(c)) && e === "hover")
106
+ if ((!u || !this.objectIsBound(u)) && e === "hover")
107
107
  for (const v of (y = this.boundObject.hover) != null ? y : [])
108
108
  v._hovered && this.notify({ eventName: "unHover", object: v });
109
- if (c && c && this.notify({ eventName: e, object: c, originEvent: n, raycaster: l, intersects: s }))
109
+ if (u && u && this.notify({ eventName: e, object: u, originEvent: n, raycaster: c, intersects: r }))
110
110
  return !1;
111
111
  });
112
- r(this, "objectIsBound", (e) => {
112
+ o(this, "objectIsBound", (e) => {
113
113
  let t = e._domEvent, n = e.parent;
114
114
  for (; typeof t == "undefined" && n; )
115
115
  t = n._domEvent, n = n.parent;
116
116
  return !!t;
117
117
  });
118
- r(this, "notify", (e) => {
118
+ o(this, "notify", (e) => {
119
119
  var m, g, p;
120
- const { eventName: t, object: n, originEvent: i, raycaster: a, intersects: d } = e;
121
- let l = !1, s = [];
120
+ const { eventName: t, object: n, originEvent: s, raycaster: i, intersects: d } = e;
121
+ let c = !1, r = [];
122
122
  const h = [];
123
123
  let f = n;
124
124
  for (h.push(f); f.parent; )
125
125
  f = f.parent, h.push(f);
126
- const c = h.at(-1);
127
- if (!((m = this.config) != null && m.noEmitWhenNotInScene && c.type !== "Scene")) {
128
- for (const o of h) {
129
- if (l)
126
+ const u = h.at(-1);
127
+ if (!((m = this.config) != null && m.noEmitWhenNotInScene && u.type !== "Scene")) {
128
+ for (const a of h) {
129
+ if (c)
130
130
  break;
131
- o.draggable && (t === "dragstart" && (o._dragging = !0, this.dragging = !0), t === "dragend" && (o._dragging = !1, this.dragging = !1));
132
- const y = o._domEvent;
131
+ a.draggable && (t === "dragstart" && (a._dragging = !0, this.dragging = !0), t === "dragend" && (a._dragging = !1, this.dragging = !1));
132
+ const y = a._domEvent;
133
133
  if (!y)
134
134
  continue;
135
135
  const v = y[`${t}Handler`];
136
136
  if (v)
137
137
  for (const [_, E] of v) {
138
- if (E != null && E.noEmitWhenNotInScene && c.type !== "Scene" || ((g = this.config) != null && g.noEmitWhenHide || E != null && E.noEmitWhenHide) && !$(o))
138
+ if (E != null && E.noEmitWhenNotInScene && u.type !== "Scene" || ((g = this.config) != null && g.noEmitWhenHide || E != null && E.noEmitWhenHide) && !I(a))
139
139
  continue;
140
140
  if (t === "hover") {
141
- if (o._hovered)
141
+ if (a._hovered)
142
142
  continue;
143
- o._hovered = !0;
143
+ a._hovered = !0;
144
144
  for (const b of (p = this.boundObject.hover) != null ? p : [])
145
- b !== o && b._hovered && this.notify({ eventName: "unHover", object: b });
145
+ b !== a && b._hovered && this.notify({ eventName: "unHover", object: b });
146
146
  }
147
147
  if (t === "unHover") {
148
- if (!o._hovered)
148
+ if (!a._hovered)
149
149
  continue;
150
- o._hovered = !1;
150
+ a._hovered = !1;
151
151
  }
152
152
  const O = _({
153
153
  type: t,
154
- target: o,
155
- origDomEvent: i,
156
- raycaster: a,
154
+ target: a,
155
+ origDomEvent: s,
156
+ raycaster: i,
157
157
  intersects: d,
158
158
  stopPropagation: () => {
159
- l = !0;
159
+ c = !0;
160
160
  }
161
161
  });
162
- s.push(O != null ? O : !0);
162
+ r.push(O != null ? O : !0);
163
163
  }
164
164
  }
165
165
  if (t === "click" || t === "wantDblclick")
166
- return s.some((o) => o === !0);
166
+ return r.some((a) => a === !0);
167
167
  }
168
168
  });
169
169
  this.five = e, this.config = t, e.on("wantsGesture", this.handleWantsGesture), document.addEventListener("mousedown", this.handleMousedown), document.addEventListener("touchstart", this.handleTouchStart), document.addEventListener("dblclick", this.handleMouseEvent), document.addEventListener("mouseup", this.handleMouseup), document.addEventListener("mousemove", this.handleMousemove);
@@ -179,10 +179,10 @@ class G {
179
179
  * @note: 注意:目前需要触发物体的 added 事件和 removed 事件才会生效
180
180
  * @todo: added 和 removed 还是不太智能
181
181
  */
182
- addAutoBindEventListener(e, t, n, i) {
183
- const a = () => this.addEventListener(e, t, n, i), d = () => this.removeEventListener(e, t, n, i);
184
- return e.addEventListener("added", a), e.addEventListener("removed", d), e.addEventListener("dispose", d), () => {
185
- e.removeEventListener("added", a), e.removeEventListener("removed", d), e.removeEventListener("dispose", d);
182
+ addAutoBindEventListener(e, t, n, s) {
183
+ const i = () => this.addEventListener(e, t, n, s), d = () => this.removeEventListener(e, t, n, s);
184
+ return e.addEventListener("added", i), e.addEventListener("removed", d), e.addEventListener("dispose", d), () => {
185
+ e.removeEventListener("added", i), e.removeEventListener("removed", d), e.removeEventListener("dispose", d);
186
186
  };
187
187
  }
188
188
  /**
@@ -192,25 +192,25 @@ class G {
192
192
  * @param params.callback: 返回 false 可以不阻止 five 的 tap 事件; default: true
193
193
  * @return {void}
194
194
  */
195
- addEventListener(e, t, n, i) {
196
- e._domEvent || (e._domEvent = {}), e._domEvent[`${t}Handler`] || (e._domEvent[`${t}Handler`] = []), this.boundObject[t] || (this.boundObject[t] = []), this.boundObject[t].includes(e) || this.boundObject[t].push(e), e._domEvent[`${t}Handler`].push([n, L({ noEmitWhenHide: !1, noEmitWhenNotInScene: !1 }, i)]);
195
+ addEventListener(e, t, n, s) {
196
+ e._domEvent || (e._domEvent = {}), e._domEvent[`${t}Handler`] || (e._domEvent[`${t}Handler`] = []), this.boundObject[t] || (this.boundObject[t] = []), this.boundObject[t].includes(e) || this.boundObject[t].push(e), e._domEvent[`${t}Handler`].push([n, w({ noEmitWhenHide: !1, noEmitWhenNotInScene: !1 }, s)]);
197
197
  }
198
- removeEventListener(e, t, n, ...i) {
199
- var d, l;
200
- if (!e._domEvent || (t === void 0 && (Object.keys(this.boundObject).forEach((s) => {
201
- var f, c;
202
- const h = (f = this.boundObject[s]) == null ? void 0 : f.findIndex((m) => m === e);
203
- h !== -1 && ((c = this.boundObject[s]) == null || c.splice(h, 1));
198
+ removeEventListener(e, t, n, ...s) {
199
+ var d, c;
200
+ if (!e._domEvent || (t === void 0 && (Object.keys(this.boundObject).forEach((r) => {
201
+ var f, u;
202
+ const h = (f = this.boundObject[r]) == null ? void 0 : f.findIndex((m) => m === e);
203
+ h !== -1 && ((u = this.boundObject[r]) == null || u.splice(h, 1));
204
204
  }), e._domEvent = {}), !e._domEvent[`${t}Handler`]))
205
205
  return;
206
206
  if (n === void 0) {
207
207
  delete e._domEvent[`${t}Handler`];
208
208
  return;
209
209
  }
210
- const a = e._domEvent[`${t}Handler`].findIndex((s) => s[0] === n);
211
- if (a !== -1 && (e._domEvent[`${t}Handler`].splice(a, 1), e._domEvent[`${t}Handler`].length === 0 && delete e._domEvent[`${t}Handler`], e._domEvent && Object.keys(e._domEvent).length === 0 && delete e._domEvent, !e._domEvent)) {
212
- const s = (d = this.boundObject[t]) == null ? void 0 : d.findIndex((h) => h === e);
213
- s !== -1 && ((l = this.boundObject[t]) == null || l.splice(s, 1));
210
+ const i = e._domEvent[`${t}Handler`].findIndex((r) => r[0] === n);
211
+ if (i !== -1 && (e._domEvent[`${t}Handler`].splice(i, 1), e._domEvent[`${t}Handler`].length === 0 && delete e._domEvent[`${t}Handler`], e._domEvent && Object.keys(e._domEvent).length === 0 && delete e._domEvent, !e._domEvent)) {
212
+ const r = (d = this.boundObject[t]) == null ? void 0 : d.findIndex((h) => h === e);
213
+ r !== -1 && ((c = this.boundObject[t]) == null || c.splice(r, 1));
214
214
  }
215
215
  }
216
216
  clear() {
@@ -229,10 +229,10 @@ class G {
229
229
  const t = this.five.getElement();
230
230
  if (!t)
231
231
  return;
232
- const n = T(e, t), i = new w();
233
- return i.setFromCamera(n, this.five.camera), i;
232
+ const n = $(e, t), s = new D();
233
+ return s.setFromCamera(n, this.five.camera), s;
234
234
  }
235
235
  }
236
236
  export {
237
- G as FiveDomEvents
237
+ N as FiveDomEvents
238
238
  };
@@ -1,4 +1,8 @@
1
- import { LineGeometry as Five_LineGeometry, LineMaterial as Five_LineMaterial, THREE_Line2 as Five_THREE_Line2, Line as Five_Line } from '@realsee/five/line';
1
+ import { LineMaterial as Five_LineMaterial, THREE_Line2 as Five_THREE_Line2, Line as Five_Line } from '@realsee/five/line';
2
+ import * as THREE from 'three';
3
+ import type { Merge } from 'type-fest';
4
+ import type { LineGeometry } from '../three/core/LineGeometry';
5
+ export type Color = THREE.Color | string | number;
2
6
  export declare class FiveLine extends Five_Line {
3
7
  constructor(...args: ConstructorParameters<typeof Five_Line>);
4
8
  toJSON(): {
@@ -7,27 +11,27 @@ export declare class FiveLine extends Five_Line {
7
11
  };
8
12
  }
9
13
  export declare class THREE_Line2 extends Five_THREE_Line2 {
10
- constructor(...args: ConstructorParameters<typeof Five_THREE_Line2>);
14
+ material: LineMaterial;
15
+ constructor(geometry: LineGeometry, material: LineMaterial);
11
16
  toJSON(): {
12
17
  type: string;
13
18
  geometryAttributes: {
14
- [name: string]: import("three").BufferAttribute | import("three").InterleavedBufferAttribute;
15
- };
16
- };
17
- }
18
- export declare class LineGeometry extends Five_LineGeometry {
19
- constructor(...args: ConstructorParameters<typeof Five_LineGeometry>);
20
- toJSON(): {
21
- type: string;
22
- attributes: {
23
- [name: string]: import("three").BufferAttribute | import("three").InterleavedBufferAttribute;
19
+ [name: string]: THREE.BufferAttribute | THREE.InterleavedBufferAttribute;
24
20
  };
25
21
  };
26
22
  }
27
23
  export declare class LineMaterial extends Five_LineMaterial {
28
- constructor(...args: ConstructorParameters<typeof Five_LineMaterial>);
24
+ get three_color(): Color;
25
+ set three_color(value: Color);
26
+ /**
27
+ * @deprecated Use `setDashed` to set
28
+ */
29
+ dashed: boolean;
30
+ private _three_color;
31
+ constructor(params?: Merge<ConstructorParameters<typeof Five_LineMaterial>[0], THREE.MeshBasicMaterialParameters>);
32
+ setDashed(dashed: boolean): void;
29
33
  toJSON(): {
30
34
  type: string;
31
- color: number | import("three").Vector3;
35
+ color: number | THREE.Vector3;
32
36
  };
33
37
  }
@@ -1,7 +1,11 @@
1
- import { Line as r, THREE_Line2 as i, LineMaterial as s } from "@realsee/five/line";
2
- class o extends r {
3
- constructor(...e) {
4
- super(...e);
1
+ var h = Object.defineProperty;
2
+ var c = (i, t, e) => t in i ? h(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
+ var n = (i, t, e) => (c(i, typeof t != "symbol" ? t + "" : t, e), e);
4
+ import { Line as l, THREE_Line2 as d, LineMaterial as _ } from "@realsee/five/line";
5
+ import { notNil as u } from "../isNil.js";
6
+ class f extends l {
7
+ constructor(...t) {
8
+ super(...t);
5
9
  }
6
10
  toJSON() {
7
11
  return {
@@ -10,9 +14,9 @@ class o extends r {
10
14
  };
11
15
  }
12
16
  }
13
- class a extends i {
14
- constructor(...e) {
15
- super(...e);
17
+ class H extends d {
18
+ constructor(t, e) {
19
+ super(t, e);
16
20
  }
17
21
  toJSON() {
18
22
  return {
@@ -21,9 +25,23 @@ class a extends i {
21
25
  };
22
26
  }
23
27
  }
24
- class c extends s {
25
- constructor(...e) {
26
- super(...e);
28
+ class N extends _ {
29
+ constructor(e) {
30
+ var r, s;
31
+ super(e);
32
+ n(this, "_three_color");
33
+ u(e == null ? void 0 : e.color) && (this.three_color = (r = e == null ? void 0 : e.color) != null ? r : 16777215), Object.keys(e).forEach((o) => {
34
+ ["color", "dashed", "dashScale", "dashSize", "gapSize", "resolution"].includes(o) || o in this && (this[o] = e[o]);
35
+ }), this.setDashed((s = e == null ? void 0 : e.dashed) != null ? s : !1);
36
+ }
37
+ get three_color() {
38
+ return this._three_color;
39
+ }
40
+ set three_color(e) {
41
+ this._three_color = e, this.color = e;
42
+ }
43
+ setDashed(e) {
44
+ this.dashed = e, e ? this.defines.USE_DASH = "" : delete this.defines.USE_DASH, this.needsUpdate = !0;
27
45
  }
28
46
  toJSON() {
29
47
  return {
@@ -33,7 +51,7 @@ class c extends s {
33
51
  }
34
52
  }
35
53
  export {
36
- o as FiveLine,
37
- c as LineMaterial,
38
- a as THREE_Line2
54
+ f as FiveLine,
55
+ N as LineMaterial,
56
+ H as THREE_Line2
39
57
  };
@@ -4,17 +4,12 @@ import "../three/PointSelector/index.js";
4
4
  import "three/examples/jsm/renderers/CSS3DRenderer";
5
5
  import "../tag.js";
6
6
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
7
- import "../../Sculpt/Meshes/Polygon.js";
8
- import "../../Sculpt/utils/Modules/Global.js";
9
7
  import "@realsee/five/line";
10
- import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
11
- import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
12
- import "../../Sculpt/utils/three/rayOnLine.js";
13
8
  import "../three/core/Sphere.js";
14
9
  import "animejs";
15
- function k(e) {
10
+ function u(e) {
16
11
  return e.model ? e.work ? e.model.loaded ? e.model.name !== e.work.model.file ? { result: !1, msg: "five.model.name 与 five.work.model.file 不一致" } : { result: !0, msg: "" } : { result: !1, msg: "five.model 未加载完成" } : { result: !1, msg: "five 数据未加载" } : { result: !1, msg: "five.model 不存在" };
17
12
  }
18
13
  export {
19
- k as checkFiveModelLoaded
14
+ u as checkFiveModelLoaded
20
15
  };