@realsee/dnalogel 3.61.0 → 3.61.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (472) hide show
  1. package/dist/Sculpt/Objects/Base/index.d.ts +4 -1
  2. package/dist/Sculpt/Objects/Box/index.d.ts +2 -2
  3. package/dist/Sculpt/Objects/Circle/index.d.ts +2 -1
  4. package/dist/Sculpt/Objects/Cylinder/index.d.ts +2 -1
  5. package/dist/Sculpt/Objects/Line/index.d.ts +2 -2
  6. package/dist/Sculpt/Objects/Point/index.d.ts +2 -1
  7. package/dist/Sculpt/Objects/Polygon/index.d.ts +2 -2
  8. package/dist/Sculpt/Objects/Polyline/index.d.ts +2 -2
  9. package/dist/Sculpt/Objects/Prism/index.d.ts +2 -1
  10. package/dist/Sculpt/Objects/Rectangle/index.d.ts +2 -2
  11. package/dist/Sculpt/index.d.ts +17 -14
  12. package/dist/Sculpt/typings/style.d.ts +7 -0
  13. package/dist/Sculpt/utils/Modules/Global.d.ts +4 -0
  14. package/dist/index.cjs.js +31 -31
  15. package/dist/index.js +1641 -1582
  16. package/dist/index.umd.js +32 -32
  17. package/dist/shared-utils/three/PointSelector/index.d.ts +25 -0
  18. package/docs/assets/navigation.js +1 -1
  19. package/docs/assets/search.js +1 -1
  20. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +25 -25
  21. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +28 -28
  22. package/docs/classes/CSS3DRender.html +3 -3
  23. package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
  24. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +26 -26
  25. package/docs/classes/ModelMakerPluginInstance.html +15 -15
  26. package/docs/classes/ModelRoomLabelController.html +6 -6
  27. package/docs/classes/MoveController.html +17 -17
  28. package/docs/classes/Object3DHelperController.html +15 -15
  29. package/docs/classes/PaintBrush.html +5 -5
  30. package/docs/classes/PanoMeasurePluginLine.html +2 -2
  31. package/docs/classes/PanoMeasurePluginModel.html +2 -2
  32. package/docs/classes/PanoMeasurePluginPoint.html +2 -2
  33. package/docs/classes/PanoMeasurePluginPolyline.html +4 -4
  34. package/docs/classes/PanoTagPluginController.html +34 -34
  35. package/docs/classes/Sculpt.html +25 -25
  36. package/docs/classes/Util.BetterTween.html +2 -2
  37. package/docs/classes/Util.FiveDomEvents.html +4 -4
  38. package/docs/classes/Util.FivePuppet.html +3 -3
  39. package/docs/classes/Util.Interval.html +5 -5
  40. package/docs/classes/Util.LightTag.html +14 -14
  41. package/docs/classes/Util.LineSegments.html +2 -2
  42. package/docs/classes/Util.Magnifier.html +6 -6
  43. package/docs/classes/Util.Object3D.html +4 -4
  44. package/docs/classes/Util.PointHelper.html +2 -2
  45. package/docs/classes/Util.PointSelector.html +17 -11
  46. package/docs/classes/Util.PointSelectorHelper.html +2 -2
  47. package/docs/classes/Util.Rectangle.html +5 -5
  48. package/docs/classes/Util.sculpt.BaseEditor.html +7 -7
  49. package/docs/classes/Util.sculpt.BoxMesh.html +6 -6
  50. package/docs/classes/Util.sculpt.BoxMeshEditor.html +7 -7
  51. package/docs/classes/Util.sculpt.CircleMesh.html +4 -4
  52. package/docs/classes/Util.sculpt.CircleMeshEditor.html +7 -7
  53. package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +4 -4
  54. package/docs/classes/Util.sculpt.CylinderMesh.html +5 -5
  55. package/docs/classes/Util.sculpt.CylinderMeshEditor.html +7 -7
  56. package/docs/classes/Util.sculpt.LineMesh.html +5 -5
  57. package/docs/classes/Util.sculpt.PointMesh.html +5 -5
  58. package/docs/classes/Util.sculpt.PolygonMesh.html +6 -6
  59. package/docs/classes/Util.sculpt.PrismMesh.html +6 -6
  60. package/docs/classes/Util.sculpt.PrismMeshEditor.html +7 -7
  61. package/docs/classes/Util.sculpt.RectangleMesh.html +7 -7
  62. package/docs/classes/Util.sculpt.RectangleMeshEditor.html +7 -7
  63. package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +7 -7
  64. package/docs/classes/WalkController.html +18 -18
  65. package/docs/enums/CameraMovementEffect.html +3 -3
  66. package/docs/enums/ContentType.html +18 -18
  67. package/docs/enums/DIRECTION.html +2 -2
  68. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
  69. package/docs/enums/DimensionType.html +3 -3
  70. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +2 -2
  71. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +2 -2
  72. package/docs/enums/PaintBrushTypeEnum.html +2 -2
  73. package/docs/enums/PointType.html +3 -3
  74. package/docs/enums/Rotation.html +3 -3
  75. package/docs/functions/AreaMakerPlugin.html +1 -1
  76. package/docs/functions/CSS3DRenderPlugin.html +1 -1
  77. package/docs/functions/CameraMovementPlugin.html +2 -2
  78. package/docs/functions/CruisePlugin.html +1 -1
  79. package/docs/functions/CurrentPanoImagePlugin.html +1 -1
  80. package/docs/functions/GuideLinePlugin.html +1 -1
  81. package/docs/functions/ItemLabelPlugin.html +1 -1
  82. package/docs/functions/MapviewFloorplanPlugin.html +1 -1
  83. package/docs/functions/ModelChassisCompassPlugin.html +2 -2
  84. package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -2
  85. package/docs/functions/ModelFloorplanPlugin.html +1 -1
  86. package/docs/functions/ModelItemLabelPlugin.html +1 -1
  87. package/docs/functions/ModelMakerPlugin.html +1 -1
  88. package/docs/functions/ModelRoomLabelPlugin.html +1 -1
  89. package/docs/functions/ModelTVVideoPlugin.html +1 -1
  90. package/docs/functions/ModelViewPlugin.html +2 -2
  91. package/docs/functions/MovePlugin.html +1 -1
  92. package/docs/functions/Object3DHelperPlugin.html +1 -1
  93. package/docs/functions/PanoCompassPlugin.html +1 -1
  94. package/docs/functions/PanoCursorRaycasterPlugin.html +2 -2
  95. package/docs/functions/PanoDoorLabelPlugin.html +1 -1
  96. package/docs/functions/PanoFloorplanRadarPlugin.html +1 -1
  97. package/docs/functions/PanoMeasurePlugin.html +1 -1
  98. package/docs/functions/PanoRulerPlugin.html +2 -2
  99. package/docs/functions/PanoRulerProPlugin.html +2 -2
  100. package/docs/functions/PanoSpatialTagPlugin.html +2 -2
  101. package/docs/functions/PanoTagPlugin.html +1 -1
  102. package/docs/functions/PanoVideoPlugin.html +2 -2
  103. package/docs/functions/PipelinePlugin.html +1 -1
  104. package/docs/functions/SculptPlugin.html +2 -2
  105. package/docs/functions/TopviewFloorplanPlugin.html +1 -1
  106. package/docs/functions/Util.absoluteUrl.html +2 -2
  107. package/docs/functions/Util.awaitNextFrame.html +1 -1
  108. package/docs/functions/Util.blink.html +2 -2
  109. package/docs/functions/Util.bounding.html +1 -1
  110. package/docs/functions/Util.boundingBox.html +1 -1
  111. package/docs/functions/Util.boundingSphere.html +1 -1
  112. package/docs/functions/Util.boxVertex.html +2 -2
  113. package/docs/functions/Util.boxVertexes.html +1 -1
  114. package/docs/functions/Util.checkFiveModelLoaded.html +2 -2
  115. package/docs/functions/Util.convexHull.html +2 -2
  116. package/docs/functions/Util.equal.html +2 -2
  117. package/docs/functions/Util.fiveModelIsLoaded.html +2 -2
  118. package/docs/functions/Util.getCoordsFromClient.html +1 -1
  119. package/docs/functions/Util.getCoordsFromElement.html +1 -1
  120. package/docs/functions/Util.getFrameTime.html +2 -2
  121. package/docs/functions/Util.inside.html +1 -1
  122. package/docs/functions/Util.isAbsoluteURL.html +1 -1
  123. package/docs/functions/Util.isModelLike.html +1 -1
  124. package/docs/functions/Util.isNil.html +2 -2
  125. package/docs/functions/Util.isPanoramaLike.html +1 -1
  126. package/docs/functions/Util.lookObject.html +2 -2
  127. package/docs/functions/Util.lookPoint.html +2 -2
  128. package/docs/functions/Util.nextFrame.html +1 -1
  129. package/docs/functions/Util.notNil.html +2 -2
  130. package/docs/functions/Util.reblink.html +2 -2
  131. package/docs/functions/Util.requestAnimationFrameInterval.html +2 -2
  132. package/docs/functions/Util.sculpt.createBox.html +1 -1
  133. package/docs/functions/Util.sculpt.createCircle.html +1 -1
  134. package/docs/functions/Util.sculpt.createCylinder.html +1 -1
  135. package/docs/functions/Util.sculpt.createLine.html +2 -2
  136. package/docs/functions/Util.sculpt.createPoint.html +1 -1
  137. package/docs/functions/Util.sculpt.createPolygon.html +1 -1
  138. package/docs/functions/Util.sculpt.createPrism.html +1 -1
  139. package/docs/functions/Util.sculpt.createRectangle.html +2 -2
  140. package/docs/functions/Util.tag.html +1 -1
  141. package/docs/functions/Util.tweenProgress.html +1 -1
  142. package/docs/functions/Util.uuid.html +2 -2
  143. package/docs/functions/Util.waitFiveModelLoaded.html +2 -2
  144. package/docs/functions/Util.worldBounding.html +1 -1
  145. package/docs/functions/Util.worldBoundingBox.html +1 -1
  146. package/docs/functions/Util.worldBoundingSphere.html +1 -1
  147. package/docs/functions/createPolyline.html +2 -2
  148. package/docs/functions/pluginFlag.html +1 -1
  149. package/docs/hierarchy.html +1 -1
  150. package/docs/index.html +2 -2
  151. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +3 -3
  152. package/docs/interfaces/AreaMakerPluginType.Config.html +3 -3
  153. package/docs/interfaces/AreaMakerPluginType.EventMap.html +12 -12
  154. package/docs/interfaces/AreaMakerPluginType.Params.html +3 -3
  155. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +4 -4
  156. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +3 -3
  157. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +3 -3
  158. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -3
  159. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
  160. package/docs/interfaces/AreaMakerPluginType.State.html +5 -5
  161. package/docs/interfaces/CSS3DRenderPluginEventMap.html +4 -4
  162. package/docs/interfaces/CSS3DRenderPluginState.html +4 -4
  163. package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
  164. package/docs/interfaces/ContentTypeMapInterface.html +15 -15
  165. package/docs/interfaces/CruisePluginTypes.Config.html +4 -4
  166. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
  167. package/docs/interfaces/CruisePluginTypes.EventMap.html +17 -17
  168. package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +3 -3
  169. package/docs/interfaces/CruisePluginTypes.MoveAction.html +8 -8
  170. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +9 -9
  171. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +10 -10
  172. package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
  173. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
  174. package/docs/interfaces/CruisePluginTypes.PluginState.html +7 -7
  175. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +7 -7
  176. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +8 -8
  177. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -3
  178. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
  179. package/docs/interfaces/CurrentPanoImagePluginType.State.html +4 -4
  180. package/docs/interfaces/FloorplanBounding.html +5 -5
  181. package/docs/interfaces/FloorplanData.html +3 -3
  182. package/docs/interfaces/FloorplanEntrance.html +8 -8
  183. package/docs/interfaces/FloorplanExtraObject.html +5 -5
  184. package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
  185. package/docs/interfaces/FloorplanFloorData.html +3 -3
  186. package/docs/interfaces/FloorplanImagePosition.html +3 -3
  187. package/docs/interfaces/FloorplanObserver.html +3 -3
  188. package/docs/interfaces/FloorplanOutlineItem.html +3 -3
  189. package/docs/interfaces/FloorplanPosition.html +3 -3
  190. package/docs/interfaces/FloorplanRoomItem.html +8 -8
  191. package/docs/interfaces/FloorplanRoomLabelItem.html +4 -4
  192. package/docs/interfaces/FloorplanServerBounding.html +5 -5
  193. package/docs/interfaces/FloorplanServerComputedData.html +2 -2
  194. package/docs/interfaces/FloorplanServerData.html +3 -3
  195. package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
  196. package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
  197. package/docs/interfaces/FloorplanServerEntrance.html +8 -8
  198. package/docs/interfaces/FloorplanServerFloorData.html +3 -3
  199. package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
  200. package/docs/interfaces/FloorplanServerObserver.html +3 -3
  201. package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
  202. package/docs/interfaces/FloorplanServerPosition.html +3 -3
  203. package/docs/interfaces/FloorplanServerRoomItem.html +9 -9
  204. package/docs/interfaces/FloorplanServerRoomLabelItem.html +4 -4
  205. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
  206. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -3
  207. package/docs/interfaces/GuideLinePluginType.EventMap.html +5 -5
  208. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +5 -5
  209. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
  210. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
  211. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +3 -3
  212. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
  213. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +16 -16
  214. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
  215. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +19 -19
  216. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
  217. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
  218. package/docs/interfaces/GuideLinePluginType.PluginState.html +4 -4
  219. package/docs/interfaces/GuideLinePluginType.Route.html +2 -2
  220. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +2 -2
  221. package/docs/interfaces/HelperOffset.html +2 -2
  222. package/docs/interfaces/ImagePlaneGroup.html +2 -2
  223. package/docs/interfaces/ItemLabelPluginData.html +2 -2
  224. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +2 -2
  225. package/docs/interfaces/ItemLabelPluginParametersType.html +2 -2
  226. package/docs/interfaces/MinMax.html +2 -2
  227. package/docs/interfaces/ModelChassisCompassPluginData.html +2 -2
  228. package/docs/interfaces/ModelChassisCompassPluginExportType.html +2 -2
  229. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +2 -2
  230. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +2 -2
  231. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +2 -2
  232. package/docs/interfaces/ModelItemLabelPluginData.html +2 -2
  233. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +2 -2
  234. package/docs/interfaces/ModelItemLabelPluginParametersType.html +2 -2
  235. package/docs/interfaces/ModelMakerPluginType.EventMap.html +10 -10
  236. package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +3 -3
  237. package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +4 -4
  238. package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
  239. package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +4 -4
  240. package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +4 -4
  241. package/docs/interfaces/ModelMakerPluginType.State.html +5 -5
  242. package/docs/interfaces/ModelRoomLabelPluginData.html +2 -2
  243. package/docs/interfaces/ModelTVVideoPluginData.html +2 -2
  244. package/docs/interfaces/ModelTVVideoPluginExportType.html +2 -2
  245. package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -2
  246. package/docs/interfaces/ModelViewPluginExportType.html +2 -2
  247. package/docs/interfaces/Object3DHelperState.html +2 -2
  248. package/docs/interfaces/ObjectHelperControllers.html +2 -2
  249. package/docs/interfaces/PaintBrushAction.html +7 -7
  250. package/docs/interfaces/PaintBrushConfigs.html +2 -2
  251. package/docs/interfaces/PaintBrushState.html +2 -2
  252. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
  253. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
  254. package/docs/interfaces/PanoMeasureParameterType.html +6 -6
  255. package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
  256. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
  257. package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
  258. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +4 -4
  259. package/docs/interfaces/PanoRulerPluginExportType.html +2 -2
  260. package/docs/interfaces/PanoRulerPluginOptions.html +2 -2
  261. package/docs/interfaces/PanoRulerPluginParameterType.html +2 -2
  262. package/docs/interfaces/PanoRulerProPluginExportType.html +2 -2
  263. package/docs/interfaces/PanoRulerProPluginOptions.html +2 -2
  264. package/docs/interfaces/PanoRulerProPluginParameterType.html +2 -2
  265. package/docs/interfaces/PanoRulerProPluginState.html +2 -2
  266. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
  267. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
  268. package/docs/interfaces/PanoSpatialTagPluginData.html +2 -2
  269. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +2 -2
  270. package/docs/interfaces/PanoSpatialTagPluginExportType.html +2 -2
  271. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +2 -2
  272. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +2 -2
  273. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +2 -2
  274. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +2 -2
  275. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -3
  276. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +5 -5
  277. package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
  278. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
  279. package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
  280. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +5 -5
  281. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +7 -7
  282. package/docs/interfaces/PluginEventMap.html +4 -4
  283. package/docs/interfaces/Point.html +2 -2
  284. package/docs/interfaces/Room.html +2 -2
  285. package/docs/interfaces/RoomInfo.html +2 -2
  286. package/docs/interfaces/RoomLabel.html +7 -7
  287. package/docs/interfaces/RoomRules.html +1 -1
  288. package/docs/interfaces/Rooms.html +1 -1
  289. package/docs/interfaces/Scissor.html +6 -6
  290. package/docs/interfaces/State.html +4 -4
  291. package/docs/interfaces/TagCacheInterface.html +3 -3
  292. package/docs/interfaces/TagConfig.html +10 -10
  293. package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
  294. package/docs/interfaces/TagIconUrl.html +7 -7
  295. package/docs/interfaces/TagObjectGroup.html +2 -2
  296. package/docs/interfaces/TagStyle.html +2 -2
  297. package/docs/interfaces/Tags.html +4 -4
  298. package/docs/interfaces/TemporaryState.html +2 -2
  299. package/docs/interfaces/Util.AnimeInstance.html +2 -2
  300. package/docs/interfaces/Util.BlinkAnimeOptions.html +2 -2
  301. package/docs/interfaces/Util.EventHandlerConfig.html +4 -4
  302. package/docs/interfaces/Util.FiveDomEvent.html +2 -2
  303. package/docs/interfaces/Util.FiveDomEventMap.html +10 -10
  304. package/docs/interfaces/Util.MagnifierParameter.html +5 -5
  305. package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
  306. package/docs/interfaces/Util.PointIntersection.html +4 -4
  307. package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
  308. package/docs/interfaces/Util.ReBlinkAnimeOptions.html +3 -3
  309. package/docs/modules/AreaMakerPluginType.html +2 -2
  310. package/docs/modules/CruisePluginTypes.html +2 -2
  311. package/docs/modules/CurrentPanoImagePluginType.html +2 -2
  312. package/docs/modules/GuideLineItem.html +2 -2
  313. package/docs/modules/GuideLineModeItem.html +2 -2
  314. package/docs/modules/GuideLinePluginType.html +2 -2
  315. package/docs/modules/ModelMakerPluginType.html +2 -2
  316. package/docs/modules/PanoVideoPluginType.html +2 -2
  317. package/docs/modules/SculptData.html +2 -2
  318. package/docs/modules/Util.html +2 -2
  319. package/docs/modules/Util.sculpt.html +2 -2
  320. package/docs/modules.html +2 -2
  321. package/docs/types/AddObject3DHelperConfig.html +2 -2
  322. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +2 -2
  323. package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -1
  324. package/docs/types/AreaMakerPluginType.PluginData.html +2 -2
  325. package/docs/types/AreaMakerPluginType.ServerData.html +2 -2
  326. package/docs/types/ArrayPosition.html +1 -1
  327. package/docs/types/AudioAppearance.html +1 -1
  328. package/docs/types/CSS3DRenderExportType.html +1 -1
  329. package/docs/types/CSS3DRenderPluginExportType.html +1 -1
  330. package/docs/types/CSS3DRenderPluginParameterType.html +1 -1
  331. package/docs/types/ClassFunctionParameters.html +1 -1
  332. package/docs/types/Color.html +1 -1
  333. package/docs/types/ContentTypeConfigKey.html +1 -1
  334. package/docs/types/ContentTypeConfigKeySplit.html +1 -1
  335. package/docs/types/ContentTypeMap.html +1 -1
  336. package/docs/types/Create3DDomContainerReturnType.html +1 -1
  337. package/docs/types/Create3DElementReturnType.html +1 -1
  338. package/docs/types/CruisePluginExportType.html +1 -1
  339. package/docs/types/CruisePluginTypes.CruiseData.html +2 -2
  340. package/docs/types/CruisePluginTypes.MoveEffect.html +1 -1
  341. package/docs/types/CurrentPanoImagePluginExportType.html +1 -1
  342. package/docs/types/DeprecatedMediaPlaneProperty.html +2 -2
  343. package/docs/types/DeprecatedTagProperty.html +2 -2
  344. package/docs/types/Direction-1.html +1 -1
  345. package/docs/types/Direction4.html +1 -1
  346. package/docs/types/ElementRenderer.html +2 -2
  347. package/docs/types/FloorplanRuleLabels.html +2 -2
  348. package/docs/types/FloorplanServerRuleLabels.html +1 -1
  349. package/docs/types/GuideLinePluginExportType.html +1 -1
  350. package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -2
  351. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -1
  352. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -1
  353. package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -2
  354. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -2
  355. package/docs/types/GuideLinePluginType.PathItem.html +2 -2
  356. package/docs/types/GuideLinePluginType.PluginData.html +2 -2
  357. package/docs/types/HelperEventMap.html +1 -1
  358. package/docs/types/InternalHelperEventMap.html +1 -1
  359. package/docs/types/MapviewFloorplanPluginParameterType.html +1 -1
  360. package/docs/types/MapviewFloorplanPluginReturnType.html +1 -1
  361. package/docs/types/MediaData.html +2 -2
  362. package/docs/types/MediaStore.html +1 -1
  363. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -1
  364. package/docs/types/ModelFloorplanPluginParameterType.html +1 -1
  365. package/docs/types/ModelFloorplanPluginReturnType.html +1 -1
  366. package/docs/types/ModelId.html +1 -1
  367. package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -1
  368. package/docs/types/ModelMakerPluginType.ItemType.html +1 -1
  369. package/docs/types/ModelRoomLabelPluginParameters.html +1 -1
  370. package/docs/types/ModelRoomLabelPluginReturnType.html +1 -1
  371. package/docs/types/MoveArgs.html +2 -2
  372. package/docs/types/MoveOpts.html +2 -2
  373. package/docs/types/Object3DHelperEventMap.html +1 -1
  374. package/docs/types/ObjectFit.html +1 -1
  375. package/docs/types/PaintBrushEventMap.html +1 -1
  376. package/docs/types/PanoCompassPluginData.html +1 -1
  377. package/docs/types/PanoCompassPluginExportType.html +1 -1
  378. package/docs/types/PanoCompassPluginParameterType.html +1 -1
  379. package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -1
  380. package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -1
  381. package/docs/types/PanoIndex.html +1 -1
  382. package/docs/types/PanoMeasurePluginEvent.html +1 -1
  383. package/docs/types/PanoMeasureReturnType.html +1 -1
  384. package/docs/types/PanoSpatialTagPluginId.html +1 -1
  385. package/docs/types/PanoTagPluginExportInterface.html +1 -1
  386. package/docs/types/PanoTagPluginParamsInterface.html +1 -1
  387. package/docs/types/PanoVideoPluginParameterType.html +1 -1
  388. package/docs/types/PanoVideoPluginReturnType.html +1 -1
  389. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -2
  390. package/docs/types/PipelinePluginParameterType.html +1 -1
  391. package/docs/types/PipelinePluginReturnType.html +1 -1
  392. package/docs/types/PlaneTag.html +2 -2
  393. package/docs/types/Point2DTag.html +2 -2
  394. package/docs/types/Point3DTag.html +2 -2
  395. package/docs/types/PointTagInstance.html +1 -1
  396. package/docs/types/Position.html +1 -1
  397. package/docs/types/PositionFrom.html +1 -1
  398. package/docs/types/RotateArgs.html +2 -2
  399. package/docs/types/RotateOpts.html +2 -2
  400. package/docs/types/RuleLabelsKey.html +1 -1
  401. package/docs/types/RuleLabelsValue.html +1 -1
  402. package/docs/types/ScaleCallback.html +1 -1
  403. package/docs/types/ScalePosition.html +2 -2
  404. package/docs/types/SculptData.BoxData.html +1 -1
  405. package/docs/types/SculptData.CircleData.html +1 -1
  406. package/docs/types/SculptData.CylinderData.html +1 -1
  407. package/docs/types/SculptData.PointData.html +1 -1
  408. package/docs/types/SculptData.PolygonData.html +1 -1
  409. package/docs/types/SculptData.PolylineData.html +1 -1
  410. package/docs/types/SculptData.PrismData.html +1 -1
  411. package/docs/types/SculptData.RectangleData.html +1 -1
  412. package/docs/types/StickType.html +1 -1
  413. package/docs/types/Tag.html +2 -2
  414. package/docs/types/Tag2D.html +2 -2
  415. package/docs/types/Tag3D.html +2 -2
  416. package/docs/types/TagClickParams.html +1 -1
  417. package/docs/types/TagConfigByKey.html +1 -1
  418. package/docs/types/TagContentType.html +1 -1
  419. package/docs/types/TagContentTypeMapping.html +1 -1
  420. package/docs/types/TagDimensionType.html +1 -1
  421. package/docs/types/TagElement.html +2 -2
  422. package/docs/types/TagEvents.html +1 -1
  423. package/docs/types/TagGLTFObject.html +1 -1
  424. package/docs/types/TagHooks.html +1 -1
  425. package/docs/types/TagId.html +1 -1
  426. package/docs/types/TagInstance.html +1 -1
  427. package/docs/types/TagPointType.html +2 -2
  428. package/docs/types/TagRendererMap.html +1 -1
  429. package/docs/types/TopviewFloorplanPluginParameterType.html +1 -1
  430. package/docs/types/TopviewFloorplanPluginReturnType.html +1 -1
  431. package/docs/types/Util.ActionIfNoModelUnderMouse.html +1 -1
  432. package/docs/types/Util.PointSelectorConfig.html +1 -1
  433. package/docs/types/WorkCode.html +1 -1
  434. package/docs/variables/FLOOR_TYPE_MAP.html +2 -2
  435. package/docs/variables/PLUGIN.html +1 -1
  436. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -2
  437. package/docs/variables/ROOM_TYPE_MAP.html +2 -2
  438. package/docs/variables/Util.animeMap.html +1 -1
  439. package/docs/variables/defaultGlobalConfig.html +1 -1
  440. package/docs/variables/itemLabelPluginServerParams.html +1 -1
  441. package/docs/variables/modelItemLabelPluginServerParams.html +1 -1
  442. package/docs/variables/modelRoomLabelPluginServerParams.html +1 -1
  443. package/libs/Sculpt/Objects/Base/index.d.ts +4 -1
  444. package/libs/Sculpt/Objects/Base/index.js +27 -23
  445. package/libs/Sculpt/Objects/Box/index.d.ts +2 -2
  446. package/libs/Sculpt/Objects/Box/index.js +46 -44
  447. package/libs/Sculpt/Objects/Circle/index.d.ts +2 -1
  448. package/libs/Sculpt/Objects/Circle/index.js +57 -55
  449. package/libs/Sculpt/Objects/Cylinder/index.d.ts +2 -1
  450. package/libs/Sculpt/Objects/Cylinder/index.js +31 -29
  451. package/libs/Sculpt/Objects/Line/index.d.ts +2 -2
  452. package/libs/Sculpt/Objects/Line/index.js +42 -40
  453. package/libs/Sculpt/Objects/Point/index.d.ts +2 -1
  454. package/libs/Sculpt/Objects/Point/index.js +45 -43
  455. package/libs/Sculpt/Objects/Polygon/index.d.ts +2 -2
  456. package/libs/Sculpt/Objects/Polygon/index.js +74 -72
  457. package/libs/Sculpt/Objects/Polyline/index.d.ts +2 -2
  458. package/libs/Sculpt/Objects/Polyline/index.js +36 -34
  459. package/libs/Sculpt/Objects/Prism/index.d.ts +2 -1
  460. package/libs/Sculpt/Objects/Prism/index.js +54 -52
  461. package/libs/Sculpt/Objects/Rectangle/index.d.ts +2 -2
  462. package/libs/Sculpt/Objects/Rectangle/index.js +67 -66
  463. package/libs/Sculpt/index.d.ts +17 -14
  464. package/libs/Sculpt/index.js +76 -68
  465. package/libs/Sculpt/typings/style.d.ts +7 -0
  466. package/libs/Sculpt/utils/Modules/Global.d.ts +4 -0
  467. package/libs/Sculpt/utils/Modules/Global.js +24 -12
  468. package/libs/base/BasePlugin.js +5 -5
  469. package/libs/shared-utils/logger.js +1 -1
  470. package/libs/shared-utils/three/PointSelector/index.d.ts +25 -0
  471. package/libs/shared-utils/three/PointSelector/index.js +32 -6
  472. package/package.json +1 -1
