@realsee/dnalogel 3.53.4 → 3.53.5-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (483) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +116 -0
  3. package/dist/Sculpt/Meshes/Circle.d.ts +3 -1
  4. package/dist/Sculpt/Meshes/Cylinder.d.ts +4 -2
  5. package/dist/Sculpt/Objects/Base/Editor.d.ts +5 -0
  6. package/dist/Sculpt/Objects/Base/index.d.ts +1 -0
  7. package/dist/Sculpt/Objects/Box/index.d.ts +1 -0
  8. package/dist/Sculpt/Objects/Circle/index.d.ts +1 -0
  9. package/dist/Sculpt/Objects/Cylinder/index.d.ts +1 -0
  10. package/dist/Sculpt/Objects/Line/index.d.ts +1 -0
  11. package/dist/Sculpt/Objects/Point/index.d.ts +1 -0
  12. package/dist/Sculpt/Objects/Polygon/index.d.ts +1 -0
  13. package/dist/Sculpt/Objects/Polyline/index.d.ts +1 -0
  14. package/dist/Sculpt/Objects/Prism/index.d.ts +1 -0
  15. package/dist/Sculpt/Objects/Rectangle/index.d.ts +1 -0
  16. package/dist/index.cjs.js +25 -25
  17. package/dist/index.js +209 -162
  18. package/dist/index.umd.js +28 -28
  19. package/dist/shared-utils/Object3DHelper/typings/Hooks.d.ts +1 -1
  20. package/docs/.nojekyll +1 -0
  21. package/docs/assets/custom.css +0 -0
  22. package/docs/assets/highlight.css +127 -0
  23. package/docs/assets/icons.js +18 -0
  24. package/docs/assets/icons.svg +1 -0
  25. package/docs/assets/main.js +60 -0
  26. package/docs/assets/navigation.js +1 -0
  27. package/docs/assets/search.js +1 -0
  28. package/docs/assets/style.css +1493 -0
  29. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +61 -0
  30. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +71 -0
  31. package/docs/classes/CSS3DRender.html +100 -0
  32. package/docs/classes/GuideLineItem.GuideLineItem.html +21 -0
  33. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +71 -0
  34. package/docs/classes/ModelMakerPluginInstance.html +57 -0
  35. package/docs/classes/ModelRoomLabelController.html +19 -0
  36. package/docs/classes/MoveController.html +47 -0
  37. package/docs/classes/Object3DHelperController.html +47 -0
  38. package/docs/classes/PaintBrush.html +15 -0
  39. package/docs/classes/PanoMeasurePluginLine.html +24 -0
  40. package/docs/classes/PanoMeasurePluginModel.html +23 -0
  41. package/docs/classes/PanoMeasurePluginPoint.html +7 -0
  42. package/docs/classes/PanoMeasurePluginPolyline.html +27 -0
  43. package/docs/classes/PanoTagPluginController.html +104 -0
  44. package/docs/classes/Sculpt.html +70 -0
  45. package/docs/classes/Util.BetterTween.html +6 -0
  46. package/docs/classes/Util.FiveDomEvents.html +12 -0
  47. package/docs/classes/Util.FivePuppet.html +20 -0
  48. package/docs/classes/Util.Interval.html +11 -0
  49. package/docs/classes/Util.LightTag.html +47 -0
  50. package/docs/classes/Util.LineSegments.html +4 -0
  51. package/docs/classes/Util.Magnifier.html +22 -0
  52. package/docs/classes/Util.Object3D.html +8 -0
  53. package/docs/classes/Util.PointHelper.html +10 -0
  54. package/docs/classes/Util.PointSelector.html +50 -0
  55. package/docs/classes/Util.PointSelectorHelper.html +14 -0
  56. package/docs/classes/Util.Rectangle.html +12 -0
  57. package/docs/classes/Util.sculpt.BaseEditor.html +17 -0
  58. package/docs/classes/Util.sculpt.BoxMesh.html +34 -0
  59. package/docs/classes/Util.sculpt.BoxMeshEditor.html +17 -0
  60. package/docs/classes/Util.sculpt.CircleMesh.html +26 -0
  61. package/docs/classes/Util.sculpt.CircleMeshEditor.html +17 -0
  62. package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +26 -0
  63. package/docs/classes/Util.sculpt.CylinderMesh.html +25 -0
  64. package/docs/classes/Util.sculpt.CylinderMeshEditor.html +17 -0
  65. package/docs/classes/Util.sculpt.LineMesh.html +29 -0
  66. package/docs/classes/Util.sculpt.PointMesh.html +20 -0
  67. package/docs/classes/Util.sculpt.PolygonMesh.html +34 -0
  68. package/docs/classes/Util.sculpt.PrismMesh.html +34 -0
  69. package/docs/classes/Util.sculpt.PrismMeshEditor.html +17 -0
  70. package/docs/classes/Util.sculpt.RectangleMesh.html +35 -0
  71. package/docs/classes/Util.sculpt.RectangleMeshEditor.html +17 -0
  72. package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +38 -0
  73. package/docs/classes/WalkController.html +44 -0
  74. package/docs/enums/CameraMovementEffect.html +4 -0
  75. package/docs/enums/ContentType.html +34 -0
  76. package/docs/enums/DIRECTION.html +5 -0
  77. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +5 -0
  78. package/docs/enums/DimensionType.html +4 -0
  79. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +4 -0
  80. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +5 -0
  81. package/docs/enums/PaintBrushTypeEnum.html +4 -0
  82. package/docs/enums/PointType.html +4 -0
  83. package/docs/enums/Rotation.html +5 -0
  84. package/docs/functions/AreaMakerPlugin.html +1 -0
  85. package/docs/functions/CSS3DRenderPlugin.html +1 -0
  86. package/docs/functions/CameraMovementPlugin.html +2 -0
  87. package/docs/functions/CruisePlugin.html +1 -0
  88. package/docs/functions/CurrentPanoImagePlugin.html +1 -0
  89. package/docs/functions/GuideLinePlugin.html +1 -0
  90. package/docs/functions/ItemLabelPlugin.html +1 -0
  91. package/docs/functions/MapviewFloorplanPlugin.html +1 -0
  92. package/docs/functions/ModelChassisCompassPlugin.html +2 -0
  93. package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -0
  94. package/docs/functions/ModelFloorplanPlugin.html +1 -0
  95. package/docs/functions/ModelItemLabelPlugin.html +1 -0
  96. package/docs/functions/ModelMakerPlugin.html +1 -0
  97. package/docs/functions/ModelRoomLabelPlugin.html +1 -0
  98. package/docs/functions/ModelTVVideoPlugin.html +1 -0
  99. package/docs/functions/ModelViewPlugin.html +2 -0
  100. package/docs/functions/MovePlugin.html +1 -0
  101. package/docs/functions/Object3DHelperPlugin.html +1 -0
  102. package/docs/functions/PanoCompassPlugin.html +1 -0
  103. package/docs/functions/PanoCursorRaycasterPlugin.html +2 -0
  104. package/docs/functions/PanoDoorLabelPlugin.html +1 -0
  105. package/docs/functions/PanoFloorplanRadarPlugin.html +1 -0
  106. package/docs/functions/PanoMeasurePlugin.html +1 -0
  107. package/docs/functions/PanoRulerPlugin.html +2 -0
  108. package/docs/functions/PanoRulerProPlugin.html +2 -0
  109. package/docs/functions/PanoSpatialTagPlugin.html +2 -0
  110. package/docs/functions/PanoTagPlugin.html +1 -0
  111. package/docs/functions/PanoVideoPlugin.html +10 -0
  112. package/docs/functions/PipelinePlugin.html +1 -0
  113. package/docs/functions/SculptPlugin.html +2 -0
  114. package/docs/functions/TopviewFloorplanPlugin.html +1 -0
  115. package/docs/functions/Util.absoluteUrl.html +2 -0
  116. package/docs/functions/Util.awaitNextFrame.html +1 -0
  117. package/docs/functions/Util.blink.html +6 -0
  118. package/docs/functions/Util.bounding.html +1 -0
  119. package/docs/functions/Util.boundingBox.html +1 -0
  120. package/docs/functions/Util.boundingSphere.html +1 -0
  121. package/docs/functions/Util.boxVertex.html +7 -0
  122. package/docs/functions/Util.boxVertexes.html +1 -0
  123. package/docs/functions/Util.checkFiveModelLoaded.html +2 -0
  124. package/docs/functions/Util.convexHull.html +2 -0
  125. package/docs/functions/Util.equal.html +5 -0
  126. package/docs/functions/Util.fiveModelIsLoaded.html +2 -0
  127. package/docs/functions/Util.getCoordsFromClient.html +1 -0
  128. package/docs/functions/Util.getCoordsFromElement.html +1 -0
  129. package/docs/functions/Util.getFrameTime.html +3 -0
  130. package/docs/functions/Util.inside.html +1 -0
  131. package/docs/functions/Util.isAbsoluteURL.html +1 -0
  132. package/docs/functions/Util.isModelLike.html +1 -0
  133. package/docs/functions/Util.isNil.html +2 -0
  134. package/docs/functions/Util.isPanoramaLike.html +1 -0
  135. package/docs/functions/Util.lookObject.html +5 -0
  136. package/docs/functions/Util.lookPoint.html +5 -0
  137. package/docs/functions/Util.nextFrame.html +1 -0
  138. package/docs/functions/Util.notNil.html +2 -0
  139. package/docs/functions/Util.reblink.html +4 -0
  140. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -0
  141. package/docs/functions/Util.sculpt.createBox.html +1 -0
  142. package/docs/functions/Util.sculpt.createCircle.html +1 -0
  143. package/docs/functions/Util.sculpt.createCylinder.html +1 -0
  144. package/docs/functions/Util.sculpt.createLine.html +2 -0
  145. package/docs/functions/Util.sculpt.createPoint.html +1 -0
  146. package/docs/functions/Util.sculpt.createPolygon.html +1 -0
  147. package/docs/functions/Util.sculpt.createPrism.html +1 -0
  148. package/docs/functions/Util.sculpt.createRectangle.html +2 -0
  149. package/docs/functions/Util.tag.html +1 -0
  150. package/docs/functions/Util.tweenProgress.html +1 -0
  151. package/docs/functions/Util.uuid.html +2 -0
  152. package/docs/functions/Util.waitFiveModelLoaded.html +2 -0
  153. package/docs/functions/Util.worldBounding.html +1 -0
  154. package/docs/functions/Util.worldBoundingBox.html +1 -0
  155. package/docs/functions/Util.worldBoundingSphere.html +1 -0
  156. package/docs/functions/createPolyline.html +2 -0
  157. package/docs/functions/pluginFlag.html +1 -0
  158. package/docs/hierarchy.html +1 -0
  159. package/docs/index.html +70 -0
  160. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +4 -0
  161. package/docs/interfaces/AreaMakerPluginType.Config.html +8 -0
  162. package/docs/interfaces/AreaMakerPluginType.EventMap.html +25 -0
  163. package/docs/interfaces/AreaMakerPluginType.Params.html +4 -0
  164. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +20 -0
  165. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +13 -0
  166. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +9 -0
  167. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -0
  168. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +3 -0
  169. package/docs/interfaces/AreaMakerPluginType.State.html +8 -0
  170. package/docs/interfaces/CSS3DRenderPluginEventMap.html +9 -0
  171. package/docs/interfaces/CSS3DRenderPluginState.html +7 -0
  172. package/docs/interfaces/CameraMovementPluginExportType.html +11 -0
  173. package/docs/interfaces/ContentTypeMapInterface.html +73 -0
  174. package/docs/interfaces/CruisePluginTypes.Config.html +7 -0
  175. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +8 -0
  176. package/docs/interfaces/CruisePluginTypes.EventMap.html +33 -0
  177. package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +6 -0
  178. package/docs/interfaces/CruisePluginTypes.MoveAction.html +16 -0
  179. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +19 -0
  180. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +20 -0
  181. package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -0
  182. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -0
  183. package/docs/interfaces/CruisePluginTypes.PluginState.html +15 -0
  184. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +13 -0
  185. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +15 -0
  186. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +4 -0
  187. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +3 -0
  188. package/docs/interfaces/CurrentPanoImagePluginType.State.html +7 -0
  189. package/docs/interfaces/FloorplanBounding.html +9 -0
  190. package/docs/interfaces/FloorplanData.html +7 -0
  191. package/docs/interfaces/FloorplanEntrance.html +14 -0
  192. package/docs/interfaces/FloorplanExtraObject.html +9 -0
  193. package/docs/interfaces/FloorplanExtraObject3D.html +5 -0
  194. package/docs/interfaces/FloorplanFloorData.html +6 -0
  195. package/docs/interfaces/FloorplanImagePosition.html +4 -0
  196. package/docs/interfaces/FloorplanObserver.html +8 -0
  197. package/docs/interfaces/FloorplanOutlineItem.html +6 -0
  198. package/docs/interfaces/FloorplanPosition.html +4 -0
  199. package/docs/interfaces/FloorplanRoomItem.html +23 -0
  200. package/docs/interfaces/FloorplanRoomLabelItem.html +6 -0
  201. package/docs/interfaces/FloorplanServerBounding.html +9 -0
  202. package/docs/interfaces/FloorplanServerComputedData.html +6 -0
  203. package/docs/interfaces/FloorplanServerData.html +4 -0
  204. package/docs/interfaces/FloorplanServerDoorItem.html +6 -0
  205. package/docs/interfaces/FloorplanServerDoorPosition.html +4 -0
  206. package/docs/interfaces/FloorplanServerEntrance.html +14 -0
  207. package/docs/interfaces/FloorplanServerFloorData.html +6 -0
  208. package/docs/interfaces/FloorplanServerImagePosition.html +4 -0
  209. package/docs/interfaces/FloorplanServerObserver.html +8 -0
  210. package/docs/interfaces/FloorplanServerOutlineItem.html +6 -0
  211. package/docs/interfaces/FloorplanServerPosition.html +4 -0
  212. package/docs/interfaces/FloorplanServerRoomItem.html +26 -0
  213. package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -0
  214. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +4 -0
  215. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -0
  216. package/docs/interfaces/GuideLinePluginType.EventMap.html +13 -0
  217. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +8 -0
  218. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -0
  219. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +32 -0
  220. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +4 -0
  221. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +5 -0
  222. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +42 -0
  223. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +3 -0
  224. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +57 -0
  225. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -0
  226. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -0
  227. package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -0
  228. package/docs/interfaces/GuideLinePluginType.Route.html +6 -0
  229. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +4 -0
  230. package/docs/interfaces/HelperOffset.html +4 -0
  231. package/docs/interfaces/ImagePlaneGroup.html +3 -0
  232. package/docs/interfaces/ItemLabelPluginData.html +2 -0
  233. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +7 -0
  234. package/docs/interfaces/ItemLabelPluginParametersType.html +5 -0
  235. package/docs/interfaces/MinMax.html +3 -0
  236. package/docs/interfaces/ModelChassisCompassPluginData.html +3 -0
  237. package/docs/interfaces/ModelChassisCompassPluginExportType.html +4 -0
  238. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -0
  239. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +4 -0
  240. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +4 -0
  241. package/docs/interfaces/ModelItemLabelPluginData.html +2 -0
  242. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +7 -0
  243. package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -0
  244. package/docs/interfaces/ModelMakerPluginType.EventMap.html +18 -0
  245. package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +5 -0
  246. package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +12 -0
  247. package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -0
  248. package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +14 -0
  249. package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +10 -0
  250. package/docs/interfaces/ModelMakerPluginType.State.html +8 -0
  251. package/docs/interfaces/ModelRoomLabelPluginData.html +2 -0
  252. package/docs/interfaces/ModelTVVideoPluginData.html +5 -0
  253. package/docs/interfaces/ModelTVVideoPluginExportType.html +4 -0
  254. package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -0
  255. package/docs/interfaces/ModelViewPluginExportType.html +7 -0
  256. package/docs/interfaces/Object3DHelperState.html +4 -0
  257. package/docs/interfaces/ObjectHelperControllers.html +5 -0
  258. package/docs/interfaces/PaintBrushAction.html +14 -0
  259. package/docs/interfaces/PaintBrushConfigs.html +8 -0
  260. package/docs/interfaces/PaintBrushState.html +6 -0
  261. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +16 -0
  262. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -0
  263. package/docs/interfaces/PanoMeasureParameterType.html +20 -0
  264. package/docs/interfaces/PanoMeasurePluginLineJson.html +4 -0
  265. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +4 -0
  266. package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -0
  267. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -0
  268. package/docs/interfaces/PanoRulerPluginExportType.html +6 -0
  269. package/docs/interfaces/PanoRulerPluginOptions.html +3 -0
  270. package/docs/interfaces/PanoRulerPluginParameterType.html +4 -0
  271. package/docs/interfaces/PanoRulerProPluginExportType.html +5 -0
  272. package/docs/interfaces/PanoRulerProPluginOptions.html +3 -0
  273. package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -0
  274. package/docs/interfaces/PanoRulerProPluginState.html +4 -0
  275. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -0
  276. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -0
  277. package/docs/interfaces/PanoSpatialTagPluginData.html +7 -0
  278. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +6 -0
  279. package/docs/interfaces/PanoSpatialTagPluginExportType.html +9 -0
  280. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +6 -0
  281. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +9 -0
  282. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +7 -0
  283. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +6 -0
  284. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -0
  285. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -0
  286. package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -0
  287. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +15 -0
  288. package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -0
  289. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +14 -0
  290. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +13 -0
  291. package/docs/interfaces/PluginEventMap.html +15 -0
  292. package/docs/interfaces/Point.html +4 -0
  293. package/docs/interfaces/Room.html +5 -0
  294. package/docs/interfaces/RoomInfo.html +3 -0
  295. package/docs/interfaces/RoomLabel.html +16 -0
  296. package/docs/interfaces/RoomRules.html +1 -0
  297. package/docs/interfaces/Rooms.html +1 -0
  298. package/docs/interfaces/Scissor.html +13 -0
  299. package/docs/interfaces/State.html +7 -0
  300. package/docs/interfaces/TagCacheInterface.html +9 -0
  301. package/docs/interfaces/TagConfig.html +111 -0
  302. package/docs/interfaces/TagGLTFObjectGroup.html +3 -0
  303. package/docs/interfaces/TagIconUrl.html +14 -0
  304. package/docs/interfaces/TagObjectGroup.html +3 -0
  305. package/docs/interfaces/TagStyle.html +5 -0
  306. package/docs/interfaces/Tags.html +8 -0
  307. package/docs/interfaces/TemporaryState.html +2 -0
  308. package/docs/interfaces/Util.AnimeInstance.html +3 -0
  309. package/docs/interfaces/Util.BlinkAnimeOptions.html +7 -0
  310. package/docs/interfaces/Util.EventHandlerConfig.html +16 -0
  311. package/docs/interfaces/Util.FiveDomEvent.html +7 -0
  312. package/docs/interfaces/Util.FiveDomEventMap.html +20 -0
  313. package/docs/interfaces/Util.MagnifierParameter.html +11 -0
  314. package/docs/interfaces/Util.MouseGroupParameter.html +4 -0
  315. package/docs/interfaces/Util.PointIntersection.html +9 -0
  316. package/docs/interfaces/Util.PointSelectorHelperConfig.html +5 -0
  317. package/docs/interfaces/Util.ReBlinkAnimeOptions.html +8 -0
  318. package/docs/modules/AreaMakerPluginType.html +17 -0
  319. package/docs/modules/CruisePluginTypes.html +14 -0
  320. package/docs/modules/CurrentPanoImagePluginType.html +6 -0
  321. package/docs/modules/GuideLineItem.html +2 -0
  322. package/docs/modules/GuideLineModeItem.html +3 -0
  323. package/docs/modules/GuideLinePluginType.html +24 -0
  324. package/docs/modules/ModelMakerPluginType.html +11 -0
  325. package/docs/modules/PanoVideoPluginType.html +8 -0
  326. package/docs/modules/SculptData.html +9 -0
  327. package/docs/modules/Util.html +61 -0
  328. package/docs/modules/Util.sculpt.html +25 -0
  329. package/docs/modules.html +266 -0
  330. package/docs/types/AddObject3DHelperConfig.html +19 -0
  331. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +7 -0
  332. package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -0
  333. package/docs/types/AreaMakerPluginType.PluginData.html +2 -0
  334. package/docs/types/AreaMakerPluginType.ServerData.html +2 -0
  335. package/docs/types/ArrayPosition.html +1 -0
  336. package/docs/types/AudioAppearance.html +1 -0
  337. package/docs/types/CSS3DRenderExportType.html +1 -0
  338. package/docs/types/CSS3DRenderPluginExportType.html +1 -0
  339. package/docs/types/CSS3DRenderPluginParameterType.html +1 -0
  340. package/docs/types/ClassFunctionParameters.html +1 -0
  341. package/docs/types/Color.html +1 -0
  342. package/docs/types/ContentTypeConfigKey.html +1 -0
  343. package/docs/types/ContentTypeConfigKeySplit.html +1 -0
  344. package/docs/types/ContentTypeMap.html +1 -0
  345. package/docs/types/Create3DDomContainerReturnType.html +1 -0
  346. package/docs/types/Create3DElementReturnType.html +1 -0
  347. package/docs/types/CruisePluginExportType.html +1 -0
  348. package/docs/types/CruisePluginTypes.CruiseData.html +5 -0
  349. package/docs/types/CruisePluginTypes.MoveEffect.html +1 -0
  350. package/docs/types/CurrentPanoImagePluginExportType.html +1 -0
  351. package/docs/types/DeprecatedMediaPlaneProperty.html +3 -0
  352. package/docs/types/DeprecatedTagProperty.html +3 -0
  353. package/docs/types/Direction-1.html +1 -0
  354. package/docs/types/Direction4.html +1 -0
  355. package/docs/types/ElementRenderer.html +2 -0
  356. package/docs/types/FloorplanRuleLabels.html +2 -0
  357. package/docs/types/FloorplanServerRuleLabels.html +1 -0
  358. package/docs/types/GuideLinePluginExportType.html +1 -0
  359. package/docs/types/GuideLinePluginType.GuideLineItem.html +10 -0
  360. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -0
  361. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -0
  362. package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -0
  363. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -0
  364. package/docs/types/GuideLinePluginType.PathItem.html +2 -0
  365. package/docs/types/GuideLinePluginType.PluginData.html +2 -0
  366. package/docs/types/HelperEventMap.html +1 -0
  367. package/docs/types/InternalHelperEventMap.html +1 -0
  368. package/docs/types/MapviewFloorplanPluginParameterType.html +1 -0
  369. package/docs/types/MapviewFloorplanPluginReturnType.html +1 -0
  370. package/docs/types/MediaData.html +2 -0
  371. package/docs/types/MediaStore.html +1 -0
  372. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -0
  373. package/docs/types/ModelFloorplanPluginParameterType.html +1 -0
  374. package/docs/types/ModelFloorplanPluginReturnType.html +1 -0
  375. package/docs/types/ModelId.html +1 -0
  376. package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -0
  377. package/docs/types/ModelMakerPluginType.ItemType.html +1 -0
  378. package/docs/types/ModelRoomLabelPluginParameters.html +1 -0
  379. package/docs/types/ModelRoomLabelPluginReturnType.html +1 -0
  380. package/docs/types/MoveArgs.html +2 -0
  381. package/docs/types/MoveOpts.html +2 -0
  382. package/docs/types/Object3DHelperEventMap.html +1 -0
  383. package/docs/types/ObjectFit.html +1 -0
  384. package/docs/types/PaintBrushEventMap.html +1 -0
  385. package/docs/types/PanoCompassPluginData.html +1 -0
  386. package/docs/types/PanoCompassPluginExportType.html +1 -0
  387. package/docs/types/PanoCompassPluginParameterType.html +1 -0
  388. package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -0
  389. package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -0
  390. package/docs/types/PanoIndex.html +1 -0
  391. package/docs/types/PanoMeasurePluginEvent.html +1 -0
  392. package/docs/types/PanoMeasureReturnType.html +1 -0
  393. package/docs/types/PanoSpatialTagPluginId.html +1 -0
  394. package/docs/types/PanoTagPluginExportInterface.html +1 -0
  395. package/docs/types/PanoTagPluginParamsInterface.html +1 -0
  396. package/docs/types/PanoVideoPluginParameterType.html +1 -0
  397. package/docs/types/PanoVideoPluginReturnType.html +1 -0
  398. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -0
  399. package/docs/types/PipelinePluginParameterType.html +1 -0
  400. package/docs/types/PipelinePluginReturnType.html +1 -0
  401. package/docs/types/PlaneTag.html +2 -0
  402. package/docs/types/Point2DTag.html +2 -0
  403. package/docs/types/Point3DTag.html +2 -0
  404. package/docs/types/PointTagInstance.html +1 -0
  405. package/docs/types/Position.html +1 -0
  406. package/docs/types/PositionFrom.html +1 -0
  407. package/docs/types/RotateArgs.html +2 -0
  408. package/docs/types/RotateOpts.html +2 -0
  409. package/docs/types/RuleLabelsKey.html +1 -0
  410. package/docs/types/RuleLabelsValue.html +1 -0
  411. package/docs/types/ScaleCallback.html +1 -0
  412. package/docs/types/ScalePosition.html +3 -0
  413. package/docs/types/SculptData.BoxData.html +1 -0
  414. package/docs/types/SculptData.CircleData.html +1 -0
  415. package/docs/types/SculptData.CylinderData.html +1 -0
  416. package/docs/types/SculptData.PointData.html +1 -0
  417. package/docs/types/SculptData.PolygonData.html +1 -0
  418. package/docs/types/SculptData.PolylineData.html +1 -0
  419. package/docs/types/SculptData.PrismData.html +1 -0
  420. package/docs/types/SculptData.RectangleData.html +1 -0
  421. package/docs/types/StickType.html +1 -0
  422. package/docs/types/Tag.html +16 -0
  423. package/docs/types/Tag2D.html +2 -0
  424. package/docs/types/Tag3D.html +2 -0
  425. package/docs/types/TagClickParams.html +1 -0
  426. package/docs/types/TagConfigByKey.html +1 -0
  427. package/docs/types/TagContentType.html +1 -0
  428. package/docs/types/TagContentTypeMapping.html +1 -0
  429. package/docs/types/TagDimensionType.html +1 -0
  430. package/docs/types/TagElement.html +2 -0
  431. package/docs/types/TagEvents.html +1 -0
  432. package/docs/types/TagGLTFObject.html +1 -0
  433. package/docs/types/TagHooks.html +1 -0
  434. package/docs/types/TagId.html +1 -0
  435. package/docs/types/TagInstance.html +1 -0
  436. package/docs/types/TagPointType.html +2 -0
  437. package/docs/types/TagRendererMap.html +1 -0
  438. package/docs/types/TopviewFloorplanPluginParameterType.html +1 -0
  439. package/docs/types/TopviewFloorplanPluginReturnType.html +1 -0
  440. package/docs/types/Util.ActionIfNoModelUnderMouse.html +1 -0
  441. package/docs/types/Util.PointSelectorConfig.html +1 -0
  442. package/docs/types/WorkCode.html +1 -0
  443. package/docs/variables/FLOOR_TYPE_MAP.html +2 -0
  444. package/docs/variables/PLUGIN.html +1 -0
  445. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -0
  446. package/docs/variables/ROOM_TYPE_MAP.html +2 -0
  447. package/docs/variables/Util.animeMap.html +1 -0
  448. package/docs/variables/defaultGlobalConfig.html +1 -0
  449. package/docs/variables/itemLabelPluginServerParams.html +1 -0
  450. package/docs/variables/modelItemLabelPluginServerParams.html +1 -0
  451. package/docs/variables/modelRoomLabelPluginServerParams.html +1 -0
  452. package/libs/Object3DHelperPlugin/Controller.js +40 -40
  453. package/libs/Sculpt/Meshes/Circle.d.ts +3 -1
  454. package/libs/Sculpt/Meshes/Circle.js +23 -17
  455. package/libs/Sculpt/Meshes/Cylinder.d.ts +4 -2
  456. package/libs/Sculpt/Meshes/Cylinder.js +31 -35
  457. package/libs/Sculpt/Objects/Base/Editor.d.ts +5 -0
  458. package/libs/Sculpt/Objects/Base/Editor.js +31 -22
  459. package/libs/Sculpt/Objects/Base/index.d.ts +1 -0
  460. package/libs/Sculpt/Objects/Box/index.d.ts +1 -0
  461. package/libs/Sculpt/Objects/Box/index.js +45 -42
  462. package/libs/Sculpt/Objects/Circle/index.d.ts +1 -0
  463. package/libs/Sculpt/Objects/Circle/index.js +50 -47
  464. package/libs/Sculpt/Objects/Cylinder/index.d.ts +1 -0
  465. package/libs/Sculpt/Objects/Cylinder/index.js +33 -30
  466. package/libs/Sculpt/Objects/Line/index.d.ts +1 -0
  467. package/libs/Sculpt/Objects/Line/index.js +11 -8
  468. package/libs/Sculpt/Objects/Point/index.d.ts +1 -0
  469. package/libs/Sculpt/Objects/Point/index.js +32 -28
  470. package/libs/Sculpt/Objects/Polygon/index.d.ts +1 -0
  471. package/libs/Sculpt/Objects/Polygon/index.js +24 -21
  472. package/libs/Sculpt/Objects/Polyline/index.d.ts +1 -0
  473. package/libs/Sculpt/Objects/Polyline/index.js +37 -34
  474. package/libs/Sculpt/Objects/Prism/index.d.ts +1 -0
  475. package/libs/Sculpt/Objects/Prism/index.js +47 -44
  476. package/libs/Sculpt/Objects/Rectangle/index.d.ts +1 -0
  477. package/libs/Sculpt/Objects/Rectangle/index.js +86 -83
  478. package/libs/base/BasePlugin.js +1 -1
  479. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +13 -13
  480. package/libs/shared-utils/Object3DHelper/typings/Hooks.d.ts +1 -1
  481. package/libs/shared-utils/five/FivePuppet.js +8 -8
  482. package/libs/shared-utils/logger.js +1 -1
  483. package/package.json +3 -2
