@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
@@ -1,39 +1,39 @@
1
1
  var I = Object.defineProperty, k = Object.defineProperties;
2
2
  var q = Object.getOwnPropertyDescriptors;
3
- var W = Object.getOwnPropertySymbols;
3
+ var _ = Object.getOwnPropertySymbols;
4
4
  var G = Object.prototype.hasOwnProperty, J = Object.prototype.propertyIsEnumerable;
5
- var A = (o, n, e) => n in o ? I(o, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[n] = e, p = (o, n) => {
5
+ var A = (o, n, e) => n in o ? I(o, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[n] = e, w = (o, n) => {
6
6
  for (var e in n || (n = {}))
7
7
  G.call(n, e) && A(o, e, n[e]);
8
- if (W)
9
- for (var e of W(n))
8
+ if (_)
9
+ for (var e of _(n))
10
10
  J.call(n, e) && A(o, e, n[e]);
11
11
  return o;
12
- }, w = (o, n) => k(o, q(n));
12
+ }, P = (o, n) => k(o, q(n));
13
13
  var O = (o, n, e) => (A(o, typeof n != "symbol" ? n + "" : n, e), e);
14
- var _ = (o, n, e) => new Promise((m, f) => {
14
+ var j = (o, n, e) => new Promise((m, h) => {
15
15
  var y = (c) => {
16
16
  try {
17
- i(e.next(c));
18
- } catch (h) {
19
- f(h);
17
+ a(e.next(c));
18
+ } catch (d) {
19
+ h(d);
20
20
  }
21
21
  }, l = (c) => {
22
22
  try {
23
- i(e.throw(c));
24
- } catch (h) {
25
- f(h);
23
+ a(e.throw(c));
24
+ } catch (d) {
25
+ h(d);
26
26
  }
27
- }, i = (c) => c.done ? m(c.value) : Promise.resolve(c.value).then(y, l);
28
- i((e = e.apply(o, n)).next());
27
+ }, a = (c) => c.done ? m(c.value) : Promise.resolve(c.value).then(y, l);
28
+ a((e = e.apply(o, n)).next());
29
29
  });
30
30
  import { BaseObject as K } from "../Base/index.js";
31
31
  import * as s from "three";
32
32
  import { PolylineWithDotsMesh as b } from "../../Meshes/Polyline.js";
33
33
  import { RectangleMeshEditor as Q } from "../../Editors/RectangleMeshEditor.js";
34
- import { RectangleWithEdgeMesh as j } from "../../Meshes/RectangleWithEdge.js";
35
- import { sortPositionsByCameraPosition as D } from "../../utils/sortPositionsByCameraPosition.js";
36
- import { Sculpt as F } from "../../index.js";
34
+ import { RectangleWithEdgeMesh as D } from "../../Meshes/RectangleWithEdge.js";
35
+ import { sortPositionsByCameraPosition as F } from "../../utils/sortPositionsByCameraPosition.js";
36
+ import { Sculpt as W } from "../../index.js";
37
37
  import { vector3ToArray as X } from "../../../shared-utils/three/vector3ToArray.js";
38
38
  import { anyPositionToVector3 as Y } from "../../../shared-utils/positionToVector3.js";
39
39
  import { withResolvers as B } from "../../../shared-utils/promise/withResolvers.js";
@@ -43,13 +43,13 @@ class he extends K {
43
43
  O(this, "type", "Rectangle");
44
44
  O(this, "rectangleMesh");
45
45
  O(this, "_editor");
46
- e && (this.rectangleMesh = new j(p(p({}, e.style), e)), this.add(this.rectangleMesh));
46
+ e && (this.rectangleMesh = new D(w(w({}, e.style), e)), this.add(this.rectangleMesh));
47
47
  }
48
48
  get editor() {
49
49
  return this._editor || (this._editor = new Q(this.rectangleMesh)), this._editor;
50
50
  }
51
51
  get data() {
52
- return w(p({}, this.baseData), {
52
+ return P(w({}, this.baseData), {
53
53
  points: X(this.applyObjectMatrixWorld(this.rectangleMesh.points, this.rectangleMesh)),
54
54
  style: {
55
55
  color: this.rectangleMesh.color.getHex(),
@@ -71,110 +71,111 @@ class he extends K {
71
71
  (e = this.rectangleMesh) == null || e.unhighlight();
72
72
  }
73
73
  create(e) {
74
- return _(this, null, function* () {
75
- this.removeChildren();
76
- const m = new j(e);
77
- this.rectangleMesh = m, this.add(this.rectangleMesh), yield Z(this.rectangleMesh, this.pointSelector, e), this.config.defaultAction && this.editor.enable();
74
+ return j(this, null, function* () {
75
+ var h;
76
+ this.removeChildren(), this.currentPointSelector = (h = e == null ? void 0 : e.pointSelector) != null ? h : W.modules.pointSelector;
77
+ const m = new D(e);
78
+ this.rectangleMesh = m, this.add(this.rectangleMesh), yield Z(this.rectangleMesh, this.currentPointSelector, e), this.config.defaultAction && this.editor.enable();
78
79
  });
79
80
  }
80
81
  }
81
82
  function Z(o, n, e) {
82
- var f;
83
- return ((f = e == null ? void 0 : e.drawMethod) != null ? f : "diagonal") === "diagonal" ? $(o, n, e) : S(o, n, e);
83
+ var h;
84
+ return ((h = e == null ? void 0 : e.drawMethod) != null ? h : "diagonal") === "diagonal" ? $(o, n, e) : S(o, n, e);
84
85
  }
85
86
  function $(o, n, e) {
86
87
  var C;
87
- const { promise: m, reject: f, resolve: y } = B(), l = o.parent;
88
+ const { promise: m, reject: h, resolve: y } = B(), l = o.parent;
88
89
  if (!l)
89
- return f(new Error("No container"));
90
- const i = (C = e == null ? void 0 : e.limit) != null ? C : "none", c = new b(w(p({}, o.style), { dashed: !0 })), h = new b(w(p({}, o.style), { dashed: !0, lengthEnable: !1 })), P = new b(w(p({}, o.style), { dashed: !1, lengthEnable: !1 }));
91
- l.add(c, P, h), n.enable();
90
+ return h(new Error("No container"));
91
+ const a = (C = e == null ? void 0 : e.limit) != null ? C : "none", c = new b(P(w({}, o.style), { dashed: !0 })), d = new b(P(w({}, o.style), { dashed: !0, lengthEnable: !1 })), p = new b(P(w({}, o.style), { dashed: !1, lengthEnable: !1 }));
92
+ l.add(c, p, d), n.enable();
92
93
  const t = [];
93
- let a = new s.Vector3(), L = new s.Vector3();
94
- const d = new s.Plane(), M = () => {
95
- t.push(a.clone()), t.length === 1 ? (i === "xoz" && d.setFromNormalAndCoplanarPoint(new s.Vector3(0, 1, 0), t[0]), i === "none" && d.setFromNormalAndCoplanarPoint(L, t[0])) : t.length === 2 ? i === "y" || i === "xoz" ? (V(), y()) : P.setPoints([t[0], t[1]]) : t.length === 3 && (V(), y());
94
+ let i = new s.Vector3(), L = new s.Vector3();
95
+ const f = new s.Plane(), M = () => {
96
+ t.push(i.clone()), t.length === 1 ? (a === "xoz" && f.setFromNormalAndCoplanarPoint(new s.Vector3(0, 1, 0), t[0]), a === "none" && f.setFromNormalAndCoplanarPoint(L, t[0])) : t.length === 2 ? a === "y" || a === "xoz" ? (V(), y()) : p.setPoints([t[0], t[1]]) : t.length === 3 && (V(), y());
96
97
  }, E = (r) => {
97
98
  var N, z;
98
99
  if (!(r != null && r.raycaster))
99
100
  return;
100
101
  const R = (N = t.at(-1)) == null ? void 0 : N.clone();
101
102
  if (t.length === 0) {
102
- a = r.point.clone(), L = (z = r.face) == null ? void 0 : z.normal;
103
+ i = r.point.clone(), L = (z = r.face) == null ? void 0 : z.normal;
103
104
  return;
104
105
  }
105
- if (t.length === 1 && i === "y") {
106
- const u = new s.Line3(new s.Vector3(0, 1, 0).add(t[0]), new s.Vector3(0, -1, 0).add(t[0])).closestPointToPoint(r.point, !1, new s.Vector3());
107
- o.setPoints([t[0], u, r.point]);
106
+ if (t.length === 1 && a === "y") {
107
+ const g = new s.Line3(new s.Vector3(0, 1, 0).add(t[0]), new s.Vector3(0, -1, 0).add(t[0])).closestPointToPoint(r.point, !1, new s.Vector3());
108
+ o.setPoints([t[0], g, r.point]);
108
109
  return;
109
110
  }
110
- if (t.length === 1 && i === "xoz") {
111
- const g = new s.Line3(new s.Vector3(1, 0, 0).add(t[0]), new s.Vector3(-1, 0, 0).add(t[0])), u = r.raycaster.ray.intersectPlane(d, new s.Vector3()), v = g.closestPointToPoint(u, !1, new s.Vector3());
112
- o.setPoints([t[0], v, u]);
111
+ if (t.length === 1 && a === "xoz") {
112
+ const u = new s.Line3(new s.Vector3(1, 0, 0).add(t[0]), new s.Vector3(-1, 0, 0).add(t[0])), g = r.raycaster.ray.intersectPlane(f, new s.Vector3()), v = u.closestPointToPoint(g, !1, new s.Vector3());
113
+ o.setPoints([t[0], v, g]);
113
114
  return;
114
115
  }
115
- if (t.length === 1 && i === "none") {
116
- d ? (a = r.raycaster.ray.intersectPlane(d, new s.Vector3()), h.setPoints([a, r.point])) : a = r.point.clone(), c.setPoints([R, a]);
116
+ if (t.length === 1 && a === "none") {
117
+ f ? (i = r.raycaster.ray.intersectPlane(f, new s.Vector3()), d.setPoints([i, r.point])) : i = r.point.clone(), c.setPoints([R, i]);
117
118
  return;
118
119
  }
119
- if (t.length === 2 && i === "none") {
120
+ if (t.length === 2 && a === "none") {
120
121
  l.remove(c);
121
- const g = r.raycaster.ray.intersectPlane(d, new s.Vector3()), u = t[0].distanceTo(t[1]) / 2, v = new s.Vector3().lerpVectors(t[0], t[1], 0.5), T = new s.Vector3().subVectors(g, v).normalize();
122
- a = new s.Vector3().addVectors(v, T.multiplyScalar(u));
123
- const H = [t[0], a, t[1]], U = D(H, F.modules.five.camera.position);
122
+ const u = r.raycaster.ray.intersectPlane(f, new s.Vector3()), g = t[0].distanceTo(t[1]) / 2, v = new s.Vector3().lerpVectors(t[0], t[1], 0.5), T = new s.Vector3().subVectors(u, v).normalize();
123
+ i = new s.Vector3().addVectors(v, T.multiplyScalar(g));
124
+ const H = [t[0], i, t[1]], U = F(H, W.modules.five.camera.position);
124
125
  o.setPoints(U);
125
126
  return;
126
127
  }
127
128
  }, V = () => {
128
- n.off("select", M), n.off("intersectionUpdate", E), n.off("disable", x), n.disable(), l == null || l.remove(c, P, h);
129
+ n.off("select", M), n.off("intersectionUpdate", E), n.off("disable", x), n.disable(), l == null || l.remove(c, p, d);
129
130
  }, x = () => {
130
- V(), l == null || l.remove(o), f(new Error("Cancelled"));
131
+ V(), l == null || l.remove(o), h(new Error("Cancelled"));
131
132
  };
132
133
  return n.on("select", M), n.on("intersectionUpdate", E), n.on("disable", x), m;
133
134
  }
134
135
  function S(o, n, e) {
135
136
  var C;
136
- const { promise: m, reject: f, resolve: y } = B(), l = o.parent;
137
+ const { promise: m, reject: h, resolve: y } = B(), l = o.parent;
137
138
  if (!l)
138
- return f(new Error("No container"));
139
- const i = (C = e == null ? void 0 : e.limit) != null ? C : "none", c = new b(w(p({}, o.style), { dashed: !0 })), h = new b(w(p({}, o.style), { dashed: !0, lengthEnable: !1 })), P = new b(w(p({}, o.style), { dashed: !1, lengthEnable: !1 }));
140
- l.add(c, P, h), n.enable();
139
+ return h(new Error("No container"));
140
+ const a = (C = e == null ? void 0 : e.limit) != null ? C : "none", c = new b(P(w({}, o.style), { dashed: !0 })), d = new b(P(w({}, o.style), { dashed: !0, lengthEnable: !1 })), p = new b(P(w({}, o.style), { dashed: !1, lengthEnable: !1 }));
141
+ l.add(c, p, d), n.enable();
141
142
  const t = [];
142
- let a = new s.Vector3(), L = new s.Vector3();
143
- const d = new s.Plane(), M = () => {
144
- t.push(a.clone()), t.length === 1 ? (i === "xoz" && d.setFromNormalAndCoplanarPoint(new s.Vector3(0, 1, 0), t[0]), i === "none" && d.setFromNormalAndCoplanarPoint(L, t[0])) : t.length === 2 ? (i === "y" && d.setFromCoplanarPoints(t[0], t[1], new s.Vector3(0, 1, 0).add(t[0])), P.setPoints([t[0], t[1]])) : t.length === 3 && (V(), y());
143
+ let i = new s.Vector3(), L = new s.Vector3();
144
+ const f = new s.Plane(), M = () => {
145
+ t.push(i.clone()), t.length === 1 ? (a === "xoz" && f.setFromNormalAndCoplanarPoint(new s.Vector3(0, 1, 0), t[0]), a === "none" && f.setFromNormalAndCoplanarPoint(L, t[0])) : t.length === 2 ? (a === "y" && f.setFromCoplanarPoints(t[0], t[1], new s.Vector3(0, 1, 0).add(t[0])), p.setPoints([t[0], t[1]])) : t.length === 3 && (V(), y());
145
146
  }, E = (r) => {
146
147
  var N, z;
147
148
  if (!(r != null && r.raycaster))
148
149
  return;
149
150
  const R = (N = t.at(-1)) == null ? void 0 : N.clone();
150
151
  if (t.length === 0) {
151
- a = r.point.clone(), L = (z = r.face) == null ? void 0 : z.normal;
152
+ i = r.point.clone(), L = (z = r.face) == null ? void 0 : z.normal;
152
153
  return;
153
154
  }
154
- if (t.length === 1 && i === "y") {
155
- a = r.point, h.setPoints([]), c.setPoints([R, a]);
155
+ if (t.length === 1 && a === "y") {
156
+ i = r.point, d.setPoints([]), c.setPoints([R, i]);
156
157
  return;
157
158
  }
158
- if (t.length === 1 && i === "xoz") {
159
- a = r.raycaster.ray.intersectPlane(d, new s.Vector3()), h.setPoints([a, r.point]), c.setPoints([R, a]);
159
+ if (t.length === 1 && a === "xoz") {
160
+ i = r.raycaster.ray.intersectPlane(f, new s.Vector3()), d.setPoints([i, r.point]), c.setPoints([R, i]);
160
161
  return;
161
162
  }
162
- if (t.length === 1 && i === "none") {
163
- a = r.raycaster.ray.intersectPlane(d, new s.Vector3()), h.setPoints([a, r.point]), c.setPoints([R, a]);
163
+ if (t.length === 1 && a === "none") {
164
+ i = r.raycaster.ray.intersectPlane(f, new s.Vector3()), d.setPoints([i, r.point]), c.setPoints([R, i]);
164
165
  return;
165
166
  }
166
167
  if (t.length === 2) {
167
168
  l.remove(c);
168
- const g = new s.Vector3().crossVectors(t[0].clone().sub(t[1]), d.normal).normalize();
169
- a = new s.Line3(t[1].clone().add(g), t[1].clone().sub(g)).closestPointToPoint(r.point, !1, new s.Vector3());
170
- const v = [t[0], t[1], a], T = D(v, F.modules.five.camera.position);
169
+ const u = new s.Vector3().crossVectors(t[0].clone().sub(t[1]), f.normal).normalize();
170
+ i = new s.Line3(t[1].clone().add(u), t[1].clone().sub(u)).closestPointToPoint(r.point, !1, new s.Vector3());
171
+ const v = [t[0], t[1], i], T = F(v, W.modules.five.camera.position);
171
172
  o.setPoints(T);
172
173
  return;
173
174
  }
174
175
  }, V = () => {
175
- n.off("select", M), n.off("intersectionUpdate", E), n.off("disable", x), n.disable(), l == null || l.remove(c, P, h);
176
+ n.off("select", M), n.off("intersectionUpdate", E), n.off("disable", x), n.disable(), l == null || l.remove(c, p, d);
176
177
  }, x = () => {
177
- V(), l == null || l.remove(o), f(new Error("Cancelled"));
178
+ V(), l == null || l.remove(o), h(new Error("Cancelled"));
178
179
  };
179
180
  return n.on("select", M), n.on("intersectionUpdate", E), n.on("disable", x), m;
180
181
  }
@@ -2,7 +2,7 @@ import type { Five } from '@realsee/five';
2
2
  import type * as THREE from 'three';
3
3
  import type { BaseObjectConfig } from './Objects/Base';
4
4
  import { Subscribe } from '../shared-utils/Subscribe';
5
- import { IObject3D } from '../shared-utils/three/IObject3D';
5
+ import { PointSelector } from '../shared-utils';
6
6
  import { Polyline } from './Objects/Polyline';
7
7
  import { Point } from './Objects/Point';
8
8
  import { Polygon } from './Objects/Polygon';
@@ -39,14 +39,14 @@ export declare class Sculpt extends Subscribe<Event> {
39
39
  static modules: {
40
40
  five: Five;
41
41
  _cursor?: import("./utils/Modules/Cursor").Cursor;
42
- _pointSelector?: import("../shared-utils").PointSelector;
42
+ _pointSelector?: PointSelector;
43
43
  _fiveDomEvents?: import("../shared-utils").FiveDomEvents;
44
44
  _object3DHelper?: import("..").Object3DHelperController;
45
45
  inited: boolean;
46
- readonly cursor: import("./utils/Modules/Cursor").Cursor;
47
- readonly pointSelector: import("../shared-utils").PointSelector;
48
- readonly fiveDomEvents: import("../shared-utils").FiveDomEvents;
49
- readonly object3DHelper: import("..").Object3DHelperController;
46
+ cursor: import("./utils/Modules/Cursor").Cursor;
47
+ pointSelector: PointSelector;
48
+ fiveDomEvents: import("../shared-utils").FiveDomEvents;
49
+ object3DHelper: import("..").Object3DHelperController;
50
50
  init: (five: Five) => void;
51
51
  };
52
52
  get data(): {
@@ -71,7 +71,12 @@ export declare class Sculpt extends Subscribe<Event> {
71
71
  points: [number, number, number][];
72
72
  style: {
73
73
  color: number;
74
- lineColor: number;
74
+ lineColor: number; /**
75
+ * @description: 点击事件
76
+ * @param {MouseEvent} e 鼠标事件
77
+ * @param {BuiltInItem} item 点击的物体
78
+ * 返回 false 来禁用 Five 默认行为
79
+ */
75
80
  lineWidth: number;
76
81
  };
77
82
  id: string;
@@ -80,12 +85,7 @@ export declare class Sculpt extends Subscribe<Event> {
80
85
  readonly points: [number, number, number][];
81
86
  readonly heightPoint: [number, number, number];
82
87
  readonly style: {
83
- readonly color: number; /**
84
- * @description: 点击事件
85
- * @param {MouseEvent} e 鼠标事件
86
- * @param {BuiltInItem} item 点击的物体
87
- * 返回 false 来禁用 Five 默认行为
88
- */
88
+ readonly color: number;
89
89
  readonly lineWidth: number;
90
90
  readonly lineColor: number;
91
91
  };
@@ -111,10 +111,13 @@ export declare class Sculpt extends Subscribe<Event> {
111
111
  type: string;
112
112
  })[];
113
113
  };
114
- group: IObject3D;
115
114
  theme: Theme;
116
115
  get items(): BuiltInItem[];
116
+ get pointSelector(): PointSelector;
117
+ set pointSelector(pointSelector: PointSelector);
118
+ private _pointSelector?;
117
119
  private five;
120
+ private group;
118
121
  private creatingItem;
119
122
  constructor(five: Five, theme?: Theme);
120
123
  /**
@@ -1,34 +1,34 @@
1
- var L = Object.defineProperty, B = Object.defineProperties;
2
- var U = Object.getOwnPropertyDescriptors;
1
+ var _ = Object.defineProperty, D = Object.defineProperties;
2
+ var L = Object.getOwnPropertyDescriptors;
3
3
  var y = Object.getOwnPropertySymbols;
4
- var _ = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
5
- var g = (c, n, e) => n in c ? L(c, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[n] = e, a = (c, n) => {
6
- for (var e in n || (n = {}))
7
- _.call(n, e) && g(c, e, n[e]);
4
+ var B = Object.prototype.hasOwnProperty, U = Object.prototype.propertyIsEnumerable;
5
+ var g = (c, o, e) => o in c ? _(c, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[o] = e, p = (c, o) => {
6
+ for (var e in o || (o = {}))
7
+ B.call(o, e) && g(c, e, o[e]);
8
8
  if (y)
9
- for (var e of y(n))
10
- x.call(n, e) && g(c, e, n[e]);
9
+ for (var e of y(o))
10
+ U.call(o, e) && g(c, e, o[e]);
11
11
  return c;
12
- }, f = (c, n) => B(c, U(n));
13
- var h = (c, n, e) => (g(c, typeof n != "symbol" ? n + "" : n, e), e);
14
- var m = (c, n, e) => new Promise((t, r) => {
15
- var l = (s) => {
12
+ }, f = (c, o) => D(c, L(o));
13
+ var h = (c, o, e) => (g(c, typeof o != "symbol" ? o + "" : o, e), e);
14
+ var l = (c, o, e) => new Promise((t, r) => {
15
+ var m = (s) => {
16
16
  try {
17
- o(e.next(s));
17
+ n(e.next(s));
18
18
  } catch (d) {
19
19
  r(d);
20
20
  }
21
21
  }, i = (s) => {
22
22
  try {
23
- o(e.throw(s));
23
+ n(e.throw(s));
24
24
  } catch (d) {
25
25
  r(d);
26
26
  }
27
- }, o = (s) => s.done ? t(s.value) : Promise.resolve(s.value).then(l, i);
28
- o((e = e.apply(c, n)).next());
27
+ }, n = (s) => s.done ? t(s.value) : Promise.resolve(s.value).then(m, i);
28
+ n((e = e.apply(c, o)).next());
29
29
  });
30
- import { globalModules as E } from "./utils/Modules/Global.js";
31
- import { Subscribe as S } from "../shared-utils/Subscribe.js";
30
+ import { globalModules as x } from "./utils/Modules/Global.js";
31
+ import { Subscribe as E } from "../shared-utils/Subscribe.js";
32
32
  import { IObject3D as z } from "../shared-utils/three/IObject3D.js";
33
33
  import "../shared-utils/tag.js";
34
34
  import "three";
@@ -43,24 +43,25 @@ import "../vendor/animejs/lib/anime.es.js";
43
43
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
44
44
  import "../shared-utils/five/FivePuppet.js";
45
45
  import { recurveFindObject as H } from "../shared-utils/three/recurveFindObject.js";
46
- import { Polyline as I } from "./Objects/Polyline/index.js";
47
- import { Point as b } from "./Objects/Point/index.js";
48
- import { Polygon as w } from "./Objects/Polygon/index.js";
49
- import { Prism as j } from "./Objects/Prism/index.js";
50
- import { Rectangle as O } from "./Objects/Rectangle/index.js";
51
- import { Circle as P } from "./Objects/Circle/index.js";
52
- import { Cylinder as v } from "./Objects/Cylinder/index.js";
53
- import { Box as C } from "./Objects/Box/index.js";
46
+ import { Polyline as S } from "./Objects/Polyline/index.js";
47
+ import { Point as I } from "./Objects/Point/index.js";
48
+ import { Polygon as b } from "./Objects/Polygon/index.js";
49
+ import { Prism as w } from "./Objects/Prism/index.js";
50
+ import { Rectangle as j } from "./Objects/Rectangle/index.js";
51
+ import { Circle as O } from "./Objects/Circle/index.js";
52
+ import { Cylinder as P } from "./Objects/Cylinder/index.js";
53
+ import { Box as v } from "./Objects/Box/index.js";
54
54
  import { forReverseEach as M } from "../shared-utils/forReverseEach.js";
55
- import { Line as R } from "./Objects/Line/index.js";
56
- import { hotkeys as D } from "../vendor/hotkeys-js/dist/hotkeys.esm.js";
55
+ import { Line as C } from "./Objects/Line/index.js";
56
+ import { hotkeys as R } from "../vendor/hotkeys-js/dist/hotkeys.esm.js";
57
57
  import { withResolvers as G } from "../shared-utils/promise/withResolvers.js";
58
- const u = class extends S {
58
+ const u = class extends E {
59
59
  constructor(e, t) {
60
60
  super();
61
- h(this, "group");
62
61
  h(this, "theme");
62
+ h(this, "_pointSelector");
63
63
  h(this, "five");
64
+ h(this, "group");
64
65
  h(this, "creatingItem", null);
65
66
  /**
66
67
  * @description: 撤销
@@ -76,10 +77,10 @@ const u = class extends S {
76
77
  var e;
77
78
  console.log("redo"), (e = this.creatingItem) == null || e.redo(), this.five.needsRender = !0;
78
79
  });
79
- 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: l }) => {
80
- var o;
81
- const i = H((o = r == null ? void 0 : r[0]) == null ? void 0 : o.object, (s) => s.isSculptObject);
82
- return i && !i.editing ? this.emit("click", l, i) : !1;
80
+ this.five = e, this.theme = t, this.group = new z(), this.group.name = "Sculpt", e.scene.add(this.group), u.modules.init(e), R("ctrl+z, command+z", this.undo), R("ctrl+shift+z, command+shift+z", this.redo), u.modules.fiveDomEvents.addEventListener(this.group, "click", ({ intersects: r, origDomEvent: m }) => {
81
+ var n;
82
+ const i = H((n = r == null ? void 0 : r[0]) == null ? void 0 : n.object, (s) => s.isSculptObject);
83
+ return i && !i.editing ? this.emit("click", m, i) : !1;
83
84
  }), window.__SCULPT_DEBUG__ = this, window.__SCULPT_MODULES_DEBUG__ = u.modules;
84
85
  }
85
86
  get data() {
@@ -96,18 +97,25 @@ const u = class extends S {
96
97
  get items() {
97
98
  return this.group.children;
98
99
  }
100
+ get pointSelector() {
101
+ var e;
102
+ return (e = this._pointSelector) != null ? e : u.modules.pointSelector;
103
+ }
104
+ set pointSelector(e) {
105
+ this._pointSelector = e;
106
+ }
99
107
  /**
100
108
  * @description: 加载数据 展示
101
109
  */
102
110
  load(e, t) {
103
- var l;
111
+ var m;
104
112
  this.clear();
105
- const r = (l = e == null ? void 0 : e.items) == null ? void 0 : l.map((i) => {
113
+ const r = (m = e == null ? void 0 : e.items) == null ? void 0 : m.map((i) => {
106
114
  var s;
107
- const o = f(a({}, i), {
108
- style: a(a({}, (s = this.theme) == null ? void 0 : s[i.type.toLowerCase()]), i.style)
115
+ const n = f(p({}, i), {
116
+ style: p(p({}, (s = this.theme) == null ? void 0 : s[i.type.toLowerCase()]), i.style)
109
117
  });
110
- return i.type === "Point" ? new b(o, t) : i.type === "line" ? new R(o, t) : i.type === "Polyline" ? new I(o, t) : i.type === "Polygon" ? new w(o, t) : i.type === "Prism" ? new j(o, t) : i.type === "Rectangle" ? new O(o, t) : i.type === "Circle" ? new P(o, t) : i.type === "Cylinder" ? new v(o, t) : i.type === "Box" ? new C(o, t) : null;
118
+ return i.type === "Point" ? new I(n, t) : i.type === "line" ? new C(n, t) : i.type === "Polyline" ? new S(n, t) : i.type === "Polygon" ? new b(n, t) : i.type === "Prism" ? new w(n, t) : i.type === "Rectangle" ? new j(n, t) : i.type === "Circle" ? new O(n, t) : i.type === "Cylinder" ? new P(n, t) : i.type === "Box" ? new v(n, t) : null;
111
119
  });
112
120
  this.group.add(...r), this.five.needsRender = !0;
113
121
  }
@@ -121,34 +129,34 @@ const u = class extends S {
121
129
  * @description: 放置物体
122
130
  */
123
131
  putObject(e) {
124
- var l;
132
+ var m;
125
133
  this.group.add(e);
126
134
  const t = u.modules.object3DHelper, r = t.addObject3DHelper(e);
127
- return (l = r == null ? void 0 : r.moveController) == null || l.moveByMouse(), t;
135
+ return (m = r == null ? void 0 : r.moveController) == null || m.moveByMouse(), t;
128
136
  }
129
137
  /**
130
138
  * @description: 开始绘制点
131
139
  */
132
140
  createPoint(...e) {
133
- return m(this, null, function* () {
141
+ return l(this, null, function* () {
134
142
  var t, r;
135
- return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.point, e[0]), this.createItem(b, ...e);
143
+ return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.point, { pointSelector: this.pointSelector }, e[0]), this.createItem(I, ...e);
136
144
  });
137
145
  }
138
146
  /**
139
147
  * @description: 开始绘制线段
140
148
  */
141
149
  createLine(...e) {
142
- return m(this, null, function* () {
150
+ return l(this, null, function* () {
143
151
  var t, r;
144
- return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.line, e[0]), this.createItem(R, ...e);
152
+ return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.line, { pointSelector: this.pointSelector }, e[0]), this.createItem(C, ...e);
145
153
  });
146
154
  }
147
155
  /**
148
156
  * @deprecated use createLine instead
149
157
  */
150
158
  createline(...e) {
151
- return m(this, null, function* () {
159
+ return l(this, null, function* () {
152
160
  this.createLine(...e);
153
161
  });
154
162
  }
@@ -156,63 +164,63 @@ const u = class extends S {
156
164
  * @description: 开始绘制空间折线
157
165
  */
158
166
  createPolyline(...e) {
159
- return m(this, null, function* () {
167
+ return l(this, null, function* () {
160
168
  var t, r;
161
- return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.polyline, e[0]), this.createItem(I, ...e);
169
+ return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.polyline, { pointSelector: this.pointSelector }, e[0]), this.createItem(S, ...e);
162
170
  });
163
171
  }
164
172
  /**
165
173
  * @description: 开始绘制平面多边形
166
174
  */
167
175
  createPolygon(...e) {
168
- return m(this, null, function* () {
176
+ return l(this, null, function* () {
169
177
  var t, r;
170
- return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.polygon, e[0]), this.createItem(w, ...e);
178
+ return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.polygon, { pointSelector: this.pointSelector }, e[0]), this.createItem(b, ...e);
171
179
  });
172
180
  }
173
181
  /**
174
182
  * @description: 开始绘制多棱柱
175
183
  */
176
184
  createPrism(...e) {
177
- return m(this, null, function* () {
185
+ return l(this, null, function* () {
178
186
  var t, r;
179
- return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.prism, e[0]), this.createItem(j, ...e);
187
+ return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.prism, { pointSelector: this.pointSelector }, e[0]), this.createItem(w, ...e);
180
188
  });
181
189
  }
182
190
  /**
183
191
  * @description: 开始绘制矩形
184
192
  */
185
193
  createRectangle(...e) {
186
- return m(this, null, function* () {
194
+ return l(this, null, function* () {
187
195
  var t, r;
188
- return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.rectangle, e[0]), this.createItem(O, ...e);
196
+ return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.rectangle, { pointSelector: this.pointSelector }, e[0]), this.createItem(j, ...e);
189
197
  });
190
198
  }
191
199
  /**
192
200
  * @description: 开始绘制圆形
193
201
  */
194
202
  createCircle(...e) {
195
- return m(this, null, function* () {
203
+ return l(this, null, function* () {
196
204
  var t, r;
197
- return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.circle, e[0]), this.createItem(P, ...e);
205
+ return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.circle, { pointSelector: this.pointSelector }, e[0]), this.createItem(O, ...e);
198
206
  });
199
207
  }
200
208
  /**
201
209
  * @description: 开始绘制圆柱
202
210
  */
203
211
  createCylinder(...e) {
204
- return m(this, null, function* () {
212
+ return l(this, null, function* () {
205
213
  var t, r;
206
- return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.cylinder, e[0]), this.createItem(v, ...e);
214
+ return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.cylinder, { pointSelector: this.pointSelector }, e[0]), this.createItem(P, ...e);
207
215
  });
208
216
  }
209
217
  /**
210
218
  * @description: 开始绘制 Box
211
219
  */
212
220
  createBox(...e) {
213
- return m(this, null, function* () {
221
+ return l(this, null, function* () {
214
222
  var t, r;
215
- return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.box, e[0]), this.createItem(C, ...e);
223
+ return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.box, { pointSelector: this.pointSelector }, e[0]), this.createItem(v, ...e);
216
224
  });
217
225
  }
218
226
  canUndo() {
@@ -230,21 +238,21 @@ const u = class extends S {
230
238
  M(this.items, (e) => e.delete()), this.five.needsRender = !0;
231
239
  }
232
240
  createItem(e, ...t) {
233
- return m(this, null, function* () {
241
+ return l(this, null, function* () {
234
242
  this.creatingItem && (this.creatingItem.stopCreating(), this.creatingItem = null);
235
243
  const r = new e();
236
244
  this.creatingItem = r, this.group.add(r);
237
- const { promise: l, resolve: i, reject: o } = G();
245
+ const { promise: m, resolve: i, reject: n } = G();
238
246
  return yield r.create(...t).then((...s) => (this.creatingItem = null, i(r), s)).catch((s) => {
239
- o(s), this.group.remove(r);
240
- }), l;
247
+ n(s), this.group.remove(r);
248
+ }), m;
241
249
  });
242
250
  }
243
251
  };
244
- let p = u;
245
- h(p, "modules", E);
246
- const ge = (c) => new p(c);
252
+ let a = u;
253
+ h(a, "modules", x);
254
+ const ge = (c) => new a(c);
247
255
  export {
248
- p as Sculpt,
256
+ a as Sculpt,
249
257
  ge as SculptPlugin
250
258
  };
@@ -1,4 +1,5 @@
1
1
  import type * as THREE from 'three';
2
+ import type { PointSelector } from '../../shared-utils';
2
3
  export type Color = THREE.Color | string | number;
3
4
  export declare const DEFAULT_COLOR = 16777215;
4
5
  export declare const DEFAULT_LINE_COLOR = 16777215;
@@ -79,4 +80,10 @@ export type DisplayInfoConfig = {
79
80
  */
80
81
  tip: string;
81
82
  };
83
+ export type CreateUtils = {
84
+ /**
85
+ * @description 选点工具
86
+ */
87
+ pointSelector: PointSelector;
88
+ };
82
89
  export type LineStyle = LineColorStyle & LineOpacityStyle & LineWidthStyle;
@@ -11,9 +11,13 @@ declare class GlobalModules {
11
11
  _object3DHelper?: Object3DHelperController;
12
12
  inited: boolean;
13
13
  get cursor(): Cursor;
14
+ set cursor(value: Cursor);
14
15
  get pointSelector(): PointSelector;
16
+ set pointSelector(value: PointSelector);
15
17
  get fiveDomEvents(): FiveDomEvents;
18
+ set fiveDomEvents(value: FiveDomEvents);
16
19
  get object3DHelper(): Object3DHelperController;
20
+ set object3DHelper(value: Object3DHelperController);
17
21
  init: (five: Five) => void;
18
22
  }
19
23
  declare const globalModules: GlobalModules;