@@ -12,31 +12,32 @@ var p = (i, t, e) => t in i ? E(i, t, { enumerable: !0, configurable: !0, writab
12
12
  }, w = (i, t) => L(i, T(t));
13
13
  var m = (i, t, e) => (p(i, typeof t != "symbol" ? t + "" : t, e), e);
14
14
  var f = (i, t, e) => new Promise((o, s) => {
15
- var c = (r) => {
15
+ var h = (r) => {
16
16
  try {
17
17
  n(e.next(r));
18
18
  } catch (l) {
19
19
  s(l);
20
20
  }
21
- }, h = (r) => {
21
+ }, a = (r) => {
22
22
  try {
23
23
  n(e.throw(r));
24
24
  } catch (l) {
25
25
  s(l);
26
26
  }
27
- }, n = (r) => r.done ? o(r.value) : Promise.resolve(r.value).then(c, h);
27
+ }, n = (r) => r.done ? o(r.value) : Promise.resolve(r.value).then(h, a);
28
28
  n((e = e.apply(i, t)).next());
29
29
  });
30
+ import { Sculpt as R } from "../../index.js";
30
31
  import { CylinderMesh as v } from "../../Meshes/Cylinder.js";
31
- import { LineMesh as R } from "../../Meshes/Line.js";
32
- import { rayOnLine as D } from "../../utils/three/rayOnLine.js";
33
- import { BaseObject as U } from "../Base/index.js";
34
- import { createCircle as V } from "../Circle/index.js";
32
+ import { LineMesh as D } from "../../Meshes/Line.js";
33
+ import { rayOnLine as U } from "../../utils/three/rayOnLine.js";
34
+ import { BaseObject as V } from "../Base/index.js";
35
+ import { createCircle as z } from "../Circle/index.js";
35
36
  import * as b from "three";
36
37
  import { vector3ToArray as x } from "../../../shared-utils/three/vector3ToArray.js";
37
- import { CylinderMeshEditor as z } from "../../Editors/CylinderMeshEditor.js";
38
+ import { CylinderMeshEditor as B } from "../../Editors/CylinderMeshEditor.js";
38
39
  import { anyPositionToVector3 as O } from "../../../shared-utils/positionToVector3.js";
39
- class Y extends U {
40
+ class Z extends V {
40
41
  constructor(e, o) {
41
42
  super(e, o);
42
43
  m(this, "type", "Cylinder");
@@ -45,7 +46,7 @@ class Y extends U {
45
46
  e && (this.cylinderMesh = new v(d(d({}, e.style), e)), this.add(this.cylinderMesh));
46
47
  }
47
48
  get editor() {
48
- return this._editor || (this._editor = new z(this.cylinderMesh)), this._editor;
49
+ return this._editor || (this._editor = new B(this.cylinderMesh)), this._editor;
49
50
  }
50
51
  get data() {
51
52
  return w(d({}, this.baseData), {
@@ -73,38 +74,39 @@ class Y extends U {
73
74
  }
74
75
  create(e) {
75
76
  return f(this, null, function* () {
76
- this.cylinderMesh = new v(e), this.add(this.cylinderMesh), yield B(this.cylinderMesh, this.pointSelector), this.config.defaultAction && this.editor.enable();
77
+ var o;
78
+ this.currentPointSelector = (o = e == null ? void 0 : e.pointSelector) != null ? o : R.modules.pointSelector, this.cylinderMesh = new v(e), this.add(this.cylinderMesh), yield F(this.cylinderMesh, this.currentPointSelector), this.config.defaultAction && this.editor.enable();
77
79
  });
78
80
  }
79
81
  }
80
- function B(i, t) {
82
+ function F(i, t) {
81
83
  return f(this, null, function* () {
82
84
  const e = i.parent;
83
- yield V(i.bottomCircle, t);
84
- const o = new R();
85
+ yield z(i.bottomCircle, t);
86
+ const o = new D();
85
87
  o.name = "LineHelper", e.add(o);
86
- const s = t.position.point, c = i.normal.clone().normalize(), h = s.clone().add(c.clone().multiplyScalar(100)), n = s.clone().sub(c.clone().multiplyScalar(100));
87
- return o.setPoints([h, n]), t.enable(), new Promise((r, l) => {
88
- const C = (a) => {
89
- u(), r();
90
- }, M = (a) => {
91
- if (!(a != null && a.raycaster))
88
+ const s = t.position.point, h = i.normal.clone().normalize(), a = s.clone().add(h.clone().multiplyScalar(100)), n = s.clone().sub(h.clone().multiplyScalar(100));
89
+ return o.setPoints([a, n]), t.enable(), new Promise((r, l) => {
90
+ const C = (c) => {
91
+ M(), r();
92
+ }, u = (c) => {
93
+ if (!(c != null && c.raycaster))
92
94
  return;
93
- const y = D({
94
- raycaster: a.raycaster,
95
- line: new b.Line3(h, n)
95
+ const y = U({
96
+ raycaster: c.raycaster,
97
+ line: new b.Line3(a, n)
96
98
  }), j = new b.Plane().setFromNormalAndCoplanarPoint(i.normal, i.bottomCenter).projectPoint(y, new b.Vector3()), H = y.clone().sub(j), _ = i.bottomCenter.clone().add(H);
97
99
  y && i.setTopCenter(_);
98
- }, u = () => {
99
- t.off("select", C), t.off("intersectionUpdate", M), t.off("disable", P), e.remove(o), t.disable();
100
+ }, M = () => {
101
+ t.off("select", C), t.off("intersectionUpdate", u), t.off("disable", P), e.remove(o), t.disable();
100
102
  }, P = () => {
101
- u(), e.remove(i), l(new Error("Cancelled"));
103
+ M(), e.remove(i), l(new Error("Cancelled"));
102
104
  };
103
- t.on("select", C), t.on("intersectionUpdate", M), t.on("disable", P);
105
+ t.on("select", C), t.on("intersectionUpdate", u), t.on("disable", P);
104
106
  });
105
107
  });
106
108
  }
107
109
  export {
108
- Y as Cylinder,
109
- B as createCylinder
110
+ Z as Cylinder,
111
+ F as createCylinder
110
112
  };
@@ -3,7 +3,7 @@ import { BaseObject, type BaseImportData, type BaseObjectConfig } from '../Base'
3
3
  import { LineEditor } from './Editor';
4
4
  import type { PointSelector } from '../../../shared-utils/three/PointSelector';
5
5
  import type { LiteralString } from '../../../typings/utils.type';
6
- import type { CreateLimitConfig } from '../../typings/style';
6
+ import type { CreateLimitConfig, CreateUtils } from '../../typings/style';
7
7
  import { LineWithDotsMesh } from '../../Meshes/LineWithDots';
8
8
  export interface LineImportData extends BaseImportData, LineData {
9
9
  type: LiteralString<'Line'>;
@@ -33,7 +33,7 @@ export declare class Line extends BaseObject<LineImportData> {
33
33
  canRedo(): void;
34
34
  undo(): void;
35
35
  redo(): void;
36
- create(params?: Partial<LineMeshStyle & CreateLimitConfig>): Promise<void>;
36
+ create(params?: Partial<LineMeshStyle & CreateLimitConfig & CreateUtils>): Promise<void>;
37
37
  }
38
38
  /**
39
39
  * @description 绘制线段
@@ -2,7 +2,7 @@ var A = Object.defineProperty, D = Object.defineProperties;
2
2
  var k = Object.getOwnPropertyDescriptors;
3
3
  var R = Object.getOwnPropertySymbols;
4
4
  var z = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
5
- var j = (n, t, e) => t in n ? A(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, f = (n, t) => {
5
+ var j = (n, t, e) => t in n ? A(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, p = (n, t) => {
6
6
  for (var e in t || (t = {}))
7
7
  z.call(t, e) && j(n, e, t[e]);
8
8
  if (R)
@@ -10,48 +10,49 @@ var j = (n, t, e) => t in n ? A(n, t, { enumerable: !0, configurable: !0, writab
10
10
  B.call(t, e) && j(n, e, t[e]);
11
11
  return n;
12
12
  }, v = (n, t) => D(n, k(t));
13
- var p = (n, t, e) => (j(n, typeof t != "symbol" ? t + "" : t, e), e);
14
- var U = (n, t, e) => new Promise((s, m) => {
15
- var P = (o) => {
13
+ var u = (n, t, e) => (j(n, typeof t != "symbol" ? t + "" : t, e), e);
14
+ var U = (n, t, e) => new Promise((s, d) => {
15
+ var w = (o) => {
16
16
  try {
17
- c(e.next(o));
17
+ a(e.next(o));
18
18
  } catch (l) {
19
- m(l);
19
+ d(l);
20
20
  }
21
21
  }, b = (o) => {
22
22
  try {
23
- c(e.throw(o));
23
+ a(e.throw(o));
24
24
  } catch (l) {
25
- m(l);
25
+ d(l);
26
26
  }
27
- }, c = (o) => o.done ? s(o.value) : Promise.resolve(o.value).then(P, b);
28
- c((e = e.apply(n, t)).next());
27
+ }, a = (o) => o.done ? s(o.value) : Promise.resolve(o.value).then(w, b);
28
+ a((e = e.apply(n, t)).next());
29
29
  });
30
30
  import { LineMesh as H } from "../../Meshes/Line.js";
31
31
  import { BaseObject as F } from "../Base/index.js";
32
- import * as a from "three";
32
+ import * as c from "three";
33
33
  import { LineEditor as I } from "./Editor.js";
34
34
  import { vector3ToArray as N } from "../../../shared-utils/three/vector3ToArray.js";
35
35
  import { LineWithDotsMesh as T } from "../../Meshes/LineWithDots.js";
36
36
  import { rayOnLine as q } from "../../utils/three/rayOnLine.js";
37
37
  import { withResolvers as G } from "../../../shared-utils/promise/withResolvers.js";
38
- class ne extends F {
38
+ import { Sculpt as J } from "../../index.js";
39
+ class se extends F {
39
40
  constructor(e, s) {
40
41
  super(e, s);
41
- p(this, "type", "Line");
42
- p(this, "lineMesh");
43
- p(this, "_editor");
44
- p(this, "creatingObject");
45
- e && (this.lineMesh = new T(f(f({}, e.style), e)), this.add(this.lineMesh));
42
+ u(this, "type", "Line");
43
+ u(this, "lineMesh");
44
+ u(this, "_editor");
45
+ u(this, "creatingObject");
46
+ e && (this.lineMesh = new T(p(p({}, e.style), e)), this.add(this.lineMesh));
46
47
  }
47
48
  get editor() {
48
49
  return this._editor || (this._editor = new I(this)), this._editor;
49
50
  }
50
51
  get data() {
51
- return v(f({}, this.baseData), {
52
+ return v(p({}, this.baseData), {
52
53
  points: N(this.applyObjectMatrixWorld(this.lineMesh.points)),
53
54
  style: {
54
- lineColor: new a.Color(this.lineMesh.color).getHex(),
55
+ lineColor: new c.Color(this.lineMesh.color).getHex(),
55
56
  lineWidth: this.lineMesh.lineWidth,
56
57
  dashed: this.lineMesh.dashed
57
58
  }
@@ -86,53 +87,54 @@ class ne extends F {
86
87
  }
87
88
  create(e) {
88
89
  return U(this, null, function* () {
89
- this.removeChildren();
90
+ var d;
91
+ this.removeChildren(), this.currentPointSelector = (d = e == null ? void 0 : e.pointSelector) != null ? d : J.modules.pointSelector;
90
92
  const s = new T(e);
91
- this.lineMesh = s, this.add(this.lineMesh), this.creatingObject = J(s, this.pointSelector, e), yield this.creatingObject.finished, this.config.defaultAction && this.editor.enable();
93
+ this.lineMesh = s, this.add(this.lineMesh), this.creatingObject = K(s, this.currentPointSelector, e), yield this.creatingObject.finished, this.config.defaultAction && this.editor.enable();
92
94
  });
93
95
  }
94
96
  }
95
- function J(n, t, e) {
97
+ function K(n, t, e) {
96
98
  var C;
97
99
  const s = n.parent;
98
100
  if (!s)
99
101
  return;
100
- const { promise: m, resolve: P, reject: b } = G(), c = (C = e == null ? void 0 : e.limit) != null ? C : "none", o = new H(n.style);
102
+ const { promise: d, resolve: w, reject: b } = G(), a = (C = e == null ? void 0 : e.limit) != null ? C : "none", o = new H(n.style);
101
103
  s.add(o);
102
- const l = new H(v(f({}, n.style), { dashed: !0, lengthEnable: !1 }));
104
+ const l = new H(v(p({}, n.style), { dashed: !0, lengthEnable: !1 }));
103
105
  s.add(l), t.enable();
104
106
  const i = [];
105
- let h, d, y;
107
+ let h, f, y;
106
108
  const g = [], M = () => i.length > 0, O = () => g.length > 0, W = () => {
107
- M() && (g.push(i.pop()), n.setPoints(i), u(y), t.pointSelectorHelper.magnifier.render());
109
+ M() && (g.push(i.pop()), n.setPoints(i), m(y), t.pointSelectorHelper.magnifier.render());
108
110
  }, _ = () => {
109
- O() && (i.push(g.pop()), n.setPoints(i), u(y), t.pointSelectorHelper.magnifier.render());
111
+ O() && (i.push(g.pop()), n.setPoints(i), m(y), t.pointSelectorHelper.magnifier.render());
110
112
  }, E = (r) => {
111
113
  if (!r)
112
114
  return;
113
115
  g.length = 0;
114
- const w = i.length === 0 ? r.point : h.clone();
115
- i.push(w), n.setPoints(i), i.length === 2 && (V(), P());
116
- }, u = (r) => {
117
- const w = () => {
116
+ const P = i.length === 0 ? r.point : h.clone();
117
+ i.push(P), n.setPoints(i), i.length === 2 && (V(), w());
118
+ }, m = (r) => {
119
+ const P = () => {
118
120
  o.setPoints([]), l.setPoints([]), t.pointSelectorHelper.magnifier.render();
119
121
  };
120
122
  if (!(i != null && i.length) || !r)
121
- return w();
123
+ return P();
122
124
  y = r;
123
125
  const L = i.at(-1).clone();
124
- c === "none" ? (h = r.point, o.setPoints([L, h])) : c === "xoz" ? (t.plane = d, d = d != null ? d : new a.Plane().setFromNormalAndCoplanarPoint(new a.Vector3(0, 1, 0), i[0]), h = d.projectPoint(r.point, new a.Vector3()), o.setPoints([L, h]), l.setPoints([h, r.point])) : c === "y" && (r.isVirtual ? (h = q({
126
+ a === "none" ? (h = r.point, o.setPoints([L, h])) : a === "xoz" ? (t.plane = f, f = f != null ? f : new c.Plane().setFromNormalAndCoplanarPoint(new c.Vector3(0, 1, 0), i[0]), h = f.projectPoint(r.point, new c.Vector3()), o.setPoints([L, h]), l.setPoints([h, r.point])) : a === "y" && (r.isVirtual ? (h = q({
125
127
  raycaster: r.raycaster,
126
- line: new a.Line3(i[0].clone(), new a.Vector3(0, 1, 0).add(i[0])),
128
+ line: new c.Line3(i[0].clone(), new c.Vector3(0, 1, 0).add(i[0])),
127
129
  clampToLine: !1
128
- }), l.setPoints([])) : (h = new a.Line3(i[0].clone(), new a.Vector3(0, 1, 0).add(i[0])).closestPointToPoint(r.point, !1, new a.Vector3()), l.setPoints([h, r.point])), o.setPoints([L, h]));
130
+ }), l.setPoints([])) : (h = new c.Line3(i[0].clone(), new c.Vector3(0, 1, 0).add(i[0])).closestPointToPoint(r.point, !1, new c.Vector3()), l.setPoints([h, r.point])), o.setPoints([L, h]));
129
131
  }, V = () => {
130
- t.off("select", E), t.off("intersectionUpdate", u), t.off("disable", x), t.plane = null, t.disable(), s == null || s.remove(o, l);
132
+ t.off("select", E), t.off("intersectionUpdate", m), t.off("disable", x), t.plane = null, t.disable(), s == null || s.remove(o, l);
131
133
  }, x = () => {
132
134
  V(), i.length !== 2 && (s == null || s.remove(n)), b(new Error("Cancelled"));
133
135
  };
134
- return t.on("select", E), t.on("intersectionUpdate", u), t.on("disable", x), {
135
- finished: m,
136
+ return t.on("select", E), t.on("intersectionUpdate", m), t.on("disable", x), {
137
+ finished: d,
136
138
  canUndo: M,
137
139
  canRedo: O,
138
140
  undo: W,
@@ -140,6 +142,6 @@ function J(n, t, e) {
140
142
  };
141
143
  }
142
144
  export {
143
- ne as Line,
144
- J as createLine
145
+ se as Line,
146
+ K as createLine
145
147
  };
@@ -3,6 +3,7 @@ import { BaseObject, type BaseImportData, type BaseObjectConfig } from '../Base'
3
3
  import { PointEditor } from './Editor';
4
4
  import type { PointSelector } from '../../../shared-utils/three/PointSelector';
5
5
  import type { LiteralString } from '../../../typings/utils.type';
6
+ import type { CreateUtils } from '../../typings/style';
6
7
  export interface PointImportData extends BaseImportData, PointData {
7
8
  type: LiteralString<'Point'>;
8
9
  style?: Partial<PointStyle>;
@@ -34,6 +35,6 @@ export declare class Point extends BaseObject<PointImportData> {
34
35
  /**
35
36
  * @description: 创建点
36
37
  */
37
- create(params?: Partial<PointStyle>): Promise<void>;
38
+ create(params?: Partial<PointStyle & CreateUtils>): Promise<void>;
38
39
  }
39
40
  export declare function createPoint(pointMesh: PointMesh, pointSelector: PointSelector): Promise<void>;
@@ -1,50 +1,51 @@
1
- var b = Object.defineProperty, g = Object.defineProperties;
1
+ var g = Object.defineProperty, m = Object.defineProperties;
2
2
  var M = Object.getOwnPropertyDescriptors;
3
- var d = Object.getOwnPropertySymbols;
3
+ var u = Object.getOwnPropertySymbols;
4
4
  var P = Object.prototype.hasOwnProperty, v = Object.prototype.propertyIsEnumerable;
5
- var c = (e, i, t) => i in e ? b(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, f = (e, i) => {
5
+ var d = (e, i, t) => i in e ? g(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, l = (e, i) => {
6
6
  for (var t in i || (i = {}))
7
- P.call(i, t) && c(e, t, i[t]);
8
- if (d)
9
- for (var t of d(i))
10
- v.call(i, t) && c(e, t, i[t]);
7
+ P.call(i, t) && d(e, t, i[t]);
8
+ if (u)
9
+ for (var t of u(i))
10
+ v.call(i, t) && d(e, t, i[t]);
11
11
  return e;
12
- }, m = (e, i) => g(e, M(i));
13
- var p = (e, i, t) => (c(e, typeof i != "symbol" ? i + "" : i, t), t);
14
- var y = (e, i, t) => new Promise((h, n) => {
15
- var r = (s) => {
12
+ }, a = (e, i) => m(e, M(i));
13
+ var c = (e, i, t) => (d(e, typeof i != "symbol" ? i + "" : i, t), t);
14
+ var y = (e, i, t) => new Promise((s, h) => {
15
+ var r = (o) => {
16
16
  try {
17
- o(t.next(s));
18
- } catch (a) {
19
- n(a);
17
+ n(t.next(o));
18
+ } catch (p) {
19
+ h(p);
20
20
  }
21
- }, l = (s) => {
21
+ }, f = (o) => {
22
22
  try {
23
- o(t.throw(s));
24
- } catch (a) {
25
- n(a);
23
+ n(t.throw(o));
24
+ } catch (p) {
25
+ h(p);
26
26
  }
27
- }, o = (s) => s.done ? h(s.value) : Promise.resolve(s.value).then(r, l);
28
- o((t = t.apply(e, i)).next());
27
+ }, n = (o) => o.done ? s(o.value) : Promise.resolve(o.value).then(r, f);
28
+ n((t = t.apply(e, i)).next());
29
29
  });
30
- import { PointMesh as u } from "../../Meshes/Point.js";
30
+ import { PointMesh as b } from "../../Meshes/Point.js";
31
31
  import { BaseObject as w } from "../Base/index.js";
32
32
  import { PointEditor as x } from "./Editor.js";
33
33
  import { vector3ToArray as _ } from "../../../shared-utils/three/vector3ToArray.js";
34
34
  import { anyPositionToVector3 as E } from "../../../shared-utils/positionToVector3.js";
35
- class B extends w {
36
- constructor(t, h) {
37
- super(t, h);
38
- p(this, "type", "Point");
39
- p(this, "pointMesh");
40
- p(this, "_editor");
41
- t && (this.pointMesh = new u(f(f({}, t.style), t)), this.add(this.pointMesh));
35
+ import { Sculpt as U } from "../../index.js";
36
+ class F extends w {
37
+ constructor(t, s) {
38
+ super(t, s);
39
+ c(this, "type", "Point");
40
+ c(this, "pointMesh");
41
+ c(this, "_editor");
42
+ t && (this.pointMesh = new b(l(l({}, t.style), t)), this.add(this.pointMesh));
42
43
  }
43
44
  get editor() {
44
45
  return this._editor || (this._editor = new x(this)), this._editor;
45
46
  }
46
47
  get data() {
47
- return m(f({}, this.baseData), {
48
+ return a(l({}, this.baseData), {
48
49
  point: _(this.applyObjectMatrixWorld(this.pointMesh.position)),
49
50
  style: {
50
51
  color: this.pointMesh.color.getHex(),
@@ -76,26 +77,27 @@ class B extends w {
76
77
  */
77
78
  create(t) {
78
79
  return y(this, null, function* () {
79
- this.pointMesh && this.remove(this.pointMesh), this.add(this.pointMesh = new u(t)), yield U(this.pointMesh, this.pointSelector), this.config.defaultAction && this.editor.enable();
80
+ var s;
81
+ this.pointMesh && this.remove(this.pointMesh), this.currentPointSelector = (s = t == null ? void 0 : t.pointSelector) != null ? s : U.modules.pointSelector, this.add(this.pointMesh = new b(t)), yield j(this.pointMesh, this.currentPointSelector), this.config.defaultAction && this.editor.enable();
80
82
  });
81
83
  }
82
84
  }
83
- function U(e, i) {
84
- return new Promise((t, h) => {
85
+ function j(e, i) {
86
+ return new Promise((t, s) => {
85
87
  i.enable(), e.visible = !1;
86
- const n = (s) => {
87
- s && (e.visible = !0, e.position.copy(s.point));
88
- }, r = (s) => {
89
- s && (e.visible = !0, e.position.copy(s.point), l());
90
- }, l = () => {
91
- i.off("select", r), i.off("disable", o), i.off("intersectionUpdate", n), i.disable(), t();
92
- }, o = () => {
93
- i.off("select", r), i.off("disable", o), i.off("intersectionUpdate", n), e.removeFromParent(), h(new Error("Cancelled"));
88
+ const h = (o) => {
89
+ o && (e.visible = !0, e.position.copy(o.point));
90
+ }, r = (o) => {
91
+ o && (e.visible = !0, e.position.copy(o.point), f());
92
+ }, f = () => {
93
+ i.off("select", r), i.off("disable", n), i.off("intersectionUpdate", h), i.disable(), t();
94
+ }, n = () => {
95
+ i.off("select", r), i.off("disable", n), i.off("intersectionUpdate", h), e.removeFromParent(), s(new Error("Cancelled"));
94
96
  };
95
- i.on("intersectionUpdate", n), i.on("disable", o), i.once("select", r);
97
+ i.on("intersectionUpdate", h), i.on("disable", n), i.once("select", r);
96
98
  });
97
99
  }
98
100
  export {
99
- B as Point,
100
- U as createPoint
101
+ F as Point,
102
+ j as createPoint
101
103
  };
@@ -4,7 +4,7 @@ import { PolygonEditor } from './Editor';
4
4
  import type { PointSelector } from '../../../shared-utils/three/PointSelector';
5
5
  import type { LiteralString } from '../../../typings/utils.type';
6
6
  import type { PolygonData, PolygonStyle } from '../../Meshes/Polygon';
7
- import type { CreateLimitConfig } from '../../typings/style';
7
+ import type { CreateLimitConfig, CreateUtils } from '../../typings/style';
8
8
  export interface PolygonImportData extends BaseImportData, PolygonData {
9
9
  type: LiteralString<'Polygon'>;
10
10
  style?: Partial<AreaStyle>;
@@ -33,7 +33,7 @@ export declare class Polygon extends BaseObject<PolygonImportData> {
33
33
  canRedo(): void;
34
34
  undo(): void;
35
35
  redo(): void;
36
- create(params?: Partial<PolygonStyle & CreateLimitConfig>): Promise<void>;
36
+ create(params?: Partial<PolygonStyle & CreateLimitConfig & CreateUtils>): Promise<void>;
37
37
  }
38
38
  export declare function createPolygon(areaMesh: AreaMesh, pointSelector: PointSelector, config?: Partial<CreateLimitConfig>): {
39
39
  finished: Promise<void>;