@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,86 +1,59 @@
1
- var T = Object.defineProperty;
1
+ var w = Object.defineProperty;
2
2
  var b = Object.getOwnPropertySymbols;
3
- var w = Object.prototype.hasOwnProperty, k = Object.prototype.propertyIsEnumerable;
4
- var m = (r, s, e) => s in r ? T(r, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[s] = e, g = (r, s) => {
5
- for (var e in s || (s = {}))
6
- w.call(s, e) && m(r, e, s[e]);
3
+ var D = Object.prototype.hasOwnProperty, T = Object.prototype.propertyIsEnumerable;
4
+ var u = (r, o, e) => o in r ? w(r, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[o] = e, g = (r, o) => {
5
+ for (var e in o || (o = {}))
6
+ D.call(o, e) && u(r, e, o[e]);
7
7
  if (b)
8
- for (var e of b(s))
9
- k.call(s, e) && m(r, e, s[e]);
8
+ for (var e of b(o))
9
+ T.call(o, e) && u(r, e, o[e]);
10
10
  return r;
11
11
  };
12
- var h = (r, s, e) => (m(r, typeof s != "symbol" ? s + "" : s, e), e);
13
- import * as f from "three";
14
- import { DEFAULT_LINE_COLOR as L, DEFAULT_LINE_WIDTH as C, DEFAULT_HIGHLIGHT_OPACITY as S } from "../typings/style.js";
15
- import { LineMaterial as v, THREE_Line2 as H } from "../../shared-utils/five/FiveLine.js";
16
- import { LineGeometry as p } from "../../vendor/three/examples/jsm/lines/LineGeometry.js";
17
- import { anyPositionToVector3 as I } from "../../shared-utils/positionToVector3.js";
18
- import { IObject3D as x } from "../../shared-utils/three/IObject3D.js";
19
- import { LightTag as R } from "../../shared-utils/tag.js";
12
+ var h = (r, o, e) => (u(r, typeof o != "symbol" ? o + "" : o, e), e);
13
+ import * as m from "three";
14
+ import { DEFAULT_LINE_COLOR as L, DEFAULT_LINE_WIDTH as _, DEFAULT_HIGHLIGHT_OPACITY as C } from "../typings/style.js";
15
+ import { LineMaterial as S, THREE_Line2 as k } from "../../shared-utils/five/FiveLine.js";
16
+ import { anyPositionToVector3 as E } from "../../shared-utils/positionToVector3.js";
17
+ import { IObject3D as v } from "../../shared-utils/three/IObject3D.js";
18
+ import { LightTag as I } from "../../shared-utils/tag.js";
20
19
  import "hammerjs";
21
20
  import "../../shared-utils/three/PointSelector/index.js";
22
21
  import "three/examples/jsm/renderers/CSS3DRenderer";
23
- import { centerPoint as W } from "../../shared-utils/three/centerPoint.js";
24
- import { removeAllTag as O } from "../utils/removeAllTag.js";
25
- import { getLengthHTML as P } from "../utils/Meshes/getLengthHTML.js";
26
- import { applyObjectMatrixWorld as _ } from "../../shared-utils/three/applyObjectMatrixWorld.js";
22
+ import { centerPoint as H } from "../../shared-utils/three/centerPoint.js";
23
+ import { removeAllTag as R } from "../utils/removeAllTag.js";
24
+ import { getLengthHTML as x } from "../utils/Meshes/getLengthHTML.js";
25
+ import { applyObjectMatrixWorld as M } from "../../shared-utils/three/applyObjectMatrixWorld.js";
26
+ import { LineGeometry as p } from "../../shared-utils/three/core/LineGeometry.js";
27
27
  import "../../shared-utils/three/core/Sphere.js";
28
28
  import "animejs";
29
29
  import { notNil as c } from "../../shared-utils/isNil.js";
30
30
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
31
- import "./Polygon.js";
32
- import "../utils/Modules/Global.js";
33
- import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
34
- import "../utils/three/rayOnLine.js";
35
- class D extends v {
31
+ class X extends v {
36
32
  constructor(e) {
37
- var i, t;
38
- super(e);
39
- h(this, "_three_color");
40
- c(e == null ? void 0 : e.color) && (this.three_color = (i = e == null ? void 0 : e.color) != null ? i : 16777215), Object.keys(e).forEach((o) => {
41
- ["color", "dashed", "dashScale", "dashSize", "gapSize", "resolution"].includes(o) || o in this && (this[o] = e[o]);
42
- }), this.setDashed((t = e == null ? void 0 : e.dashed) != null ? t : !1);
43
- }
44
- get three_color() {
45
- return this._three_color;
46
- }
47
- set three_color(e) {
48
- this._three_color = e, this.color = e;
49
- }
50
- setDashed(e) {
51
- this.dashed = e, e ? this.defines.USE_DASH = "" : delete this.defines.USE_DASH, this.needsUpdate = !0;
52
- }
53
- }
54
- class E extends H {
55
- constructor(e, i) {
56
- super(e, i);
57
- h(this, "name", "Line3");
58
- }
59
- }
60
- class ne extends x {
61
- constructor(e) {
62
- var l, d, a, u, n;
33
+ var s, l, a, d, y;
63
34
  super();
64
35
  h(this, "name", "LineMesh");
65
- h(this, "points");
36
+ h(this, "type", "Line2");
37
+ h(this, "points", []);
66
38
  h(this, "doms", []);
67
39
  h(this, "highlighted", !1);
40
+ h(this, "_geometry");
68
41
  h(this, "line");
69
42
  h(this, "backLine");
70
43
  h(this, "opacityBeforeHighlight");
71
44
  h(this, "paramsStyle", {});
72
45
  h(this, "lastRenderDomItem");
73
46
  h(this, "_visible", !0);
74
- this.paramsStyle = e != null ? e : {};
75
- const i = new p(), t = new D({
76
- color: new f.Color((l = e == null ? void 0 : e.lineColor) != null ? l : L),
77
- linewidth: (d = e == null ? void 0 : e.lineWidth) != null ? d : C,
47
+ this.paramsStyle = e != null ? e : {}, this.geometry = new p();
48
+ const t = new S({
49
+ color: new m.Color((s = e == null ? void 0 : e.lineColor) != null ? s : L),
50
+ linewidth: (l = e == null ? void 0 : e.lineWidth) != null ? l : _,
78
51
  dashScale: 40,
79
52
  opacity: (a = e == null ? void 0 : e.opacity) != null ? a : 1,
80
53
  transparent: !0,
81
- dashed: (u = e == null ? void 0 : e.dashed) != null ? u : !1
82
- }), o = new D({
83
- color: new f.Color((n = e == null ? void 0 : e.lineColor) != null ? n : L),
54
+ dashed: (d = e == null ? void 0 : e.dashed) != null ? d : !1
55
+ }), i = new S({
56
+ color: new m.Color((y = e == null ? void 0 : e.lineColor) != null ? y : L),
84
57
  linewidth: t.linewidth * 0.9,
85
58
  dashScale: t.dashScale,
86
59
  opacity: t.opacity * 0.7,
@@ -89,11 +62,11 @@ class ne extends x {
89
62
  transparent: !0,
90
63
  resolution: t.resolution
91
64
  });
92
- this.line = new E(i, t), this.backLine = new E(i, o), this.line.renderOrder = 1, this.backLine.renderOrder = 0, this.line.name = "lineFrontMaterial", this.backLine.name = "lineBackMaterial", e && this.setStyle(e), e != null && e.points && this.setPoints(e.points), this.addEventListener("removed", () => {
93
- O(this);
65
+ this.line = new k(this.geometry, t), this.backLine = new k(this.geometry, i), this.line.renderOrder = 1, this.backLine.renderOrder = 0, this.line.name = "lineFrontMaterial", this.backLine.name = "lineBackMaterial", this.add(this.line, this.backLine), e && this.setStyle(e), e != null && e.points && this.setPoints(e.points), this.addEventListener("removed", () => {
66
+ R(this);
94
67
  }), Object.defineProperty(this, "visible", {
95
- set: (y) => {
96
- this.doms && this.doms.forEach((M) => M.container.style.visibility = y ? "visible" : "hidden"), this._visible = y;
68
+ set: (n) => {
69
+ this.doms && this.doms.forEach((f) => f.container.style.display = n ? "block" : "none"), this._visible = n;
97
70
  },
98
71
  get: () => this._visible
99
72
  });
@@ -120,7 +93,7 @@ class ne extends x {
120
93
  }
121
94
  get color() {
122
95
  var e;
123
- return new f.Color((e = this.line.material.three_color) != null ? e : this.paramsStyle.lineColor);
96
+ return new m.Color((e = this.line.material.three_color) != null ? e : this.paramsStyle.lineColor);
124
97
  }
125
98
  get dashed() {
126
99
  var e;
@@ -133,79 +106,87 @@ class ne extends x {
133
106
  return this.paramsStyle.occlusionMode;
134
107
  }
135
108
  get five() {
136
- var i, t;
137
- const e = (t = (i = window.globalModules) == null ? void 0 : i.five) != null ? t : window.$five;
109
+ var t, i;
110
+ const e = (i = (t = window.globalModules) == null ? void 0 : t.five) != null ? i : window.$five;
138
111
  return e || console.error("请先调用 Sculpt.modules.init(five) "), e;
139
112
  }
113
+ set geometry(e) {
114
+ var t;
115
+ this._geometry = e, this.line && (this.line.geometry = e), this.backLine && (this.backLine.geometry = e), (t = this.line) == null || t.computeLineDistances();
116
+ }
117
+ get geometry() {
118
+ return this._geometry;
119
+ }
140
120
  updateMatrixWorld(e) {
141
- var i;
121
+ var t;
142
122
  if (super.updateMatrixWorld(e), this.points) {
143
- const t = (i = _(this, this.points)) == null ? void 0 : i.map((o) => o.toArray().join(",")).join(",");
144
- t !== this.lastRenderDomItem && (this.updateDomItems(), this.lastRenderDomItem = t);
123
+ const i = (t = M(this, this.points)) == null ? void 0 : t.map((s) => s.toArray().join(",")).join(",");
124
+ i !== this.lastRenderDomItem && (this.updateDomItems(), this.lastRenderDomItem = i);
145
125
  }
146
126
  }
147
127
  setPoints(e) {
148
- const i = e.map(I).filter(c);
149
- if (this.points = i, i.length < 2) {
128
+ if (this.points.length === 0 && e.length === 0)
129
+ return;
130
+ const t = e.map(E).filter(c);
131
+ if (this.points = t, t.length < 2) {
150
132
  this.line.geometry = new p(), this.backLine.geometry = this.line.geometry, this.updateDomItems();
151
133
  return;
152
134
  }
153
- this.addIfNotExists(this.line, this.backLine);
154
- const t = i.flatMap((o) => [o.x, o.y, o.z]);
155
- t.length > 2 && (this.line.geometry.dispose(), this.line.geometry = new p(), this.backLine.geometry = this.line.geometry), this.line.geometry.setPositions(t), this.line.computeLineDistances(), this.updateDomItems(), this.needsRender = !0;
135
+ const i = t.flatMap((s) => [s.x, s.y, s.z]);
136
+ i.length > 2 && (this.line.geometry.dispose(), this.line.geometry = new p(), this.backLine.geometry = this.line.geometry), this.line.geometry.setPositions(i), this.line.computeLineDistances(), this.updateDomItems(), this.needsRender = !0;
156
137
  }
157
- setResolution(e, i) {
158
- const t = this.line.material.resolution;
159
- (t.x !== e || t.y !== i) && (t.set(e, i), this.needsRender = !0);
160
- const o = this.backLine.material.resolution;
161
- (o.x !== e || o.y !== i) && (o.set(e, i), this.needsRender = !0);
138
+ setResolution(e, t) {
139
+ const i = this.line.material.resolution;
140
+ (i.x !== e || i.y !== t) && (i.set(e, t), this.needsRender = !0);
141
+ const s = this.backLine.material.resolution;
142
+ (s.x !== e || s.y !== t) && (s.set(e, t), this.needsRender = !0);
162
143
  }
163
144
  setStyle(e) {
164
- var o, l, d;
165
- this.paramsStyle = g(g({}, this.paramsStyle), e), c(e.lineColor) && (this.line.material.three_color = new f.Color(e.lineColor), this.backLine.material.three_color = new f.Color(e.lineColor)), c(e.lineWidth) && (this.line.material.linewidth = e.lineWidth), c(e.dashed) && this.line.material.setDashed(e.dashed), c(e.opacity) && (this.line.material.opacity = e.opacity, this.backLine.material.opacity = this.line.material.opacity * 0.7), this.updateDomItems();
166
- const i = (o = e.occlusionVisibility) != null ? o : this.paramsStyle.occlusionVisibility, t = (d = (l = e.occlusionMode) != null ? l : this.paramsStyle.occlusionMode) != null ? d : "translucence";
167
- i ? t === "depthTest" ? (this.line.material.depthTest = !1, this.backLine.visible = !1) : t === "translucence" && (this.line.material.depthTest = !0, this.backLine.visible = !0, this.line.material.opacity === 1 ? this.backLine.material.setDashed(!0) : this.backLine.material.setDashed(this.line.material.dashed)) : (this.line.material.depthTest = !0, this.backLine.visible = !1), this.needsRender = !0;
145
+ var s, l, a;
146
+ this.paramsStyle = g(g({}, this.paramsStyle), e), c(e.lineColor) && (this.line.material.three_color = new m.Color(e.lineColor), this.backLine.material.three_color = new m.Color(e.lineColor)), c(e.lineWidth) && (this.line.material.linewidth = e.lineWidth), c(e.dashed) && this.line.material.setDashed(e.dashed), c(e.opacity) && (this.line.material.opacity = e.opacity, this.backLine.material.opacity = this.line.material.opacity * 0.7), this.updateDomItems();
147
+ const t = (s = e.occlusionVisibility) != null ? s : this.paramsStyle.occlusionVisibility, i = (a = (l = e.occlusionMode) != null ? l : this.paramsStyle.occlusionMode) != null ? a : "translucence";
148
+ t ? i === "depthTest" ? (this.line.material.depthTest = !1, this.backLine.visible = !1) : i === "translucence" && (this.line.material.depthTest = !0, this.backLine.visible = !0, this.line.material.opacity === 1 ? this.backLine.material.setDashed(!0) : this.backLine.material.setDashed(this.line.material.dashed)) : (this.line.material.depthTest = !0, this.backLine.visible = !1), this.needsRender = !0;
168
149
  }
169
150
  highlight() {
170
- this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.line.material.opacity, this.line.material.opacity = this.opacityBeforeHighlight * S, this.backLine.material.opacity = this.backLine.material.opacity * S, this.needsRender = !0);
151
+ this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.line.material.opacity, this.line.material.opacity = this.opacityBeforeHighlight * C, this.backLine.material.opacity = this.line.material.opacity * 0.7, this.needsRender = !0);
171
152
  }
172
153
  unhighlight() {
173
- this.highlighted && (this.highlighted = !1, this.line.material.opacity = this.opacityBeforeHighlight, this.backLine.material.opacity = 0.2, this.needsRender = !0);
154
+ this.highlighted && (this.highlighted = !1, this.line.material.opacity = this.opacityBeforeHighlight, this.backLine.material.opacity = this.line.material.opacity * 0.7, this.needsRender = !0);
174
155
  }
175
156
  updateDomItems() {
176
157
  const e = () => {
177
- this.doms.forEach((t) => t.destroy()), this.doms = [];
158
+ this.doms.forEach((i) => i.destroy()), this.doms = [];
178
159
  };
179
160
  if (!this.points || this.points.length < 2 || !this.paramsStyle.lengthEnable && !this.paramsStyle.tip)
180
161
  return e();
181
162
  if (!this.five)
182
163
  return console.error("Five not found");
183
- const i = this.points.map((t, o) => {
184
- if (o !== 0)
185
- return [this.points[o - 1], t];
186
- }).filter(c).map((t) => _(this, t));
187
- i.forEach(([t, o], l) => {
188
- var u;
189
- const d = W(t, o);
190
- this.doms[l] = (u = this.doms[l]) != null ? u : (() => {
191
- const n = new R(this.five);
164
+ const t = this.points.map((i, s) => {
165
+ if (s !== 0)
166
+ return [this.points[s - 1], i];
167
+ }).filter(c).map((i) => M(this, i));
168
+ t.forEach(([i, s], l) => {
169
+ var y;
170
+ const a = H(i, s);
171
+ this.doms[l] = (y = this.doms[l]) != null ? y : (() => {
172
+ const n = new I(this.five);
192
173
  return n.intersectCheck = !1, n.simulate3D = !0, n;
193
- })(), this.doms[l].setPosition(d, [t, o]);
194
- const a = (n) => {
195
- var y;
196
- this.doms[l].__text !== n && (this.doms[l].__text = n, n ? this.doms[l].container.innerHTML = P(n, {
197
- style: `color: #${c((y = this.style) == null ? void 0 : y.lineColor) ? new f.Color(this.style.lineColor).getHexString() : "ffffff"}`
174
+ })(), this.doms[l].setPosition(a, [i, s]);
175
+ const d = (n) => {
176
+ var f;
177
+ this.doms[l].__text !== n && (this.doms[l].__text = n, n ? this.doms[l].container.innerHTML = x(n, {
178
+ style: `color: #${c((f = this.style) == null ? void 0 : f.lineColor) ? new m.Color(this.style.lineColor).getHexString() : "ffffff"}`
198
179
  }) : this.doms[l].container.innerHTML = "");
199
180
  };
200
181
  if (this.paramsStyle.tip)
201
- a(this.paramsStyle.tip);
182
+ d(this.paramsStyle.tip);
202
183
  else {
203
- const n = t.distanceTo(o).toFixed(2);
204
- a(n === "0.00" ? null : n + "m");
184
+ const n = i.distanceTo(s).toFixed(2);
185
+ d(n === "0.00" ? null : n + "m");
205
186
  }
206
- }), this.doms.length > i.length && (this.doms.slice(i.length).forEach((t) => t.destroy()), this.doms.length = i.length);
187
+ }), this.doms.length > t.length && (this.doms.slice(t.length).forEach((i) => i.destroy()), this.doms.length = t.length);
207
188
  }
208
189
  }
209
190
  export {
210
- ne as LineMesh
191
+ X as LineMesh
211
192
  };
@@ -1,12 +1,12 @@
1
1
  var u = Object.defineProperty, d = Object.defineProperties;
2
2
  var f = Object.getOwnPropertyDescriptors;
3
- var m = Object.getOwnPropertySymbols;
3
+ var a = Object.getOwnPropertySymbols;
4
4
  var g = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
5
5
  var n = (s, i, t) => i in s ? u(s, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[i] = t, o = (s, i) => {
6
6
  for (var t in i || (i = {}))
7
7
  g.call(i, t) && n(s, t, i[t]);
8
- if (m)
9
- for (var t of m(i))
8
+ if (a)
9
+ for (var t of a(i))
10
10
  c.call(i, t) && n(s, t, i[t]);
11
11
  return s;
12
12
  }, r = (s, i) => d(s, f(i));
@@ -21,14 +21,10 @@ import "three/examples/jsm/renderers/CSS3DRenderer";
21
21
  import { LineMesh as S } from "./Line.js";
22
22
  import "../../shared-utils/three/core/Sphere.js";
23
23
  import "animejs";
24
- import { notNil as a } from "../../shared-utils/isNil.js";
24
+ import { notNil as y } from "../../shared-utils/isNil.js";
25
25
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
26
26
  import { IObject3D as M } from "../../shared-utils/three/IObject3D.js";
27
- import "./Polygon.js";
28
- import "../utils/Modules/Global.js";
29
- import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
30
- import "../utils/three/rayOnLine.js";
31
- class q extends S {
27
+ class W extends S {
32
28
  constructor(t) {
33
29
  super();
34
30
  e(this, "name", "LineWithDotsMesh");
@@ -45,7 +41,7 @@ class q extends S {
45
41
  });
46
42
  e(this, "updateEdgePointsVisibility", () => {
47
43
  var t;
48
- a((t = this._paramsStyle) == null ? void 0 : t.pointVisibility) && (this.startPoint && (this.startPoint.visible = typeof this._paramsStyle.pointVisibility == "object" ? this._paramsStyle.pointVisibility.startPoint : this._paramsStyle.pointVisibility), this.endPoint && (this.endPoint.visible = typeof this._paramsStyle.pointVisibility == "object" ? this._paramsStyle.pointVisibility.endPoint : this._paramsStyle.pointVisibility));
44
+ y((t = this._paramsStyle) == null ? void 0 : t.pointVisibility) && (this.startPoint && (this.startPoint.visible = typeof this._paramsStyle.pointVisibility == "object" ? this._paramsStyle.pointVisibility.startPoint : this._paramsStyle.pointVisibility), this.endPoint && (this.endPoint.visible = typeof this._paramsStyle.pointVisibility == "object" ? this._paramsStyle.pointVisibility.endPoint : this._paramsStyle.pointVisibility));
49
45
  });
50
46
  this.add(this.pointGroup), t && this.setStyle(t), t != null && t.points && this.setPoints(t.points);
51
47
  }
@@ -63,14 +59,14 @@ class q extends S {
63
59
  }
64
60
  setPoints(t) {
65
61
  super.setPoints(t);
66
- const h = t.map(b).filter(a);
67
- this.pointGroup.removeChildren(), this.addIfNotExists(this.pointGroup), h.forEach((y) => {
62
+ const h = t.map(b).filter(y);
63
+ this.pointGroup.removeChildren(), this.addIfNotExists(this.pointGroup), h.forEach((m) => {
68
64
  var l;
69
65
  const p = new P(r(o({}, this.style), { color: (l = this._paramsStyle) == null ? void 0 : l.lineColor, tip: void 0 }));
70
- p.position.copy(y), this.pointGroup.add(p);
66
+ p.position.copy(m), this.pointGroup.add(p);
71
67
  }), this.updateEdgePointsVisibility(), this.needsRender = !0;
72
68
  }
73
69
  }
74
70
  export {
75
- q as LineWithDotsMesh
71
+ W as LineWithDotsMesh
76
72
  };
@@ -1,26 +1,26 @@
1
- var N = Object.defineProperty, k = Object.defineProperties;
1
+ var k = Object.defineProperty, N = Object.defineProperties;
2
2
  var D = Object.getOwnPropertyDescriptors;
3
3
  var d = Object.getOwnPropertySymbols;
4
- var v = Object.prototype.hasOwnProperty, V = Object.prototype.propertyIsEnumerable;
5
- var f = (e, i, t) => i in e ? N(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, g = (e, i) => {
4
+ var V = Object.prototype.hasOwnProperty, v = Object.prototype.propertyIsEnumerable;
5
+ var f = (e, i, t) => i in e ? k(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, g = (e, i) => {
6
6
  for (var t in i || (i = {}))
7
- v.call(i, t) && f(e, t, i[t]);
7
+ V.call(i, t) && f(e, t, i[t]);
8
8
  if (d)
9
9
  for (var t of d(i))
10
- V.call(i, t) && f(e, t, i[t]);
10
+ v.call(i, t) && f(e, t, i[t]);
11
11
  return e;
12
- }, m = (e, i) => k(e, D(i));
12
+ }, a = (e, i) => N(e, D(i));
13
13
  var y = (e, i) => {
14
14
  var t = {};
15
15
  for (var o in e)
16
- v.call(e, o) && i.indexOf(o) < 0 && (t[o] = e[o]);
16
+ V.call(e, o) && i.indexOf(o) < 0 && (t[o] = e[o]);
17
17
  if (e != null && d)
18
18
  for (var o of d(e))
19
- i.indexOf(o) < 0 && V.call(e, o) && (t[o] = e[o]);
19
+ i.indexOf(o) < 0 && v.call(e, o) && (t[o] = e[o]);
20
20
  return t;
21
21
  };
22
22
  var s = (e, i, t) => (f(e, typeof i != "symbol" ? i + "" : i, t), t);
23
- import * as r from "three";
23
+ import * as h from "three";
24
24
  import { DEFAULT_HIGHLIGHT_OPACITY as I } from "../typings/style.js";
25
25
  import { IObject3D as W } from "../../shared-utils/three/IObject3D.js";
26
26
  import { anyPositionToVector3 as x } from "../../shared-utils/positionToVector3.js";
@@ -29,23 +29,18 @@ import "hammerjs";
29
29
  import "../../shared-utils/three/PointSelector/index.js";
30
30
  import "three/examples/jsm/renderers/CSS3DRenderer";
31
31
  import "@realsee/five/line";
32
- import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
32
+ import { notNil as c } from "../../shared-utils/isNil.js";
33
33
  import { removeAllTag as E } from "../utils/removeAllTag.js";
34
34
  import { getLengthHTML as S } from "../utils/Meshes/getLengthHTML.js";
35
35
  import { applyObjectMatrixWorld as T } from "../../shared-utils/three/applyObjectMatrixWorld.js";
36
36
  import "../../shared-utils/three/core/Sphere.js";
37
37
  import "animejs";
38
- import { notNil as c } from "../../shared-utils/isNil.js";
39
38
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
40
- import "./Polygon.js";
41
- import "../utils/Modules/Global.js";
42
- import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
43
- import "../utils/three/rayOnLine.js";
44
39
  const H = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sHDgwCEMBJZu0AAAAdaVRYdENvbW1lbnQAAAAAAENyZWF0ZWQgd2l0aCBHSU1QZC5lBwAABM5JREFUWMO1V0tPG2cUPZ4Hxh6DazIOrjFNqJs0FIMqWFgWQkatsmvVbtggKlSVRVf5AWz4AWz4AUSKEChll19QJYSXkECuhFxsHjEhxCYm+DWGMZ5HF72DJq4bAzFXurI0M/I5997v3u9cC65vTJVn2lX/xHINQOYSBLTLEuIuCWw4Z3IGAEvf6ASmVHjNzHCXBG4A0AjACsAOwEbO0nsFQBnAGYASAIl+ZRMR7SolMEdsByD09fV5R0ZGgg8ePPjW5/N1iqLYpuu6RZblciKR2I9Go69evnwZnZ+fjwI4IS8AKBIRzeQfJWCANwKwh0KhtrGxsYehUOin1tbW+zzP23ietzY2NnIAoGmaLsuyUiqVyvl8XtrY2NiamZn589mzZxsAUgCOAeQAnFI2tI+VxIjaAeDzoaGh7xYWFuZOTk6OZVk+12uYqqq6JEnn0Wg0OT4+/geAXwGEAdwDIFJQXC1wO4DWR48e/RCPxxclSSroVzRFUbSDg4P848ePFwH8DuAhkWih83TRQWxFOXgAwvDwcOfo6OhvXV1d39tsNtuVBwTDWBwOh1UUxVsMw1hXVlbSdCgNV43uYSvrHg6H24aHh38eHBz85TrgF9FYLHA4HLzH43FvbW2d7u/vG+dANp8FpqIlbd3d3V8Fg8EfBUFw4BONZVmL3+9vHhkZCQL4AoAHgJPK8G+yzC0XDofdoVAo5PP5vkadTBAEtr+/39ff3x8gAp/RPOEqx2qjx+NpvXv3bk9DQ0NDvQgwDIOWlhZrMBj8kgi0UJdxRgYMArzL5XJ7vd57qLPZ7Xamp6fnNgBXtQxcjFuHw+Hyer3t9SYgCAITCAScAJoBNNEY/08GOFVVrfVMv7kMNDntFD1vjIAPrlRN0xjckOm6biFQ3jwNPwDMZrOnqVTqfb3Bi8Wivru7W/VCYkwPlKOjo0IikXh7EwQikYgE4Nw0CfXKDCipVCoTj8df3QABbW1tLUc6oUgkFPMkVACUNjc337148eKvw8PDbJ2jP1taWkoCyNDVXDSECmNSK4qiKNLq6urW8+fPI/UicHx8rD59+jSVy+WOAKSJhKENwFItLtoxk8mwsixzHR0dHe3t7c5PAU+n09rs7OzJkydPYqVSaQfANoDXALIk31S2smU1TWMPDg7K5XKZ7+3t9TudTut1U7+wsFCcmJiIpdPpbQBxADsAknQWymYCOukBHYCuKApisdhpMpnURFEU79y503TVyKenpzOTk5M7e3t7MQKPV0Zv1gNm+awB0MvlshqLxfLb29uyJElWURSbXC4XXyvqxcXFs6mpqeTc3Nzu3t7e3wQcA7BPZ8Cov1pNlJplmQtAG8MwHV6v95tAINA5MDBwPxAIuLu6upr8fr/VAN3c3JQjkcjZ+vp6fnl5+d2bN29SuVzuNYAEpf01CdRChUL+X1VskHACuA3Ay3Fcu9vt7nA6nZ7m5uYWQRCaNE3jVVW15PP580KhIGUymWw2m00DOAJwSP4WwPtq4LX2Ao6USxNlQyS/RcQcdLGwlNIz6vEMAaZpNzCk2Pll94LK/cDYimxERiBwG10sxjgvEZBE0UpE6vxj+0Ct5bTaXthgEhRmja8QWNkkPGsuIpfdjpkK+cZUWTC0KredVmtD/gdlSl6EG4AMvQAAAABJRU5ErkJggg==";
45
40
  let C = null;
46
- class st extends W {
41
+ class $ extends W {
47
42
  constructor(t) {
48
- var p, w;
43
+ var w, p;
49
44
  super();
50
45
  s(this, "name", "PointMesh");
51
46
  s(this, "dom");
@@ -56,32 +51,32 @@ class st extends W {
56
51
  s(this, "lastRenderDomItem");
57
52
  s(this, "paramsStyle");
58
53
  s(this, "_visible", !0);
59
- const M = t != null ? t : {}, { point: o } = M, h = y(M, ["point"]);
60
- this.paramsStyle = h != null ? h : {};
61
- const l = new r.BufferGeometry();
62
- l.setAttribute("position", new r.Float32BufferAttribute([0, 0, 0], 3));
63
- const a = {
54
+ const M = t != null ? t : {}, { point: o } = M, r = y(M, ["point"]);
55
+ this.paramsStyle = r != null ? r : {};
56
+ const l = new h.BufferGeometry();
57
+ l.setAttribute("position", new h.Float32BufferAttribute([0, 0, 0], 3));
58
+ const m = {
64
59
  transparent: !0,
65
- side: r.DoubleSide,
66
- size: (p = t == null ? void 0 : t.size) != null ? p : 8,
67
- map: C || (C = new r.TextureLoader().load(H)),
60
+ side: h.DoubleSide,
61
+ size: (w = t == null ? void 0 : t.size) != null ? w : 8,
62
+ map: C || (C = new h.TextureLoader().load(H)),
68
63
  sizeAttenuation: !1
69
- }, u = new r.PointsMaterial(m(g({}, a), {
70
- color: (w = t == null ? void 0 : t.color) != null ? w : 16777215,
64
+ }, u = new h.PointsMaterial(a(g({}, m), {
65
+ color: (p = t == null ? void 0 : t.color) != null ? p : 16777215,
71
66
  depthTest: !0,
72
67
  opacity: 1
73
- })), P = new r.PointsMaterial(m(g({}, a), {
68
+ })), P = new h.PointsMaterial(a(g({}, m), {
74
69
  size: u.size,
75
70
  color: u.color,
76
71
  depthWrite: !1,
77
72
  depthTest: !1,
78
73
  opacity: 0.5
79
- })), n = new r.Points(l, u), A = new r.Points(l, P);
74
+ })), n = new h.Points(l, u), A = new h.Points(l, P);
80
75
  this.fontMesh = n, this.backgroundMesh = A, n.name = "FontMesh", A.name = "BackgroundMesh", n.renderOrder = 10, A.renderOrder = 0, this.add(n, A), t != null && t.point && this.position.copy(x(t.point)), t && this.setStyle(t), this.addEventListener("removed", () => {
81
76
  E(this);
82
77
  }), Object.defineProperty(this, "visible", {
83
78
  set: (b) => {
84
- this.dom && (this.dom.container.style.visibility = b ? "visible" : "hidden"), this._visible = b;
79
+ this.dom && (this.dom.container.style.display = b ? "block" : "none"), this._visible = b;
85
80
  },
86
81
  get: () => this._visible
87
82
  });
@@ -121,15 +116,15 @@ class st extends W {
121
116
  updateDom() {
122
117
  const t = this.paramsStyle.tip;
123
118
  t && !this.dom && (this.dom = new B(this.five), this.dom.intersectCheck = !1, this.dom.simulate3D = !0, this.dom.container.style.visibility = "hidden");
124
- const o = (h) => {
119
+ const o = (r) => {
125
120
  var l;
126
- this.dom && this.dom.__text !== h && (this.dom.__text = h, h ? this.dom.container.innerHTML = S(h, {
127
- style: `color: #${c((l = this.style) == null ? void 0 : l.color) ? new r.Color(this.style.color).getHexString() : "ffffff"}`
121
+ this.dom && this.dom.__text !== r && (this.dom.__text = r, r ? this.dom.container.innerHTML = S(r, {
122
+ style: `color: #${c((l = this.style) == null ? void 0 : l.color) ? new h.Color(this.style.color).getHexString() : "ffffff"}`
128
123
  }) : this.dom.container.innerHTML = "");
129
124
  };
130
125
  t ? (o(t), this.dom.setPosition(this.position.clone())) : o(null);
131
126
  }
132
127
  }
133
128
  export {
134
- st as PointMesh
129
+ $ as PointMesh
135
130
  };
@@ -9,7 +9,7 @@ export type PolygonStyle = ColoredMeshStyle & {
9
9
  lengthEnable: boolean;
10
10
  };
11
11
  export type PolygonData = PointsData;
12
- export default class PolygonMesh extends ColoredMesh<THREE.BufferGeometry> {
12
+ export declare class PolygonMesh extends ColoredMesh<THREE.BufferGeometry> {
13
13
  name: string;
14
14
  get style(): {
15
15
  lengthEnable: boolean;
@@ -31,8 +31,6 @@ export default class PolygonMesh extends ColoredMesh<THREE.BufferGeometry> {
31
31
  private get five();
32
32
  private planeHelper;
33
33
  private _geometryInfo;
34
- private opacityBeforeHighlight;
35
- private highlighted;
36
34
  private lastRenderAreaItem;
37
35
  private areaDom?;
38
36
  constructor(params?: Partial<PolygonStyle & PolygonData>);
@@ -43,8 +41,6 @@ export default class PolygonMesh extends ColoredMesh<THREE.BufferGeometry> {
43
41
  * @description: 获取一个点投影在当前平面上的点
44
42
  */
45
43
  projectPoint(point: THREE.Vector3): THREE.Vector3;
46
- highlight(): void;
47
- unhighlight(): void;
48
44
  private updatePlaneHelper;
49
45
  private updateAreaItems;
50
46
  }