@realsee/dnalogel 3.64.4 → 3.64.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 (554) hide show
  1. package/dist/MeasurePlugin/Controller.d.ts +11 -1
  2. package/dist/MeasurePlugin/utils/MeasureMesh.d.ts +7 -2
  3. package/dist/Sculpt/Meshes/Line.d.ts +6 -2
  4. package/dist/Sculpt/Meshes/Point.d.ts +4 -0
  5. package/dist/Sculpt/Meshes/Polygon.d.ts +4 -0
  6. package/dist/Sculpt/typings/style.d.ts +1 -1
  7. package/dist/Sculpt/utils/renderDom.d.ts +19 -0
  8. package/dist/Sculpt/utils/unit.d.ts +2 -0
  9. package/dist/index.cjs.js +70 -70
  10. package/dist/index.js +8349 -8258
  11. package/dist/index.umd.js +59 -59
  12. package/dist/shared-utils/five/FiveDomEvents.d.ts +2 -2
  13. package/dist/shared-utils/three/PointSelector/index.d.ts +4 -4
  14. package/dist/shared-utils/three/PointSelector/utils/PointSelectorHelper.d.ts +1 -1
  15. package/docs/assets/navigation.js +1 -1
  16. package/docs/assets/search.js +1 -1
  17. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +25 -25
  18. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +28 -28
  19. package/docs/classes/CSS3DRender.html +3 -3
  20. package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
  21. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +26 -26
  22. package/docs/classes/ModelMakerPluginInstance.html +15 -15
  23. package/docs/classes/ModelRoomLabelController.html +6 -6
  24. package/docs/classes/MoveController.html +17 -17
  25. package/docs/classes/Object3DHelperController.html +15 -15
  26. package/docs/classes/PaintBrush.html +5 -5
  27. package/docs/classes/PanoMeasurePluginLine.html +2 -2
  28. package/docs/classes/PanoMeasurePluginModel.html +2 -2
  29. package/docs/classes/PanoMeasurePluginPoint.html +2 -2
  30. package/docs/classes/PanoMeasurePluginPolyline.html +4 -4
  31. package/docs/classes/PanoTagPluginController.html +34 -34
  32. package/docs/classes/Sculpt.html +23 -23
  33. package/docs/classes/Util.BetterTween.html +2 -2
  34. package/docs/classes/Util.FiveDomEvents.html +4 -4
  35. package/docs/classes/Util.FivePuppet.html +3 -3
  36. package/docs/classes/Util.Interval.html +5 -5
  37. package/docs/classes/Util.LightTag.html +15 -15
  38. package/docs/classes/Util.LineSegments.html +2 -2
  39. package/docs/classes/Util.Magnifier.html +6 -6
  40. package/docs/classes/Util.Object3D.html +4 -4
  41. package/docs/classes/Util.PointHelper.html +2 -2
  42. package/docs/classes/Util.PointSelector.html +16 -16
  43. package/docs/classes/Util.PointSelectorHelper.html +2 -2
  44. package/docs/classes/Util.Rectangle.html +5 -5
  45. package/docs/classes/Util.sculpt.BaseEditor.html +7 -7
  46. package/docs/classes/Util.sculpt.BoxMesh.html +6 -6
  47. package/docs/classes/Util.sculpt.BoxMeshEditor.html +7 -7
  48. package/docs/classes/Util.sculpt.CircleMesh.html +4 -4
  49. package/docs/classes/Util.sculpt.CircleMeshEditor.html +7 -7
  50. package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +4 -4
  51. package/docs/classes/Util.sculpt.CylinderMesh.html +5 -5
  52. package/docs/classes/Util.sculpt.CylinderMeshEditor.html +7 -7
  53. package/docs/classes/Util.sculpt.LineMesh.html +10 -6
  54. package/docs/classes/Util.sculpt.PointMesh.html +10 -6
  55. package/docs/classes/Util.sculpt.PolygonMesh.html +11 -7
  56. package/docs/classes/Util.sculpt.PrismMesh.html +6 -6
  57. package/docs/classes/Util.sculpt.PrismMeshEditor.html +7 -7
  58. package/docs/classes/Util.sculpt.RectangleMesh.html +12 -8
  59. package/docs/classes/Util.sculpt.RectangleMeshEditor.html +7 -7
  60. package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +12 -8
  61. package/docs/classes/WalkController.html +18 -18
  62. package/docs/enums/CameraMovementEffect.html +3 -3
  63. package/docs/enums/ContentType.html +18 -18
  64. package/docs/enums/DIRECTION.html +2 -2
  65. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
  66. package/docs/enums/DimensionType.html +3 -3
  67. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +2 -2
  68. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +2 -2
  69. package/docs/enums/PaintBrushTypeEnum.html +2 -2
  70. package/docs/enums/PointType.html +3 -3
  71. package/docs/enums/Rotation.html +3 -3
  72. package/docs/functions/AreaMakerPlugin.html +1 -1
  73. package/docs/functions/CSS3DRenderPlugin.html +1 -1
  74. package/docs/functions/CameraMovementPlugin.html +2 -2
  75. package/docs/functions/CruisePlugin.html +1 -1
  76. package/docs/functions/CurrentPanoImagePlugin.html +1 -1
  77. package/docs/functions/GuideLinePlugin.html +1 -1
  78. package/docs/functions/ItemLabelPlugin.html +1 -1
  79. package/docs/functions/MapviewFloorplanPlugin.html +1 -1
  80. package/docs/functions/MeasurePlugin.html +1 -1
  81. package/docs/functions/ModelChassisCompassPlugin.html +2 -2
  82. package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -2
  83. package/docs/functions/ModelFloorplanPlugin.html +1 -1
  84. package/docs/functions/ModelItemLabelPlugin.html +1 -1
  85. package/docs/functions/ModelMakerPlugin.html +1 -1
  86. package/docs/functions/ModelRoomLabelPlugin.html +1 -1
  87. package/docs/functions/ModelTVVideoPlugin.html +1 -1
  88. package/docs/functions/ModelViewPlugin.html +2 -2
  89. package/docs/functions/MovePlugin.html +1 -1
  90. package/docs/functions/Object3DHelperPlugin.html +1 -1
  91. package/docs/functions/PanoCompassPlugin.html +1 -1
  92. package/docs/functions/PanoCursorRaycasterPlugin.html +2 -2
  93. package/docs/functions/PanoDoorLabelPlugin.html +1 -1
  94. package/docs/functions/PanoFloorplanRadarPlugin.html +1 -1
  95. package/docs/functions/PanoMeasurePlugin.html +1 -1
  96. package/docs/functions/PanoRulerPlugin.html +2 -2
  97. package/docs/functions/PanoRulerProPlugin.html +2 -2
  98. package/docs/functions/PanoSpatialTagPlugin.html +2 -2
  99. package/docs/functions/PanoTagPlugin.html +1 -1
  100. package/docs/functions/PanoVideoPlugin.html +2 -2
  101. package/docs/functions/PipelinePlugin.html +1 -1
  102. package/docs/functions/SculptPlugin.html +2 -2
  103. package/docs/functions/TopviewFloorplanPlugin.html +1 -1
  104. package/docs/functions/Util.absoluteUrl.html +2 -2
  105. package/docs/functions/Util.awaitNextFrame.html +1 -1
  106. package/docs/functions/Util.blink.html +2 -2
  107. package/docs/functions/Util.bounding.html +1 -1
  108. package/docs/functions/Util.boundingBox.html +1 -1
  109. package/docs/functions/Util.boundingSphere.html +1 -1
  110. package/docs/functions/Util.boxVertex.html +2 -2
  111. package/docs/functions/Util.boxVertexes.html +1 -1
  112. package/docs/functions/Util.checkFiveModelLoaded.html +2 -2
  113. package/docs/functions/Util.convexHull.html +2 -2
  114. package/docs/functions/Util.equal.html +2 -2
  115. package/docs/functions/Util.fiveModelIsLoaded.html +2 -2
  116. package/docs/functions/Util.getCoordsFromClient.html +1 -1
  117. package/docs/functions/Util.getCoordsFromElement.html +1 -1
  118. package/docs/functions/Util.getFrameTime.html +2 -2
  119. package/docs/functions/Util.initialCSS3DRender.html +1 -1
  120. package/docs/functions/Util.inside.html +1 -1
  121. package/docs/functions/Util.isAbsoluteURL.html +1 -1
  122. package/docs/functions/Util.isModelLike.html +1 -1
  123. package/docs/functions/Util.isNil.html +2 -2
  124. package/docs/functions/Util.isPanoramaLike.html +1 -1
  125. package/docs/functions/Util.lookObject.html +2 -2
  126. package/docs/functions/Util.lookPoint.html +2 -2
  127. package/docs/functions/Util.nextFrame.html +1 -1
  128. package/docs/functions/Util.notNil.html +2 -2
  129. package/docs/functions/Util.reblink.html +2 -2
  130. package/docs/functions/Util.requestAnimationFrameInterval.html +2 -2
  131. package/docs/functions/Util.sculpt.createBox.html +1 -1
  132. package/docs/functions/Util.sculpt.createCircle.html +1 -1
  133. package/docs/functions/Util.sculpt.createCylinder.html +1 -1
  134. package/docs/functions/Util.sculpt.createLine.html +2 -2
  135. package/docs/functions/Util.sculpt.createPoint.html +1 -1
  136. package/docs/functions/Util.sculpt.createPolygon.html +1 -1
  137. package/docs/functions/Util.sculpt.createPrism.html +1 -1
  138. package/docs/functions/Util.sculpt.createRectangle.html +2 -2
  139. package/docs/functions/Util.tag.html +1 -1
  140. package/docs/functions/Util.tweenProgress.html +1 -1
  141. package/docs/functions/Util.uuid.html +2 -2
  142. package/docs/functions/Util.waitFiveModelLoaded.html +2 -2
  143. package/docs/functions/Util.worldBounding.html +1 -1
  144. package/docs/functions/Util.worldBoundingBox.html +1 -1
  145. package/docs/functions/Util.worldBoundingSphere.html +1 -1
  146. package/docs/functions/createPolyline.html +2 -2
  147. package/docs/functions/pluginFlag.html +1 -1
  148. package/docs/hierarchy.html +1 -1
  149. package/docs/index.html +2 -2
  150. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +3 -3
  151. package/docs/interfaces/AreaMakerPluginType.Config.html +3 -3
  152. package/docs/interfaces/AreaMakerPluginType.EventMap.html +12 -12
  153. package/docs/interfaces/AreaMakerPluginType.Params.html +3 -3
  154. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +4 -4
  155. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +3 -3
  156. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +3 -3
  157. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -3
  158. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
  159. package/docs/interfaces/AreaMakerPluginType.State.html +5 -5
  160. package/docs/interfaces/CSS3DRenderPluginEventMap.html +4 -4
  161. package/docs/interfaces/CSS3DRenderPluginState.html +4 -4
  162. package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
  163. package/docs/interfaces/ContentTypeMapInterface.html +15 -15
  164. package/docs/interfaces/CruisePluginTypes.Config.html +4 -4
  165. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
  166. package/docs/interfaces/CruisePluginTypes.EventMap.html +17 -17
  167. package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +3 -3
  168. package/docs/interfaces/CruisePluginTypes.MoveAction.html +8 -8
  169. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +9 -9
  170. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +10 -10
  171. package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
  172. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
  173. package/docs/interfaces/CruisePluginTypes.PluginState.html +7 -7
  174. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +7 -7
  175. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +8 -8
  176. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -3
  177. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
  178. package/docs/interfaces/CurrentPanoImagePluginType.State.html +4 -4
  179. package/docs/interfaces/FloorplanBounding.html +5 -5
  180. package/docs/interfaces/FloorplanData.html +3 -3
  181. package/docs/interfaces/FloorplanEntrance.html +8 -8
  182. package/docs/interfaces/FloorplanExtraObject.html +5 -5
  183. package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
  184. package/docs/interfaces/FloorplanFloorData.html +3 -3
  185. package/docs/interfaces/FloorplanImagePosition.html +3 -3
  186. package/docs/interfaces/FloorplanObserver.html +3 -3
  187. package/docs/interfaces/FloorplanOutlineItem.html +3 -3
  188. package/docs/interfaces/FloorplanPosition.html +3 -3
  189. package/docs/interfaces/FloorplanRoomItem.html +8 -8
  190. package/docs/interfaces/FloorplanRoomLabelItem.html +4 -4
  191. package/docs/interfaces/FloorplanServerBounding.html +5 -5
  192. package/docs/interfaces/FloorplanServerComputedData.html +2 -2
  193. package/docs/interfaces/FloorplanServerData.html +3 -3
  194. package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
  195. package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
  196. package/docs/interfaces/FloorplanServerEntrance.html +8 -8
  197. package/docs/interfaces/FloorplanServerFloorData.html +3 -3
  198. package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
  199. package/docs/interfaces/FloorplanServerObserver.html +3 -3
  200. package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
  201. package/docs/interfaces/FloorplanServerPosition.html +3 -3
  202. package/docs/interfaces/FloorplanServerRoomItem.html +9 -9
  203. package/docs/interfaces/FloorplanServerRoomLabelItem.html +4 -4
  204. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
  205. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -3
  206. package/docs/interfaces/GuideLinePluginType.EventMap.html +5 -5
  207. package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +3 -3
  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 +20 -20
  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 +6 -6
  220. package/docs/interfaces/HelperOffset.html +2 -2
  221. package/docs/interfaces/ImagePlaneGroup.html +2 -2
  222. package/docs/interfaces/ItemLabelPluginData.html +2 -2
  223. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +2 -2
  224. package/docs/interfaces/ItemLabelPluginParametersType.html +2 -2
  225. package/docs/interfaces/MinMax.html +2 -2
  226. package/docs/interfaces/ModelChassisCompassPluginData.html +2 -2
  227. package/docs/interfaces/ModelChassisCompassPluginExportType.html +2 -2
  228. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +2 -2
  229. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +2 -2
  230. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +2 -2
  231. package/docs/interfaces/ModelItemLabelPluginData.html +2 -2
  232. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +2 -2
  233. package/docs/interfaces/ModelItemLabelPluginParametersType.html +2 -2
  234. package/docs/interfaces/ModelMakerPluginType.EventMap.html +10 -10
  235. package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +3 -3
  236. package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +4 -4
  237. package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
  238. package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +4 -4
  239. package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +4 -4
  240. package/docs/interfaces/ModelMakerPluginType.State.html +5 -5
  241. package/docs/interfaces/ModelRoomLabelPluginData.html +2 -2
  242. package/docs/interfaces/ModelTVVideoPluginData.html +2 -2
  243. package/docs/interfaces/ModelTVVideoPluginExportType.html +2 -2
  244. package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -2
  245. package/docs/interfaces/ModelViewPluginExportType.html +2 -2
  246. package/docs/interfaces/Object3DHelperState.html +2 -2
  247. package/docs/interfaces/ObjectHelperControllers.html +2 -2
  248. package/docs/interfaces/PaintBrushAction.html +7 -7
  249. package/docs/interfaces/PaintBrushConfigs.html +2 -2
  250. package/docs/interfaces/PaintBrushState.html +2 -2
  251. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
  252. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
  253. package/docs/interfaces/PanoMeasureParameterType.html +6 -6
  254. package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
  255. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
  256. package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
  257. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +4 -4
  258. package/docs/interfaces/PanoRulerPluginExportType.html +2 -2
  259. package/docs/interfaces/PanoRulerPluginOptions.html +2 -2
  260. package/docs/interfaces/PanoRulerPluginParameterType.html +2 -2
  261. package/docs/interfaces/PanoRulerProPluginExportType.html +2 -2
  262. package/docs/interfaces/PanoRulerProPluginOptions.html +2 -2
  263. package/docs/interfaces/PanoRulerProPluginParameterType.html +2 -2
  264. package/docs/interfaces/PanoRulerProPluginState.html +2 -2
  265. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
  266. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
  267. package/docs/interfaces/PanoSpatialTagPluginData.html +2 -2
  268. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +2 -2
  269. package/docs/interfaces/PanoSpatialTagPluginExportType.html +2 -2
  270. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +2 -2
  271. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +2 -2
  272. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +2 -2
  273. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +2 -2
  274. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -3
  275. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +5 -5
  276. package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
  277. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
  278. package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
  279. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +5 -5
  280. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +7 -7
  281. package/docs/interfaces/PluginEventMap.html +4 -4
  282. package/docs/interfaces/Point.html +2 -2
  283. package/docs/interfaces/Room.html +2 -2
  284. package/docs/interfaces/RoomInfo.html +2 -2
  285. package/docs/interfaces/RoomLabel.html +7 -7
  286. package/docs/interfaces/RoomRules.html +1 -1
  287. package/docs/interfaces/Rooms.html +1 -1
  288. package/docs/interfaces/Scissor.html +6 -6
  289. package/docs/interfaces/State.html +4 -4
  290. package/docs/interfaces/TagCacheInterface.html +3 -3
  291. package/docs/interfaces/TagConfig.html +11 -11
  292. package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
  293. package/docs/interfaces/TagIconUrl.html +9 -9
  294. package/docs/interfaces/TagObjectGroup.html +2 -2
  295. package/docs/interfaces/TagStyle.html +2 -2
  296. package/docs/interfaces/Tags.html +4 -4
  297. package/docs/interfaces/TemporaryState.html +2 -2
  298. package/docs/interfaces/Util.AnimeInstance.html +2 -2
  299. package/docs/interfaces/Util.BlinkAnimeOptions.html +2 -2
  300. package/docs/interfaces/Util.EventHandlerConfig.html +5 -5
  301. package/docs/interfaces/Util.FiveDomEvent.html +2 -2
  302. package/docs/interfaces/Util.FiveDomEventMap.html +10 -10
  303. package/docs/interfaces/Util.MagnifierParameter.html +5 -5
  304. package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
  305. package/docs/interfaces/Util.PointIntersection.html +11 -11
  306. package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
  307. package/docs/interfaces/Util.ReBlinkAnimeOptions.html +3 -3
  308. package/docs/modules/AreaMakerPluginType.html +2 -2
  309. package/docs/modules/CruisePluginTypes.html +2 -2
  310. package/docs/modules/CurrentPanoImagePluginType.html +2 -2
  311. package/docs/modules/GuideLineItem.html +2 -2
  312. package/docs/modules/GuideLineModeItem.html +2 -2
  313. package/docs/modules/GuideLinePluginType.html +2 -2
  314. package/docs/modules/ModelMakerPluginType.html +2 -2
  315. package/docs/modules/PanoVideoPluginType.html +2 -2
  316. package/docs/modules/SculptData.html +2 -2
  317. package/docs/modules/SculptType.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/GuideLinePluginType.RouteConfig.html +2 -2
  358. package/docs/types/HelperEventMap.html +1 -1
  359. package/docs/types/InternalHelperEventMap.html +1 -1
  360. package/docs/types/MapviewFloorplanPluginParameterType.html +1 -1
  361. package/docs/types/MapviewFloorplanPluginReturnType.html +1 -1
  362. package/docs/types/MediaData.html +2 -2
  363. package/docs/types/MediaStore.html +1 -1
  364. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -1
  365. package/docs/types/ModelFloorplanPluginParameterType.html +1 -1
  366. package/docs/types/ModelFloorplanPluginReturnType.html +1 -1
  367. package/docs/types/ModelId.html +1 -1
  368. package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -1
  369. package/docs/types/ModelMakerPluginType.ItemType.html +1 -1
  370. package/docs/types/ModelRoomLabelPluginParameters.html +1 -1
  371. package/docs/types/ModelRoomLabelPluginReturnType.html +1 -1
  372. package/docs/types/MoveArgs.html +2 -2
  373. package/docs/types/MoveOpts.html +2 -2
  374. package/docs/types/Object3DHelperEventMap.html +1 -1
  375. package/docs/types/ObjectFit.html +1 -1
  376. package/docs/types/PaintBrushEventMap.html +1 -1
  377. package/docs/types/PanoCompassPluginData.html +1 -1
  378. package/docs/types/PanoCompassPluginExportType.html +1 -1
  379. package/docs/types/PanoCompassPluginParameterType.html +1 -1
  380. package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -1
  381. package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -1
  382. package/docs/types/PanoIndex.html +1 -1
  383. package/docs/types/PanoMeasurePluginEvent.html +1 -1
  384. package/docs/types/PanoMeasureReturnType.html +1 -1
  385. package/docs/types/PanoSpatialTagPluginId.html +1 -1
  386. package/docs/types/PanoTagPluginExportInterface.html +1 -1
  387. package/docs/types/PanoTagPluginParamsInterface.html +1 -1
  388. package/docs/types/PanoVideoPluginParameterType.html +1 -1
  389. package/docs/types/PanoVideoPluginReturnType.html +1 -1
  390. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -2
  391. package/docs/types/PipelinePluginParameterType.html +1 -1
  392. package/docs/types/PipelinePluginReturnType.html +1 -1
  393. package/docs/types/PlaneTag.html +2 -2
  394. package/docs/types/Point2DTag.html +2 -2
  395. package/docs/types/Point3DTag.html +2 -2
  396. package/docs/types/PointTagInstance.html +1 -1
  397. package/docs/types/Position.html +1 -1
  398. package/docs/types/PositionFrom.html +1 -1
  399. package/docs/types/RotateArgs.html +2 -2
  400. package/docs/types/RotateOpts.html +2 -2
  401. package/docs/types/RuleLabelsKey.html +1 -1
  402. package/docs/types/RuleLabelsValue.html +1 -1
  403. package/docs/types/ScaleCallback.html +1 -1
  404. package/docs/types/ScalePosition.html +2 -2
  405. package/docs/types/SculptData.BoxData.html +1 -1
  406. package/docs/types/SculptData.CircleData.html +1 -1
  407. package/docs/types/SculptData.CylinderData.html +1 -1
  408. package/docs/types/SculptData.PointData.html +1 -1
  409. package/docs/types/SculptData.PolygonData.html +1 -1
  410. package/docs/types/SculptData.PolylineData.html +1 -1
  411. package/docs/types/SculptData.PrismData.html +1 -1
  412. package/docs/types/SculptData.RectangleData.html +1 -1
  413. package/docs/types/SculptType.Theme.html +2 -2
  414. package/docs/types/StickType.html +1 -1
  415. package/docs/types/Tag.html +2 -2
  416. package/docs/types/Tag2D.html +2 -2
  417. package/docs/types/Tag3D.html +2 -2
  418. package/docs/types/TagClickParams.html +1 -1
  419. package/docs/types/TagConfigByKey.html +1 -1
  420. package/docs/types/TagContentType.html +1 -1
  421. package/docs/types/TagContentTypeMapping.html +1 -1
  422. package/docs/types/TagDimensionType.html +1 -1
  423. package/docs/types/TagElement.html +2 -2
  424. package/docs/types/TagEvents.html +1 -1
  425. package/docs/types/TagGLTFObject.html +1 -1
  426. package/docs/types/TagHooks.html +1 -1
  427. package/docs/types/TagId.html +1 -1
  428. package/docs/types/TagInstance.html +1 -1
  429. package/docs/types/TagPointType.html +2 -2
  430. package/docs/types/TagRendererMap.html +1 -1
  431. package/docs/types/TopviewFloorplanPluginParameterType.html +1 -1
  432. package/docs/types/TopviewFloorplanPluginReturnType.html +1 -1
  433. package/docs/types/Util.ActionIfNoIntersection.html +1 -1
  434. package/docs/types/Util.AdherePoint.html +2 -2
  435. package/docs/types/Util.PointSelectorConfig.html +1 -1
  436. package/docs/types/WorkCode.html +1 -1
  437. package/docs/variables/FLOOR_TYPE_MAP.html +2 -2
  438. package/docs/variables/PLUGIN.html +1 -1
  439. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -2
  440. package/docs/variables/ROOM_TYPE_MAP.html +2 -2
  441. package/docs/variables/Util.animeMap.html +1 -1
  442. package/docs/variables/defaultGlobalConfig.html +1 -1
  443. package/docs/variables/itemLabelPluginServerParams.html +1 -1
  444. package/docs/variables/modelItemLabelPluginServerParams.html +1 -1
  445. package/docs/variables/modelRoomLabelPluginServerParams.html +1 -1
  446. package/libs/AreaMakerPlugin/Controller.js +4 -2
  447. package/libs/AreaMakerPlugin/index.js +4 -2
  448. package/libs/AreaMakerPlugin/utils/Item.js +4 -2
  449. package/libs/CSS3DRenderPlugin/Controller.js +4 -2
  450. package/libs/CSS3DRenderPlugin/index.js +7 -5
  451. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +4 -2
  452. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +4 -2
  453. package/libs/CruisePlugin/BaseController.js +14 -12
  454. package/libs/CruisePlugin/Move.js +4 -2
  455. package/libs/CruisePlugin/Work.js +4 -2
  456. package/libs/CruisePlugin/index.js +8 -6
  457. package/libs/CurrentPanoImagePlugin/Controller.js +4 -2
  458. package/libs/CurrentPanoImagePlugin/index.js +5 -3
  459. package/libs/GuideLinePlugin/Controller.js +6 -4
  460. package/libs/GuideLinePlugin/GuideLineItem.js +4 -2
  461. package/libs/GuideLinePlugin/GuideLineModeItem.js +4 -2
  462. package/libs/GuideLinePlugin/index.js +8 -6
  463. package/libs/MeasurePlugin/Controller.d.ts +11 -1
  464. package/libs/MeasurePlugin/Controller.js +114 -83
  465. package/libs/MeasurePlugin/index.js +4 -3
  466. package/libs/MeasurePlugin/utils/MeasureMesh.d.ts +7 -2
  467. package/libs/MeasurePlugin/utils/MeasureMesh.js +36 -24
  468. package/libs/ModelMakerPlugin/Controller.js +4 -3
  469. package/libs/ModelMakerPlugin/index.js +4 -3
  470. package/libs/ModelMakerPlugin/item/baseItem.js +4 -2
  471. package/libs/ModelMakerPlugin/item/boxItem.js +4 -2
  472. package/libs/ModelMakerPlugin/item/polygonItem.js +4 -2
  473. package/libs/ModelMakerPlugin/item/prismItem.js +4 -2
  474. package/libs/ModelTVVideoPlugin/Plugin.js +5 -3
  475. package/libs/ModelTVVideoPlugin/index.js +4 -2
  476. package/libs/ModelViewPlugin/Plugin.js +5 -3
  477. package/libs/ModelViewPlugin/index.js +2 -0
  478. package/libs/Object3DHelperPlugin/Controller.js +17 -15
  479. package/libs/Object3DHelperPlugin/index.js +7 -5
  480. package/libs/PanoCompassPlugin/Controller.js +4 -2
  481. package/libs/PanoCompassPlugin/index.js +5 -3
  482. package/libs/PanoDoorLabelPlugin/Controller.js +4 -2
  483. package/libs/PanoDoorLabelPlugin/index.js +5 -3
  484. package/libs/PanoMeasurePlugin/Components/Controller0.js +4 -2
  485. package/libs/PanoMeasurePlugin/Components/Controller1.js +4 -2
  486. package/libs/PanoMeasurePlugin/Controller/EditController.js +45 -43
  487. package/libs/PanoMeasurePlugin/Controller/WatchController.js +4 -2
  488. package/libs/PanoMeasurePlugin/Controller/index.js +4 -2
  489. package/libs/PanoMeasurePlugin/Model/area.js +13 -11
  490. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +2 -0
  491. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +4 -2
  492. package/libs/PanoMeasurePlugin/index.js +15 -13
  493. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +4 -2
  494. package/libs/PanoRulerProPlugin/Controller.js +4 -2
  495. package/libs/PanoRulerProPlugin/RulerItems.js +4 -2
  496. package/libs/PanoRulerProPlugin/index.js +5 -3
  497. package/libs/PanoSpatialTagPlugin/Plugin.js +65 -63
  498. package/libs/PanoSpatialTagPlugin/index.js +2 -0
  499. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +4 -2
  500. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +4 -2
  501. package/libs/PanoTagPlugin/Components/Tag/index.js +59 -57
  502. package/libs/PanoTagPlugin/Components/TagContainer.js +4 -2
  503. package/libs/PanoTagPlugin/Components/TagItem.js +4 -2
  504. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +4 -2
  505. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +4 -2
  506. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +28 -26
  507. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +4 -2
  508. package/libs/PanoTagPlugin/controller/TagRender.js +4 -2
  509. package/libs/PanoTagPlugin/controller/TagUtil.js +4 -2
  510. package/libs/PanoTagPlugin/controller/index.js +7 -5
  511. package/libs/PanoTagPlugin/index.js +13 -11
  512. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +18 -16
  513. package/libs/PanoVideoPlugin/Controller.js +4 -2
  514. package/libs/PanoVideoPlugin/VideoMeshController.js +4 -2
  515. package/libs/PanoVideoPlugin/index.js +7 -5
  516. package/libs/PipelinePlugin/Controller.js +21 -19
  517. package/libs/PipelinePlugin/index.js +5 -3
  518. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +4 -2
  519. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +4 -2
  520. package/libs/PipelinePlugin/utils/Objects/Pipe.js +24 -22
  521. package/libs/Sculpt/Meshes/Line.d.ts +6 -2
  522. package/libs/Sculpt/Meshes/Line.js +109 -102
  523. package/libs/Sculpt/Meshes/Point.d.ts +4 -0
  524. package/libs/Sculpt/Meshes/Point.js +72 -62
  525. package/libs/Sculpt/Meshes/Polygon.d.ts +4 -0
  526. package/libs/Sculpt/Meshes/Polygon.js +57 -48
  527. package/libs/Sculpt/Meshes/Polyline.js +22 -25
  528. package/libs/Sculpt/Objects/Base/index.js +10 -13
  529. package/libs/Sculpt/typings/style.d.ts +1 -1
  530. package/libs/Sculpt/utils/renderDom.d.ts +19 -0
  531. package/libs/Sculpt/utils/renderDom.js +22 -0
  532. package/libs/Sculpt/utils/three/ColoredMesh.js +22 -21
  533. package/libs/Sculpt/utils/unit.d.ts +2 -0
  534. package/libs/Sculpt/utils/unit.js +26 -0
  535. package/libs/base/BasePlugin.js +3 -3
  536. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +4 -2
  537. package/libs/floorplan/MapviewFloorplanPlugin/index.js +5 -3
  538. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +4 -2
  539. package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -3
  540. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +4 -2
  541. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -3
  542. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +4 -2
  543. package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -3
  544. package/libs/index.js +147 -146
  545. package/libs/shared-utils/five/FiveDomEvents.d.ts +2 -2
  546. package/libs/shared-utils/five/FiveDomEvents.js +71 -69
  547. package/libs/shared-utils/logger.js +1 -1
  548. package/libs/shared-utils/three/PointSelector/index.d.ts +4 -4
  549. package/libs/shared-utils/three/PointSelector/index.js +6 -5
  550. package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.d.ts +1 -1
  551. package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +3 -3
  552. package/libs/vendor/hotkeys-js/dist/hotkeys.esm.js +91 -91
  553. package/package.json +1 -1
  554. package/libs/Sculpt/utils/removeAllTag.js +0 -13