@@ -1,12 +1,12 @@
1
- var I = Object.defineProperty;
1
+ var x = Object.defineProperty;
2
2
  var R = Object.getOwnPropertySymbols;
3
- var W = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable;
4
- var g = (p, o, e) => o in p ? I(p, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[o] = e, n = (p, o) => {
3
+ var I = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
4
+ var g = (p, o, e) => o in p ? x(p, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[o] = e, n = (p, o) => {
5
5
  for (var e in o || (o = {}))
6
- W.call(o, e) && g(p, e, o[e]);
6
+ I.call(o, e) && g(p, e, o[e]);
7
7
  if (R)
8
8
  for (var e of R(o))
9
- L.call(o, e) && g(p, e, o[e]);
9
+ W.call(o, e) && g(p, e, o[e]);
10
10
  return p;
11
11
  };
12
12
  var f = (p, o, e) => (g(p, typeof o != "symbol" ? o + "" : o, e), e);
@@ -26,25 +26,25 @@ var w = (p, o, e) => new Promise((t, r) => {
26
26
  }, b = (h) => h.done ? t(h.value) : Promise.resolve(h.value).then(s, d);
27
27
  b((e = e.apply(p, o)).next());
28
28
  });
29
- import { Controller as _ } from "../base/BasePlugin.js";
29
+ import { Controller as L } from "../base/BasePlugin.js";
30
30
  import "three";
31
31
  import "../shared-utils/three/core/Sphere.js";
32
- import { MoveHelper as $ } from "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
33
- import { RotateHelper as F } from "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
34
- import { CSS3DScaleHelper as G } from "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
35
- import { BoundingBoxHelper as U } from "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
36
- import { MoveController as N } from "../shared-utils/Object3DHelper/Controller/MoveController.js";
32
+ import { MoveHelper as _ } from "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
33
+ import { RotateHelper as $ } from "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
34
+ import { CSS3DScaleHelper as F } from "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
35
+ import { BoundingBoxHelper as G } from "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
36
+ import { MoveController as U } from "../shared-utils/Object3DHelper/Controller/MoveController.js";
37
37
  import { ControllerWrapper as C } from "./FiveControllerWrapper.js";
38
- import { Object3DHelper as V } from "../shared-utils/Object3DHelper/index.js";
39
- import { RotateController as q } from "../shared-utils/Object3DHelper/Controller/RotateController.js";
40
- import { CSS3DScaleController as z } from "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
41
- import { CSS3DRender as A } from "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
42
- import J from "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
43
- import { BoundingBoxController as K } from "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
44
- import { ScaleHelper as Q } from "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
45
- import { ScaleController as T } from "../shared-utils/Object3DHelper/Controller/ScaleController.js";
46
- import { waitFiveModelLoaded as X } from "../shared-utils/five/fiveModelLoad.js";
47
- import { Subscribe as y } from "../shared-utils/Subscribe.js";
38
+ import { Object3DHelper as N } from "../shared-utils/Object3DHelper/index.js";
39
+ import { RotateController as V } from "../shared-utils/Object3DHelper/Controller/RotateController.js";
40
+ import { CSS3DScaleController as q } from "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
41
+ import { CSS3DRender as z } from "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
42
+ import A from "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
43
+ import { BoundingBoxController as J } from "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
44
+ import { ScaleHelper as K } from "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
45
+ import { ScaleController as Q } from "../shared-utils/Object3DHelper/Controller/ScaleController.js";
46
+ import { waitFiveModelLoaded as T } from "../shared-utils/five/fiveModelLoad.js";
47
+ import { Subscribe as X } from "../shared-utils/Subscribe.js";
48
48
  import { DomEvents as Y } from "../shared-utils/threex/domevents/index.js";
49
49
  import "../shared-utils/tag.js";
50
50
  import "../shared-utils/positionToVector3.js";
@@ -126,7 +126,7 @@ const D = "Object3DHelperPlugin", E = D, Z = () => {
126
126
  }, re = () => {
127
127
  console.error(`${E} is disabled`);
128
128
  };
129
- class Nr extends _ {
129
+ class Nr extends L {
130
130
  constructor(e) {
131
131
  super(e);
132
132
  f(this, "name", D);
@@ -138,7 +138,7 @@ class Nr extends _ {
138
138
  f(this, "objectHelperMap", /* @__PURE__ */ new Map());
139
139
  f(this, "css3DObjectParentMap", /* @__PURE__ */ new Map());
140
140
  f(this, "css3DRender");
141
- this.five = e, this.css3DRender = new A(this.five.scene), console.warn("Object3DHelper: 使用此插件,需要在初始化five时,设置five参数: { backgroundAlpha: 0, backgroundColor: 0x000000 }"), Object.assign(window, { [`__${D.toUpperCase()}_DEBUG__`]: this });
141
+ this.five = e, this.css3DRender = new z(this.five.scene), console.warn("Object3DHelper: 使用此插件,需要在初始化five时,设置five参数: { backgroundAlpha: 0, backgroundColor: 0x000000 }"), Object.assign(window, { [`__${D.toUpperCase()}_DEBUG__`]: this });
142
142
  }
143
143
  /**
144
144
  * @description Show guide line
@@ -202,21 +202,21 @@ class Nr extends _ {
202
202
  console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);
203
203
  return;
204
204
  }
205
- const r = new V(), s = [], d = (M = this.five.getElement()) == null ? void 0 : M.parentElement, b = this.five.camera, l = n(n({}, {
205
+ const r = new N(), s = [], d = (M = this.five.getElement()) == null ? void 0 : M.parentElement, b = this.five.camera, l = n(n({}, {
206
206
  moveHelper: !0,
207
207
  rotateHelper: !0,
208
208
  scaleHelper: !0,
209
209
  boundingBoxHelper: !1,
210
210
  positionFrom: "objectPosition"
211
- }), t), { moveHelper: B, rotateHelper: j, scaleHelper: k, boundingBoxHelper: x } = l, u = new y(), v = new y(), H = new Y(this.five.camera, this.five.getElement()), S = (i) => {
211
+ }), t), { moveHelper: y, rotateHelper: B, scaleHelper: k, boundingBoxHelper: j } = l, u = r.hooks, v = new X(), H = new Y(this.five.camera, this.five.getElement()), S = (i) => {
212
212
  if (i)
213
213
  return typeof i == "boolean" ? i : i.enable;
214
214
  };
215
- if (S(B)) {
216
- const i = n(n({}, this.getConfig(l.moveHelper)), l), m = new $(e, n({}, i)), a = new C(
215
+ if (S(y)) {
216
+ const i = n(n({}, this.getConfig(l.moveHelper)), l), m = new _(e, n({}, i)), a = new C(
217
217
  this.five,
218
218
  H,
219
- N,
219
+ U,
220
220
  e,
221
221
  m,
222
222
  i,
@@ -225,11 +225,11 @@ class Nr extends _ {
225
225
  );
226
226
  r.addControllers({ moveController: a.helperController }), s.push(() => a.dispose());
227
227
  }
228
- if (S(j)) {
229
- const i = n(n({}, this.getConfig(l.rotateHelper)), l), m = new F(e, n({ container: d }, i)), a = new C(
228
+ if (S(B)) {
229
+ const i = n(n({}, this.getConfig(l.rotateHelper)), l), m = new $(e, n({ container: d }, i)), a = new C(
230
230
  this.five,
231
231
  H,
232
- q,
232
+ V,
233
233
  e,
234
234
  m,
235
235
  i,
@@ -238,11 +238,11 @@ class Nr extends _ {
238
238
  );
239
239
  r.addControllers({ rotateController: a.helperController }), s.push(() => a.dispose());
240
240
  }
241
- if (S(x)) {
242
- const i = new U(e), m = new C(
241
+ if (S(j)) {
242
+ const i = new G(e), m = new C(
243
243
  this.five,
244
244
  H,
245
- K,
245
+ J,
246
246
  e,
247
247
  i,
248
248
  void 0,
@@ -253,31 +253,31 @@ class Nr extends _ {
253
253
  }
254
254
  if (S(k))
255
255
  if (e.isCSS3DObjectPlus && d) {
256
- const i = new G(e, d, b, this.five.scene), m = new C(
256
+ const i = new F(e, d, b, this.five.scene), m = new C(
257
257
  this.five,
258
258
  H,
259
- z,
259
+ q,
260
260
  e,
261
261
  i,
262
262
  void 0,
263
263
  u,
264
264
  v
265
265
  );
266
- r.addControllers({ scaleController: m.helperController }), s.push(() => m.dispose()), X(this.five).then(() => {
266
+ r.addControllers({ scaleController: m.helperController }), s.push(() => m.dispose()), T(this.five).then(() => {
267
267
  var a, O;
268
268
  if (e.isCSS3DObjectPlus) {
269
269
  const c = e;
270
270
  if (!c || c.mode !== "front")
271
271
  return;
272
- const P = (a = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? a : J(this.five);
272
+ const P = (a = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? a : A(this.five);
273
273
  P && (this.css3DObjectParentMap.set(c, c.parent), c.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(P), (O = this.css3DRender.getBehindCSS3DObjectGroup()) == null || O.add(c), this.css3DRender.render(this.five.camera));
274
274
  }
275
275
  });
276
276
  } else {
277
- const i = n(n({}, this.getConfig(l.scaleHelper)), l), m = new Q(e, i), a = new C(
277
+ const i = n(n({}, this.getConfig(l.scaleHelper)), l), m = new K(e, i), a = new C(
278
278
  this.five,
279
279
  H,
280
- T,
280
+ Q,
281
281
  e,
282
282
  m,
283
283
  i,
@@ -16,7 +16,9 @@ export declare class CircleMesh extends ColoredMesh {
16
16
  get radius(): number;
17
17
  meshFont: THREE.Mesh<THREE.CircleGeometry, THREE.MeshBasicMaterial>;
18
18
  private _normal;
19
+ private _center;
20
+ private _radius;
19
21
  constructor(params?: Params);
20
- setPoints(params: CircleData): void;
22
+ setPoints(params: Partial<CircleData>): void;
21
23
  }
22
24
  export {};
@@ -1,15 +1,17 @@
1
- var h = Object.defineProperty;
2
- var d = (o, t, e) => t in o ? h(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
3
- var s = (o, t, e) => (d(o, typeof t != "symbol" ? t + "" : t, e), e);
4
- import * as u from "three";
5
- import { radiusToSegments as g } from "../utils/radiusToSegments.js";
1
+ var c = Object.defineProperty;
2
+ var _ = (i, e, t) => e in i ? c(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
+ var o = (i, e, t) => (_(i, typeof e != "symbol" ? e + "" : e, t), t);
4
+ import * as d from "three";
5
+ import { radiusToSegments as u } from "../utils/radiusToSegments.js";
6
6
  import { ColoredMesh as m } from "../utils/three/ColoredMesh.js";
7
- import { anyPositionToVector3 as c } from "../../shared-utils/positionToVector3.js";
8
- class T extends m {
9
- constructor(e) {
10
- super(e);
11
- s(this, "_normal");
12
- e != null && e.center && (e != null && e.normal) && (e != null && e.radius) && this.setPoints(e);
7
+ import { anyPositionToVector3 as h } from "../../shared-utils/positionToVector3.js";
8
+ class P extends m {
9
+ constructor(t) {
10
+ super(t);
11
+ o(this, "_normal");
12
+ o(this, "_center");
13
+ o(this, "_radius");
14
+ t != null && t.center && (t != null && t.normal) && (t != null && t.radius) && this.setPoints(t);
13
15
  }
14
16
  get center() {
15
17
  return this.position.clone();
@@ -17,17 +19,21 @@ class T extends m {
17
19
  get normal() {
18
20
  return this._normal;
19
21
  }
20
- set normal(e) {
21
- this._normal = e;
22
+ set normal(t) {
23
+ this._normal = t;
22
24
  }
23
25
  get radius() {
24
26
  return this.meshFont.geometry.parameters.radius;
25
27
  }
26
- setPoints(e) {
27
- const n = c(e.center), i = c(e.normal), r = e.radius, l = g(r);
28
- this.geometry = new u.CircleGeometry(r, l), this.position.copy(n), this.lookAt(i.clone().add(n)), this.normal = i.clone().normalize(), this.needsRender = !0;
28
+ setPoints(t) {
29
+ var r, n, s;
30
+ if (this._center = (r = h(t.center)) != null ? r : this._center, this._normal = (n = h(t.normal)) != null ? n : this._normal, this._radius = (s = t.radius) != null ? s : this._radius, this._center && this._normal && this._radius) {
31
+ const l = u(this._radius);
32
+ this.geometry = new d.CircleGeometry(this._radius, l), this.position.copy(this._center), this.lookAt(this._normal.clone().add(this._center)), this.normal = this._normal.clone().normalize();
33
+ }
34
+ this.needsRender = !0;
29
35
  }
30
36
  }
31
37
  export {
32
- T as CircleMesh
38
+ P as CircleMesh
33
39
  };
@@ -21,11 +21,13 @@ export declare class CylinderMesh extends IObject3D {
21
21
  protected edgeMesh: ColoredMesh;
22
22
  private highlighted;
23
23
  private params;
24
+ private _topCenter;
25
+ private _bottomCenter;
24
26
  constructor(params?: Params);
25
- setPoints(params: CylinderData): void;
27
+ setPoints(params: Partial<CylinderData>): void;
26
28
  setTopCenter(center: THREE.Vector3): void;
27
29
  setBottomCenter(center: THREE.Vector3): void;
28
- setStyle(style: CylinderStyle): void;
30
+ setStyle(style: Partial<CylinderStyle>): void;
29
31
  highlight(): void;
30
32
  unhighlight(): void;
31
33
  private setEdgeMesh;
@@ -1,32 +1,22 @@
1
- var u = Object.defineProperty;
2
- var c = Object.getOwnPropertySymbols;
3
- var p = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
4
- var n = (i, e, t) => e in i ? u(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, l = (i, e) => {
1
+ var m = Object.defineProperty;
2
+ var C = Object.getOwnPropertySymbols;
3
+ var u = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
4
+ var n = (i, e, t) => e in i ? m(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, l = (i, e) => {
5
5
  for (var t in e || (e = {}))
6
- p.call(e, t) && n(i, t, e[t]);
7
- if (c)
8
- for (var t of c(e))
6
+ u.call(e, t) && n(i, t, e[t]);
7
+ if (C)
8
+ for (var t of C(e))
9
9
  b.call(e, t) && n(i, t, e[t]);
10
10
  return i;
11
11
  };
12
12
  var o = (i, e, t) => (n(i, typeof e != "symbol" ? e + "" : e, t), t);
13
- import { IObject3D as f } from "../../shared-utils/three/IObject3D.js";
14
- import * as h from "three";
15
- import "../../shared-utils/tag.js";
16
- import "hammerjs";
17
- import "../../shared-utils/three/PointSelector/index.js";
18
- import "three/examples/jsm/renderers/CSS3DRenderer";
19
- import "@realsee/five/line";
20
- import { notNil as d } from "../../shared-utils/isNil.js";
21
- import { anyPositionToVector3 as g } from "../../shared-utils/positionToVector3.js";
22
- import "../../shared-utils/three/core/Sphere.js";
23
- import "animejs";
24
- import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
25
- import "../../shared-utils/five/FivePuppet.js";
26
- import { CircleWithEdgeMesh as m } from "./CircleWithEdge.js";
27
- import { radiusToSegments as M } from "../utils/radiusToSegments.js";
28
- import { ColoredMesh as E } from "../utils/three/ColoredMesh.js";
29
- class F extends f {
13
+ import { IObject3D as p } from "../../shared-utils/three/IObject3D.js";
14
+ import * as r from "three";
15
+ import { CircleWithEdgeMesh as c } from "./CircleWithEdge.js";
16
+ import { radiusToSegments as f } from "../utils/radiusToSegments.js";
17
+ import { ColoredMesh as M } from "../utils/three/ColoredMesh.js";
18
+ import { anyPositionToVector3 as d } from "../../shared-utils/positionToVector3.js";
19
+ class P extends p {
30
20
  constructor(t) {
31
21
  super();
32
22
  o(this, "bottomCircle");
@@ -34,7 +24,9 @@ class F extends f {
34
24
  o(this, "edgeMesh");
35
25
  o(this, "highlighted", !1);
36
26
  o(this, "params");
37
- this.params = t, this.bottomCircle = new m(t), this.bottomCircle.name = "bottomCircle", this.topCircle = new m(t), this.topCircle.name = "topCircle", this.edgeMesh = new E(t), t != null && t.bottomCenter && (t != null && t.topCenter) && (t != null && t.radius) && this.setPoints(t), this.addIfNotExists(this.bottomCircle);
27
+ o(this, "_topCenter");
28
+ o(this, "_bottomCenter");
29
+ this.params = t, this.bottomCircle = new c(t), this.bottomCircle.name = "bottomCircle", this.topCircle = new c(t), this.topCircle.name = "topCircle", this.edgeMesh = new M(t), t != null && t.bottomCenter && (t != null && t.topCenter) && (t != null && t.radius) && this.setPoints(t), this.addIfNotExists(this.bottomCircle);
38
30
  }
39
31
  get bottomCenter() {
40
32
  return this.bottomCircle.center;
@@ -52,8 +44,12 @@ class F extends f {
52
44
  return this.bottomCircle.color;
53
45
  }
54
46
  setPoints(t) {
55
- const r = g(t.topCenter), s = g(t.bottomCenter), C = r.clone().sub(s).normalize();
56
- this.bottomCircle.setPoints({ center: s, normal: C, radius: t.radius }), this.setTopCenter(r), this.needsRender = !0;
47
+ var s, h;
48
+ if (this._topCenter = (s = d(t.topCenter)) != null ? s : this.topCenter, this._bottomCenter = (h = d(t.bottomCenter)) != null ? h : this.bottomCenter, this._topCenter && this._bottomCenter) {
49
+ const g = this._topCenter.clone().sub(this._bottomCenter).normalize();
50
+ this.bottomCircle.setPoints({ center: this._bottomCenter, normal: g, radius: t.radius }), this.setTopCenter(this._topCenter);
51
+ }
52
+ this.needsRender = !0;
57
53
  }
58
54
  setTopCenter(t) {
59
55
  this.addIfNotExists(this.topCircle), this.topCircle.setPoints({ center: t, normal: this.normal, radius: this.radius }), this.setEdgeMesh();
@@ -62,7 +58,7 @@ class F extends f {
62
58
  this.addIfNotExists(this.bottomCircle), this.bottomCircle.setPoints({ center: t, normal: this.normal, radius: this.radius }), this.setEdgeMesh();
63
59
  }
64
60
  setStyle(t) {
65
- this.params = l(l({}, this.params), t), d(t.color) && this.bottomCircle.setStyle({ color: t.color }), d(t.color) && this.topCircle.setStyle({ color: t.color });
61
+ this.params = l(l({}, this.params), t), this.bottomCircle.setStyle(this.params), this.topCircle.setStyle(this.params);
66
62
  }
67
63
  highlight() {
68
64
  this.highlighted || (this.highlighted = !0, this.edgeMesh.highlight(), this.bottomCircle.highlight(), this.topCircle.highlight(), this.needsRender = !0);
@@ -72,19 +68,19 @@ class F extends f {
72
68
  }
73
69
  setEdgeMesh() {
74
70
  this.addIfNotExists(this.edgeMesh);
75
- const t = this.topCircle.center, r = this.bottomCircle.center;
76
- this.edgeMesh.geometry.dispose(), this.edgeMesh.geometry = new h.CylinderGeometry(
71
+ const t = this.topCircle.center, s = this.bottomCircle.center;
72
+ this.edgeMesh.geometry.dispose(), this.edgeMesh.geometry = new r.CylinderGeometry(
77
73
  this.radius,
78
74
  this.radius,
79
- t.distanceTo(r),
80
- M(this.radius),
75
+ t.distanceTo(s),
76
+ f(this.radius),
81
77
  1,
82
78
  !0
83
79
  );
84
- const s = new h.Quaternion().setFromUnitVectors(new h.Vector3(0, 1, 0), this.normal.clone().normalize());
85
- this.edgeMesh.position.copy(new h.Vector3().lerpVectors(r, t, 0.5)), this.edgeMesh.quaternion.copy(s);
80
+ const h = new r.Quaternion().setFromUnitVectors(new r.Vector3(0, 1, 0), this.normal.clone().normalize());
81
+ this.edgeMesh.position.copy(new r.Vector3().lerpVectors(s, t, 0.5)), this.edgeMesh.quaternion.copy(h);
86
82
  }
87
83
  }
88
84
  export {
89
- F as CylinderMesh
85
+ P as CylinderMesh
90
86
  };
@@ -1,7 +1,11 @@
1
1
  import type * as THREE from 'three';
2
2
  import { IObject3D } from '../../../shared-utils/three/IObject3D';
3
3
  import type { AddObject3DHelperConfig } from '../../../Object3DHelperPlugin';
4
+ import { Subscribe } from '../../../shared-utils/Subscribe';
4
5
  export declare class BaseEditor<OriginObject extends THREE.Object3D = THREE.Object3D> extends IObject3D {
6
+ hooks: Subscribe<{
7
+ objectUpdate: () => void;
8
+ }>;
5
9
  protected originObject: OriginObject;
6
10
  constructor(originObject: OriginObject);
7
11
  /**
@@ -18,4 +22,5 @@ export declare class BaseEditorWithObjectHelper<OriginObject extends THREE.Objec
18
22
  constructor(originObject: OriginObject, objectHelperConfig?: AddObject3DHelperConfig | (() => AddObject3DHelperConfig));
19
23
  enable(): void;
20
24
  disable(): void;
25
+ private onObjectUpdate;
21
26
  }
@@ -1,21 +1,23 @@
1
- var l = Object.defineProperty;
2
- var s = Object.getOwnPropertySymbols;
3
- var p = Object.prototype.hasOwnProperty, j = Object.prototype.propertyIsEnumerable;
4
- var i = (o, t, e) => t in o ? l(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e, c = (o, t) => {
5
- for (var e in t || (t = {}))
6
- p.call(t, e) && i(o, e, t[e]);
7
- if (s)
8
- for (var e of s(t))
9
- j.call(t, e) && i(o, e, t[e]);
10
- return o;
1
+ var p = Object.defineProperty;
2
+ var b = Object.getOwnPropertySymbols;
3
+ var l = Object.prototype.hasOwnProperty, h = Object.prototype.propertyIsEnumerable;
4
+ var c = (t, o, e) => o in t ? p(t, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[o] = e, n = (t, o) => {
5
+ for (var e in o || (o = {}))
6
+ l.call(o, e) && c(t, e, o[e]);
7
+ if (b)
8
+ for (var e of b(o))
9
+ h.call(o, e) && c(t, e, o[e]);
10
+ return t;
11
11
  };
12
- var r = (o, t, e) => (i(o, typeof t != "symbol" ? t + "" : t, e), e);
13
- import { Sculpt as b } from "../../index.js";
14
- import { IObject3D as d } from "../../../shared-utils/three/IObject3D.js";
15
- class g extends d {
12
+ var s = (t, o, e) => (c(t, typeof o != "symbol" ? o + "" : o, e), e);
13
+ import { Sculpt as r } from "../../index.js";
14
+ import { IObject3D as j } from "../../../shared-utils/three/IObject3D.js";
15
+ import { Subscribe as a } from "../../../shared-utils/Subscribe.js";
16
+ class d extends j {
16
17
  constructor(e) {
17
18
  super();
18
- r(this, "originObject");
19
+ s(this, "hooks", new a());
20
+ s(this, "originObject");
19
21
  this.originObject = e;
20
22
  }
21
23
  /**
@@ -31,22 +33,29 @@ class g extends d {
31
33
  this.originObject.remove(this);
32
34
  }
33
35
  }
34
- class H extends g {
35
- constructor(e, n) {
36
+ class H extends d {
37
+ constructor(e, i) {
36
38
  super(e);
37
- r(this, "objectHelperConfig");
38
- this.objectHelperConfig = n;
39
+ s(this, "objectHelperConfig");
40
+ s(this, "onObjectUpdate", () => {
41
+ this.hooks.emit("objectUpdate");
42
+ });
43
+ this.objectHelperConfig = i;
39
44
  }
40
45
  enable() {
41
46
  super.enable();
42
47
  const e = typeof this.objectHelperConfig == "function" ? this.objectHelperConfig() : this.objectHelperConfig;
43
- b.modules.object3DHelper.addObject3DHelper(this.originObject, c({ positionFrom: "boundingBox" }, e));
48
+ r.modules.object3DHelper.addObject3DHelper(this.originObject, n({ positionFrom: "boundingBox" }, e));
49
+ const i = r.modules.object3DHelper.getObject3DHelper(this.originObject).helper;
50
+ i.hooks.on("move", this.onObjectUpdate), i.hooks.on("rotate", this.onObjectUpdate), i.hooks.on("scale", this.onObjectUpdate);
44
51
  }
45
52
  disable() {
46
- super.disable(), b.modules.object3DHelper.removeObject3DHelper(this.originObject);
53
+ super.disable();
54
+ const e = r.modules.object3DHelper.getObject3DHelper(this.originObject).helper;
55
+ e.hooks.off("move", this.onObjectUpdate), e.hooks.off("rotate", this.onObjectUpdate), e.hooks.off("scale", this.onObjectUpdate), r.modules.object3DHelper.removeObject3DHelper(this.originObject);
47
56
  }
48
57
  }
49
58
  export {
50
- g as BaseEditor,
59
+ d as BaseEditor,
51
60
  H as BaseEditorWithObjectHelper
52
61
  };
@@ -64,6 +64,7 @@ Config extends BaseObjectConfig = BaseObjectConfig> extends IObject3D {
64
64
  };
65
65
  protected get pointSelector(): import("../../../shared-utils").PointSelector;
66
66
  constructor(data?: Partial<ImportData>, config?: Partial<Config>);
67
+ abstract setData(data: Partial<ImportData>): void;
67
68
  on: <T extends keyof FiveDomEventMap>(event: T, callback: FiveDomEventMap[T], config?: EventHandlerConfig) => void;
68
69
  off: (event?: keyof FiveDomEventMap, callback?: (e: import("../../../shared-utils/five/FiveDomEvents").FiveDomEvent) => any, ...args: any[]) => void;
69
70
  /**
@@ -26,6 +26,7 @@ export declare class Box extends BaseObject<BoxImportData> {
26
26
  type: string;
27
27
  };
28
28
  constructor(data?: BoxImportData, config?: Partial<BaseObjectConfig>);
29
+ setData(data: Partial<BoxImportData>): void;
29
30
  highlight(): void;
30
31
  unhighlight(): void;
31
32
  create(params?: Partial<BoxStyle & CreateLimitConfig & DrawMethodConfig>): Promise<void>;
@@ -2,52 +2,52 @@ var H = Object.defineProperty, O = Object.defineProperties;
2
2
  var W = Object.getOwnPropertyDescriptors;
3
3
  var w = Object.getOwnPropertySymbols;
4
4
  var L = Object.prototype.hasOwnProperty, R = Object.prototype.propertyIsEnumerable;
5
- var b = (e, o, t) => o in e ? H(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t, m = (e, o) => {
6
- for (var t in o || (o = {}))
7
- L.call(o, t) && b(e, t, o[t]);
5
+ var f = (o, e, t) => e in o ? H(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, m = (o, e) => {
6
+ for (var t in e || (e = {}))
7
+ L.call(e, t) && f(o, t, e[t]);
8
8
  if (w)
9
- for (var t of w(o))
10
- R.call(o, t) && b(e, t, o[t]);
11
- return e;
12
- }, E = (e, o) => O(e, W(o));
13
- var d = (e, o, t) => (b(e, typeof o != "symbol" ? o + "" : o, t), t);
14
- var f = (e, o, t) => new Promise((a, l) => {
15
- var i = (s) => {
9
+ for (var t of w(e))
10
+ R.call(e, t) && f(o, t, e[t]);
11
+ return o;
12
+ }, E = (o, e) => O(o, W(e));
13
+ var d = (o, e, t) => (f(o, typeof e != "symbol" ? e + "" : e, t), t);
14
+ var b = (o, e, t) => new Promise((l, a) => {
15
+ var s = (i) => {
16
16
  try {
17
- n(t.next(s));
17
+ n(t.next(i));
18
18
  } catch (r) {
19
- l(r);
19
+ a(r);
20
20
  }
21
- }, h = (s) => {
21
+ }, h = (i) => {
22
22
  try {
23
- n(t.throw(s));
23
+ n(t.throw(i));
24
24
  } catch (r) {
25
- l(r);
25
+ a(r);
26
26
  }
27
- }, n = (s) => s.done ? a(s.value) : Promise.resolve(s.value).then(i, h);
28
- n((t = t.apply(e, o)).next());
27
+ }, n = (i) => i.done ? l(i.value) : Promise.resolve(i.value).then(s, h);
28
+ n((t = t.apply(o, e)).next());
29
29
  });
30
30
  import { BaseObject as _ } from "../Base/index.js";
31
31
  import * as j from "three";
32
- import { BoxMeshEditor as N } from "../../Editors/BoxMeshEditor.js";
32
+ import { BoxMeshEditor as D } from "../../Editors/BoxMeshEditor.js";
33
33
  import { BoxMesh as v } from "../../Meshes/Box.js";
34
- import { createRectangle as T } from "../Rectangle/index.js";
35
- import { LineMesh as U } from "../../Meshes/Line.js";
36
- import { getNormal as A } from "../../../shared-utils/three/getNormal.js";
37
- import { rayOnLine as D } from "../../utils/three/rayOnLine.js";
34
+ import { createRectangle as N } from "../Rectangle/index.js";
35
+ import { LineMesh as T } from "../../Meshes/Line.js";
36
+ import { getNormal as U } from "../../../shared-utils/three/getNormal.js";
37
+ import { rayOnLine as A } from "../../utils/three/rayOnLine.js";
38
38
  import { vector3ToArray as B } from "../../../shared-utils/three/vector3ToArray.js";
39
39
  import { RectangleWithEdgeMesh as k } from "../../Meshes/RectangleWithEdge.js";
40
40
  import { centerPoint as q } from "../../../shared-utils/three/centerPoint.js";
41
41
  class S extends _ {
42
- constructor(t, a) {
43
- super(t, a);
42
+ constructor(t, l) {
43
+ super(t, l);
44
44
  d(this, "type", "Box");
45
45
  d(this, "boxMesh");
46
46
  d(this, "_editor");
47
47
  t && (this.boxMesh = new v(m(m({}, t.style), t)), this.add(this.boxMesh));
48
48
  }
49
49
  get editor() {
50
- return this._editor || (this._editor = new N(this.boxMesh)), this._editor;
50
+ return this._editor || (this._editor = new D(this.boxMesh)), this._editor;
51
51
  }
52
52
  get data() {
53
53
  return E(m({}, this.baseData), {
@@ -61,6 +61,9 @@ class S extends _ {
61
61
  }
62
62
  });
63
63
  }
64
+ setData(t) {
65
+ this.boxMesh.setPoints(t), this.boxMesh.setStyle(t.style);
66
+ }
64
67
  highlight() {
65
68
  var t;
66
69
  (t = this.boxMesh) == null || t.highlight();
@@ -70,42 +73,42 @@ class S extends _ {
70
73
  (t = this.boxMesh) == null || t.unhighlight();
71
74
  }
72
75
  create(t) {
73
- return f(this, null, function* () {
76
+ return b(this, null, function* () {
74
77
  this.removeChildren(), this.boxMesh = new v(t), this.add(this.boxMesh), yield z(this.boxMesh, this.pointSelector, t), this.config.canEdit && this.editor.enable();
75
78
  });
76
79
  }
77
80
  }
78
- function z(e, o, t) {
79
- return f(this, null, function* () {
80
- return new Promise((a, l) => f(this, null, function* () {
81
- const i = e.parent;
82
- if (!i) {
83
- l(new Error("No container"));
81
+ function z(o, e, t) {
82
+ return b(this, null, function* () {
83
+ return new Promise((l, a) => b(this, null, function* () {
84
+ const s = o.parent;
85
+ if (!s) {
86
+ a(new Error("No container"));
84
87
  return;
85
88
  }
86
- const h = new k(e.style);
87
- i.add(h), yield T(h, o, t), i.remove(h), e.setPoints({ points: h.points });
88
- const n = new U(), s = A(e.bottomPositions), r = q(...e.bottomPositions), p = r.clone().add(s.clone().multiplyScalar(10)), x = r.clone().sub(s.clone().multiplyScalar(10));
89
- n.setPoints([p, x]), i.add(n), o.enable();
89
+ const h = new k(o.style);
90
+ s.add(h), yield N(h, e, t), s.remove(h), o.setPoints({ points: h.points });
91
+ const n = new T(), i = U(o.bottomPositions), r = q(...o.bottomPositions), p = r.clone().add(i.clone().multiplyScalar(100)), x = r.clone().sub(i.clone().multiplyScalar(100));
92
+ n.setPoints([p, x]), s.add(n), e.enable();
90
93
  const g = (c) => {
91
- M(), a();
94
+ M(), l();
92
95
  }, y = (c) => {
93
96
  if (!(c != null && c.raycaster))
94
97
  return;
95
- const u = D({
98
+ const u = A({
96
99
  raycaster: c.raycaster,
97
100
  line: new j.Line3(p, x)
98
101
  });
99
102
  if (u) {
100
103
  const C = u.clone().sub(r);
101
- e.setPoints({ heightPoint: e.bottomPositions[0].clone().add(C) });
104
+ o.setPoints({ heightPoint: o.bottomPositions[0].clone().add(C) });
102
105
  }
103
106
  }, M = () => {
104
- o.off("select", g), o.off("intersectionUpdate", y), o.off("disable", P), o.disable(), i == null || i.remove(n);
107
+ e.off("select", g), e.off("intersectionUpdate", y), e.off("disable", P), e.disable(), s == null || s.remove(n);
105
108
  }, P = () => {
106
- M(), i == null || i.remove(e), l(new Error("Cancelled"));
109
+ M(), s == null || s.remove(o), a(new Error("Cancelled"));
107
110
  };
108
- o.on("select", g), o.on("intersectionUpdate", y), o.on("disable", P);
111
+ e.on("select", g), e.on("intersectionUpdate", y), e.on("disable", P);
109
112
  }));
110
113
  });
111
114
  }
@@ -24,6 +24,7 @@ export declare class Circle extends BaseObject<CircleImportData> {
24
24
  type: string;
25
25
  };
26
26
  constructor(data?: CircleImportData, config?: Partial<BaseObjectConfig>);
27
+ setData(data: Partial<CircleImportData>): void;
27
28
  highlight(): void;
28
29
  unhighlight(): void;
29
30
  create(params?: Partial<CircleWithEdgeMeshStyle>): Promise<void>;