@realsee/dnalogel 3.64.3 → 3.64.5-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (554) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/MeasurePlugin/Controller.d.ts +11 -1
  3. package/dist/MeasurePlugin/utils/MeasureMesh.d.ts +7 -2
  4. package/dist/Sculpt/Meshes/Line.d.ts +6 -2
  5. package/dist/Sculpt/Meshes/Point.d.ts +4 -0
  6. package/dist/Sculpt/Meshes/Polygon.d.ts +4 -0
  7. package/dist/Sculpt/typings/style.d.ts +1 -1
  8. package/dist/Sculpt/utils/renderDom.d.ts +19 -0
  9. package/dist/Sculpt/utils/unit.d.ts +2 -0
  10. package/dist/index.cjs.js +66 -66
  11. package/dist/index.js +4569 -4478
  12. package/dist/index.umd.js +60 -60
  13. package/dist/shared-utils/three/PointSelector/index.d.ts +3 -3
  14. package/dist/shared-utils/three/PointSelector/utils/PointSelectorHelper.d.ts +1 -1
  15. package/docs/assets/highlight.css +21 -42
  16. package/docs/assets/navigation.js +1 -1
  17. package/docs/assets/search.js +1 -1
  18. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +26 -26
  19. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +28 -28
  20. package/docs/classes/CSS3DRender.html +4 -4
  21. package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
  22. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +26 -26
  23. package/docs/classes/ModelMakerPluginInstance.html +16 -16
  24. package/docs/classes/ModelRoomLabelController.html +6 -6
  25. package/docs/classes/MoveController.html +17 -17
  26. package/docs/classes/Object3DHelperController.html +15 -15
  27. package/docs/classes/PaintBrush.html +5 -5
  28. package/docs/classes/PanoMeasurePluginLine.html +2 -2
  29. package/docs/classes/PanoMeasurePluginModel.html +2 -2
  30. package/docs/classes/PanoMeasurePluginPoint.html +2 -2
  31. package/docs/classes/PanoMeasurePluginPolyline.html +4 -4
  32. package/docs/classes/PanoTagPluginController.html +34 -34
  33. package/docs/classes/Sculpt.html +23 -23
  34. package/docs/classes/Util.BetterTween.html +2 -2
  35. package/docs/classes/Util.FiveDomEvents.html +4 -4
  36. package/docs/classes/Util.FivePuppet.html +6 -6
  37. package/docs/classes/Util.Interval.html +5 -5
  38. package/docs/classes/Util.LightTag.html +18 -18
  39. package/docs/classes/Util.LineSegments.html +2 -2
  40. package/docs/classes/Util.Magnifier.html +6 -6
  41. package/docs/classes/Util.Object3D.html +4 -4
  42. package/docs/classes/Util.PointHelper.html +2 -2
  43. package/docs/classes/Util.PointSelector.html +16 -16
  44. package/docs/classes/Util.PointSelectorHelper.html +2 -2
  45. package/docs/classes/Util.Rectangle.html +5 -5
  46. package/docs/classes/Util.sculpt.BaseEditor.html +7 -7
  47. package/docs/classes/Util.sculpt.BoxMesh.html +6 -6
  48. package/docs/classes/Util.sculpt.BoxMeshEditor.html +7 -7
  49. package/docs/classes/Util.sculpt.CircleMesh.html +4 -4
  50. package/docs/classes/Util.sculpt.CircleMeshEditor.html +7 -7
  51. package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +4 -4
  52. package/docs/classes/Util.sculpt.CylinderMesh.html +5 -5
  53. package/docs/classes/Util.sculpt.CylinderMeshEditor.html +7 -7
  54. package/docs/classes/Util.sculpt.LineMesh.html +10 -6
  55. package/docs/classes/Util.sculpt.PointMesh.html +10 -6
  56. package/docs/classes/Util.sculpt.PolygonMesh.html +11 -7
  57. package/docs/classes/Util.sculpt.PrismMesh.html +6 -6
  58. package/docs/classes/Util.sculpt.PrismMeshEditor.html +7 -7
  59. package/docs/classes/Util.sculpt.RectangleMesh.html +12 -8
  60. package/docs/classes/Util.sculpt.RectangleMeshEditor.html +7 -7
  61. package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +12 -8
  62. package/docs/classes/WalkController.html +18 -18
  63. package/docs/enums/CameraMovementEffect.html +3 -3
  64. package/docs/enums/ContentType.html +18 -18
  65. package/docs/enums/DIRECTION.html +2 -2
  66. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
  67. package/docs/enums/DimensionType.html +3 -3
  68. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +2 -2
  69. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +2 -2
  70. package/docs/enums/PaintBrushTypeEnum.html +2 -2
  71. package/docs/enums/PointType.html +3 -3
  72. package/docs/enums/Rotation.html +3 -3
  73. package/docs/functions/AreaMakerPlugin.html +1 -1
  74. package/docs/functions/CSS3DRenderPlugin.html +1 -1
  75. package/docs/functions/CameraMovementPlugin.html +2 -2
  76. package/docs/functions/CruisePlugin.html +1 -1
  77. package/docs/functions/CurrentPanoImagePlugin.html +1 -1
  78. package/docs/functions/GuideLinePlugin.html +1 -1
  79. package/docs/functions/ItemLabelPlugin.html +1 -1
  80. package/docs/functions/MapviewFloorplanPlugin.html +1 -1
  81. package/docs/functions/MeasurePlugin.html +1 -1
  82. package/docs/functions/ModelChassisCompassPlugin.html +2 -2
  83. package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -2
  84. package/docs/functions/ModelFloorplanPlugin.html +1 -1
  85. package/docs/functions/ModelItemLabelPlugin.html +1 -1
  86. package/docs/functions/ModelMakerPlugin.html +1 -1
  87. package/docs/functions/ModelRoomLabelPlugin.html +1 -1
  88. package/docs/functions/ModelTVVideoPlugin.html +1 -1
  89. package/docs/functions/ModelViewPlugin.html +2 -2
  90. package/docs/functions/MovePlugin.html +1 -1
  91. package/docs/functions/Object3DHelperPlugin.html +1 -1
  92. package/docs/functions/PanoCompassPlugin.html +1 -1
  93. package/docs/functions/PanoCursorRaycasterPlugin.html +2 -2
  94. package/docs/functions/PanoDoorLabelPlugin.html +1 -1
  95. package/docs/functions/PanoFloorplanRadarPlugin.html +1 -1
  96. package/docs/functions/PanoMeasurePlugin.html +1 -1
  97. package/docs/functions/PanoRulerPlugin.html +2 -2
  98. package/docs/functions/PanoRulerProPlugin.html +2 -2
  99. package/docs/functions/PanoSpatialTagPlugin.html +2 -2
  100. package/docs/functions/PanoTagPlugin.html +1 -1
  101. package/docs/functions/PanoVideoPlugin.html +2 -2
  102. package/docs/functions/PipelinePlugin.html +1 -1
  103. package/docs/functions/SculptPlugin.html +2 -2
  104. package/docs/functions/TopviewFloorplanPlugin.html +1 -1
  105. package/docs/functions/Util.absoluteUrl.html +2 -2
  106. package/docs/functions/Util.awaitNextFrame.html +1 -1
  107. package/docs/functions/Util.blink.html +3 -3
  108. package/docs/functions/Util.bounding.html +1 -1
  109. package/docs/functions/Util.boundingBox.html +1 -1
  110. package/docs/functions/Util.boundingSphere.html +1 -1
  111. package/docs/functions/Util.boxVertex.html +2 -2
  112. package/docs/functions/Util.boxVertexes.html +1 -1
  113. package/docs/functions/Util.checkFiveModelLoaded.html +2 -2
  114. package/docs/functions/Util.convexHull.html +2 -2
  115. package/docs/functions/Util.equal.html +2 -2
  116. package/docs/functions/Util.fiveModelIsLoaded.html +2 -2
  117. package/docs/functions/Util.getCoordsFromClient.html +1 -1
  118. package/docs/functions/Util.getCoordsFromElement.html +1 -1
  119. package/docs/functions/Util.getFrameTime.html +2 -2
  120. package/docs/functions/Util.initialCSS3DRender.html +1 -1
  121. package/docs/functions/Util.inside.html +1 -1
  122. package/docs/functions/Util.isAbsoluteURL.html +1 -1
  123. package/docs/functions/Util.isModelLike.html +1 -1
  124. package/docs/functions/Util.isNil.html +2 -2
  125. package/docs/functions/Util.isPanoramaLike.html +1 -1
  126. package/docs/functions/Util.lookObject.html +2 -2
  127. package/docs/functions/Util.lookPoint.html +2 -2
  128. package/docs/functions/Util.nextFrame.html +1 -1
  129. package/docs/functions/Util.notNil.html +2 -2
  130. package/docs/functions/Util.reblink.html +2 -2
  131. package/docs/functions/Util.requestAnimationFrameInterval.html +2 -2
  132. package/docs/functions/Util.sculpt.createBox.html +1 -1
  133. package/docs/functions/Util.sculpt.createCircle.html +1 -1
  134. package/docs/functions/Util.sculpt.createCylinder.html +1 -1
  135. package/docs/functions/Util.sculpt.createLine.html +2 -2
  136. package/docs/functions/Util.sculpt.createPoint.html +1 -1
  137. package/docs/functions/Util.sculpt.createPolygon.html +1 -1
  138. package/docs/functions/Util.sculpt.createPrism.html +1 -1
  139. package/docs/functions/Util.sculpt.createRectangle.html +2 -2
  140. package/docs/functions/Util.tag.html +1 -1
  141. package/docs/functions/Util.tweenProgress.html +1 -1
  142. package/docs/functions/Util.uuid.html +2 -2
  143. package/docs/functions/Util.waitFiveModelLoaded.html +2 -2
  144. package/docs/functions/Util.worldBounding.html +1 -1
  145. package/docs/functions/Util.worldBoundingBox.html +1 -1
  146. package/docs/functions/Util.worldBoundingSphere.html +1 -1
  147. package/docs/functions/createPolyline.html +2 -2
  148. package/docs/functions/pluginFlag.html +1 -1
  149. package/docs/hierarchy.html +1 -1
  150. package/docs/index.html +6 -6
  151. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +3 -3
  152. package/docs/interfaces/AreaMakerPluginType.Config.html +4 -4
  153. package/docs/interfaces/AreaMakerPluginType.EventMap.html +12 -12
  154. package/docs/interfaces/AreaMakerPluginType.Params.html +3 -3
  155. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +5 -5
  156. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +4 -4
  157. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +3 -3
  158. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -3
  159. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
  160. package/docs/interfaces/AreaMakerPluginType.State.html +5 -5
  161. package/docs/interfaces/CSS3DRenderPluginEventMap.html +4 -4
  162. package/docs/interfaces/CSS3DRenderPluginState.html +4 -4
  163. package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
  164. package/docs/interfaces/ContentTypeMapInterface.html +18 -18
  165. package/docs/interfaces/CruisePluginTypes.Config.html +4 -4
  166. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
  167. package/docs/interfaces/CruisePluginTypes.EventMap.html +17 -17
  168. package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +3 -3
  169. package/docs/interfaces/CruisePluginTypes.MoveAction.html +8 -8
  170. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +9 -9
  171. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +10 -10
  172. package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
  173. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
  174. package/docs/interfaces/CruisePluginTypes.PluginState.html +7 -7
  175. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +7 -7
  176. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +8 -8
  177. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -3
  178. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
  179. package/docs/interfaces/CurrentPanoImagePluginType.State.html +4 -4
  180. package/docs/interfaces/FloorplanBounding.html +5 -5
  181. package/docs/interfaces/FloorplanData.html +3 -3
  182. package/docs/interfaces/FloorplanEntrance.html +8 -8
  183. package/docs/interfaces/FloorplanExtraObject.html +5 -5
  184. package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
  185. package/docs/interfaces/FloorplanFloorData.html +3 -3
  186. package/docs/interfaces/FloorplanImagePosition.html +3 -3
  187. package/docs/interfaces/FloorplanObserver.html +3 -3
  188. package/docs/interfaces/FloorplanOutlineItem.html +3 -3
  189. package/docs/interfaces/FloorplanPosition.html +3 -3
  190. package/docs/interfaces/FloorplanRoomItem.html +8 -8
  191. package/docs/interfaces/FloorplanRoomLabelItem.html +4 -4
  192. package/docs/interfaces/FloorplanServerBounding.html +5 -5
  193. package/docs/interfaces/FloorplanServerComputedData.html +2 -2
  194. package/docs/interfaces/FloorplanServerData.html +3 -3
  195. package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
  196. package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
  197. package/docs/interfaces/FloorplanServerEntrance.html +8 -8
  198. package/docs/interfaces/FloorplanServerFloorData.html +3 -3
  199. package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
  200. package/docs/interfaces/FloorplanServerObserver.html +3 -3
  201. package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
  202. package/docs/interfaces/FloorplanServerPosition.html +3 -3
  203. package/docs/interfaces/FloorplanServerRoomItem.html +9 -9
  204. package/docs/interfaces/FloorplanServerRoomLabelItem.html +4 -4
  205. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
  206. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -3
  207. package/docs/interfaces/GuideLinePluginType.EventMap.html +5 -5
  208. package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +3 -3
  209. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +5 -5
  210. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
  211. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +14 -14
  212. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +3 -3
  213. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
  214. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +18 -18
  215. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
  216. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +24 -24
  217. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
  218. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
  219. package/docs/interfaces/GuideLinePluginType.PluginState.html +4 -4
  220. package/docs/interfaces/GuideLinePluginType.Route.html +6 -6
  221. package/docs/interfaces/HelperOffset.html +2 -2
  222. package/docs/interfaces/ImagePlaneGroup.html +2 -2
  223. package/docs/interfaces/ItemLabelPluginData.html +2 -2
  224. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +2 -2
  225. package/docs/interfaces/ItemLabelPluginParametersType.html +2 -2
  226. package/docs/interfaces/MinMax.html +2 -2
  227. package/docs/interfaces/ModelChassisCompassPluginData.html +2 -2
  228. package/docs/interfaces/ModelChassisCompassPluginExportType.html +2 -2
  229. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +2 -2
  230. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +2 -2
  231. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +2 -2
  232. package/docs/interfaces/ModelItemLabelPluginData.html +2 -2
  233. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +2 -2
  234. package/docs/interfaces/ModelItemLabelPluginParametersType.html +2 -2
  235. package/docs/interfaces/ModelMakerPluginType.EventMap.html +10 -10
  236. package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +3 -3
  237. package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +4 -4
  238. package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
  239. package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +4 -4
  240. package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +4 -4
  241. package/docs/interfaces/ModelMakerPluginType.State.html +5 -5
  242. package/docs/interfaces/ModelRoomLabelPluginData.html +2 -2
  243. package/docs/interfaces/ModelTVVideoPluginData.html +2 -2
  244. package/docs/interfaces/ModelTVVideoPluginExportType.html +2 -2
  245. package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -2
  246. package/docs/interfaces/ModelViewPluginExportType.html +2 -2
  247. package/docs/interfaces/Object3DHelperState.html +2 -2
  248. package/docs/interfaces/ObjectHelperControllers.html +2 -2
  249. package/docs/interfaces/PaintBrushAction.html +7 -7
  250. package/docs/interfaces/PaintBrushConfigs.html +2 -2
  251. package/docs/interfaces/PaintBrushState.html +2 -2
  252. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
  253. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
  254. package/docs/interfaces/PanoMeasureParameterType.html +6 -6
  255. package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
  256. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
  257. package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
  258. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +4 -4
  259. package/docs/interfaces/PanoRulerPluginExportType.html +2 -2
  260. package/docs/interfaces/PanoRulerPluginOptions.html +2 -2
  261. package/docs/interfaces/PanoRulerPluginParameterType.html +2 -2
  262. package/docs/interfaces/PanoRulerProPluginExportType.html +2 -2
  263. package/docs/interfaces/PanoRulerProPluginOptions.html +2 -2
  264. package/docs/interfaces/PanoRulerProPluginParameterType.html +2 -2
  265. package/docs/interfaces/PanoRulerProPluginState.html +2 -2
  266. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
  267. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
  268. package/docs/interfaces/PanoSpatialTagPluginData.html +2 -2
  269. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +2 -2
  270. package/docs/interfaces/PanoSpatialTagPluginExportType.html +2 -2
  271. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +2 -2
  272. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +2 -2
  273. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +2 -2
  274. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +2 -2
  275. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -3
  276. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +5 -5
  277. package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
  278. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
  279. package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
  280. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +5 -5
  281. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +7 -7
  282. package/docs/interfaces/PluginEventMap.html +4 -4
  283. package/docs/interfaces/Point.html +2 -2
  284. package/docs/interfaces/Room.html +2 -2
  285. package/docs/interfaces/RoomInfo.html +2 -2
  286. package/docs/interfaces/RoomLabel.html +7 -7
  287. package/docs/interfaces/RoomRules.html +1 -1
  288. package/docs/interfaces/Rooms.html +1 -1
  289. package/docs/interfaces/Scissor.html +6 -6
  290. package/docs/interfaces/State.html +4 -4
  291. package/docs/interfaces/TagCacheInterface.html +3 -3
  292. package/docs/interfaces/TagConfig.html +25 -25
  293. package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
  294. package/docs/interfaces/TagIconUrl.html +9 -9
  295. package/docs/interfaces/TagObjectGroup.html +2 -2
  296. package/docs/interfaces/TagStyle.html +2 -2
  297. package/docs/interfaces/Tags.html +4 -4
  298. package/docs/interfaces/TemporaryState.html +2 -2
  299. package/docs/interfaces/Util.AnimeInstance.html +2 -2
  300. package/docs/interfaces/Util.BlinkAnimeOptions.html +3 -3
  301. package/docs/interfaces/Util.EventHandlerConfig.html +7 -7
  302. package/docs/interfaces/Util.FiveDomEvent.html +2 -2
  303. package/docs/interfaces/Util.FiveDomEventMap.html +10 -10
  304. package/docs/interfaces/Util.MagnifierParameter.html +5 -5
  305. package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
  306. package/docs/interfaces/Util.PointIntersection.html +11 -11
  307. package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
  308. package/docs/interfaces/Util.ReBlinkAnimeOptions.html +4 -4
  309. package/docs/modules/AreaMakerPluginType.html +2 -2
  310. package/docs/modules/CruisePluginTypes.html +2 -2
  311. package/docs/modules/CurrentPanoImagePluginType.html +2 -2
  312. package/docs/modules/GuideLineItem.html +2 -2
  313. package/docs/modules/GuideLineModeItem.html +2 -2
  314. package/docs/modules/GuideLinePluginType.html +2 -2
  315. package/docs/modules/ModelMakerPluginType.html +2 -2
  316. package/docs/modules/PanoVideoPluginType.html +2 -2
  317. package/docs/modules/SculptData.html +2 -2
  318. package/docs/modules/SculptType.html +2 -2
  319. package/docs/modules/Util.html +2 -2
  320. package/docs/modules/Util.sculpt.html +2 -2
  321. package/docs/modules.html +2 -2
  322. package/docs/types/AddObject3DHelperConfig.html +2 -2
  323. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +2 -2
  324. package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -1
  325. package/docs/types/AreaMakerPluginType.PluginData.html +2 -2
  326. package/docs/types/AreaMakerPluginType.ServerData.html +2 -2
  327. package/docs/types/ArrayPosition.html +1 -1
  328. package/docs/types/AudioAppearance.html +1 -1
  329. package/docs/types/CSS3DRenderExportType.html +1 -1
  330. package/docs/types/CSS3DRenderPluginExportType.html +1 -1
  331. package/docs/types/CSS3DRenderPluginParameterType.html +1 -1
  332. package/docs/types/ClassFunctionParameters.html +1 -1
  333. package/docs/types/Color.html +1 -1
  334. package/docs/types/ContentTypeConfigKey.html +1 -1
  335. package/docs/types/ContentTypeConfigKeySplit.html +1 -1
  336. package/docs/types/ContentTypeMap.html +1 -1
  337. package/docs/types/Create3DDomContainerReturnType.html +1 -1
  338. package/docs/types/Create3DElementReturnType.html +1 -1
  339. package/docs/types/CruisePluginExportType.html +1 -1
  340. package/docs/types/CruisePluginTypes.CruiseData.html +2 -2
  341. package/docs/types/CruisePluginTypes.MoveEffect.html +1 -1
  342. package/docs/types/CurrentPanoImagePluginExportType.html +1 -1
  343. package/docs/types/DeprecatedMediaPlaneProperty.html +2 -2
  344. package/docs/types/DeprecatedTagProperty.html +2 -2
  345. package/docs/types/Direction-1.html +1 -1
  346. package/docs/types/Direction4.html +1 -1
  347. package/docs/types/ElementRenderer.html +2 -2
  348. package/docs/types/FloorplanRuleLabels.html +2 -2
  349. package/docs/types/FloorplanServerRuleLabels.html +1 -1
  350. package/docs/types/GuideLinePluginExportType.html +1 -1
  351. package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -2
  352. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -1
  353. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -1
  354. package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -2
  355. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -2
  356. package/docs/types/GuideLinePluginType.PathItem.html +2 -2
  357. package/docs/types/GuideLinePluginType.PluginData.html +2 -2
  358. package/docs/types/GuideLinePluginType.RouteConfig.html +2 -2
  359. package/docs/types/HelperEventMap.html +1 -1
  360. package/docs/types/InternalHelperEventMap.html +1 -1
  361. package/docs/types/MapviewFloorplanPluginParameterType.html +1 -1
  362. package/docs/types/MapviewFloorplanPluginReturnType.html +1 -1
  363. package/docs/types/MediaData.html +2 -2
  364. package/docs/types/MediaStore.html +1 -1
  365. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -1
  366. package/docs/types/ModelFloorplanPluginParameterType.html +1 -1
  367. package/docs/types/ModelFloorplanPluginReturnType.html +1 -1
  368. package/docs/types/ModelId.html +1 -1
  369. package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -1
  370. package/docs/types/ModelMakerPluginType.ItemType.html +1 -1
  371. package/docs/types/ModelRoomLabelPluginParameters.html +1 -1
  372. package/docs/types/ModelRoomLabelPluginReturnType.html +1 -1
  373. package/docs/types/MoveArgs.html +2 -2
  374. package/docs/types/MoveOpts.html +2 -2
  375. package/docs/types/Object3DHelperEventMap.html +1 -1
  376. package/docs/types/ObjectFit.html +1 -1
  377. package/docs/types/PaintBrushEventMap.html +1 -1
  378. package/docs/types/PanoCompassPluginData.html +1 -1
  379. package/docs/types/PanoCompassPluginExportType.html +1 -1
  380. package/docs/types/PanoCompassPluginParameterType.html +1 -1
  381. package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -1
  382. package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -1
  383. package/docs/types/PanoIndex.html +1 -1
  384. package/docs/types/PanoMeasurePluginEvent.html +1 -1
  385. package/docs/types/PanoMeasureReturnType.html +1 -1
  386. package/docs/types/PanoSpatialTagPluginId.html +1 -1
  387. package/docs/types/PanoTagPluginExportInterface.html +1 -1
  388. package/docs/types/PanoTagPluginParamsInterface.html +1 -1
  389. package/docs/types/PanoVideoPluginParameterType.html +1 -1
  390. package/docs/types/PanoVideoPluginReturnType.html +1 -1
  391. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -2
  392. package/docs/types/PipelinePluginParameterType.html +1 -1
  393. package/docs/types/PipelinePluginReturnType.html +1 -1
  394. package/docs/types/PlaneTag.html +2 -2
  395. package/docs/types/Point2DTag.html +2 -2
  396. package/docs/types/Point3DTag.html +2 -2
  397. package/docs/types/PointTagInstance.html +1 -1
  398. package/docs/types/Position.html +1 -1
  399. package/docs/types/PositionFrom.html +1 -1
  400. package/docs/types/RotateArgs.html +2 -2
  401. package/docs/types/RotateOpts.html +2 -2
  402. package/docs/types/RuleLabelsKey.html +1 -1
  403. package/docs/types/RuleLabelsValue.html +1 -1
  404. package/docs/types/ScaleCallback.html +1 -1
  405. package/docs/types/ScalePosition.html +2 -2
  406. package/docs/types/SculptData.BoxData.html +1 -1
  407. package/docs/types/SculptData.CircleData.html +1 -1
  408. package/docs/types/SculptData.CylinderData.html +1 -1
  409. package/docs/types/SculptData.PointData.html +1 -1
  410. package/docs/types/SculptData.PolygonData.html +1 -1
  411. package/docs/types/SculptData.PolylineData.html +1 -1
  412. package/docs/types/SculptData.PrismData.html +1 -1
  413. package/docs/types/SculptData.RectangleData.html +1 -1
  414. package/docs/types/SculptType.Theme.html +2 -2
  415. package/docs/types/StickType.html +1 -1
  416. package/docs/types/Tag.html +2 -2
  417. package/docs/types/Tag2D.html +2 -2
  418. package/docs/types/Tag3D.html +2 -2
  419. package/docs/types/TagClickParams.html +1 -1
  420. package/docs/types/TagConfigByKey.html +1 -1
  421. package/docs/types/TagContentType.html +1 -1
  422. package/docs/types/TagContentTypeMapping.html +1 -1
  423. package/docs/types/TagDimensionType.html +1 -1
  424. package/docs/types/TagElement.html +2 -2
  425. package/docs/types/TagEvents.html +1 -1
  426. package/docs/types/TagGLTFObject.html +1 -1
  427. package/docs/types/TagHooks.html +1 -1
  428. package/docs/types/TagId.html +1 -1
  429. package/docs/types/TagInstance.html +1 -1
  430. package/docs/types/TagPointType.html +2 -2
  431. package/docs/types/TagRendererMap.html +1 -1
  432. package/docs/types/TopviewFloorplanPluginParameterType.html +1 -1
  433. package/docs/types/TopviewFloorplanPluginReturnType.html +1 -1
  434. package/docs/types/Util.ActionIfNoIntersection.html +1 -1
  435. package/docs/types/Util.AdherePoint.html +2 -2
  436. package/docs/types/Util.PointSelectorConfig.html +1 -1
  437. package/docs/types/WorkCode.html +1 -1
  438. package/docs/variables/FLOOR_TYPE_MAP.html +2 -2
  439. package/docs/variables/PLUGIN.html +1 -1
  440. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -2
  441. package/docs/variables/ROOM_TYPE_MAP.html +2 -2
  442. package/docs/variables/Util.animeMap.html +1 -1
  443. package/docs/variables/defaultGlobalConfig.html +1 -1
  444. package/docs/variables/itemLabelPluginServerParams.html +1 -1
  445. package/docs/variables/modelItemLabelPluginServerParams.html +1 -1
  446. package/docs/variables/modelRoomLabelPluginServerParams.html +1 -1
  447. package/libs/AreaMakerPlugin/Controller.js +4 -2
  448. package/libs/AreaMakerPlugin/index.js +4 -2
  449. package/libs/AreaMakerPlugin/utils/Item.js +4 -2
  450. package/libs/CSS3DRenderPlugin/Controller.js +4 -2
  451. package/libs/CSS3DRenderPlugin/index.js +7 -5
  452. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +4 -2
  453. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +4 -2
  454. package/libs/CruisePlugin/BaseController.js +14 -12
  455. package/libs/CruisePlugin/Move.js +4 -2
  456. package/libs/CruisePlugin/Work.js +4 -2
  457. package/libs/CruisePlugin/index.js +8 -6
  458. package/libs/CurrentPanoImagePlugin/Controller.js +4 -2
  459. package/libs/CurrentPanoImagePlugin/index.js +5 -3
  460. package/libs/GuideLinePlugin/Controller.js +6 -4
  461. package/libs/GuideLinePlugin/GuideLineItem.js +4 -2
  462. package/libs/GuideLinePlugin/GuideLineModeItem.js +4 -2
  463. package/libs/GuideLinePlugin/index.js +8 -6
  464. package/libs/MeasurePlugin/Controller.d.ts +11 -1
  465. package/libs/MeasurePlugin/Controller.js +114 -83
  466. package/libs/MeasurePlugin/index.js +4 -3
  467. package/libs/MeasurePlugin/utils/MeasureMesh.d.ts +7 -2
  468. package/libs/MeasurePlugin/utils/MeasureMesh.js +36 -24
  469. package/libs/ModelMakerPlugin/Controller.js +4 -3
  470. package/libs/ModelMakerPlugin/index.js +4 -3
  471. package/libs/ModelMakerPlugin/item/baseItem.js +4 -2
  472. package/libs/ModelMakerPlugin/item/boxItem.js +4 -2
  473. package/libs/ModelMakerPlugin/item/polygonItem.js +4 -2
  474. package/libs/ModelMakerPlugin/item/prismItem.js +4 -2
  475. package/libs/ModelTVVideoPlugin/Plugin.js +5 -3
  476. package/libs/ModelTVVideoPlugin/index.js +4 -2
  477. package/libs/ModelViewPlugin/Plugin.js +5 -3
  478. package/libs/ModelViewPlugin/index.js +2 -0
  479. package/libs/Object3DHelperPlugin/Controller.js +17 -15
  480. package/libs/Object3DHelperPlugin/index.js +7 -5
  481. package/libs/PanoCompassPlugin/Controller.js +4 -2
  482. package/libs/PanoCompassPlugin/index.js +5 -3
  483. package/libs/PanoDoorLabelPlugin/Controller.js +4 -2
  484. package/libs/PanoDoorLabelPlugin/index.js +5 -3
  485. package/libs/PanoMeasurePlugin/Components/Controller0.js +4 -2
  486. package/libs/PanoMeasurePlugin/Components/Controller1.js +4 -2
  487. package/libs/PanoMeasurePlugin/Controller/EditController.js +45 -43
  488. package/libs/PanoMeasurePlugin/Controller/WatchController.js +4 -2
  489. package/libs/PanoMeasurePlugin/Controller/index.js +60 -58
  490. package/libs/PanoMeasurePlugin/Model/area.js +13 -11
  491. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +2 -0
  492. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +4 -2
  493. package/libs/PanoMeasurePlugin/index.js +15 -13
  494. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +4 -2
  495. package/libs/PanoRulerProPlugin/Controller.js +4 -2
  496. package/libs/PanoRulerProPlugin/RulerItems.js +4 -2
  497. package/libs/PanoRulerProPlugin/index.js +5 -3
  498. package/libs/PanoSpatialTagPlugin/Plugin.js +65 -63
  499. package/libs/PanoSpatialTagPlugin/index.js +2 -0
  500. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +4 -2
  501. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +4 -2
  502. package/libs/PanoTagPlugin/Components/Tag/index.js +59 -57
  503. package/libs/PanoTagPlugin/Components/TagContainer.js +4 -2
  504. package/libs/PanoTagPlugin/Components/TagItem.js +4 -2
  505. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +4 -2
  506. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +4 -2
  507. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +28 -26
  508. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +4 -2
  509. package/libs/PanoTagPlugin/controller/TagRender.js +4 -2
  510. package/libs/PanoTagPlugin/controller/TagUtil.js +4 -2
  511. package/libs/PanoTagPlugin/controller/index.js +7 -5
  512. package/libs/PanoTagPlugin/index.js +13 -11
  513. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +18 -16
  514. package/libs/PanoVideoPlugin/Controller.js +4 -2
  515. package/libs/PanoVideoPlugin/VideoMeshController.js +4 -2
  516. package/libs/PanoVideoPlugin/index.js +7 -5
  517. package/libs/PipelinePlugin/Controller.js +21 -19
  518. package/libs/PipelinePlugin/index.js +5 -3
  519. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +4 -2
  520. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +4 -2
  521. package/libs/PipelinePlugin/utils/Objects/Pipe.js +24 -22
  522. package/libs/Sculpt/Meshes/Line.d.ts +6 -2
  523. package/libs/Sculpt/Meshes/Line.js +109 -102
  524. package/libs/Sculpt/Meshes/Point.d.ts +4 -0
  525. package/libs/Sculpt/Meshes/Point.js +72 -62
  526. package/libs/Sculpt/Meshes/Polygon.d.ts +4 -0
  527. package/libs/Sculpt/Meshes/Polygon.js +57 -48
  528. package/libs/Sculpt/Meshes/Polyline.js +22 -25
  529. package/libs/Sculpt/Objects/Base/index.js +10 -13
  530. package/libs/Sculpt/typings/style.d.ts +1 -1
  531. package/libs/Sculpt/utils/renderDom.d.ts +19 -0
  532. package/libs/Sculpt/utils/renderDom.js +22 -0
  533. package/libs/Sculpt/utils/three/ColoredMesh.js +22 -21
  534. package/libs/Sculpt/utils/unit.d.ts +2 -0
  535. package/libs/Sculpt/utils/unit.js +26 -0
  536. package/libs/base/BasePlugin.js +3 -3
  537. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +4 -2
  538. package/libs/floorplan/MapviewFloorplanPlugin/index.js +5 -3
  539. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +4 -2
  540. package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -3
  541. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +4 -2
  542. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -3
  543. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +4 -2
  544. package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -3
  545. package/libs/index.js +147 -146
  546. package/libs/shared-utils/five/FiveDomEvents.js +3 -1
  547. package/libs/shared-utils/logger.js +1 -1
  548. package/libs/shared-utils/three/PointSelector/index.d.ts +3 -3
  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
