@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
@@ -86,15 +86,6 @@ export declare class Sculpt extends Subscribe<Event> {
86
86
  };
87
87
  readonly id: string;
88
88
  readonly type: string;
89
- } | {
90
- points: [import("..").ArrayPosition, import("..").ArrayPosition, import("..").ArrayPosition];
91
- style: {
92
- color: number;
93
- lineWidth: number;
94
- lineColor: number;
95
- };
96
- id: string;
97
- type: string;
98
89
  } | {
99
90
  center: [number, number, number];
100
91
  normal: [number, number, number];
@@ -136,43 +127,43 @@ export declare class Sculpt extends Subscribe<Event> {
136
127
  /**
137
128
  * @description: 开始绘制点
138
129
  */
139
- createPoint(params?: Parameters<Point['create']>[0]): Promise<Point>;
130
+ createPoint(...params: Parameters<Point['create']>): Promise<Point>;
140
131
  /**
141
132
  * @description: 开始绘制线段
142
133
  */
143
- createLine(params?: Parameters<Line['create']>[0]): Promise<Line>;
134
+ createLine(...params: Parameters<Line['create']>): Promise<Line>;
144
135
  /**
145
136
  * @deprecated use createLine instead
146
137
  */
147
- createline(...params: any[]): Promise<void>;
138
+ createline(...params: Parameters<Line['create']>): Promise<void>;
148
139
  /**
149
140
  * @description: 开始绘制空间折线
150
141
  */
151
- createPolyline(params?: Parameters<Polyline['create']>[0]): Promise<Polyline>;
142
+ createPolyline(...params: Parameters<Polyline['create']>): Promise<Polyline>;
152
143
  /**
153
144
  * @description: 开始绘制平面多边形
154
145
  */
155
- createPolygon(params?: Parameters<Polygon['create']>[0]): Promise<Polygon>;
146
+ createPolygon(...params: Parameters<Polygon['create']>): Promise<Polygon>;
156
147
  /**
157
148
  * @description: 开始绘制多棱柱
158
149
  */
159
- createPrism(params?: Parameters<Prism['create']>[0]): Promise<Prism>;
150
+ createPrism(...params: Parameters<Prism['create']>): Promise<Prism>;
160
151
  /**
161
152
  * @description: 开始绘制矩形
162
153
  */
163
- createRectangle(params?: Parameters<Rectangle['create']>[0]): Promise<Rectangle>;
154
+ createRectangle(...params: Parameters<Rectangle['create']>): Promise<Rectangle>;
164
155
  /**
165
156
  * @description: 开始绘制圆形
166
157
  */
167
- createCircle(params?: Parameters<Circle['create']>[0]): Promise<Circle>;
158
+ createCircle(...params: Parameters<Circle['create']>): Promise<Circle>;
168
159
  /**
169
160
  * @description: 开始绘制圆柱
170
161
  */
171
- createCylinder(params?: Parameters<Cylinder['create']>[0]): Promise<Cylinder>;
162
+ createCylinder(...params: Parameters<Cylinder['create']>): Promise<Cylinder>;
172
163
  /**
173
164
  * @description: 开始绘制 Box
174
165
  */
175
- createBox(params?: Parameters<Box['create']>[0]): Promise<Box>;
166
+ createBox(...params: Parameters<Box['create']>): Promise<Box>;
176
167
  canUndo(): false | void;
177
168
  canRedo(): false | void;
178
169
  /**
@@ -1,85 +1,83 @@
1
- var B = Object.defineProperty, U = Object.defineProperties;
2
- var _ = Object.getOwnPropertyDescriptors;
3
- var f = Object.getOwnPropertySymbols;
4
- var x = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
5
- var y = (m, i, e) => i in m ? B(m, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : m[i] = e, r = (m, i) => {
1
+ var L = Object.defineProperty, B = Object.defineProperties;
2
+ var U = Object.getOwnPropertyDescriptors;
3
+ var y = Object.getOwnPropertySymbols;
4
+ var _ = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
5
+ var g = (o, i, e) => i in o ? L(o, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[i] = e, a = (o, i) => {
6
6
  for (var e in i || (i = {}))
7
- x.call(i, e) && y(m, e, i[e]);
8
- if (f)
9
- for (var e of f(i))
10
- E.call(i, e) && y(m, e, i[e]);
11
- return m;
12
- }, g = (m, i) => U(m, _(i));
13
- var u = (m, i, e) => (y(m, typeof i != "symbol" ? i + "" : i, e), e);
14
- var a = (m, i, e) => new Promise((t, n) => {
15
- var c = (l) => {
7
+ _.call(i, e) && g(o, e, i[e]);
8
+ if (y)
9
+ for (var e of y(i))
10
+ x.call(i, e) && g(o, e, i[e]);
11
+ return o;
12
+ }, f = (o, i) => B(o, U(i));
13
+ var h = (o, i, e) => (g(o, typeof i != "symbol" ? i + "" : i, e), e);
14
+ var l = (o, i, e) => new Promise((t, r) => {
15
+ var c = (m) => {
16
16
  try {
17
- s(e.next(l));
18
- } catch (d) {
19
- n(d);
17
+ s(e.next(m));
18
+ } catch (p) {
19
+ r(p);
20
20
  }
21
- }, o = (l) => {
21
+ }, n = (m) => {
22
22
  try {
23
- s(e.throw(l));
24
- } catch (d) {
25
- n(d);
23
+ s(e.throw(m));
24
+ } catch (p) {
25
+ r(p);
26
26
  }
27
- }, s = (l) => l.done ? t(l.value) : Promise.resolve(l.value).then(c, o);
28
- s((e = e.apply(m, i)).next());
27
+ }, s = (m) => m.done ? t(m.value) : Promise.resolve(m.value).then(c, n);
28
+ s((e = e.apply(o, i)).next());
29
29
  });
30
- import { globalModules as O } from "./utils/Modules/Global.js";
30
+ import { globalModules as E } from "./utils/Modules/Global.js";
31
31
  import { Subscribe as S } from "../shared-utils/Subscribe.js";
32
- import { IObject3D as k } from "../shared-utils/three/IObject3D.js";
32
+ import { IObject3D as z } from "../shared-utils/three/IObject3D.js";
33
33
  import "../shared-utils/tag.js";
34
34
  import "three";
35
35
  import "hammerjs";
36
36
  import "../shared-utils/three/PointSelector/index.js";
37
37
  import "three/examples/jsm/renderers/CSS3DRenderer";
38
38
  import "@realsee/five/line";
39
- import "../vendor/three/examples/jsm/lines/LineGeometry.js";
39
+ import { notNil as k } from "../shared-utils/isNil.js";
40
40
  import "../shared-utils/three/core/Sphere.js";
41
41
  import "animejs";
42
- import { notNil as H } from "../shared-utils/isNil.js";
43
42
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
44
- import "./Meshes/Polygon.js";
45
- import { recurveFindObject as M } from "../shared-utils/three/recurveFindObject.js";
43
+ import { recurveFindObject as H } from "../shared-utils/three/recurveFindObject.js";
46
44
  import { Polyline as I } from "./Objects/Polyline/index.js";
47
- import { Point as w } from "./Objects/Point/index.js";
48
- import { Polygon as P } from "./Objects/Polygon/index.js";
49
- import { Prism as v } from "./Objects/Prism/index.js";
50
- import { Rectangle as b } from "./Objects/Rectangle/index.js";
51
- import { Circle as C } from "./Objects/Circle/index.js";
52
- import { Cylinder as R } from "./Objects/Cylinder/index.js";
53
- import { Box as D } from "./Objects/Box/index.js";
54
- import { forReverseEach as z } from "../shared-utils/forReverseEach.js";
55
- import { Line as L } from "./Objects/Line/index.js";
56
- import { hotkeys as j } from "../vendor/hotkeys-js/dist/hotkeys.esm.js";
57
- const h = class extends S {
45
+ import { Point as b } from "./Objects/Point/index.js";
46
+ import { Polygon as w } from "./Objects/Polygon/index.js";
47
+ import { Prism as j } from "./Objects/Prism/index.js";
48
+ import { Rectangle as O } from "./Objects/Rectangle/index.js";
49
+ import { Circle as P } from "./Objects/Circle/index.js";
50
+ import { Cylinder as v } from "./Objects/Cylinder/index.js";
51
+ import { Box as C } from "./Objects/Box/index.js";
52
+ import { forReverseEach as M } from "../shared-utils/forReverseEach.js";
53
+ import { Line as R } from "./Objects/Line/index.js";
54
+ import { hotkeys as D } from "../vendor/hotkeys-js/dist/hotkeys.esm.js";
55
+ const u = class extends S {
58
56
  constructor(e, t) {
59
57
  super();
60
- u(this, "group");
61
- u(this, "theme");
62
- u(this, "five");
63
- u(this, "creatingItem", null);
58
+ h(this, "group");
59
+ h(this, "theme");
60
+ h(this, "five");
61
+ h(this, "creatingItem", null);
64
62
  /**
65
63
  * @description: 撤销
66
64
  */
67
- u(this, "undo", () => {
65
+ h(this, "undo", () => {
68
66
  var e;
69
67
  console.log("undo"), (e = this.creatingItem) == null || e.undo(), this.five.needsRender = !0;
70
68
  });
71
69
  /**
72
70
  * @description: 重做
73
71
  */
74
- u(this, "redo", () => {
72
+ h(this, "redo", () => {
75
73
  var e;
76
74
  console.log("redo"), (e = this.creatingItem) == null || e.redo(), this.five.needsRender = !0;
77
75
  });
78
- this.five = e, this.theme = t, this.group = new k(), this.group.name = "Sculpt", e.scene.add(this.group), h.modules.init(e), j("ctrl+z", this.undo), j("ctrl+shift+z", this.redo), h.modules.fiveDomEvents.addEventListener(this.group, "click", ({ intersects: n, origDomEvent: c }) => {
76
+ this.five = e, this.theme = t, this.group = new z(), this.group.name = "Sculpt", e.scene.add(this.group), u.modules.init(e), D("ctrl+z, command+z", this.undo), D("ctrl+shift+z, command+shift+z", this.redo), u.modules.fiveDomEvents.addEventListener(this.group, "click", ({ intersects: r, origDomEvent: c }) => {
79
77
  var s;
80
- const o = M((s = n == null ? void 0 : n[0]) == null ? void 0 : s.object, (l) => l.isSculptObject);
81
- return o && !o.editing ? this.emit("click", c, o) : !1;
82
- }), window.__SCULPT_DEBUG__ = this, window.__SCULPT_MODULES_DEBUG__ = h.modules;
78
+ const n = H((s = r == null ? void 0 : r[0]) == null ? void 0 : s.object, (m) => m.isSculptObject);
79
+ return n && !n.editing ? this.emit("click", c, n) : !1;
80
+ }), window.__SCULPT_DEBUG__ = this, window.__SCULPT_MODULES_DEBUG__ = u.modules;
83
81
  }
84
82
  get data() {
85
83
  return {
@@ -89,7 +87,7 @@ const h = class extends S {
89
87
  } catch (t) {
90
88
  return console.error(t), null;
91
89
  }
92
- }).filter(H)
90
+ }).filter(k)
93
91
  };
94
92
  }
95
93
  get items() {
@@ -101,14 +99,14 @@ const h = class extends S {
101
99
  load(e, t) {
102
100
  var c;
103
101
  this.clear();
104
- const n = (c = e == null ? void 0 : e.items) == null ? void 0 : c.map((o) => {
105
- var l;
106
- const s = g(r({}, o), {
107
- style: r(r({}, (l = this.theme) == null ? void 0 : l[o.type.toLowerCase()]), o.style)
102
+ const r = (c = e == null ? void 0 : e.items) == null ? void 0 : c.map((n) => {
103
+ var m;
104
+ const s = f(a({}, n), {
105
+ style: a(a({}, (m = this.theme) == null ? void 0 : m[n.type.toLowerCase()]), n.style)
108
106
  });
109
- return o.type === "Point" ? new w(s, t) : o.type === "line" ? new L(s, t) : o.type === "Polyline" ? new I(s, t) : o.type === "Polygon" ? new P(s, t) : o.type === "Prism" ? new v(s, t) : o.type === "Rectangle" ? new b(s, t) : o.type === "Circle" ? new C(s, t) : o.type === "Cylinder" ? new R(s, t) : o.type === "Box" ? new D(s, t) : null;
107
+ return n.type === "Point" ? new b(s, t) : n.type === "line" ? new R(s, t) : n.type === "Polyline" ? new I(s, t) : n.type === "Polygon" ? new w(s, t) : n.type === "Prism" ? new j(s, t) : n.type === "Rectangle" ? new O(s, t) : n.type === "Circle" ? new P(s, t) : n.type === "Cylinder" ? new v(s, t) : n.type === "Box" ? new C(s, t) : null;
110
108
  });
111
- this.group.add(...n), this.five.needsRender = !0;
109
+ this.group.add(...r), this.five.needsRender = !0;
112
110
  }
113
111
  /**
114
112
  * @description: 获取物体实例
@@ -122,96 +120,96 @@ const h = class extends S {
122
120
  putObject(e) {
123
121
  var c;
124
122
  this.group.add(e);
125
- const t = h.modules.object3DHelper, n = t.addObject3DHelper(e);
126
- return (c = n == null ? void 0 : n.moveController) == null || c.moveByMouse(), t;
123
+ const t = u.modules.object3DHelper, r = t.addObject3DHelper(e);
124
+ return (c = r == null ? void 0 : r.moveController) == null || c.moveByMouse(), t;
127
125
  }
128
126
  /**
129
127
  * @description: 开始绘制点
130
128
  */
131
- createPoint(e) {
132
- return a(this, null, function* () {
133
- var t;
134
- return this.createItem(w, r(r({}, (t = this.theme) == null ? void 0 : t.point), e));
129
+ createPoint(...e) {
130
+ return l(this, null, function* () {
131
+ var t, r;
132
+ return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.point, e[0]), this.createItem(b, ...e);
135
133
  });
136
134
  }
137
135
  /**
138
136
  * @description: 开始绘制线段
139
137
  */
140
- createLine(e) {
141
- return a(this, null, function* () {
142
- var t;
143
- return this.createItem(L, r(r({}, (t = this.theme) == null ? void 0 : t.line), e));
138
+ createLine(...e) {
139
+ return l(this, null, function* () {
140
+ var t, r;
141
+ return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.line, e[0]), this.createItem(R, ...e);
144
142
  });
145
143
  }
146
144
  /**
147
145
  * @deprecated use createLine instead
148
146
  */
149
147
  createline(...e) {
150
- return a(this, null, function* () {
148
+ return l(this, null, function* () {
151
149
  this.createLine(...e);
152
150
  });
153
151
  }
154
152
  /**
155
153
  * @description: 开始绘制空间折线
156
154
  */
157
- createPolyline(e) {
158
- return a(this, null, function* () {
159
- var t;
160
- return this.createItem(I, r(r({}, (t = this.theme) == null ? void 0 : t.polyline), e));
155
+ createPolyline(...e) {
156
+ return l(this, null, function* () {
157
+ var t, r;
158
+ return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.polyline, e[0]), this.createItem(I, ...e);
161
159
  });
162
160
  }
163
161
  /**
164
162
  * @description: 开始绘制平面多边形
165
163
  */
166
- createPolygon(e) {
167
- return a(this, null, function* () {
168
- var t;
169
- return this.createItem(P, r(r({}, (t = this.theme) == null ? void 0 : t.polygon), e));
164
+ createPolygon(...e) {
165
+ return l(this, null, function* () {
166
+ var t, r;
167
+ return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.polygon, e[0]), this.createItem(w, ...e);
170
168
  });
171
169
  }
172
170
  /**
173
171
  * @description: 开始绘制多棱柱
174
172
  */
175
- createPrism(e) {
176
- return a(this, null, function* () {
177
- var t;
178
- return this.createItem(v, r(r({}, (t = this.theme) == null ? void 0 : t.prism), e));
173
+ createPrism(...e) {
174
+ return l(this, null, function* () {
175
+ var t, r;
176
+ return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.prism, e[0]), this.createItem(j, ...e);
179
177
  });
180
178
  }
181
179
  /**
182
180
  * @description: 开始绘制矩形
183
181
  */
184
- createRectangle(e) {
185
- return a(this, null, function* () {
186
- var t;
187
- return this.createItem(b, r(r({}, (t = this.theme) == null ? void 0 : t.rectangle), e));
182
+ createRectangle(...e) {
183
+ return l(this, null, function* () {
184
+ var t, r;
185
+ return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.rectangle, e[0]), this.createItem(O, ...e);
188
186
  });
189
187
  }
190
188
  /**
191
189
  * @description: 开始绘制圆形
192
190
  */
193
- createCircle(e) {
194
- return a(this, null, function* () {
195
- var t;
196
- return this.createItem(C, r(r({}, (t = this.theme) == null ? void 0 : t.circle), e));
191
+ createCircle(...e) {
192
+ return l(this, null, function* () {
193
+ var t, r;
194
+ return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.circle, e[0]), this.createItem(P, ...e);
197
195
  });
198
196
  }
199
197
  /**
200
198
  * @description: 开始绘制圆柱
201
199
  */
202
- createCylinder(e) {
203
- return a(this, null, function* () {
204
- var t;
205
- return this.createItem(R, r(r({}, (t = this.theme) == null ? void 0 : t.cylinder), e));
200
+ createCylinder(...e) {
201
+ return l(this, null, function* () {
202
+ var t, r;
203
+ return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.cylinder, e[0]), this.createItem(v, ...e);
206
204
  });
207
205
  }
208
206
  /**
209
207
  * @description: 开始绘制 Box
210
208
  */
211
- createBox(e) {
212
- return a(this, null, function* () {
213
- var t;
214
- return this.createItem(D, r(r({}, (t = this.theme) == null ? void 0 : t.box), e));
209
+ createBox(...e) {
210
+ return l(this, null, function* () {
211
+ var t, r;
212
+ return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.box, e[0]), this.createItem(C, ...e);
215
213
  });
216
214
  }
217
215
  canUndo() {
@@ -226,22 +224,22 @@ const h = class extends S {
226
224
  * @description: 清空数据
227
225
  */
228
226
  clear() {
229
- z(this.items, (e) => e.delete()), this.five.needsRender = !0;
227
+ M(this.items, (e) => e.delete()), this.five.needsRender = !0;
230
228
  }
231
229
  createItem(e, ...t) {
232
- return a(this, null, function* () {
230
+ return l(this, null, function* () {
233
231
  this.creatingItem && (this.creatingItem.stopCreating(), this.creatingItem = null);
234
- const n = new e();
235
- return this.creatingItem = n, this.group.add(n), yield n.create(...t).then((...c) => (this.creatingItem = null, c)).catch((c) => {
236
- console.error(c), this.group.remove(n);
237
- }), n;
232
+ const r = new e();
233
+ return this.creatingItem = r, this.group.add(r), yield r.create(...t).then((...c) => (this.creatingItem = null, c)).catch((c) => {
234
+ console.error(c), this.group.remove(r);
235
+ }), r;
238
236
  });
239
237
  }
240
238
  };
241
- let p = h;
242
- u(p, "modules", O);
243
- const pe = (m) => new p(m);
239
+ let d = u;
240
+ h(d, "modules", E);
241
+ const ue = (o) => new d(o);
244
242
  export {
245
- p as Sculpt,
246
- pe as SculptPlugin
243
+ d as Sculpt,
244
+ ue as SculptPlugin
247
245
  };
@@ -58,9 +58,15 @@ export type OcclusionStyle = {
58
58
  occlusionMode: 'translucence' | 'depthTest';
59
59
  };
60
60
  export type lengthConfig = {
61
+ /**
62
+ * @description 开启 距离 展示
63
+ */
61
64
  lengthEnable: boolean;
62
65
  };
63
66
  export type DisplayInfoConfig = {
67
+ /**
68
+ * @description 提示信息
69
+ */
64
70
  tip: string;
65
71
  };
66
72
  export type LineStyle = LineColorStyle & LineWidthStyle & OpacityStyle;
@@ -1,18 +1,24 @@
1
- import { BoxMesh } from '../Meshes/Box';
2
- import { CircleMesh } from '../Meshes/Circle';
3
- import { CircleWithEdgeMesh } from '../Meshes/CircleWithEdge';
4
- import { CylinderMesh } from '../Meshes/Cylinder';
5
- import { LineMesh } from '../Meshes/Line';
6
- import { PointMesh } from '../Meshes/Point';
7
- import PolygonMesh from '../Meshes/Polygon';
8
- import { PrismMesh } from '../Meshes/Prism';
9
- export declare const sculpt: {
10
- LineMesh: typeof LineMesh;
11
- BoxMesh: typeof BoxMesh;
12
- CircleMesh: typeof CircleMesh;
13
- CircleWithEdgeMesh: typeof CircleWithEdgeMesh;
14
- CylinderMesh: typeof CylinderMesh;
15
- PointMesh: typeof PointMesh;
16
- PolygonMesh: typeof PolygonMesh;
17
- PrismMesh: typeof PrismMesh;
18
- };
1
+ export { BaseEditor } from '../Objects/Base/Editor';
2
+ export { BoxMeshEditor } from '../Editors/BoxMeshEditor';
3
+ export { CircleMeshEditor } from '../Editors/CircleMeshEditor';
4
+ export { CylinderMeshEditor } from '../Editors/CylinderMeshEditor';
5
+ export { PrismMeshEditor } from '../Editors/PrismMeshEditor';
6
+ export { RectangleMeshEditor } from '../Editors/RectangleMeshEditor';
7
+ export { BoxMesh } from '../Meshes/Box';
8
+ export { CircleMesh } from '../Meshes/Circle';
9
+ export { CircleWithEdgeMesh } from '../Meshes/CircleWithEdge';
10
+ export { CylinderMesh } from '../Meshes/Cylinder';
11
+ export { LineMesh } from '../Meshes/Line';
12
+ export { PointMesh } from '../Meshes/Point';
13
+ export { PolygonMesh } from '../Meshes/Polygon';
14
+ export { PrismMesh } from '../Meshes/Prism';
15
+ export { RectangleMesh } from '../Meshes/Rectangle';
16
+ export { RectangleWithEdgeMesh } from '../Meshes/RectangleWithEdge';
17
+ export { createBox } from '../Objects/Box';
18
+ export { createCircle } from '../Objects/Circle';
19
+ export { createCylinder } from '../Objects/Cylinder';
20
+ export { createLine } from '../Objects/Line';
21
+ export { createPoint } from '../Objects/Point';
22
+ export { createPolygon } from '../Objects/Polygon';
23
+ export { createPrism } from '../Objects/Prism';
24
+ export { createRectangle } from '../Objects/Rectangle';
@@ -1,21 +1,54 @@
1
- import { BoxMesh as o } from "../Meshes/Box.js";
2
- import { CircleMesh as r } from "../Meshes/Circle.js";
3
- import { CircleWithEdgeMesh as m } from "../Meshes/CircleWithEdge.js";
4
- import { CylinderMesh as i } from "../Meshes/Cylinder.js";
5
- import { LineMesh as e } from "../Meshes/Line.js";
6
- import { PointMesh as t } from "../Meshes/Point.js";
7
- import { PolygonMesh as s } from "../Meshes/Polygon.js";
8
- import { PrismMesh as p } from "../Meshes/Prism.js";
9
- const d = {
10
- LineMesh: e,
11
- BoxMesh: o,
12
- CircleMesh: r,
13
- CircleWithEdgeMesh: m,
14
- CylinderMesh: i,
15
- PointMesh: t,
16
- PolygonMesh: s,
17
- PrismMesh: p
18
- };
1
+ import { BaseEditor as r } from "../Objects/Base/Editor.js";
2
+ import { BoxMeshEditor as o } from "../Editors/BoxMeshEditor.js";
3
+ import { CircleMeshEditor as e } from "../Editors/CircleMeshEditor.js";
4
+ import { CylinderMeshEditor as t } from "../Editors/CylinderMeshEditor.js";
5
+ import { PrismMeshEditor as m } from "../Editors/PrismMeshEditor.js";
6
+ import { RectangleMeshEditor as i } from "../Editors/RectangleMeshEditor.js";
7
+ import { BoxMesh as p } from "../Meshes/Box.js";
8
+ import { CircleMesh as f } from "../Meshes/Circle.js";
9
+ import { CircleWithEdgeMesh as s } from "../Meshes/CircleWithEdge.js";
10
+ import { CylinderMesh as c } from "../Meshes/Cylinder.js";
11
+ import { LineMesh as l } from "../Meshes/Line.js";
12
+ import { PointMesh as h } from "../Meshes/Point.js";
13
+ import { PolygonMesh as n } from "../Meshes/Polygon.js";
14
+ import { PrismMesh as M } from "../Meshes/Prism.js";
15
+ import { RectangleMesh as a } from "../Meshes/Rectangle.js";
16
+ import { RectangleWithEdgeMesh as d } from "../Meshes/RectangleWithEdge.js";
17
+ import { createBox as g } from "../Objects/Box/index.js";
18
+ import { createCircle as E } from "../Objects/Circle/index.js";
19
+ import { createCylinder as P } from "../Objects/Cylinder/index.js";
20
+ import { createLine as y } from "../Objects/Line/index.js";
21
+ import { createPoint as C } from "../Objects/Point/index.js";
22
+ import { createPolygon as u } from "../Objects/Polygon/index.js";
23
+ import { createPrism as x } from "../Objects/Prism/index.js";
24
+ import { createRectangle as B } from "../Objects/Rectangle/index.js";
25
+ const U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26
+ __proto__: null,
27
+ BaseEditor: r,
28
+ BoxMesh: p,
29
+ BoxMeshEditor: o,
30
+ CircleMesh: f,
31
+ CircleMeshEditor: e,
32
+ CircleWithEdgeMesh: s,
33
+ CylinderMesh: c,
34
+ CylinderMeshEditor: t,
35
+ LineMesh: l,
36
+ PointMesh: h,
37
+ PolygonMesh: n,
38
+ PrismMesh: M,
39
+ PrismMeshEditor: m,
40
+ RectangleMesh: a,
41
+ RectangleMeshEditor: i,
42
+ RectangleWithEdgeMesh: d,
43
+ createBox: g,
44
+ createCircle: E,
45
+ createCylinder: P,
46
+ createLine: y,
47
+ createPoint: C,
48
+ createPolygon: u,
49
+ createPrism: x,
50
+ createRectangle: B
51
+ }, Symbol.toStringTag, { value: "Module" }));
19
52
  export {
20
- d as sculpt
53
+ U as sculpt
21
54
  };
@@ -0,0 +1,5 @@
1
+ import * as THREE from 'three';
2
+ /**
3
+ * @description 根据camera的位置,将positions重新排序,使positions的正面朝向camera
4
+ */
5
+ export declare function sortPositionsByCameraPosition(sourcePositions: THREE.Vector3[], cameraPosition: THREE.Vector3): THREE.Vector3[];
@@ -0,0 +1,9 @@
1
+ import { getNormal as m } from "../../shared-utils/three/getNormal.js";
2
+ import { centerPoint as a } from "../../shared-utils/three/centerPoint.js";
3
+ function f(r, t) {
4
+ const e = m(r), n = a(...r), o = t.clone().sub(n);
5
+ return e.dot(o) >= 0 ? r : r.slice().reverse();
6
+ }
7
+ export {
8
+ f as sortPositionsByCameraPosition
9
+ };
@@ -20,7 +20,11 @@ export default class ColoredMesh<TGeometry extends THREE.Geometry | THREE.Buffer
20
20
  get geometry(): TGeometry;
21
21
  private paramsStyle;
22
22
  private _geometry;
23
+ private highlighted;
24
+ private opacityBeforeHighlight;
23
25
  constructor(params?: Partial<ColoredMeshStyle>);
24
26
  setStyle(params: Partial<ColoredMeshStyle>): void;
27
+ highlight(): void;
28
+ unhighlight(): void;
25
29
  private setOcclusionVisibility;
26
30
  }