@@ -83,6 +83,8 @@ import "../shared-utils/three/core/LineGeometry.js";
83
83
  import "../shared-utils/three/core/LineMaterial.js";
84
84
  import "../shared-utils/three/core/Line2.js";
85
85
  import "../shared-utils/three/core/LineMaterial2.js";
86
+ import "../Sculpt/utils/unit.js";
87
+ import "../Sculpt/utils/renderDom.js";
86
88
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
87
89
  import "../shared-utils/isTouchDevice.js";
88
90
  import "../shared-utils/five/getPosition.js";
@@ -91,7 +93,7 @@ import "../shared-utils/three/PointSelector/utils/contents.js";
91
93
  import "../Sculpt/utils/three/rayOnLine.js";
92
94
  import "@realsee/five";
93
95
  import "../shared-utils/isTruelyObject.js";
94
- class Ie extends M {
96
+ class Ue extends M {
95
97
  constructor(e, i) {
96
98
  super(e);
97
99
  // ==================== public properties ====================
@@ -322,5 +324,5 @@ class Ie extends M {
322
324
  }
323
325
  }
324
326
  export {
325
- Ie as CurrentPanoImagePluginController
327
+ Ue as CurrentPanoImagePluginController
326
328
  };
@@ -52,6 +52,8 @@ import "../shared-utils/three/core/LineGeometry.js";
52
52
  import "../shared-utils/three/core/LineMaterial.js";
53
53
  import "../shared-utils/three/core/Line2.js";
54
54
  import "../shared-utils/three/core/LineMaterial2.js";
55
+ import "../Sculpt/utils/unit.js";
56
+ import "../Sculpt/utils/renderDom.js";
55
57
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
56
58
  import "../shared-utils/isTouchDevice.js";
57
59
  import "../shared-utils/five/getPosition.js";
@@ -64,8 +66,8 @@ import "../shared-utils/animationFrame/index.js";
64
66
  import "../shared-utils/equal.js";
65
67
  import "../shared-utils/isTruelyObject.js";
66
68
  import "../shared-utils/three/loadTexture.js";
67
- const sr = (r, o) => new t(r, o);
69
+ const cr = (r, o) => new t(r, o);
68
70
  export {
69
- sr as CurrentPanoImagePlugin,
70
- sr as default
71
+ cr as CurrentPanoImagePlugin,
72
+ cr as default
71
73
  };
@@ -86,6 +86,8 @@ import "../shared-utils/three/core/LineGeometry.js";
86
86
  import "../shared-utils/three/core/LineMaterial.js";
87
87
  import "../shared-utils/three/core/Line2.js";
88
88
  import "../shared-utils/three/core/LineMaterial2.js";
89
+ import "../Sculpt/utils/unit.js";
90
+ import "../Sculpt/utils/renderDom.js";
89
91
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
90
92
  import "../shared-utils/isTouchDevice.js";
91
93
  import "../shared-utils/five/getPosition.js";
@@ -244,8 +246,8 @@ import "../CruisePlugin/utils/coordinatesToVector.js";
244
246
  import "../CruisePlugin/utils/safeCall.js";
245
247
  import "../CruisePlugin/utils/sleep.js";
246
248
  import "../shared-utils/five/fiveLoaded.js";
247
- const b = "GuideLinePlugin", g = `${b}`, Jo = (p) => `${g}--${p}`;
248
- class Ro extends P {
249
+ const b = "GuideLinePlugin", g = `${b}`, qo = (p) => `${g}--${p}`;
250
+ class zo extends P {
249
251
  constructor(t, i) {
250
252
  super(t, i);
251
253
  h(this, "name", b);
@@ -385,6 +387,6 @@ class Ro extends P {
385
387
  }
386
388
  }
387
389
  export {
388
- Ro as default,
389
- Jo as pluginFlag
390
+ zo as default,
391
+ qo as pluginFlag
390
392
  };
@@ -5,7 +5,7 @@ import "../shared-utils/five/changeMode.js";
5
5
  import "../CruisePlugin/Move.js";
6
6
  import "../CruisePlugin/Work.js";
7
7
  import "../shared-utils/Subscribe.js";
8
- import { GuideLineItem as rr } from "./GuideLineItem/index.js";
8
+ import { GuideLineItem as pr } from "./GuideLineItem/index.js";
9
9
  import "three";
10
10
  import "./utils/createLineGeometry.js";
11
11
  import "../vendor/polyline-normals/index.js";
@@ -66,6 +66,8 @@ import "../shared-utils/three/core/LineGeometry.js";
66
66
  import "../shared-utils/three/core/LineMaterial.js";
67
67
  import "../shared-utils/three/core/Line2.js";
68
68
  import "../shared-utils/three/core/LineMaterial2.js";
69
+ import "../Sculpt/utils/unit.js";
70
+ import "../Sculpt/utils/renderDom.js";
69
71
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
70
72
  import "../shared-utils/isTouchDevice.js";
71
73
  import "../shared-utils/five/getPosition.js";
@@ -216,5 +218,5 @@ import "../CruisePlugin/utils/safeCall.js";
216
218
  import "../CruisePlugin/utils/sleep.js";
217
219
  import "../shared-utils/five/fiveLoaded.js";
218
220
  export {
219
- rr as GuideLineItem
221
+ pr as GuideLineItem
220
222
  };
@@ -20,7 +20,7 @@ import "./Components/Tag.js";
20
20
  import "./utils/index.js";
21
21
  import "../vendor/object-assign-deep/objectAssignDeep.js";
22
22
  import "./utils/createPath.js";
23
- import { GuideLineModeItem as Nm } from "./GuideLineModeItem/index.js";
23
+ import { GuideLineModeItem as Pm } from "./GuideLineModeItem/index.js";
24
24
  import "../vendor/polyline-normals/index.js";
25
25
  import "../vendor/polyline-miter-util/index.js";
26
26
  import "../vendor/gl-vec2/add.js";
@@ -69,6 +69,8 @@ import "../shared-utils/three/core/LineGeometry.js";
69
69
  import "../shared-utils/three/core/LineMaterial.js";
70
70
  import "../shared-utils/three/core/Line2.js";
71
71
  import "../shared-utils/three/core/LineMaterial2.js";
72
+ import "../Sculpt/utils/unit.js";
73
+ import "../Sculpt/utils/renderDom.js";
72
74
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
73
75
  import "../shared-utils/isTouchDevice.js";
74
76
  import "../shared-utils/five/getPosition.js";
@@ -198,5 +200,5 @@ import "../PanoTagPlugin/Components/TagContainer.js";
198
200
  import "../PanoTagPlugin/Components/TagItem.js";
199
201
  import "../PanoTagPlugin/Components/Common/TagPoint.js";
200
202
  export {
201
- Nm as GuideLineModeItem
203
+ Pm as GuideLineModeItem
202
204
  };
@@ -1,6 +1,6 @@
1
1
  import t from "./Controller.js";
2
- import { GuideLineItem$1 as nr } from "./GuideLineItem/index.js";
3
- import { GuideLineModeItem$1 as ur } from "./GuideLineModeItem/index.js";
2
+ import { GuideLineItem$1 as ur } from "./GuideLineItem/index.js";
3
+ import { GuideLineModeItem$1 as Lr } from "./GuideLineModeItem/index.js";
4
4
  import "../base/BasePluginWithData.js";
5
5
  import "../base/BasePlugin.js";
6
6
  import "../shared-utils/Subscribe.js";
@@ -55,6 +55,8 @@ import "../shared-utils/three/core/LineGeometry.js";
55
55
  import "../shared-utils/three/core/LineMaterial.js";
56
56
  import "../shared-utils/three/core/Line2.js";
57
57
  import "../shared-utils/three/core/LineMaterial2.js";
58
+ import "../Sculpt/utils/unit.js";
59
+ import "../Sculpt/utils/renderDom.js";
58
60
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
59
61
  import "../shared-utils/isTouchDevice.js";
60
62
  import "../shared-utils/five/getPosition.js";
@@ -215,10 +217,10 @@ import "../shared-utils/five/changeMode.js";
215
217
  import "../shared-utils/nearlyEqual.js";
216
218
  import "../CruisePlugin/Move.js";
217
219
  import "../CruisePlugin/utils/getFiveStateOnCurve.js";
218
- const r = (i, o) => new t(i, o), mr = r;
220
+ const r = (i, o) => new t(i, o), er = r;
219
221
  export {
220
- nr as GuideLineItem,
221
- ur as GuideLineModeItem,
222
+ ur as GuideLineItem,
223
+ Lr as GuideLineModeItem,
222
224
  r as GuideLinePlugin,
223
- mr as default
225
+ er as default
224
226
  };
@@ -1,4 +1,5 @@
1
1
  import type { Five } from '@realsee/five';
2
+ import { PointSelector } from '../shared-utils';
2
3
  import { type PolygonStyle } from '../Sculpt/Meshes/Polygon';
3
4
  import { Subscribe } from '../shared-utils/Subscribe';
4
5
  import type { LineMeshStyle } from '../Sculpt/typings';
@@ -12,12 +13,13 @@ export declare class MeasureController extends Subscribe<Event> {
12
13
  private five;
13
14
  private group;
14
15
  private currentMeasureMesh?;
15
- private get pointSelector();
16
+ get pointSelector(): PointSelector;
16
17
  private _pointSelector;
17
18
  private get fiveDomEvents();
18
19
  private _fiveDomEvents;
19
20
  private get cursor();
20
21
  private _cursor;
22
+ private unbindHotKey;
21
23
  constructor(five: Five);
22
24
  /**
23
25
  * @description 开始测量
@@ -27,6 +29,10 @@ export declare class MeasureController extends Subscribe<Event> {
27
29
  * @description 结束测量
28
30
  */
29
31
  endMeasure: () => void;
32
+ /**
33
+ * @description 取消本次测量
34
+ */
35
+ cancel: () => void;
30
36
  /**
31
37
  * @description 撤销上一步
32
38
  */
@@ -36,7 +42,11 @@ export declare class MeasureController extends Subscribe<Event> {
36
42
  */
37
43
  clear: () => void;
38
44
  dispose: () => void;
45
+ private addEventListener;
46
+ private removeEventListener;
39
47
  private onClick;
48
+ private onHover;
49
+ private onUnHover;
40
50
  private updateSelectAdsorbedHelper;
41
51
  }
42
52
  export {};
@@ -1,38 +1,38 @@
1
- var y = Object.defineProperty, _ = Object.defineProperties;
1
+ var _ = Object.defineProperty, D = Object.defineProperties;
2
2
  var F = Object.getOwnPropertyDescriptors;
3
- var b = Object.getOwnPropertySymbols;
4
- var D = Object.prototype.hasOwnProperty, V = Object.prototype.propertyIsEnumerable;
5
- var P = (p, t, e) => t in p ? y(p, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[t] = e, f = (p, t) => {
6
- for (var e in t || (t = {}))
7
- D.call(t, e) && P(p, e, t[e]);
8
- if (b)
9
- for (var e of b(t))
10
- V.call(t, e) && P(p, e, t[e]);
11
- return p;
12
- }, v = (p, t) => _(p, F(t));
13
- var o = (p, t, e) => (P(p, typeof t != "symbol" ? t + "" : t, e), e);
3
+ var w = Object.getOwnPropertySymbols;
4
+ var L = Object.prototype.hasOwnProperty, H = Object.prototype.propertyIsEnumerable;
5
+ var M = (s, o, e) => o in s ? _(s, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[o] = e, v = (s, o) => {
6
+ for (var e in o || (o = {}))
7
+ L.call(o, e) && M(s, e, o[e]);
8
+ if (w)
9
+ for (var e of w(o))
10
+ H.call(o, e) && M(s, e, o[e]);
11
+ return s;
12
+ }, f = (s, o) => D(s, F(o));
13
+ var t = (s, o, e) => (M(s, typeof o != "symbol" ? o + "" : o, e), e);
14
14
  import * as r from "three";
15
15
  import "../shared-utils/tag.js";
16
16
  import "../vendor/hammerjs/hammer.js";
17
- import { Subscribe as L } from "../shared-utils/Subscribe.js";
18
- import { PointSelector as z } from "../shared-utils/three/PointSelector/index.js";
17
+ import { Subscribe as I } from "../shared-utils/Subscribe.js";
18
+ import { PointSelector as V } from "../shared-utils/three/PointSelector/index.js";
19
19
  import "../shared-utils/three/CSS3DRenderer/index.js";
20
20
  import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
21
- import { IObject3D as U } from "../shared-utils/three/IObject3D.js";
21
+ import { IObject3D as x } from "../shared-utils/three/IObject3D.js";
22
22
  import "@realsee/five/line";
23
23
  import "../shared-utils/three/core/Five_LineMaterial2.js";
24
24
  import "../shared-utils/three/core/Sphere.js";
25
25
  import "../vendor/animejs/lib/anime.es.js";
26
- import { FiveDomEvents as x } from "../shared-utils/five/FiveDomEvents.js";
26
+ import { FiveDomEvents as U } from "../shared-utils/five/FiveDomEvents.js";
27
27
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
28
28
  import "../shared-utils/five/FivePuppet.js";
29
- import { MeasureMesh as A } from "./utils/MeasureMesh.js";
29
+ import { MeasureMesh as z } from "./utils/MeasureMesh.js";
30
30
  import { PointMesh as k } from "../Sculpt/Meshes/Point.js";
31
- import { LineWithDotsMesh as g } from "../Sculpt/Meshes/LineWithDots.js";
32
- import { hotkeys as M } from "../vendor/hotkeys-js/dist/hotkeys.esm.js";
33
- import { PolygonMesh as C } from "../Sculpt/Meshes/Polygon.js";
34
- import { validatePolygon as H } from "./utils/validatePolygon.js";
35
- import { Cursor as O } from "../Sculpt/utils/Modules/Cursor.js";
31
+ import { LineWithDotsMesh as P } from "../Sculpt/Meshes/LineWithDots.js";
32
+ import { hotkeys as a } from "../vendor/hotkeys-js/dist/hotkeys.esm.js";
33
+ import { PolygonMesh as A } from "../Sculpt/Meshes/Polygon.js";
34
+ import { validatePolygon as N } from "./utils/validatePolygon.js";
35
+ import { Cursor as C } from "../Sculpt/utils/Modules/Cursor.js";
36
36
  import "../shared-utils/positionToVector3.js";
37
37
  import "../shared-utils/five/vector3ToScreen.js";
38
38
  import "../shared-utils/five/getFiveModel.js";
@@ -70,6 +70,8 @@ import "../shared-utils/three/core/LineGeometry.js";
70
70
  import "../shared-utils/three/core/LineMaterial.js";
71
71
  import "../shared-utils/three/core/Line2.js";
72
72
  import "../shared-utils/three/core/LineMaterial2.js";
73
+ import "../Sculpt/utils/unit.js";
74
+ import "../Sculpt/utils/renderDom.js";
73
75
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
74
76
  import "../shared-utils/isTouchDevice.js";
75
77
  import "../shared-utils/five/getPosition.js";
@@ -79,7 +81,6 @@ import "../Sculpt/utils/three/rayOnLine.js";
79
81
  import "@realsee/five";
80
82
  import "../shared-utils/five/calculateThreeMouse.js";
81
83
  import "./Controller.js";
82
- import "../Sculpt/utils/removeAllTag.js";
83
84
  import "../shared-utils/three/generatePolygonGeometry.js";
84
85
  import "../shared-utils/three/earcut3D.js";
85
86
  import "../vendor/earcut/src/earcut.js";
@@ -92,106 +93,134 @@ const S = {
92
93
  lengthEnable: !0,
93
94
  occlusionVisibility: !0,
94
95
  lengthUnit: "m"
95
- }, T = {
96
+ }, B = {
96
97
  lengthEnable: !0,
97
98
  occlusionVisibility: !0,
98
99
  opacity: 0.2,
99
100
  lengthUnit: "m"
100
101
  };
101
- class mt extends L {
102
+ class mt extends I {
102
103
  constructor(e) {
103
104
  super();
104
- o(this, "name", "MeasurePlugin");
105
- o(this, "five");
106
- o(this, "group");
107
- o(this, "currentMeasureMesh");
108
- o(this, "_pointSelector");
109
- o(this, "_fiveDomEvents");
110
- o(this, "_cursor");
105
+ t(this, "name", "MeasurePlugin");
106
+ t(this, "five");
107
+ t(this, "group");
108
+ t(this, "currentMeasureMesh");
109
+ t(this, "_pointSelector");
110
+ t(this, "_fiveDomEvents");
111
+ t(this, "_cursor");
112
+ t(this, "unbindHotKey");
111
113
  /**
112
114
  * @description 开始测量
113
115
  */
114
- o(this, "measure", () => {
115
- const e = new A();
116
- this.currentMeasureMesh = e, this.updateSelectAdsorbedHelper();
117
- const l = new k(), c = new g(v(f({}, S), { dashed: !0 })), m = new C(T), h = new g(v(f({}, S), { lineOpacity: 0.5, dashed: !0 })), n = new g(v(f({}, S), { lineOpacity: 0.5, dashed: !0 }));
116
+ t(this, "measure", () => {
117
+ this.removeEventListener();
118
+ const e = new z();
119
+ this.currentMeasureMesh = e, this.pointSelector.actionIfNoIntersection = "disable", this.updateSelectAdsorbedHelper();
120
+ const p = new k(), m = new P(f(v({}, S), { dashed: !0 })), c = new A(B), h = new P(f(v({}, S), { lineOpacity: 0.5, dashed: !0 })), l = new P(f(v({}, S), { lineOpacity: 0.5, dashed: !0 })), d = () => {
121
+ p.removeFromParent(), m.removeFromParent(), c.removeFromParent(), h.removeFromParent(), l.removeFromParent();
122
+ };
118
123
  this.group.add(e);
119
- const u = (i) => {
124
+ const g = (i) => {
120
125
  if (!i) {
121
- l.removeFromParent(), c.removeFromParent(), m.removeFromParent(), h.removeFromParent(), n.removeFromParent();
126
+ d();
122
127
  return;
123
128
  }
124
- if (e.points.length === 0 && (l.parent === null && this.five.scene.add(l), l.position.copy(i.point)), e.points.length >= 1)
125
- if (l.removeFromParent(), c.parent === null && this.five.scene.add(c), c.setPoints([e.points.at(-1), i.point]), i.isAdsorbed)
126
- h.removeFromParent(), n.removeFromParent();
129
+ if (e.points.length === 0 && (this.pointSelector.actionIfNoIntersection = "disable", this.group.addIfNotExists(p), p.position.copy(i.point)), e.points.length >= 1)
130
+ if (this.pointSelector.actionIfNoIntersection = "virtualPoint", p.removeFromParent(), this.group.addIfNotExists(m), m.setPoints([e.points.at(-1), i.point]), i.isAdsorbed)
131
+ h.removeFromParent(), l.removeFromParent();
127
132
  else {
128
- const s = e.points.at(-1);
129
- if (Math.abs(i.point.y - s.y) > 0.2) {
130
- const a = new r.Vector3(i.point.x, s.y, i.point.z);
131
- h.setPoints([s, a]), n.setPoints([a, i.point]);
133
+ const n = e.points.at(-1);
134
+ if (Math.abs(i.point.y - n.y) > 0.2) {
135
+ const u = new r.Vector3(i.point.x, n.y, i.point.z);
136
+ h.setPoints([n, u]), l.setPoints([u, i.point]);
132
137
  } else {
133
- let a = new r.Vector3();
134
- Math.abs(i.point.x - s.x) < Math.abs(i.point.z - s.z) ? a = new r.Vector3(i.point.x, s.y, s.z) : a = new r.Vector3(s.x, s.y, i.point.z), h.setPoints([s, a]), n.setPoints([a, i.point]);
138
+ let u = new r.Vector3();
139
+ Math.abs(i.point.x - n.x) < Math.abs(i.point.z - n.z) ? u = new r.Vector3(i.point.x, n.y, n.z) : u = new r.Vector3(n.x, n.y, i.point.z), h.setPoints([n, u]), l.setPoints([u, i.point]);
135
140
  }
136
- this.group.addIfNotExists(h, n);
141
+ this.group.addIfNotExists(h, l);
137
142
  }
138
143
  if (e.points.length >= 2) {
139
- const s = [...e.points, i.point];
140
- H(s) ? (m.setPoints(s), m.parent === null && this.five.scene.add(m)) : m.removeFromParent();
144
+ const n = [...e.points, i.point];
145
+ N(n) ? (c.setPoints(n), this.group.addIfNotExists(c)) : c.removeFromParent();
141
146
  }
142
- }, d = (i) => {
143
- e.setPoints([...e.points, i.point]), this.updateSelectAdsorbedHelper(), e.isPolygon && this.pointSelector.disable();
144
- }, w = () => {
145
- this.pointSelector.off("intersectionUpdate", u), this.pointSelector.off("select", d), this.pointSelector.off("disable", w), l.removeFromParent(), c.removeFromParent(), m.removeFromParent(), h.removeFromParent(), n.removeFromParent(), this.currentMeasureMesh = null, this.emit("measureEnd");
147
+ }, E = (i) => {
148
+ i && (d(), e.setPoints([...e.points, i.point]), this.updateSelectAdsorbedHelper(), e.isPolygon && this.pointSelector.disable());
149
+ }, b = () => {
150
+ this.pointSelector.off("intersectionUpdate", g), this.pointSelector.off("select", E), this.pointSelector.off("disable", b), d(), e.points.length < 2 && e.removeFromParent(), this.currentMeasureMesh = null, this.addEventListener(), this.emit("measureEnd");
146
151
  };
147
- this.pointSelector.on("intersectionUpdate", u), this.pointSelector.on("select", d), this.pointSelector.on("disable", w), this.pointSelector.enable();
152
+ this.pointSelector.on("intersectionUpdate", g), this.pointSelector.on("select", E), this.pointSelector.on("disable", b), this.pointSelector.enable();
148
153
  });
149
154
  /**
150
155
  * @description 结束测量
151
156
  */
152
- o(this, "endMeasure", () => {
153
- this.pointSelector.disable(), this.emit("measureEnd");
157
+ t(this, "endMeasure", () => {
158
+ this.pointSelector.disable();
159
+ });
160
+ /**
161
+ * @description 取消本次测量
162
+ */
163
+ t(this, "cancel", () => {
164
+ var e;
165
+ (e = this.currentMeasureMesh) == null || e.removeFromParent(), this.pointSelector.disable();
154
166
  });
155
167
  /**
156
168
  * @description 撤销上一步
157
169
  */
158
- o(this, "undo", () => {
170
+ t(this, "undo", () => {
159
171
  var e;
160
172
  (e = this.currentMeasureMesh) == null || e.setPoints(this.currentMeasureMesh.points.slice(0, -1)), this.pointSelector.emit("intersectionUpdate", this.pointSelector.position), this.updateSelectAdsorbedHelper(), this.five.needsRender = !0;
161
173
  });
162
174
  /**
163
175
  * @description 清空所有测量内容
164
176
  */
165
- o(this, "clear", () => {
177
+ t(this, "clear", () => {
166
178
  this.currentMeasureMesh = null, this.pointSelector.disable(), this.group.children.forEach((e) => e.removeFromParent());
167
179
  });
168
- o(this, "dispose", () => {
169
- M.unbind("ctrl+z, command+z"), M.unbind("shift"), this.pointSelector.disable(), this.clear();
180
+ t(this, "dispose", () => {
181
+ this.unbindHotKey(), this.pointSelector.disable(), this.clear();
170
182
  });
171
- o(this, "onClick", ({ origDomEvent: e, target: l, intersects: c }) => {
172
- if (this.currentMeasureMesh)
173
- return;
174
- let m, h;
175
- if (e instanceof TouchEvent ? (m = e.changedTouches[0].clientX, h = e.changedTouches[0].clientY) : e instanceof MouseEvent && (m = e.clientX, h = e.clientY), m === void 0 || h === void 0)
183
+ t(this, "addEventListener", () => {
184
+ this.group.children.forEach((e) => {
185
+ this.fiveDomEvents.addEventListener(e, "click", this.onClick), this.fiveDomEvents.addEventListener(e, "hover", this.onHover), this.fiveDomEvents.addEventListener(e, "unHover", this.onUnHover);
186
+ });
187
+ });
188
+ t(this, "removeEventListener", () => {
189
+ this.fiveDomEvents.clear();
190
+ });
191
+ t(this, "onClick", ({ origDomEvent: e, target: p }) => {
192
+ const m = p;
193
+ if (!m)
176
194
  return;
177
- let n = c[0].object;
178
- for (; n && !n.isMeasureMesh; )
179
- n = n.parent;
180
- if (!n)
195
+ let c, h;
196
+ if (e instanceof TouchEvent ? (c = e.touches[0].clientX, h = e.touches[0].clientY) : e instanceof MouseEvent && (c = e.clientX, h = e.clientY), c === void 0 || h === void 0)
181
197
  return;
182
- const u = n;
183
- this.group.children.forEach((d) => d.unhighlight()), u.highlight(), this.cursor.showDeleteButton({
184
- clientX: m,
198
+ this.group.children.forEach((d) => d.unselect()), m.select();
199
+ const l = () => {
200
+ m.removeFromParent(), this.cursor.removeDeleteButton(), this.five.needsRender = !0, a.unbind("delete, backspace");
201
+ };
202
+ a("delete, backspace", l), this.cursor.showDeleteButton({
203
+ clientX: c,
185
204
  clientY: h,
186
205
  container: this.five.getElement().parentElement,
187
- onClick: () => {
188
- u.removeFromParent(), this.five.needsRender = !0;
189
- }
206
+ onClick: l
190
207
  }), this.five.once("cameraUpdate", () => {
191
- u.unhighlight(), this.cursor.removeDeleteButton();
208
+ m.unselect(), this.cursor.removeDeleteButton();
192
209
  });
193
210
  });
194
- o(this, "updateSelectAdsorbedHelper", () => {
211
+ t(this, "onHover", ({ target: e }) => {
212
+ if (this.currentMeasureMesh)
213
+ return;
214
+ const p = e;
215
+ p && p.hover();
216
+ });
217
+ t(this, "onUnHover", ({ target: e }) => {
218
+ if (this.currentMeasureMesh)
219
+ return;
220
+ const p = e;
221
+ p && p.unhover();
222
+ });
223
+ t(this, "updateSelectAdsorbedHelper", () => {
195
224
  if (!this.currentMeasureMesh || this.currentMeasureMesh.points.length === 0) {
196
225
  this.pointSelector.setAdherePoints(null), this.pointSelector.adhereLine = [], this.pointSelector.adherePlane = [];
197
226
  return;
@@ -215,20 +244,22 @@ class mt extends L {
215
244
  } else
216
245
  this.pointSelector.adherePlane = [];
217
246
  });
218
- this.five = e, this.group = new U(), this.five.scene.add(this.group), this.fiveDomEvents.addEventListener(this.group, "click", this.onClick), M("ctrl+z, command+z", this.undo), M("enter", this.endMeasure);
247
+ this.five = e, this.group = new x(), this.group.name = "MeasureGroup", this.five.scene.add(this.group), a("ctrl+z, command+z", this.undo), a("esc", this.cancel), a("enter", this.endMeasure), this.unbindHotKey = () => {
248
+ a.unbind("ctrl+z, command+z"), a.unbind("esc"), a.unbind("enter");
249
+ };
219
250
  }
220
251
  get pointSelector() {
221
- return this._pointSelector ? this._pointSelector : (this._pointSelector = new z(this.five, { mode: "cursor", helper: { pointHelper: "highlight" } }), this._pointSelector);
252
+ return this._pointSelector ? this._pointSelector : (this._pointSelector = new V(this.five, { mode: "cursor", helper: { pointHelper: "highlight" } }), this._pointSelector);
222
253
  }
223
254
  get fiveDomEvents() {
224
- return this._fiveDomEvents ? this._fiveDomEvents : (this._fiveDomEvents = new x(this.five), this._fiveDomEvents);
255
+ return this._fiveDomEvents ? this._fiveDomEvents : (this._fiveDomEvents = new U(this.five), this._fiveDomEvents);
225
256
  }
226
257
  get cursor() {
227
- return this._cursor ? this._cursor : (this._cursor = new O(), this._cursor);
258
+ return this._cursor ? this._cursor : (this._cursor = new C(), this._cursor);
228
259
  }
229
260
  }
230
261
  export {
231
262
  mt as MeasureController,
232
263
  S as lineStyle,
233
- T as polygonStyle
264
+ B as polygonStyle
234
265
  };
@@ -51,6 +51,8 @@ import "../shared-utils/three/core/LineGeometry.js";
51
51
  import "../shared-utils/three/core/LineMaterial.js";
52
52
  import "../shared-utils/three/core/Line2.js";
53
53
  import "../shared-utils/three/core/LineMaterial2.js";
54
+ import "../Sculpt/utils/unit.js";
55
+ import "../Sculpt/utils/renderDom.js";
54
56
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
55
57
  import "../shared-utils/isTouchDevice.js";
56
58
  import "../shared-utils/five/getPosition.js";
@@ -62,7 +64,6 @@ import "../shared-utils/five/calculateThreeMouse.js";
62
64
  import "./utils/MeasureMesh.js";
63
65
  import "../Sculpt/Meshes/LineWithDots.js";
64
66
  import "../Sculpt/Meshes/Point.js";
65
- import "../Sculpt/utils/removeAllTag.js";
66
67
  import "../Sculpt/Meshes/Polygon.js";
67
68
  import "../shared-utils/three/generatePolygonGeometry.js";
68
69
  import "../shared-utils/three/earcut3D.js";
@@ -75,7 +76,7 @@ import "./utils/validatePolygon.js";
75
76
  import "../shared-utils/three/vectorIsEqual.js";
76
77
  import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
77
78
  import "../Sculpt/utils/Modules/Cursor.js";
78
- const qr = (r) => new o(r);
79
+ const vr = (r) => new o(r);
79
80
  export {
80
- qr as MeasurePlugin
81
+ vr as MeasurePlugin
81
82
  };
@@ -5,10 +5,15 @@ export declare class MeasureMesh extends IObject3D {
5
5
  readonly isMeasureMesh = true;
6
6
  points: THREE.Vector3[];
7
7
  isPolygon: boolean;
8
+ private selected;
8
9
  private line;
9
10
  private polygon;
10
11
  constructor();
11
12
  setPoints(points: THREE.Vector3[]): void;
12
- highlight(): void;
13
- unhighlight(): void;
13
+ select(): void;
14
+ unselect(): void;
15
+ hover(): void;
16
+ unhover(): void;
17
+ private highlight;
18
+ private unhighlight;
14
19
  }
@@ -1,11 +1,11 @@
1
1
  var m = Object.defineProperty;
2
- var s = (r, i, o) => i in r ? m(r, i, { enumerable: !0, configurable: !0, writable: !0, value: o }) : r[i] = o;
3
- var t = (r, i, o) => (s(r, typeof i != "symbol" ? i + "" : i, o), o);
4
- import { IObject3D as e } from "../../shared-utils/three/IObject3D.js";
5
- import { LineWithDotsMesh as h } from "../../Sculpt/Meshes/LineWithDots.js";
6
- import { PolygonMesh as n } from "../../Sculpt/Meshes/Polygon.js";
7
- import { validatePolygon as l } from "./validatePolygon.js";
8
- import { lineStyle as g, polygonStyle as y } from "../Controller.js";
2
+ var s = (r, t, i) => t in r ? m(r, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[t] = i;
3
+ var o = (r, t, i) => (s(r, typeof t != "symbol" ? t + "" : t, i), i);
4
+ import { IObject3D as h } from "../../shared-utils/three/IObject3D.js";
5
+ import { LineWithDotsMesh as e } from "../../Sculpt/Meshes/LineWithDots.js";
6
+ import { PolygonMesh as l } from "../../Sculpt/Meshes/Polygon.js";
7
+ import { validatePolygon as n } from "./validatePolygon.js";
8
+ import { lineStyle as g, polygonStyle as u } from "../Controller.js";
9
9
  import "three";
10
10
  import "../../shared-utils/positionToVector3.js";
11
11
  import "../../Sculpt/Meshes/Point.js";
@@ -58,13 +58,14 @@ import "../../shared-utils/three/core/LineGeometry.js";
58
58
  import "../../shared-utils/three/core/LineMaterial.js";
59
59
  import "../../shared-utils/three/core/Line2.js";
60
60
  import "../../shared-utils/three/core/LineMaterial2.js";
61
+ import "../../Sculpt/utils/unit.js";
62
+ import "../../Sculpt/utils/renderDom.js";
61
63
  import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
62
64
  import "../../shared-utils/isTouchDevice.js";
63
65
  import "../../shared-utils/five/getPosition.js";
64
66
  import "../../shared-utils/five/getRaycasterByNdcPosition.js";
65
67
  import "../../shared-utils/three/PointSelector/utils/contents.js";
66
68
  import "../../Sculpt/utils/three/rayOnLine.js";
67
- import "../../Sculpt/utils/removeAllTag.js";
68
69
  import "../../shared-utils/three/generatePolygonGeometry.js";
69
70
  import "../../shared-utils/three/earcut3D.js";
70
71
  import "../../vendor/earcut/src/earcut.js";
@@ -78,31 +79,42 @@ import "../../shared-utils/five/calculateThreeMouse.js";
78
79
  import "./MeasureMesh.js";
79
80
  import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
80
81
  import "../../Sculpt/utils/Modules/Cursor.js";
81
- class Ai extends e {
82
+ class Ci extends h {
82
83
  constructor() {
83
84
  super();
84
- t(this, "name", "MeasureMesh");
85
- t(this, "isMeasureMesh", !0);
86
- t(this, "points", []);
87
- t(this, "isPolygon", !1);
88
- t(this, "line", new h(g));
89
- t(this, "polygon", new n(y));
90
- this.add(this.line), this.addEventListener("removed", () => {
91
- this.line.removeFromParent(), this.polygon.removeFromParent();
92
- });
85
+ o(this, "name", "MeasureMesh");
86
+ o(this, "isMeasureMesh", !0);
87
+ o(this, "points", []);
88
+ o(this, "isPolygon", !1);
89
+ o(this, "selected", !1);
90
+ o(this, "line", new e(g));
91
+ o(this, "polygon", new l(u));
92
+ this.add(this.line);
93
93
  }
94
- setPoints(o) {
95
- this.points = o, this.line.setPoints(this.points);
96
- const p = l(this.points);
94
+ setPoints(i) {
95
+ this.points = i, this.line.setPoints(this.points);
96
+ const p = n(this.points);
97
97
  this.isPolygon = p, p && (this.addIfNotExists(this.polygon), this.polygon.setPoints(this.points));
98
98
  }
99
- highlight() {
100
- this.line.highlight({ color: 3373055 }), this.polygon.highlight({ color: 3373055 });
99
+ select() {
100
+ this.highlight(3373055), this.selected = !0;
101
+ }
102
+ unselect() {
103
+ this.unhighlight(), this.selected = !1;
104
+ }
105
+ hover() {
106
+ this.selected || this.highlight();
107
+ }
108
+ unhover() {
109
+ this.selected || this.unhighlight();
110
+ }
111
+ highlight(i) {
112
+ this.line.highlight({ color: i }), this.polygon.highlight({ color: i });
101
113
  }
102
114
  unhighlight() {
103
115
  this.line.unhighlight(), this.polygon.unhighlight();
104
116
  }
105
117
  }
106
118
  export {
107
- Ai as MeasureMesh
119
+ Ci as MeasureMesh
108
120
  };