@@ -10,7 +10,7 @@ var w = (d, a, e) => a in d ? x(d, a, { enumerable: !0, configurable: !0, writab
10
10
  O.call(a, e) && w(d, e, a[e]);
11
11
  return d;
12
12
  }, M = (d, a) => j(d, G(a));
13
- var s = (d, a, e) => (w(d, typeof a != "symbol" ? a + "" : a, e), e);
13
+ var o = (d, a, e) => (w(d, typeof a != "symbol" ? a + "" : a, e), e);
14
14
  import $ from "../Model/line.js";
15
15
  import I from "../Model/point.js";
16
16
  import { throttle as q } from "../../shared-utils/throttle.js";
@@ -87,6 +87,8 @@ import "../../shared-utils/three/core/LineGeometry.js";
87
87
  import "../../shared-utils/three/core/LineMaterial.js";
88
88
  import "../../shared-utils/three/core/Line2.js";
89
89
  import "../../shared-utils/three/core/LineMaterial2.js";
90
+ import "../../Sculpt/utils/unit.js";
91
+ import "../../Sculpt/utils/renderDom.js";
90
92
  import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
91
93
  import "../../shared-utils/isTouchDevice.js";
92
94
  import "../../shared-utils/five/getPosition.js";
@@ -97,31 +99,31 @@ import "../Modules/DeleteDom/_Assets/delete.svg.js";
97
99
  import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
98
100
  import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
99
101
  const U = () => !1;
100
- class Dt extends z {
102
+ class It extends z {
101
103
  constructor(e) {
102
104
  super(e);
103
- s(this, "type", "edit");
104
- s(this, "polyline");
105
- s(this, "area");
106
- s(this, "hasAppendDashed", !1);
105
+ o(this, "type", "edit");
106
+ o(this, "polyline");
107
+ o(this, "area");
108
+ o(this, "hasAppendDashed", !1);
107
109
  // private deleteDom: DeleteDom
108
- s(this, "fiveElement");
110
+ o(this, "fiveElement");
109
111
  /** 上一个端点位置 */
110
- s(this, "lastPoint", null);
111
- s(this, "pointSelector");
112
- s(this, "deleteDom");
112
+ o(this, "lastPoint", null);
113
+ o(this, "pointSelector");
114
+ o(this, "deleteDom");
113
115
  /** 根据 intersection 更新放大镜和吸附点 */
114
- s(this, "onIntersectionUpdate", q((e) => {
116
+ o(this, "onIntersectionUpdate", q((e) => {
115
117
  e && (this.currentMeasureType === "area" && typeof e.isAdsorbed == "boolean" && (e.isAdsorbed ? this.hook.emit("readyComplete") : this.hook.emit("notReadyComplete")), this.updateDashed());
116
118
  }, 20));
117
119
  /** 撤销编辑 */
118
- s(this, "revoke", () => {
120
+ o(this, "revoke", () => {
119
121
  this.currentMeasureType === "area" ? this.revokeArea() : this.currentMeasureType === "line" && this.revokeLine();
120
122
  });
121
123
  /**
122
124
  * @description: 测面积的撤销功能
123
125
  */
124
- s(this, "revokeArea", () => {
126
+ o(this, "revokeArea", () => {
125
127
  if (this.area.points.length !== 0) {
126
128
  if (this.area.popPoint(), this.hook.emit("pointsChange", this.area.points), this.area.points.length === 0) {
127
129
  this.lastPoint = null, this.hasAppendDashed = !1, this.dashed.remove(), this.five.needsRender = !0, this.hook.emit("revoke", { isEmpty: !0 });
@@ -134,7 +136,7 @@ class Dt extends z {
134
136
  /**
135
137
  * @description: 测距的撤销功能
136
138
  */
137
- s(this, "revokeLine", (e) => {
139
+ o(this, "revokeLine", (e) => {
138
140
  const t = e || this.polyline;
139
141
  if (t.lines.length === 0 && this.lastPoint) {
140
142
  this.lastPoint = null, this.hasAppendDashed = !1, this.pointSelector.setAdherePoints(null), this.dashed.remove(), this.hook.emit("anchorChange", null), this.hook.emit("editedDashedLineChange", null), this.five.needsRender = !0, this.hook.emit("pointsChange", []);
@@ -145,21 +147,21 @@ class Dt extends z {
145
147
  const i = t.lines[t.lines.length - 1], n = i.findAnotherPoint(this.lastPoint);
146
148
  n && (this.lastPoint = n, this.hook.emit("anchorChange", n.position), this.group.remove(i.mesh), t.removeLine(i), i.distanceItem.remove(), this.updateDashed(), this.five.needsRender = !0);
147
149
  });
148
- s(this, "checkMouseLeave", (e) => {
150
+ o(this, "checkMouseLeave", (e) => {
149
151
  e || (this.dashed.hide(), this.perpendicularDashed.hide(), this.area.hideArea());
150
152
  });
151
153
  /** 编辑线条发生改变时通知外部 */
152
- s(this, "onLineChanged", () => {
154
+ o(this, "onLineChanged", () => {
153
155
  this.hook.emit("editedPolylineChange", this.polyline);
154
156
  });
155
- s(this, "onWantsSelect", () => {
157
+ o(this, "onWantsSelect", () => {
156
158
  if (this.currentMeasureType === "area") {
157
159
  const e = this.area.polygon.isBlank || this.area.polygon.visible === !1;
158
160
  if (this.area.points.length >= 3 && e)
159
161
  return !1;
160
162
  }
161
163
  });
162
- s(this, "wantsMoveToPano", () => {
164
+ o(this, "wantsMoveToPano", () => {
163
165
  if (this.lastPoint)
164
166
  return !1;
165
167
  });
@@ -168,13 +170,13 @@ class Dt extends z {
168
170
  * 2. 把上一个点的位置更新为当前点的位置
169
171
  * 3. 清除 pointSelector
170
172
  */
171
- s(this, "onSelect", () => {
173
+ o(this, "onSelect", () => {
172
174
  var l, c, u, y;
173
175
  this.hasAppendDashed || (this.dashed.distanceItem.appendTo(this.container), this.group.add(this.dashed.mesh), this.currentMeasureType === "area" && this.group.add(this.perpendicularDashed.mesh)), this.hasAppendDashed = !0;
174
176
  const e = (() => {
175
- var o, h;
177
+ var s, h;
176
178
  if (this.currentMeasureType === "area")
177
- return this.area.projectPoint((o = this.pointSelector.position) == null ? void 0 : o.point);
179
+ return this.area.projectPoint((s = this.pointSelector.position) == null ? void 0 : s.point);
178
180
  if (this.currentMeasureType === "line")
179
181
  return (h = this.pointSelector.position) == null ? void 0 : h.point;
180
182
  })();
@@ -184,10 +186,10 @@ class Dt extends z {
184
186
  if (i != null && i.position && t.position.equals(i == null ? void 0 : i.position))
185
187
  return;
186
188
  this.lastPoint = t;
187
- const n = (o) => {
189
+ const n = (s) => {
188
190
  if (!this.lastPoint)
189
191
  return [];
190
- const { intersection: h, pointSelectorInstance: L } = o, g = L.pointSelectorHelper.pointHelper, m = new f.Vector3(0, 0, 1).applyQuaternion(g.quaternion);
192
+ const { intersection: h, pointSelectorInstance: L } = s, g = L.pointSelectorHelper.pointHelper, m = new f.Vector3(0, 0, 1).applyQuaternion(g.quaternion);
191
193
  if (m.x > 0.9999 || m.y > 0.9999 || m.z > 0.9999 || m.x < -0.9999 || m.y < -0.9999 || m.z < -0.9999) {
192
194
  const A = h.point, v = this.lastPoint.position.clone().sub(A);
193
195
  L.pointSelectorHelper.updateWithIntersect(h, { emitEvent: !1 });
@@ -207,8 +209,8 @@ class Dt extends z {
207
209
  const h = new $(i, t, this.model);
208
210
  h.distanceItem.setCanSelect(!1), h.distanceItem.appendTo(this.container), this.polyline.addLine(h), this.group.add(h.mesh), h.distanceItem.update(this.five);
209
211
  }
210
- const o = (c = (l = this.editParams) == null ? void 0 : l.autoEndConfig) == null ? void 0 : c.line;
211
- typeof o == "number" && (this.polyline.getPointLength() >= o ? this.complete() : this.polyline.getPointLength() === o - 1 && this.hook.emit("readyComplete")), this.hook.emit("pointsChange", this.polyline.points);
212
+ const s = (c = (l = this.editParams) == null ? void 0 : l.autoEndConfig) == null ? void 0 : c.line;
213
+ typeof s == "number" && (this.polyline.getPointLength() >= s ? this.complete() : this.polyline.getPointLength() === s - 1 && this.hook.emit("readyComplete")), this.hook.emit("pointsChange", this.polyline.points);
212
214
  } else if (this.currentMeasureType === "area") {
213
215
  if (this.area.addPoints(t.position), this.area.isClosed) {
214
216
  this.complete();
@@ -218,17 +220,17 @@ class Dt extends z {
218
220
  var L;
219
221
  return [this.area.points[0], ...(L = n(...h)) != null ? L : []].filter(Y);
220
222
  });
221
- const o = (y = (u = this.editParams) == null ? void 0 : u.autoEndConfig) == null ? void 0 : y.area;
222
- typeof o == "number" && (this.area.points.length >= o ? this.complete() : this.area.points.length === o - 1 && this.hook.emit("readyComplete")), this.hook.emit("pointsChange", this.area.points);
223
+ const s = (y = (u = this.editParams) == null ? void 0 : u.autoEndConfig) == null ? void 0 : y.area;
224
+ typeof s == "number" && (this.area.points.length >= s ? this.complete() : this.area.points.length === s - 1 && this.hook.emit("readyComplete")), this.hook.emit("pointsChange", this.area.points);
223
225
  }
224
226
  this.updateDashed(), this.five.needsRender = !0, this.hook.emit("anchorChange", t.position);
225
227
  });
226
228
  /** 移动全景时更新 distanceItem 在屏幕上的位置 */
227
- s(this, "onCameraUpdate", () => {
229
+ o(this, "onCameraUpdate", () => {
228
230
  this.updateDistanceUI();
229
231
  });
230
232
  /** 更新虚线 */
231
- s(this, "updateDashed", () => {
233
+ o(this, "updateDashed", () => {
232
234
  var i;
233
235
  if (!this.lastPoint)
234
236
  return;
@@ -247,17 +249,17 @@ class Dt extends z {
247
249
  if (this.area.areaItem.setCanSelect(!1), this.area.points.length >= 2) {
248
250
  const n = (i = this.pointSelector.position) == null ? void 0 : i.point;
249
251
  if (n) {
250
- const o = n, h = t;
251
- this.perpendicularDashed.setPoints(o, h), this.perpendicularDashed.show();
252
+ const s = n, h = t;
253
+ this.perpendicularDashed.setPoints(s, h), this.perpendicularDashed.show();
252
254
  } else
253
255
  this.perpendicularDashed.hide();
254
- const l = this.area.polyline.lines.map((o) => ({ start: o.points[0].position, end: o.points[1].position })), c = H({ start: e, end: t }, l), u = H({ start: t, end: this.area.points[0] }, l);
256
+ const l = this.area.polyline.lines.map((s) => ({ start: s.points[0].position, end: s.points[1].position })), c = H({ start: e, end: t }, l), u = H({ start: t, end: this.area.points[0] }, l);
255
257
  if (c || u)
256
258
  this.area.hideArea(), this.hook.emit("allowAddPointStateChange", "forbid");
257
259
  else {
258
260
  this.area.showArea();
259
- const o = [...this.area.points, t];
260
- this.area.polygon.updatePoints(o), this.area.areaItem.updateArea(this.five), this.hook.emit("allowAddPointStateChange", "allow");
261
+ const s = [...this.area.points, t];
262
+ this.area.polygon.updatePoints(s), this.area.areaItem.updateArea(this.five), this.hook.emit("allowAddPointStateChange", "allow");
261
263
  }
262
264
  } else
263
265
  this.area.hideArea(), this.perpendicularDashed.hide();
@@ -265,7 +267,7 @@ class Dt extends z {
265
267
  });
266
268
  // ====================================================================================================================================
267
269
  // 下面一堆高亮相关
268
- s(this, "wantsTapGesture", (e) => {
270
+ o(this, "wantsTapGesture", (e) => {
269
271
  var A, v;
270
272
  if (this.editParams.pointSelectorMode === "cursor" || this.lastPoint)
271
273
  return !1;
@@ -280,7 +282,7 @@ class Dt extends z {
280
282
  const [n] = X(this.five).intersectRaycaster(e);
281
283
  if (!n)
282
284
  return;
283
- const l = this.five.camera, c = n.point.clone().project(l), u = this.container.clientWidth, y = this.container.clientHeight, o = new T(c.x * u, c.y * y), h = this.model.getAllLines().map((r) => {
285
+ const l = this.five.camera, c = n.point.clone().project(l), u = this.container.clientWidth, y = this.container.clientHeight, s = new T(c.x * u, c.y * y), h = this.model.getAllLines().map((r) => {
284
286
  const [p, S] = r.points, P = p.position.clone().project(l), C = S.position.clone().project(l);
285
287
  if (!b(P) && !b(C))
286
288
  return null;
@@ -290,8 +292,8 @@ class Dt extends z {
290
292
  if (h.length === 0)
291
293
  return;
292
294
  const g = h.map((r) => {
293
- const p = Q(o, r.points);
294
- return { id: r.id, distance: p.distanceTo(o) };
295
+ const p = Q(s, r.points);
296
+ return { id: r.id, distance: p.distanceTo(s) };
295
297
  }).sort((r, p) => r.distance - p.distance)[0];
296
298
  if (g.distance > 20)
297
299
  return;
@@ -299,17 +301,17 @@ class Dt extends z {
299
301
  if (m)
300
302
  return this.chooseLine(m), !1;
301
303
  });
302
- s(this, "chooseLine", (e) => {
304
+ o(this, "chooseLine", (e) => {
303
305
  const t = e.getPolyline().lines;
304
306
  this.deleteDom.setTarget(t).setLines(t).updatePosition().show(), this.highlightLines(t), this.hook.emit("selectedChange", t);
305
307
  });
306
- s(this, "chooseArea", (e, t) => {
308
+ o(this, "chooseArea", (e, t) => {
307
309
  this.deleteDom.setTarget(e).updatePosition(t.left, `calc(${t.top} - 1.5rem)`).show(), this.highlightArea(e);
308
310
  });
309
- s(this, "deleteArea", (e) => {
311
+ o(this, "deleteArea", (e) => {
310
312
  this.unHighlightArea(e), e.dispose(), this.deleteDom.hide();
311
313
  });
312
- s(this, "deleteLine", (e) => {
314
+ o(this, "deleteLine", (e) => {
313
315
  const t = e[0], i = this.model.getPolylineByLine(t);
314
316
  i && (this.model.removePolyline(i), i.lines.forEach((n) => this.removeLine(n)), this.deleteDom.setLines([]).hide());
315
317
  });
@@ -377,5 +379,5 @@ class Dt extends z {
377
379
  }
378
380
  }
379
381
  export {
380
- Dt as default
382
+ It as default
381
383
  };
@@ -77,6 +77,8 @@ import "../../shared-utils/three/core/LineGeometry.js";
77
77
  import "../../shared-utils/three/core/LineMaterial.js";
78
78
  import "../../shared-utils/three/core/Line2.js";
79
79
  import "../../shared-utils/three/core/LineMaterial2.js";
80
+ import "../../Sculpt/utils/unit.js";
81
+ import "../../Sculpt/utils/renderDom.js";
80
82
  import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
81
83
  import "../../shared-utils/isTouchDevice.js";
82
84
  import "../../shared-utils/five/getPosition.js";
@@ -89,7 +91,7 @@ import "../../vendor/earcut/src/earcut.js";
89
91
  import "../../shared-utils/three/getNormal.js";
90
92
  import "../utils/isIntersecting.js";
91
93
  const D = () => !1;
92
- class ye extends U {
94
+ class Se extends U {
93
95
  constructor(t) {
94
96
  super(t);
95
97
  o(this, "type", "watch");
@@ -262,5 +264,5 @@ class ye extends U {
262
264
  }
263
265
  }
264
266
  export {
265
- ye as default
267
+ Se as default
266
268
  };
@@ -1,19 +1,19 @@
1
- var D = Object.defineProperty, G = Object.defineProperties;
2
- var E = Object.getOwnPropertyDescriptors;
1
+ var x = Object.defineProperty, D = Object.defineProperties;
2
+ var G = Object.getOwnPropertyDescriptors;
3
3
  var I = Object.getOwnPropertySymbols;
4
4
  var S = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable;
5
- var f = (n, s, t) => s in n ? D(n, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[s] = t, p = (n, s) => {
5
+ var f = (n, s, t) => s in n ? x(n, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[s] = t, p = (n, s) => {
6
6
  for (var t in s || (s = {}))
7
7
  S.call(s, t) && f(n, t, s[t]);
8
8
  if (I)
9
9
  for (var t of I(s))
10
10
  L.call(s, t) && f(n, t, s[t]);
11
11
  return n;
12
- }, U = (n, s) => G(n, E(s));
13
- var r = (n, s, t) => (f(n, typeof s != "symbol" ? s + "" : s, t), t);
12
+ }, U = (n, s) => D(n, G(s));
13
+ var o = (n, s, t) => (f(n, typeof s != "symbol" ? s + "" : s, t), t);
14
14
  import c from "./EditController.js";
15
15
  import k from "./ViewController.js";
16
- import T from "./WatchController.js";
16
+ import E from "./WatchController.js";
17
17
  import u from "./MixedController.js";
18
18
  import { omit as O } from "../../shared-utils/filter.js";
19
19
  import { Group as V } from "three";
@@ -22,7 +22,7 @@ import { getMouseGroup as A } from "../utils/mouseGroup.js";
22
22
  import { UIController as B } from "../Modules/UIController/index.js";
23
23
  import { GuideController as K } from "../Modules/GuideController.js";
24
24
  import { ShortcutKeyController as H } from "./ShortcutKeyController.js";
25
- import { safeObj as x } from "../../shared-utils/safeObj.js";
25
+ import { safeObj as T } from "../../shared-utils/safeObj.js";
26
26
  import "../../shared-utils/tag.js";
27
27
  import { Magnifier as j } from "../../shared-utils/three/Magnifier.js";
28
28
  import "../../shared-utils/three/PointSelector/index.js";
@@ -102,6 +102,8 @@ import "../../shared-utils/three/core/LineGeometry.js";
102
102
  import "../../shared-utils/three/core/LineMaterial.js";
103
103
  import "../../shared-utils/three/core/Line2.js";
104
104
  import "../../shared-utils/three/core/LineMaterial2.js";
105
+ import "../../Sculpt/utils/unit.js";
106
+ import "../../Sculpt/utils/renderDom.js";
105
107
  import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
106
108
  import "../../shared-utils/five/getPosition.js";
107
109
  import "../../shared-utils/five/getRaycasterByNdcPosition.js";
@@ -134,84 +136,84 @@ import "../../vendor/svelte/easing/index.js";
134
136
  import "../../vendor/object-assign-deep/objectAssignDeep.js";
135
137
  import "../Components/Tip.js";
136
138
  import "../../shared-utils/url/absoluteUrl.js";
137
- class ni extends J {
139
+ class hi extends J {
138
140
  constructor(t, e) {
139
141
  var l, h, m, a, g, y, C, M, w, P, v, b;
140
142
  super(t);
141
- r(this, "state", { enabled: !0 });
142
- r(this, "hasOpen", !1);
143
+ o(this, "state", { enabled: !0 });
144
+ o(this, "hasOpen", !1);
143
145
  /** @deprecated use hooks instead */
144
- r(this, "hook");
145
- r(this, "magnifier");
146
- r(this, "controller", null);
146
+ o(this, "hook");
147
+ o(this, "magnifier");
148
+ o(this, "controller", null);
147
149
  /** 允许的测量类型 */
148
- r(this, "allowMeasureType");
150
+ o(this, "allowMeasureType");
149
151
  /** 当前的测量类型 */
150
- r(this, "currentMeasureType");
151
- r(this, "model");
152
- r(this, "group");
153
- r(this, "config");
154
- r(this, "isMobile");
155
- r(this, "useUIController");
156
- r(this, "params");
157
- r(this, "useGuideController");
158
- r(this, "container", document.createElement("div"));
159
- r(this, "shortcutKeyController");
152
+ o(this, "currentMeasureType");
153
+ o(this, "model");
154
+ o(this, "group");
155
+ o(this, "config");
156
+ o(this, "isMobile");
157
+ o(this, "useUIController");
158
+ o(this, "params");
159
+ o(this, "useGuideController");
160
+ o(this, "container", document.createElement("div"));
161
+ o(this, "shortcutKeyController");
160
162
  /** 关闭插件功能
161
163
  * @description 清除标尺线条
162
164
  * @description 还原点位展示和默认鼠标 UI
163
165
  */
164
- r(this, "disable", () => {
165
- var t, e, i, o;
166
- this.hasOpen = !1, this.state.enabled = !1, this.container.style.visibility = "hidden", this.container.style.opacity = "0", (t = this.controller) == null || t.dispose(), (e = this.useUIController) == null || e.hide(), (i = this.useGuideController) == null || i.hide(), (o = this.shortcutKeyController) == null || o.dispose(), this.controller = null, this.five.helperVisible = !0, this.five.scene.remove(this.group), this.five.needsRender = !0, this.hook.emit("disable", !0);
166
+ o(this, "disable", () => {
167
+ var t, e, r, i;
168
+ this.hasOpen = !1, this.state.enabled = !1, this.container.style.visibility = "hidden", this.container.style.opacity = "0", (t = this.controller) == null || t.dispose(), (e = this.useUIController) == null || e.hide(), (r = this.useGuideController) == null || r.hide(), (i = this.shortcutKeyController) == null || i.dispose(), this.controller = null, this.five.helperVisible = !0, this.five.scene.remove(this.group), this.five.needsRender = !0, this.hook.emit("disable", !0);
167
169
  });
168
- r(this, "getCurrentMode", () => this.controller instanceof c ? "Edit" : this.controller instanceof T ? "Watch" : this.controller instanceof u ? "Mixed" : this.controller instanceof k ? "View" : null);
170
+ o(this, "getCurrentMode", () => this.controller instanceof c ? "Edit" : this.controller instanceof E ? "Watch" : this.controller instanceof u ? "Mixed" : this.controller instanceof k ? "View" : null);
169
171
  /** 变更场景
170
172
  * @description 如果从编辑场景改变到观看场景,不会自动保存,默认丢弃所有改动
171
173
  */
172
- r(this, "changeMode", (t) => {
173
- var o, l, h, m, a;
174
+ o(this, "changeMode", (t) => {
175
+ var i, l, h, m, a;
174
176
  if (!this.hasOpen || this.getCurrentMode() === t)
175
177
  return;
176
- (o = this.controller) == null || o.dispose();
178
+ (i = this.controller) == null || i.dispose();
177
179
  const e = {
178
180
  View: k,
179
- Watch: T,
181
+ Watch: E,
180
182
  Edit: c,
181
183
  Mixed: u
182
184
  };
183
185
  if (!e[t])
184
186
  throw new Error("不存在的 Mode");
185
- const i = this.createControllerParams();
186
- this.controller = new e[t](i), t === "View" ? ((l = this.useUIController) == null || l.hide(), (h = this.useGuideController) == null || h.hide()) : ((m = this.useUIController) == null || m.show(), (a = this.useGuideController) == null || a.show()), this.hook.emit("modeChange", t);
187
+ const r = this.createControllerParams();
188
+ this.controller = new e[t](r), t === "View" ? ((l = this.useUIController) == null || l.hide(), (h = this.useGuideController) == null || h.hide()) : ((m = this.useUIController) == null || m.show(), (a = this.useGuideController) == null || a.show()), this.hook.emit("modeChange", t);
187
189
  });
188
190
  /**
189
191
  * @description: 切换测量的类型
190
192
  */
191
- r(this, "changeMeasureType", (t) => {
193
+ o(this, "changeMeasureType", (t) => {
192
194
  this.currentMeasureType = t, this.hook.emit("measureTypeChange", t);
193
195
  });
194
196
  this.five = t, this.hook = this.hooks, this.params = e, this.config = O(e, ["openParams", "magnifierParams"]), this.model = new W(this.config), this.isMobile = (h = (l = e == null ? void 0 : e.openParams) == null ? void 0 : l.isMobile) != null ? h : !1, this.magnifier = new j(
195
197
  t,
196
198
  (y = (g = e.magnifierParams) != null ? g : (a = (m = e.pointSelectorConfig) == null ? void 0 : m.helper) == null ? void 0 : a.magnifierParams) != null ? y : { width: 190, height: 190, scale: 2 }
197
199
  ), this.allowMeasureType = Array.from(new Set((M = (C = e.editParams) == null ? void 0 : C.allowMeasureType) != null ? M : ["line"])), this.currentMeasureType = (w = this.allowMeasureType[0]) != null ? w : "line", this.group = new V(), this.group.name = "plugin-measure-group", this.container.classList.add("five-plugin-measure-container"), this.container.style.position = "absolute", this.container.style.left = "0", this.container.style.top = "0", this.container.style.visibility = "hidden", this.container.style.pointerEvents = "none", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0", this.container.style.zIndex = "1";
198
- const i = (v = (P = e.editParams) == null ? void 0 : P.pointSelectorMode) != null ? v : F ? "fixed" : "cursor", o = (b = this.params.openParams) != null ? b : {};
200
+ const r = (v = (P = e.editParams) == null ? void 0 : P.pointSelectorMode) != null ? v : F ? "fixed" : "cursor", i = (b = this.params.openParams) != null ? b : {};
199
201
  if (this.params.useUIController !== !1) {
200
202
  const d = p({
201
203
  container: this.container,
202
- openParams: o,
204
+ openParams: i,
203
205
  i18n: e.i18n,
204
- pointSelectorMode: i,
206
+ pointSelectorMode: r,
205
207
  useNewUI: this.allowMeasureType.length > 1
206
- }, x(this.params.useUIController));
208
+ }, T(this.params.useUIController));
207
209
  this.useUIController = new B(this, d);
208
210
  }
209
211
  if (this.params.useGuideController !== !1) {
210
212
  const d = p({
211
213
  container: this.container,
212
- pointSelectorMode: i,
214
+ pointSelectorMode: r,
213
215
  i18n: e.i18n
214
- }, x(this.params.useGuideController));
216
+ }, T(this.params.useGuideController));
215
217
  this.useGuideController = new K(this, d);
216
218
  }
217
219
  }
@@ -232,10 +234,10 @@ class ni extends J {
232
234
  load(t) {
233
235
  let e = t;
234
236
  t.list && (e = {
235
- polylines: t.list.map((o) => o.polyline).map((o) => {
237
+ polylines: t.list.map((i) => i.polyline).map((i) => {
236
238
  var l;
237
- return U(p({}, o), {
238
- visibleFiveMode: (l = o.visibleFiveMode) != null ? l : ["Panorama"]
239
+ return U(p({}, i), {
240
+ visibleFiveMode: (l = i.visibleFiveMode) != null ? l : ["Panorama"]
239
241
  });
240
242
  })
241
243
  }), this.model.parse(e), this.save();
@@ -245,8 +247,8 @@ class ni extends J {
245
247
  * @description 会隐藏当前 VR 内的点位展示
246
248
  */
247
249
  enable(t) {
248
- var e, i;
249
- this.hasOpen || (this.state.enabled = !0, this.hasOpen = !0, this.group.matrix.copy(this.workUtil.transform), this.group.matrix.decompose(this.group.position, this.group.quaternion, this.group.scale), this.group.updateMatrixWorld(), this.five.scene.add(this.group), this.container.style.visibility = "visible", this.container.style.opacity = "1", t != null && t.mode ? this.changeMode(t.mode) : this.isMobile ? this.changeMode("Mixed") : this.changeMode("Watch"), (t == null ? void 0 : t.mode) !== "View" && ((e = this.useUIController) == null || e.show(), (i = this.useGuideController) == null || i.show()), this.shortcutKeyController = new H(this, this.five), this.hook.emit("enable", !0));
250
+ var e, r, i;
251
+ this.hasOpen || (!this.container.parentElement && ((e = this.five.getElement()) != null && e.parentElement) && this.appendTo(this.five.getElement().parentElement), this.state.enabled = !0, this.hasOpen = !0, this.group.matrix.copy(this.workUtil.transform), this.group.matrix.decompose(this.group.position, this.group.quaternion, this.group.scale), this.group.updateMatrixWorld(), this.five.scene.add(this.group), this.container.style.visibility = "visible", this.container.style.opacity = "1", t != null && t.mode ? this.changeMode(t.mode) : this.isMobile ? this.changeMode("Mixed") : this.changeMode("Watch"), (t == null ? void 0 : t.mode) !== "View" && ((r = this.useUIController) == null || r.show(), (i = this.useGuideController) == null || i.show()), this.shortcutKeyController = new H(this, this.five), this.hook.emit("enable", !0));
250
252
  }
251
253
  /** 进入编辑模式 */
252
254
  edit(t) {
@@ -289,11 +291,11 @@ class ni extends J {
289
291
  * @description 以下情况可能报错
290
292
  */
291
293
  save(t) {
292
- var o;
294
+ var i;
293
295
  if (!(this.controller instanceof c) && !(this.controller instanceof u))
294
296
  return this;
295
- const e = (o = t == null ? void 0 : t.mode) != null ? o : "View", i = this.controller.model.areas;
296
- return this.controller instanceof c ? this.controller.complete() : i.forEach((l) => {
297
+ const e = (i = t == null ? void 0 : t.mode) != null ? i : "View", r = this.controller.model.areas;
298
+ return this.controller instanceof c ? this.controller.complete() : r.forEach((l) => {
297
299
  l.showArea(), this.model.addArea(l);
298
300
  }), this.changeMode(e), this;
299
301
  }
@@ -317,20 +319,20 @@ class ni extends J {
317
319
  changeIsMobile(t) {
318
320
  }
319
321
  changeConfigs(t) {
320
- var e, i;
321
- Object.assign(this.config, t), (e = this.controller) == null || e.updateDistanceUI(), (i = this.controller) == null || i.updateAreaUI();
322
+ var e, r;
323
+ Object.assign(this.config, t), (e = this.controller) == null || e.updateDistanceUI(), (r = this.controller) == null || r.updateAreaUI();
322
324
  }
323
325
  /** 设置线段的文本 */
324
326
  setCustomText(t, e) {
325
- var o;
326
- const i = this.model.getLineByID(t);
327
- if (!i)
327
+ var i;
328
+ const r = this.model.getLineByID(t);
329
+ if (!r)
328
330
  throw new Error("不存在的线段");
329
- i.setText(e), (o = this.controller) == null || o.updateDistanceUI();
331
+ r.setText(e), (i = this.controller) == null || i.updateDistanceUI();
330
332
  }
331
333
  createControllerParams() {
332
- var i, o;
333
- const t = (i = this.params.openParams) != null ? i : {}, e = (o = this.params.editParams) != null ? o : {};
334
+ var r, i;
335
+ const t = (r = this.params.openParams) != null ? r : {}, e = (i = this.params.editParams) != null ? i : {};
334
336
  return t.isMobile = this.isMobile, {
335
337
  five: this.five,
336
338
  hook: this.hook,
@@ -351,5 +353,5 @@ class ni extends J {
351
353
  }
352
354
  }
353
355
  export {
354
- ni as default
356
+ hi as default
355
357
  };
@@ -71,13 +71,15 @@ import "../../shared-utils/three/core/LineGeometry.js";
71
71
  import "../../shared-utils/three/core/LineMaterial.js";
72
72
  import "../../shared-utils/three/core/Line2.js";
73
73
  import "../../shared-utils/three/core/LineMaterial2.js";
74
+ import "../../Sculpt/utils/unit.js";
75
+ import "../../Sculpt/utils/renderDom.js";
74
76
  import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
75
77
  import "../../shared-utils/isTouchDevice.js";
76
78
  import "../../shared-utils/five/getPosition.js";
77
79
  import "../../shared-utils/five/getRaycasterByNdcPosition.js";
78
80
  import "../../shared-utils/three/PointSelector/utils/contents.js";
79
81
  import "../../Sculpt/utils/three/rayOnLine.js";
80
- class Nt {
82
+ class Xt {
81
83
  constructor(t, e) {
82
84
  i(this, "id", f());
83
85
  i(this, "selected", !1);
@@ -106,14 +108,14 @@ class Nt {
106
108
  i(this, "updateDom", () => {
107
109
  this.five && (this.polyline.lines.forEach((t) => t.distanceItem.update(this.five)), this.areaItem.updateDomPosition(this.five));
108
110
  });
109
- var s;
111
+ var r;
110
112
  t && (this.points = t), this.model = e.model, this.polygon = new v(t), this.polyline = new y({ model: e.model }), this.areaItem = new C({
111
113
  area: this,
112
- clickCallback: (r, p) => {
113
- const a = r.clientX + "px", h = r.clientY + "px";
114
+ clickCallback: (s, p) => {
115
+ const a = s.clientX + "px", h = s.clientY + "px";
114
116
  this.hook.emit("selected", this, { left: a, top: h });
115
117
  }
116
- }), this.domContainer = e.domContainer || null, this.meshContainer = e.meshContainer || null, this.five = e.five || null, this.areaItem.appendTo(this.domContainer), (s = this.five) == null || s.on("cameraUpdate", this.updateDom);
118
+ }), this.domContainer = e.domContainer || null, this.meshContainer = e.meshContainer || null, this.five = e.five || null, this.areaItem.appendTo(this.domContainer), (r = this.five) == null || r.on("cameraUpdate", this.updateDom);
117
119
  }
118
120
  /**
119
121
  * @description: 多边形的端点是否闭合
@@ -123,14 +125,14 @@ class Nt {
123
125
  return this.points.length >= 4 && ((t = this.points.at(0)) == null ? void 0 : t.equals(this.points.at(-1)));
124
126
  }
125
127
  addPoints(t) {
126
- var r;
128
+ var s;
127
129
  this.points = this.points.concat(t);
128
- const e = this.points.at(-2), s = this.points.at(-1);
129
- if (e && s) {
130
- const p = new u(new n(e), new n(s), this.polyline.model);
130
+ const e = this.points.at(-2), r = this.points.at(-1);
131
+ if (e && r) {
132
+ const p = new u(new n(e), new n(r), this.polyline.model);
131
133
  this.polyline.addLine(p), this.meshContainer.add(p.mesh), this.five && (p.distanceItem.setCanSelect(!1), p.distanceItem.appendTo(this.domContainer), p.distanceItem.update(this.five));
132
134
  }
133
- (r = this.meshContainer) != null && r.children.includes(this.polygon) || this.meshContainer.add(this.polygon), this.polygon.updatePoints(this.points), this.areaItem.updateArea(this.five), this.points.length === 3 ? this.planeHelper = new m.Plane().setFromCoplanarPoints(this.points[0], this.points[1], this.points[2]) : this.points.length < 3 && (this.planeHelper = null);
135
+ (s = this.meshContainer) != null && s.children.includes(this.polygon) || this.meshContainer.add(this.polygon), this.polygon.updatePoints(this.points), this.areaItem.updateArea(this.five), this.points.length === 3 ? this.planeHelper = new m.Plane().setFromCoplanarPoints(this.points[0], this.points[1], this.points[2]) : this.points.length < 3 && (this.planeHelper = null);
134
136
  }
135
137
  /**
136
138
  * @description: 移除最后一个添加的点
@@ -176,5 +178,5 @@ class Nt {
176
178
  }
177
179
  }
178
180
  export {
179
- Nt as default
181
+ Xt as default
180
182
  };
@@ -49,6 +49,8 @@ import "../../shared-utils/three/core/LineGeometry.js";
49
49
  import "../../shared-utils/three/core/LineMaterial.js";
50
50
  import "../../shared-utils/three/core/Line2.js";
51
51
  import "../../shared-utils/three/core/LineMaterial2.js";
52
+ import "../../Sculpt/utils/unit.js";
53
+ import "../../Sculpt/utils/renderDom.js";
52
54
  import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
53
55
  import "../../shared-utils/isTouchDevice.js";
54
56
  import "../../shared-utils/five/getPosition.js";
@@ -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";
@@ -102,7 +104,7 @@ import "../../Components/Common/Switcher1.js";
102
104
  import "../../Components/Common/CircleButton.js";
103
105
  import "../../../vendor/svelte/transition/index.js";
104
106
  import "../../../vendor/svelte/easing/index.js";
105
- class Ei {
107
+ class gi {
106
108
  constructor(i, t) {
107
109
  o(this, "revoke");
108
110
  o(this, "container");
@@ -158,5 +160,5 @@ class Ei {
158
160
  }
159
161
  }
160
162
  export {
161
- Ei as UIController
163
+ gi as UIController
162
164
  };