@realsee/dnalogel 2.21.0-dev.0 → 2.21.0-dev.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (472) hide show
  1. package/components/index.js +329 -329
  2. package/dist/CSS3DRenderPlugin/Controller.d.ts +4 -1
  3. package/dist/GuideLinePlugin/Controller.d.ts +5 -3
  4. package/dist/GuideLinePlugin/GuideLineItem.d.ts +1 -1
  5. package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +17 -0
  6. package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +7 -0
  7. package/dist/PanoMeasurePlugin/Components/Common/Exit.svelte.d.ts +1 -0
  8. package/dist/PanoMeasurePlugin/Components/Common/Switcher0.svelte.d.ts +1 -0
  9. package/dist/PanoMeasurePlugin/Components/Common/icons/index.d.ts +4 -0
  10. package/dist/PanoMeasurePlugin/Components/Controller0.svelte.d.ts +1 -0
  11. package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +2 -0
  12. package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +17 -18
  13. package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +1 -1
  14. package/dist/PanoMeasurePlugin/Controller/index.d.ts +6 -3
  15. package/dist/PanoMeasurePlugin/Model/area.d.ts +9 -1
  16. package/dist/PanoMeasurePlugin/Model/index.d.ts +1 -0
  17. package/dist/PanoMeasurePlugin/Model/line.d.ts +3 -0
  18. package/dist/PanoMeasurePlugin/Model/polygon.d.ts +4 -0
  19. package/dist/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +7 -3
  20. package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
  21. package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +9 -3
  22. package/dist/PanoMeasurePlugin/Modules/UIController/style.d.ts +0 -8
  23. package/dist/PanoMeasurePlugin/typings/data.d.ts +8 -2
  24. package/dist/PanoMeasurePlugin/typings/event.type.d.ts +3 -0
  25. package/dist/PanoMeasurePlugin/utils/dom/base.d.ts +4 -0
  26. package/dist/PanoMeasurePlugin/utils/geometryUtil.d.ts +1 -1
  27. package/dist/PanoMeasurePlugin/utils/ndc2Screen.d.ts +2 -1
  28. package/dist/base/BasePlugin.d.ts +4 -1
  29. package/dist/components/PaintBrush/style.d.ts +1 -1
  30. package/dist/index.cjs.js +70 -66
  31. package/dist/index.js +8065 -6908
  32. package/dist/index.umd.js +65 -61
  33. package/dist/shared-utils/absoluteUrl.d.ts +5 -0
  34. package/dist/{PanoMeasurePlugin/utils → shared-utils}/getIntersectionFromEvent.d.ts +1 -1
  35. package/dist/{PanoMeasurePlugin/utils → shared-utils}/getPointFromHammerEvent.d.ts +1 -1
  36. package/dist/shared-utils/index.d.ts +1 -1
  37. package/dist/shared-utils/isTouchDevice.d.ts +1 -0
  38. package/dist/shared-utils/three/Magnifier.d.ts +2 -0
  39. package/dist/shared-utils/three/PointSelector.d.ts +76 -0
  40. package/dist/shared-utils/three/PointSelectorHelper.d.ts +50 -0
  41. package/dist/shared-utils/three/index.d.ts +1 -1
  42. package/docs/assets/search.js +1 -1
  43. package/docs/classes/CSS3DRender.html +34 -32
  44. package/docs/classes/CruisePluginController.html +48 -44
  45. package/docs/classes/GuideLineItem.GuideLineItem.html +23 -21
  46. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +90 -33
  47. package/docs/classes/Magnifier.html +23 -21
  48. package/docs/classes/ModelRoomLabelController.html +14 -12
  49. package/docs/classes/Object3DHelperController.html +47 -43
  50. package/docs/classes/PaintBrush.html +18 -16
  51. package/docs/classes/PanoMeasurePluginLine.html +48 -26
  52. package/docs/classes/PanoMeasurePluginModel.html +44 -27
  53. package/docs/classes/PanoMeasurePluginPoint.html +17 -15
  54. package/docs/classes/PanoMeasurePluginPolyline.html +30 -28
  55. package/docs/classes/PanoTagPluginController.html +69 -65
  56. package/docs/classes/Util.BetterTween.html +12 -10
  57. package/docs/classes/Util.Interval.html +15 -13
  58. package/docs/classes/Util.Magnifier.html +42 -20
  59. package/docs/classes/Util.PointDomHelper.html +14 -12
  60. package/docs/classes/Util.PointHelper.html +14 -12
  61. package/docs/classes/{Util.FivePointSelector.html → Util.PointSelectorHelper.html} +105 -27
  62. package/docs/classes/Util.Rectangle.html +16 -14
  63. package/docs/enums/CameraMovementEffect.html +10 -8
  64. package/docs/enums/ContentType.html +23 -21
  65. package/docs/enums/DIRECTION.html +12 -10
  66. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +12 -10
  67. package/docs/enums/DimensionType.html +10 -8
  68. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +11 -9
  69. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +12 -10
  70. package/docs/enums/PaintBrushTypeEnum.html +11 -9
  71. package/docs/enums/PointType.html +10 -8
  72. package/docs/enums/Rotation.html +11 -9
  73. package/docs/functions/CSS3DRenderPlugin.html +7 -5
  74. package/docs/functions/CameraMovementPlugin.html +7 -5
  75. package/docs/functions/CruisePlugin.html +7 -5
  76. package/docs/functions/GuideLinePlugin.html +8 -6
  77. package/docs/functions/ItemLabelPlugin.html +7 -5
  78. package/docs/functions/MapviewFloorplanPlugin.html +7 -5
  79. package/docs/functions/ModelChassisCompassPlugin.html +7 -5
  80. package/docs/functions/ModelEntryDoorGuidePlugin.html +7 -5
  81. package/docs/functions/ModelFloorplanPlugin.html +7 -5
  82. package/docs/functions/ModelItemLabelPlugin.html +7 -5
  83. package/docs/functions/ModelRoomLabelPlugin.html +7 -5
  84. package/docs/functions/ModelTVVideoPlugin.html +7 -5
  85. package/docs/functions/ModelViewPlugin.html +7 -5
  86. package/docs/functions/Object3DHelperPlugin.html +7 -5
  87. package/docs/functions/PanoCompassPlugin.html +7 -5
  88. package/docs/functions/PanoCursorRaycasterPlugin.html +7 -5
  89. package/docs/functions/PanoDoorLabelPlugin.html +7 -5
  90. package/docs/functions/PanoFloorplanRadarPlugin.html +7 -5
  91. package/docs/functions/PanoMeasurePlugin.html +7 -5
  92. package/docs/functions/PanoRulerPlugin.html +7 -5
  93. package/docs/functions/PanoRulerProPlugin.html +7 -5
  94. package/docs/functions/PanoSpatialTagPlugin.html +7 -5
  95. package/docs/functions/PanoTagPlugin.html +7 -5
  96. package/docs/functions/PanoVideoPlugin.html +7 -5
  97. package/docs/functions/TopviewFloorplanPlugin.html +7 -5
  98. package/docs/functions/Util.absoluteUrl.html +370 -0
  99. package/docs/functions/Util.getCoordsFromClient.html +8 -6
  100. package/docs/functions/Util.getCoordsFromElement.html +8 -6
  101. package/docs/functions/Util.getFrameTime.html +8 -6
  102. package/docs/functions/Util.getIntersectFromRelativePosition.html +8 -6
  103. package/docs/functions/Util.getRaycasterFromFivePointer.html +8 -6
  104. package/docs/functions/Util.isAbsoluteURL.html +8 -6
  105. package/docs/functions/Util.isModelLike.html +8 -6
  106. package/docs/functions/Util.isNil.html +8 -6
  107. package/docs/functions/Util.isPanoramaLike.html +8 -6
  108. package/docs/functions/Util.nextFrame.html +8 -6
  109. package/docs/functions/Util.notNil.html +8 -6
  110. package/docs/functions/Util.requestAnimationFrameInterval.html +8 -6
  111. package/docs/functions/Util.tweenProgress.html +8 -6
  112. package/docs/functions/Util.uuid.html +8 -6
  113. package/docs/functions/pluginFlag.html +8 -6
  114. package/docs/index.html +8 -6
  115. package/docs/interfaces/AddTagConfig.html +9 -7
  116. package/docs/interfaces/CSS3DRenderPluginEventMap.html +14 -12
  117. package/docs/interfaces/CSS3DRenderPluginState.html +11 -9
  118. package/docs/interfaces/CameraMovementPluginExportType.html +10 -8
  119. package/docs/interfaces/CruisePluginTypes.Config.html +11 -9
  120. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +15 -13
  121. package/docs/interfaces/CruisePluginTypes.EventMap.html +23 -21
  122. package/docs/interfaces/CruisePluginTypes.MoveAction.html +15 -13
  123. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +17 -15
  124. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +17 -15
  125. package/docs/interfaces/CruisePluginTypes.PluginData.html +12 -10
  126. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +10 -8
  127. package/docs/interfaces/CruisePluginTypes.PluginState.html +14 -12
  128. package/docs/interfaces/EventMap.html +18 -16
  129. package/docs/interfaces/FloorplanBounding.html +11 -9
  130. package/docs/interfaces/FloorplanData.html +13 -11
  131. package/docs/interfaces/FloorplanEntrance.html +14 -12
  132. package/docs/interfaces/FloorplanExtraObject.html +13 -11
  133. package/docs/interfaces/FloorplanExtraObject3D.html +11 -9
  134. package/docs/interfaces/FloorplanFloorData.html +12 -10
  135. package/docs/interfaces/FloorplanImagePosition.html +10 -8
  136. package/docs/interfaces/FloorplanObserver.html +12 -10
  137. package/docs/interfaces/FloorplanOutlineItem.html +12 -10
  138. package/docs/interfaces/FloorplanPosition.html +10 -8
  139. package/docs/interfaces/FloorplanRoomItem.html +16 -14
  140. package/docs/interfaces/FloorplanRoomLabelItem.html +10 -8
  141. package/docs/interfaces/FloorplanServerBounding.html +11 -9
  142. package/docs/interfaces/FloorplanServerComputedData.html +13 -11
  143. package/docs/interfaces/FloorplanServerData.html +10 -8
  144. package/docs/interfaces/FloorplanServerDoorItem.html +13 -11
  145. package/docs/interfaces/FloorplanServerDoorPosition.html +11 -9
  146. package/docs/interfaces/FloorplanServerEntrance.html +14 -12
  147. package/docs/interfaces/FloorplanServerFloorData.html +12 -10
  148. package/docs/interfaces/FloorplanServerImagePosition.html +10 -8
  149. package/docs/interfaces/FloorplanServerObserver.html +12 -10
  150. package/docs/interfaces/FloorplanServerOutlineItem.html +12 -10
  151. package/docs/interfaces/FloorplanServerPosition.html +10 -8
  152. package/docs/interfaces/FloorplanServerRoomItem.html +17 -15
  153. package/docs/interfaces/FloorplanServerRoomLabelItem.html +10 -8
  154. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +11 -9
  155. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +13 -11
  156. package/docs/interfaces/GuideLinePluginType.EventMap.html +16 -14
  157. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +11 -9
  158. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +9 -7
  159. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +16 -14
  160. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +11 -9
  161. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +21 -19
  162. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +10 -8
  163. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +21 -19
  164. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +8 -6
  165. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +10 -8
  166. package/docs/interfaces/GuideLinePluginType.PluginState.html +11 -9
  167. package/docs/interfaces/GuideLinePluginType.Route.html +14 -12
  168. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +12 -10
  169. package/docs/interfaces/HelperOffset.html +11 -9
  170. package/docs/interfaces/ImagePlaneGroup.html +9 -7
  171. package/docs/interfaces/ItemLabelPluginData.html +9 -7
  172. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +14 -12
  173. package/docs/interfaces/ItemLabelPluginParametersType.html +12 -10
  174. package/docs/interfaces/MinMax.html +10 -8
  175. package/docs/interfaces/ModelChassisCompassPluginData.html +10 -8
  176. package/docs/interfaces/ModelChassisCompassPluginExportType.html +11 -9
  177. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +10 -8
  178. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +11 -9
  179. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +11 -9
  180. package/docs/interfaces/ModelItemLabelPluginData.html +9 -7
  181. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +14 -12
  182. package/docs/interfaces/ModelItemLabelPluginParametersType.html +10 -8
  183. package/docs/interfaces/ModelRoomLabelPluginData.html +9 -7
  184. package/docs/interfaces/ModelTVVideoPluginData.html +12 -10
  185. package/docs/interfaces/ModelTVVideoPluginExportType.html +11 -9
  186. package/docs/interfaces/ModelTVVideoPluginParameterType.html +9 -7
  187. package/docs/interfaces/ModelViewPluginExportType.html +14 -12
  188. package/docs/interfaces/Object3DHelperState.html +11 -9
  189. package/docs/interfaces/ObjectHelperControllers.html +12 -10
  190. package/docs/interfaces/PaintBrushAction.html +15 -13
  191. package/docs/interfaces/PaintBrushConfigs.html +15 -13
  192. package/docs/interfaces/PaintBrushState.html +13 -11
  193. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +13 -11
  194. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +8 -6
  195. package/docs/interfaces/PanoMeasureParameterType.html +18 -16
  196. package/docs/interfaces/PanoMeasurePluginLineJson.html +11 -9
  197. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +10 -8
  198. package/docs/interfaces/PanoMeasurePluginPointJson.html +10 -8
  199. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +11 -9
  200. package/docs/interfaces/PanoRulerPluginExportType.html +13 -11
  201. package/docs/interfaces/PanoRulerPluginOptions.html +10 -8
  202. package/docs/interfaces/PanoRulerPluginParameterType.html +11 -9
  203. package/docs/interfaces/PanoRulerProPluginExportType.html +12 -10
  204. package/docs/interfaces/PanoRulerProPluginOptions.html +10 -8
  205. package/docs/interfaces/PanoRulerProPluginParameterType.html +10 -8
  206. package/docs/interfaces/PanoRulerProPluginState.html +11 -9
  207. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +8 -6
  208. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +8 -6
  209. package/docs/interfaces/PanoSpatialTagPluginData.html +14 -12
  210. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +13 -11
  211. package/docs/interfaces/PanoSpatialTagPluginExportType.html +16 -14
  212. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +13 -11
  213. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +16 -14
  214. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +14 -12
  215. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +13 -11
  216. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +9 -7
  217. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +11 -9
  218. package/docs/interfaces/PanoVideoPluginType.PluginData.html +9 -7
  219. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +12 -10
  220. package/docs/interfaces/PanoVideoPluginType.PluginState.html +9 -7
  221. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +11 -9
  222. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +13 -11
  223. package/docs/interfaces/Point.html +11 -9
  224. package/docs/interfaces/Room.html +12 -10
  225. package/docs/interfaces/RoomInfo.html +10 -8
  226. package/docs/interfaces/RoomLabel.html +17 -15
  227. package/docs/interfaces/RoomRules.html +8 -6
  228. package/docs/interfaces/Rooms.html +8 -6
  229. package/docs/interfaces/Scissor.html +12 -10
  230. package/docs/interfaces/State.html +11 -9
  231. package/docs/interfaces/TagCacheInterface.html +15 -13
  232. package/docs/interfaces/TagConfig.html +16 -14
  233. package/docs/interfaces/TagGLTFObjectGroup.html +9 -7
  234. package/docs/interfaces/TagIconUrl.html +15 -13
  235. package/docs/interfaces/TagObjectGroup.html +9 -7
  236. package/docs/interfaces/TagStyle.html +9 -7
  237. package/docs/interfaces/Tags.html +12 -10
  238. package/docs/interfaces/TemporaryState.html +9 -7
  239. package/docs/interfaces/Util.MagnifierParameter.html +14 -12
  240. package/docs/interfaces/Util.MouseGroupParameter.html +11 -9
  241. package/docs/interfaces/Util.PointIntersection.html +408 -0
  242. package/docs/modules/CruisePluginTypes.html +8 -6
  243. package/docs/modules/GuideLineItem.html +8 -6
  244. package/docs/modules/GuideLineModeItem.html +8 -6
  245. package/docs/modules/GuideLinePluginType.html +8 -6
  246. package/docs/modules/PanoVideoPluginType.html +8 -6
  247. package/docs/modules/Util.html +11 -7
  248. package/docs/modules.html +7 -5
  249. package/docs/types/ArrayPosition.html +8 -6
  250. package/docs/types/AudioAppearance.html +8 -6
  251. package/docs/types/AudioTagTypeConfigKey.html +8 -6
  252. package/docs/types/CSS3DRenderExportType.html +8 -6
  253. package/docs/types/CSS3DRenderPluginExportType.html +8 -6
  254. package/docs/types/CSS3DRenderPluginParameterType.html +8 -6
  255. package/docs/types/ClassFunctionParameters.html +8 -6
  256. package/docs/types/Color.html +8 -6
  257. package/docs/types/ContentTypeConfigKey.html +8 -6
  258. package/docs/types/ContentTypeConfigKeySplit.html +8 -6
  259. package/docs/types/ContentTypeMap.html +8 -6
  260. package/docs/types/Create3DDomContainerReturnType.html +8 -6
  261. package/docs/types/Create3DElementReturnType.html +8 -6
  262. package/docs/types/CruisePluginExportType.html +8 -6
  263. package/docs/types/CruisePluginTypes.CruiseData.html +8 -6
  264. package/docs/types/CruisePluginTypes.MoveEffect.html +8 -6
  265. package/docs/types/DeprecatedMediaPlaneProperty.html +8 -6
  266. package/docs/types/DeprecatedTagProperty.html +8 -6
  267. package/docs/types/Direction-1.html +8 -6
  268. package/docs/types/Direction4.html +8 -6
  269. package/docs/types/ElementRenderer.html +8 -6
  270. package/docs/types/FloorplanRuleLabels.html +8 -6
  271. package/docs/types/FloorplanServerRuleLabels.html +8 -6
  272. package/docs/types/GuideLinePluginExportType.html +8 -6
  273. package/docs/types/GuideLinePluginType.GuideLineItem.html +8 -6
  274. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +8 -6
  275. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +8 -6
  276. package/docs/types/GuideLinePluginType.GuideLineStyle.html +8 -6
  277. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +8 -6
  278. package/docs/types/GuideLinePluginType.PathItem.html +8 -6
  279. package/docs/types/GuideLinePluginType.PluginData.html +8 -6
  280. package/docs/types/HelperEventMap.html +8 -6
  281. package/docs/types/LoadTagConfig.html +8 -6
  282. package/docs/types/MapviewFloorplanPluginParameterType.html +8 -6
  283. package/docs/types/MapviewFloorplanPluginReturnType.html +8 -6
  284. package/docs/types/MediaData.html +8 -6
  285. package/docs/types/MediaStore.html +8 -6
  286. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +8 -6
  287. package/docs/types/ModelFloorplanPluginParameterType.html +8 -6
  288. package/docs/types/ModelFloorplanPluginReturnType.html +8 -6
  289. package/docs/types/ModelRoomLabelPluginParameters.html +8 -6
  290. package/docs/types/ModelRoomLabelPluginReturnType.html +8 -6
  291. package/docs/types/MoveArgs.html +8 -6
  292. package/docs/types/MoveOpts.html +8 -6
  293. package/docs/types/Object3DHelperEventMap.html +8 -6
  294. package/docs/types/ObjectFit.html +8 -6
  295. package/docs/types/PaintBrushEventMap.html +8 -6
  296. package/docs/types/PanoCompassPluginData.html +8 -6
  297. package/docs/types/PanoCompassPluginExportType.html +8 -6
  298. package/docs/types/PanoCompassPluginParameterType.html +8 -6
  299. package/docs/types/PanoFloorplanRadarPluginParameterType.html +8 -6
  300. package/docs/types/PanoFloorplanRadarPluginReturnType.html +8 -6
  301. package/docs/types/PanoIndex.html +8 -6
  302. package/docs/types/PanoMeasurePluginEvent.html +8 -6
  303. package/docs/types/PanoMeasureReturnType.html +8 -6
  304. package/docs/types/PanoSpatialTagPluginId.html +8 -6
  305. package/docs/types/PanoTagPluginExportInterface.html +8 -6
  306. package/docs/types/PanoTagPluginParamsInterface.html +8 -6
  307. package/docs/types/PanoVideoPluginParameterType.html +8 -6
  308. package/docs/types/PanoVideoPluginReturnType.html +8 -6
  309. package/docs/types/PartialObjectDeep.html +8 -6
  310. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +8 -6
  311. package/docs/types/PlaneTag.html +8 -6
  312. package/docs/types/Point2DTag.html +8 -6
  313. package/docs/types/Point3DTag.html +8 -6
  314. package/docs/types/PointTag.html +8 -6
  315. package/docs/types/PointTagInstance.html +8 -6
  316. package/docs/types/Position.html +8 -6
  317. package/docs/types/RotateArgs.html +8 -6
  318. package/docs/types/RotateOpts.html +8 -6
  319. package/docs/types/RuleLabelsKey.html +8 -6
  320. package/docs/types/RuleLabelsValue.html +8 -6
  321. package/docs/types/StickType.html +8 -6
  322. package/docs/types/Tag.html +8 -6
  323. package/docs/types/Tag2D.html +8 -6
  324. package/docs/types/Tag3D.html +8 -6
  325. package/docs/types/TagContentType.html +8 -6
  326. package/docs/types/TagDimensionType.html +8 -6
  327. package/docs/types/TagElement.html +8 -6
  328. package/docs/types/TagEvents.html +8 -6
  329. package/docs/types/TagGLTFObject.html +8 -6
  330. package/docs/types/TagHooks.html +8 -6
  331. package/docs/types/TagId.html +8 -6
  332. package/docs/types/TagInstance.html +8 -6
  333. package/docs/types/TagPointType.html +8 -6
  334. package/docs/types/TagRendererMap.html +8 -6
  335. package/docs/types/TopviewFloorplanPluginParameterType.html +8 -6
  336. package/docs/types/TopviewFloorplanPluginReturnType.html +8 -6
  337. package/docs/types/WorkCode.html +8 -6
  338. package/docs/variables/FLOOR_TYPE_MAP.html +8 -6
  339. package/docs/variables/PLUGIN.html +8 -6
  340. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +8 -6
  341. package/docs/variables/ROOM_TYPE_MAP.html +8 -6
  342. package/docs/variables/itemLabelPluginServerParams.html +8 -6
  343. package/docs/variables/modelItemLabelPluginServerParams.html +8 -6
  344. package/docs/variables/modelRoomLabelPluginServerParams.html +8 -6
  345. package/libs/CSS3DRenderPlugin/Controller.d.ts +4 -1
  346. package/libs/CSS3DRenderPlugin/Controller.js +31 -28
  347. package/libs/CSS3DRenderPlugin/index.js +1 -1
  348. package/libs/CruisePlugin/Controller.js +1 -1
  349. package/libs/CruisePlugin/index.js +1 -1
  350. package/libs/GuideLinePlugin/Components/Tag.js +137 -44
  351. package/libs/GuideLinePlugin/Controller.d.ts +5 -3
  352. package/libs/GuideLinePlugin/Controller.js +49 -45
  353. package/libs/GuideLinePlugin/GuideLineItem/index.js +1 -1
  354. package/libs/GuideLinePlugin/GuideLineItem.d.ts +1 -1
  355. package/libs/GuideLinePlugin/GuideLineItem.js +1 -1
  356. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +150 -113
  357. package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +17 -0
  358. package/libs/GuideLinePlugin/GuideLineModeItem.js +1 -1
  359. package/libs/GuideLinePlugin/index.js +1 -1
  360. package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +7 -0
  361. package/libs/GuideLinePlugin/utils/createLineGeometry.js +19 -17
  362. package/libs/ItemLabelPlugin/ItemLabelItem.js +82 -82
  363. package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +77 -77
  364. package/libs/ModelTVVideoPlugin/Plugin.js +30 -29
  365. package/libs/ModelTVVideoPlugin/index.js +4 -3
  366. package/libs/Object3DHelperPlugin/Controller.js +1 -1
  367. package/libs/Object3DHelperPlugin/index.js +1 -1
  368. package/libs/PanoCompassPlugin/Controller.js +20 -20
  369. package/libs/PanoCompassPlugin/index.js +1 -1
  370. package/libs/PanoDoorLabelPlugin/BaseController.js +1 -1
  371. package/libs/PanoDoorLabelPlugin/Controller.js +1 -1
  372. package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +60 -60
  373. package/libs/PanoDoorLabelPlugin/index.js +1 -1
  374. package/libs/PanoMeasurePlugin/Components/Common/CircleButton.js +78 -42
  375. package/libs/PanoMeasurePlugin/Components/Common/Exit.js +42 -0
  376. package/libs/PanoMeasurePlugin/Components/Common/Exit.svelte.d.ts +1 -0
  377. package/libs/PanoMeasurePlugin/Components/Common/Switcher0.js +113 -117
  378. package/libs/PanoMeasurePlugin/Components/Common/Switcher1.js +71 -71
  379. package/libs/PanoMeasurePlugin/Components/Common/icons/index.d.ts +4 -0
  380. package/libs/PanoMeasurePlugin/Components/Common/icons/index.js +7 -0
  381. package/libs/PanoMeasurePlugin/Components/Controller0.js +188 -65
  382. package/libs/PanoMeasurePlugin/Components/Controller1.js +353 -108
  383. package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +2 -0
  384. package/libs/PanoMeasurePlugin/Controller/BaseController.js +7 -6
  385. package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +17 -18
  386. package/libs/PanoMeasurePlugin/Controller/EditController.js +232 -127
  387. package/libs/PanoMeasurePlugin/Controller/MixedController.js +5 -5
  388. package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +1 -1
  389. package/libs/PanoMeasurePlugin/Controller/WatchController.d.ts +1 -1
  390. package/libs/PanoMeasurePlugin/Controller/WatchController.js +15 -14
  391. package/libs/PanoMeasurePlugin/Controller/index.d.ts +6 -3
  392. package/libs/PanoMeasurePlugin/Controller/index.js +93 -79
  393. package/libs/PanoMeasurePlugin/Model/area.d.ts +9 -1
  394. package/libs/PanoMeasurePlugin/Model/area.js +23 -11
  395. package/libs/PanoMeasurePlugin/Model/index.d.ts +1 -0
  396. package/libs/PanoMeasurePlugin/Model/index.js +47 -39
  397. package/libs/PanoMeasurePlugin/Model/line.d.ts +3 -0
  398. package/libs/PanoMeasurePlugin/Model/line.js +27 -20
  399. package/libs/PanoMeasurePlugin/Model/point.js +17 -12
  400. package/libs/PanoMeasurePlugin/Model/polygon.d.ts +4 -0
  401. package/libs/PanoMeasurePlugin/Model/polygon.js +21 -15
  402. package/libs/PanoMeasurePlugin/Model/polyline.js +6 -6
  403. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +7 -3
  404. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +34 -24
  405. package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
  406. package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +9 -3
  407. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +120 -43
  408. package/libs/PanoMeasurePlugin/Modules/UIController/style.d.ts +0 -8
  409. package/libs/PanoMeasurePlugin/Modules/UIController/style.js +16 -24
  410. package/libs/PanoMeasurePlugin/index.js +55 -37
  411. package/libs/PanoMeasurePlugin/typings/data.d.ts +8 -2
  412. package/libs/PanoMeasurePlugin/typings/event.type.d.ts +3 -0
  413. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +36 -15
  414. package/libs/PanoMeasurePlugin/utils/dom/base.d.ts +4 -0
  415. package/libs/PanoMeasurePlugin/utils/dom/base.js +37 -31
  416. package/libs/PanoMeasurePlugin/utils/dom/distanceItem.js +38 -23
  417. package/libs/PanoMeasurePlugin/utils/generatePolygonGeometry.js +3 -3
  418. package/libs/PanoMeasurePlugin/utils/geometryUtil.d.ts +1 -1
  419. package/libs/PanoMeasurePlugin/utils/geometryUtil.js +15 -13
  420. package/libs/PanoMeasurePlugin/utils/ndc2Screen.d.ts +2 -1
  421. package/libs/PanoSpatialTagPlugin/Plugin.js +1 -1
  422. package/libs/PanoSpatialTagPlugin/index.js +1 -1
  423. package/libs/PanoTagPlugin/controller/TagCache.js +1 -1
  424. package/libs/PanoTagPlugin/controller/TagComputer.js +1 -1
  425. package/libs/PanoTagPlugin/controller/TagRender.js +2 -2
  426. package/libs/PanoTagPlugin/controller/TagUtil.js +1 -1
  427. package/libs/PanoTagPlugin/controller/index.js +1 -1
  428. package/libs/PanoTagPlugin/index.js +1 -1
  429. package/libs/PanoVideoPlugin/Controller.js +1 -1
  430. package/libs/PanoVideoPlugin/index.js +1 -1
  431. package/libs/base/BasePlugin.d.ts +4 -1
  432. package/libs/base/BasePlugin.js +14 -11
  433. package/libs/components/PaintBrush/style.d.ts +1 -1
  434. package/libs/components/PaintBrush/style.js +4 -4
  435. package/libs/floorplan/Components/RoomHighlight/Room.js +54 -54
  436. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +8 -8
  437. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -1
  438. package/libs/floorplan/MapviewFloorplanPlugin/index.js +1 -1
  439. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -1
  440. package/libs/floorplan/ModelFloorplanPlugin/index.js +1 -1
  441. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +30 -28
  442. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
  443. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +1 -1
  444. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -1
  445. package/libs/floorplan/TopviewFloorplanPlugin/index.js +1 -1
  446. package/libs/index.js +128 -122
  447. package/libs/shared-utils/absoluteUrl.d.ts +5 -0
  448. package/libs/shared-utils/absoluteUrl.js +10 -0
  449. package/libs/{PanoMeasurePlugin/utils → shared-utils}/getIntersectionFromEvent.d.ts +1 -1
  450. package/libs/{PanoMeasurePlugin/utils → shared-utils}/getPointFromHammerEvent.d.ts +1 -1
  451. package/libs/shared-utils/index.d.ts +1 -1
  452. package/libs/shared-utils/index.js +21 -20
  453. package/libs/shared-utils/isTouchDevice.d.ts +1 -0
  454. package/libs/shared-utils/isTouchDevice.js +4 -0
  455. package/libs/shared-utils/logger.js +1 -1
  456. package/libs/shared-utils/three/Magnifier.d.ts +2 -0
  457. package/libs/shared-utils/three/Magnifier.js +11 -5
  458. package/libs/shared-utils/three/PointSelector.d.ts +76 -0
  459. package/libs/shared-utils/three/PointSelector.js +132 -0
  460. package/libs/shared-utils/three/PointSelectorHelper.d.ts +50 -0
  461. package/libs/shared-utils/three/PointSelectorHelper.js +100 -0
  462. package/libs/shared-utils/three/index.d.ts +1 -1
  463. package/libs/vendor/svelte/internal/index.js +392 -345
  464. package/package.json +1 -1
  465. package/dist/shared-utils/isAbsoluteURL.d.ts +0 -1
  466. package/dist/shared-utils/three/FivePointSelector.d.ts +0 -36
  467. package/libs/shared-utils/isAbsoluteURL.d.ts +0 -1
  468. package/libs/shared-utils/isAbsoluteURL.js +0 -6
  469. package/libs/shared-utils/three/FivePointSelector.d.ts +0 -36
  470. package/libs/shared-utils/three/FivePointSelector.js +0 -49
  471. /package/libs/{PanoMeasurePlugin/utils → shared-utils}/getIntersectionFromEvent.js +0 -0
  472. /package/libs/{PanoMeasurePlugin/utils → shared-utils}/getPointFromHammerEvent.js +0 -0
@@ -12,6 +12,7 @@ import { type UIControllerParams } from '../Modules/UIController';
12
12
  import { type GuideControllerParams } from '../Modules/GuideController';
13
13
  import { Magnifier } from '../../shared-utils';
14
14
  import type { MagnifierParameter } from '../../shared-utils';
15
+ import type Area from '../Model/area';
15
16
  export type Mode = 'Watch' | 'Edit' | 'Mixed' | 'View';
16
17
  export interface PanoMeasureParameterType extends Partial<Config> {
17
18
  editParams?: EditParameter;
@@ -26,14 +27,14 @@ export default class MeasureController {
26
27
  hook: Subscribe<PanoMeasurePluginEvent>;
27
28
  magnifier: Magnifier;
28
29
  controller: WatchController | EditController | MixedController | ViewController | null;
30
+ /** 允许的测量类型 */
31
+ allowMeasureType: Array<MeasureType>;
29
32
  /** 当前的测量类型 */
30
33
  currentMeasureType: MeasureType | null;
31
34
  private five;
32
35
  private model;
33
36
  private group;
34
37
  private config;
35
- /** 允许的测量类型 */
36
- private allowMeasureType;
37
38
  private isMobile;
38
39
  private fiveHelper;
39
40
  private useUIController?;
@@ -60,7 +61,7 @@ export default class MeasureController {
60
61
  * @description 清除标尺线条
61
62
  * @description 还原点位展示和默认鼠标 UI
62
63
  */
63
- disable(): void;
64
+ disable: () => void;
64
65
  getCurrentMode: () => Mode | null;
65
66
  /** 变更场景
66
67
  * @description 如果从编辑场景改变到观看场景,不会自动保存,默认丢弃所有改动
@@ -75,6 +76,7 @@ export default class MeasureController {
75
76
  /** 撤销编辑 */
76
77
  revoke(): void;
77
78
  removePolyline(polyline: Polyline): void;
79
+ removeArea(area: Area): void;
78
80
  removePolylineByID(id: string): void;
79
81
  getPolylineByID(id: string): Polyline;
80
82
  getEditedPolyline(): void;
@@ -96,6 +98,7 @@ export default class MeasureController {
96
98
  /** 导出数据 */
97
99
  toJson(): PluginData;
98
100
  /**
101
+ * @deprecated 暂不支持
99
102
  * @description 改变插件的模式(pc端模式或移动端模式)
100
103
  * @param isMobile true为移动端模式,false为pc端
101
104
  */
@@ -1,34 +1,34 @@
1
- var v = Object.defineProperty;
2
- var y = Object.getOwnPropertySymbols;
3
- var I = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
4
- var c = (s, e, t) => e in s ? v(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, h = (s, e) => {
1
+ var I = Object.defineProperty;
2
+ var P = Object.getOwnPropertySymbols;
3
+ var T = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
4
+ var c = (s, e, t) => e in s ? I(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, m = (s, e) => {
5
5
  for (var t in e || (e = {}))
6
- I.call(e, t) && c(s, t, e[t]);
7
- if (y)
8
- for (var t of y(e))
9
- b.call(e, t) && c(s, t, e[t]);
6
+ T.call(e, t) && c(s, t, e[t]);
7
+ if (P)
8
+ for (var t of P(e))
9
+ E.call(e, t) && c(s, t, e[t]);
10
10
  return s;
11
11
  };
12
12
  var i = (s, e, t) => (c(s, typeof e != "symbol" ? e + "" : e, t), t);
13
- import U from "../Modules/FiveHelper.js";
14
- import m from "./EditController.js";
15
- import C from "./ViewController.js";
16
- import M from "./WatchController.js";
13
+ import k from "../Modules/FiveHelper.js";
14
+ import h from "./EditController.js";
15
+ import w from "./ViewController.js";
16
+ import v from "./WatchController.js";
17
17
  import a from "./MixedController.js";
18
- import { omit as T } from "../../shared-utils/filter.js";
19
- import { Group as E } from "three";
20
- import { Model as k } from "../Model/index.js";
21
- import { Subscribe as D } from "@realsee/five";
22
- import { getMouseGroup as G } from "../utils/mouseGroup.js";
23
- import { UIController as w } from "../Modules/UIController/index.js";
24
- import { GuideController as x } from "../Modules/GuideController.js";
25
- import { ShortcutKeyController as H } from "./ShortcutKeyController.js";
26
- import { safeObj as P } from "../../shared-utils/safeObj.js";
27
- import { Magnifier as L } from "../../shared-utils/three/Magnifier.js";
18
+ import { omit as D } from "../../shared-utils/filter.js";
19
+ import { Group as U } from "three";
20
+ import { Model as x } from "../Model/index.js";
21
+ import { Subscribe as G } from "@realsee/five";
22
+ import { getMouseGroup as H } from "../utils/mouseGroup.js";
23
+ import { UIController as S } from "../Modules/UIController/index.js";
24
+ import { GuideController as L } from "../Modules/GuideController.js";
25
+ import { ShortcutKeyController as O } from "./ShortcutKeyController.js";
26
+ import { safeObj as b } from "../../shared-utils/safeObj.js";
27
+ import { Magnifier as B } from "../../shared-utils/three/Magnifier.js";
28
28
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
29
29
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
30
30
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
31
- import "hammerjs";
31
+ import { isTouchDevice as W } from "../../shared-utils/isTouchDevice.js";
32
32
  import "../Model/line.js";
33
33
  import "../../shared-utils/uuid.js";
34
34
  import "../utils/line.js";
@@ -42,8 +42,6 @@ import "../../shared-utils/removeArrayItem.js";
42
42
  import "../../shared-utils/throttle.js";
43
43
  import "./BaseController.js";
44
44
  import "../utils/ironbox.js";
45
- import "../utils/getIntersectionFromEvent.js";
46
- import "../utils/getPointFromHammerEvent.js";
47
45
  import "../Model/polyline.js";
48
46
  import "../Model/area.js";
49
47
  import "../Model/polygon.js";
@@ -54,17 +52,42 @@ import "../utils/dom/areaDom.js";
54
52
  import "../utils/geometryUtil.js";
55
53
  import "../../shared-utils/three/centerPoint.js";
56
54
  import "../utils/isIntersecting.js";
55
+ import "../../shared-utils/three/PointSelector.js";
56
+ import "../../shared-utils/three/PointSelectorHelper.js";
57
+ import "../../shared-utils/three/getIntersect.js";
58
+ import "../../shared-utils/three/PointHelper.js";
59
+ import "../../shared-utils/three/Assets/index.js";
60
+ import "../../shared-utils/three/PointDomHelper.js";
61
+ import "hammerjs";
62
+ import "../Modules/rangePiece/html.js";
63
+ import "../../CSS3DRenderPlugin/index.js";
64
+ import "../../CSS3DRenderPlugin/Controller.js";
65
+ import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
66
+ import "../../shared-utils/absoluteUrl.js";
67
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
68
+ import "three/examples/jsm/renderers/CSS3DRenderer";
69
+ import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
70
+ import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
71
+ import "../../CSS3DRenderPlugin/utils/even.js";
72
+ import "../../shared-utils/Subscribe.js";
73
+ import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
74
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
75
+ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
76
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
77
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
78
+ import "../../shared-utils/animationFrame/BetterTween.js";
79
+ import "../../shared-utils/animationFrame/index.js";
80
+ import "../../shared-utils/getIntersectionFromEvent.js";
81
+ import "../../shared-utils/getPointFromHammerEvent.js";
57
82
  import "../Modules/DeleteDom/index.js";
58
83
  import "../Modules/DeleteDom/_Assets/delete.svg.js";
59
84
  import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
60
85
  import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
86
+ import "../utils/findAssociatedLines.js";
61
87
  import "../utils/math.js";
62
88
  import "../utils/findClosestPoint.js";
63
89
  import "../utils/ndc2Screen.js";
64
- import "../utils/findAssociatedLines.js";
65
90
  import "../Modules/rangePiece/index.js";
66
- import "../Modules/rangePiece/html.js";
67
- import "../../shared-utils/animationFrame/index.js";
68
91
  import "../../shared-utils/noop.js";
69
92
  import "../utils/calculateThreeMouse.js";
70
93
  import "../../shared-utils/tap.js";
@@ -74,35 +97,30 @@ import "../Modules/UIController/style.js";
74
97
  import "../Modules/UIController/MainBtnController.js";
75
98
  import "../Modules/UIController/mobileMainBtnController.js";
76
99
  import "../Modules/UIController/Revoke/index.js";
77
- import "../Components/Controller1.js";
100
+ import "../Components/Controller0.js";
78
101
  import "../../vendor/svelte/internal/index.js";
102
+ import "../Components/Common/Switcher0.js";
103
+ import "../Components/Common/Exit.js";
104
+ import "../Components/Common/icons/index.js";
105
+ import "../Components/Controller1.js";
79
106
  import "../Components/Common/Switcher1.js";
80
107
  import "../Components/Common/CircleButton.js";
81
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
82
- import "three/examples/jsm/renderers/CSS3DRenderer";
83
- import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
84
- import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
85
- import "../../CSS3DRenderPlugin/utils/even.js";
86
- import "../../shared-utils/Subscribe.js";
87
- import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
88
- import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
89
- import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
90
- import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
91
- import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
92
- class nt {
108
+ import "../../vendor/svelte/transition/index.js";
109
+ import "../../vendor/svelte/easing/index.js";
110
+ class Dt {
93
111
  constructor(e, t) {
94
112
  i(this, "hasOpen", !1);
95
- i(this, "hook", new D());
113
+ i(this, "hook", new G());
96
114
  i(this, "magnifier");
97
115
  i(this, "controller", null);
116
+ /** 允许的测量类型 */
117
+ i(this, "allowMeasureType");
98
118
  /** 当前的测量类型 */
99
119
  i(this, "currentMeasureType");
100
120
  i(this, "five");
101
121
  i(this, "model");
102
122
  i(this, "group");
103
123
  i(this, "config");
104
- /** 允许的测量类型 */
105
- i(this, "allowMeasureType");
106
124
  i(this, "isMobile");
107
125
  i(this, "fiveHelper");
108
126
  i(this, "useUIController");
@@ -110,7 +128,15 @@ class nt {
110
128
  i(this, "useGuideController");
111
129
  i(this, "container", document.createElement("div"));
112
130
  i(this, "shortcutKeyController");
113
- i(this, "getCurrentMode", () => this.controller instanceof m ? "Edit" : this.controller instanceof M ? "Watch" : this.controller instanceof a ? "Mixed" : this.controller instanceof C ? "View" : null);
131
+ /** 关闭插件功能
132
+ * @description 清除标尺线条
133
+ * @description 还原点位展示和默认鼠标 UI
134
+ */
135
+ i(this, "disable", () => {
136
+ var e, t, o, r;
137
+ this.hasOpen = !1, this.container.style.opacity = "0", (e = this.controller) == null || e.dispose(), (t = this.useUIController) == null || t.hide(), (o = this.useGuideController) == null || o.hide(), (r = this.shortcutKeyController) == null || r.dispose(), this.controller = null, this.five.helperVisible = !0, this.five.scene.remove(this.group), this.five.needsRender = !0, this.hook.emit("disable", !0);
138
+ });
139
+ i(this, "getCurrentMode", () => this.controller instanceof h ? "Edit" : this.controller instanceof v ? "Watch" : this.controller instanceof a ? "Mixed" : this.controller instanceof w ? "View" : null);
114
140
  /** 变更场景
115
141
  * @description 如果从编辑场景改变到观看场景,不会自动保存,默认丢弃所有改动
116
142
  */
@@ -120,9 +146,9 @@ class nt {
120
146
  return;
121
147
  (r = this.controller) == null || r.dispose();
122
148
  const t = {
123
- View: C,
124
- Watch: M,
125
- Edit: m,
149
+ View: w,
150
+ Watch: v,
151
+ Edit: h,
126
152
  Mixed: a
127
153
  };
128
154
  if (!t[e])
@@ -136,16 +162,16 @@ class nt {
136
162
  i(this, "changeMeasureType", (e) => {
137
163
  this.currentMeasureType = e, this.hook.emit("measureTypeChange", e);
138
164
  });
139
- var r, l, n, u, d, f, g;
140
- this.five = e, this.params = t, this.config = T(t, ["openParams", "magnifierParams"]), this.model = new k(this.config), this.fiveHelper = new U(e), this.isMobile = (l = (r = t == null ? void 0 : t.openParams) == null ? void 0 : r.isMobile) != null ? l : !1, this.magnifier = new L(e, (n = t.magnifierParams) != null ? n : { width: 190, height: 190, scale: 2 }), this.allowMeasureType = Array.from(new Set((d = (u = t.editParams) == null ? void 0 : u.allowMeasureType) != null ? d : ["line"])), this.currentMeasureType = (f = this.allowMeasureType[0]) != null ? f : "line", this.group = new E(), 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.pointerEvents = "none", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0";
141
- const o = (g = this.params.openParams) != null ? g : {};
165
+ var l, n, u, d, f, g, y, M, C;
166
+ this.five = e, this.params = t, this.config = D(t, ["openParams", "magnifierParams"]), this.model = new x(this.config), this.fiveHelper = new k(e), this.isMobile = (n = (l = t == null ? void 0 : t.openParams) == null ? void 0 : l.isMobile) != null ? n : !1, this.magnifier = new B(e, (u = t.magnifierParams) != null ? u : { width: 190, height: 190, scale: 2 }), this.allowMeasureType = Array.from(new Set((f = (d = t.editParams) == null ? void 0 : d.allowMeasureType) != null ? f : ["line"])), this.currentMeasureType = (g = this.allowMeasureType[0]) != null ? g : "line", this.group = new U(), 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.pointerEvents = "none", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0";
167
+ const o = (M = (y = t.editParams) == null ? void 0 : y.pointSelectorMode) != null ? M : W ? "fixed" : "cursor", r = (C = this.params.openParams) != null ? C : {};
142
168
  if (this.params.useUIController !== !1) {
143
- const p = h({ container: this.container, openParams: o }, P(this.params.useUIController));
144
- this.useUIController = new w(this, p);
169
+ const p = m({ container: this.container, openParams: r, pointSelectorMode: o }, b(this.params.useUIController));
170
+ this.useUIController = new S(this, p);
145
171
  }
146
172
  if (this.params.useGuideController !== !1) {
147
- const p = h({ container: this.container }, P(this.params.useGuideController));
148
- this.useGuideController = new x(this, p);
173
+ const p = m({ container: this.container }, b(this.params.useGuideController));
174
+ this.useGuideController = new L(this, p);
149
175
  }
150
176
  }
151
177
  appendTo(e) {
@@ -168,15 +194,7 @@ class nt {
168
194
  */
169
195
  enable(e) {
170
196
  var t;
171
- this.hasOpen || (this.hasOpen = !0, this.five.scene.add(this.group), this.container.style.opacity = "1", e != null && e.mode ? this.changeMode(e.mode) : this.isMobile ? this.changeMode("Mixed") : this.changeMode("Watch"), (t = this.useUIController) == null || t.show(), this.shortcutKeyController = new H(this, this.five), this.hook.emit("enable", !0));
172
- }
173
- /** 关闭插件功能
174
- * @description 清除标尺线条
175
- * @description 还原点位展示和默认鼠标 UI
176
- */
177
- disable() {
178
- var e, t, o, r;
179
- this.hasOpen = !1, this.container.style.opacity = "0", (e = this.controller) == null || e.dispose(), (t = this.useUIController) == null || t.hide(), (o = this.useGuideController) == null || o.hide(), (r = this.shortcutKeyController) == null || r.dispose(), this.controller = null, this.five.helperVisible = !0, this.five.scene.remove(this.group), this.five.needsRender = !0, this.hook.emit("disable", !0);
197
+ this.hasOpen || (this.hasOpen = !0, this.five.scene.add(this.group), this.container.style.opacity = "1", e != null && e.mode ? this.changeMode(e.mode) : this.isMobile ? this.changeMode("Mixed") : this.changeMode("Watch"), (t = this.useUIController) == null || t.show(), this.shortcutKeyController = new O(this, this.five), this.hook.emit("enable", !0));
180
198
  }
181
199
  /** 进入编辑模式 */
182
200
  edit(e) {
@@ -186,11 +204,14 @@ class nt {
186
204
  }
187
205
  /** 撤销编辑 */
188
206
  revoke() {
189
- this.controller instanceof m && this.controller.revoke();
207
+ this.controller instanceof h && this.controller.revoke();
190
208
  }
191
209
  removePolyline(e) {
192
210
  this.model.removePolyline(e);
193
211
  }
212
+ removeArea(e) {
213
+ this.model.removeArea(e);
214
+ }
194
215
  removePolylineByID(e) {
195
216
  const t = this.model.getPolylineByID(e);
196
217
  t && this.model.removePolyline(t);
@@ -217,13 +238,13 @@ class nt {
217
238
  */
218
239
  save(e) {
219
240
  var l;
220
- if (!(this.controller instanceof m) && !(this.controller instanceof a))
241
+ if (!(this.controller instanceof h) && !(this.controller instanceof a))
221
242
  return this;
222
243
  const t = (l = e == null ? void 0 : e.mode) != null ? l : "View", o = this.controller.model.polylines, r = this.controller.model.areas;
223
244
  return o.forEach((n) => {
224
245
  this.model.addPolyline(n);
225
- }), r.forEach((n) => {
226
- n.polygon.updatePoints(n.points), n.showArea(), this.model.addArea(n);
246
+ }), this.controller instanceof h ? this.controller.complete() : r.forEach((n) => {
247
+ n.showArea(), this.model.addArea(n);
227
248
  }), this.changeMode(t), this;
228
249
  }
229
250
  /** Mixed 模式才有用,添加起点 */
@@ -239,19 +260,11 @@ class nt {
239
260
  return this.model.toJson();
240
261
  }
241
262
  /**
263
+ * @deprecated 暂不支持
242
264
  * @description 改变插件的模式(pc端模式或移动端模式)
243
265
  * @param isMobile true为移动端模式,false为pc端
244
266
  */
245
267
  changeIsMobile(e) {
246
- var t;
247
- if (this.isMobile = e, this.params.useUIController !== !1) {
248
- (t = this.useUIController) == null || t.dispose();
249
- const o = h({
250
- container: this.container,
251
- mode: this.isMobile ? "mobile" : "pc"
252
- }, typeof this.params.useUIController == "object" ? this.params.useUIController : {});
253
- this.useUIController = new w(this, o);
254
- }
255
268
  }
256
269
  changeConfigs(e) {
257
270
  var t;
@@ -279,12 +292,13 @@ class nt {
279
292
  fiveHelper: this.fiveHelper,
280
293
  openParams: e,
281
294
  editParams: t,
295
+ magnifierParams: this.params.magnifierParams,
282
296
  getMeasureType: () => this.currentMeasureType,
283
- mouseGroup: G(h({}, e.crossHairParameter)),
297
+ mouseGroup: H(m({}, e.crossHairParameter)),
284
298
  userDistanceItemCreator: this.params.userDistanceItemCreator
285
299
  };
286
300
  }
287
301
  }
288
302
  export {
289
- nt as default
303
+ Dt as default
290
304
  };
@@ -18,6 +18,7 @@ export default class Area {
18
18
  id: string;
19
19
  selected: boolean;
20
20
  text?: string;
21
+ readonly type = "area";
21
22
  readonly lightMesh: FiveLine;
22
23
  readonly areaItem: AreaItem;
23
24
  readonly hook: Subscribe<AreaHook>;
@@ -43,7 +44,14 @@ export default class Area {
43
44
  five?: Five;
44
45
  });
45
46
  addPoints(point: THREE.Vector3): void;
46
- refresh(): void;
47
+ /**
48
+ * @description: 移除最后一个添加的点
49
+ */
50
+ popPoint(): void;
51
+ /**
52
+ * @description: 自动补全多边形的各个边
53
+ */
54
+ complete(): void;
47
55
  hideArea(): void;
48
56
  showArea(): void;
49
57
  /**
@@ -1,13 +1,13 @@
1
1
  var m = Object.defineProperty;
2
2
  var d = (o, e, i) => e in o ? m(o, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : o[e] = i;
3
3
  var t = (o, e, i) => (d(o, typeof e != "symbol" ? e + "" : e, i), i);
4
- import * as r from "three";
4
+ import * as h from "three";
5
5
  import { uuid as f } from "../../shared-utils/uuid.js";
6
6
  import { Subscribe as c } from "@realsee/five";
7
7
  import u from "./line.js";
8
8
  import v from "./polygon.js";
9
9
  import { Polyline as y } from "./polyline.js";
10
- import h from "./point.js";
10
+ import p from "./point.js";
11
11
  import { AreaItem as C } from "../utils/dom/areaDom.js";
12
12
  import "../utils/line.js";
13
13
  import "@realsee/five/line";
@@ -21,11 +21,12 @@ import "earcut";
21
21
  import "../../shared-utils/removeArrayItem.js";
22
22
  import "../utils/geometryUtil.js";
23
23
  import "../../shared-utils/three/centerPoint.js";
24
- class V {
24
+ class O {
25
25
  constructor(e, i) {
26
26
  t(this, "id", f());
27
27
  t(this, "selected", !1);
28
28
  t(this, "text");
29
+ t(this, "type", "area");
29
30
  t(this, "lightMesh");
30
31
  t(this, "areaItem");
31
32
  t(this, "hook", new c());
@@ -53,8 +54,8 @@ class V {
53
54
  e && (this.points = e), this.model = i.model, this.polygon = new v(e), this.polyline = new y({ model: i.model }), this.areaItem = new C({
54
55
  area: this,
55
56
  clickCallback: (a, s) => {
56
- const l = a.clientX + "px", p = a.clientY + "px";
57
- this.hook.emit("selected", this, { left: l, top: p });
57
+ const r = a.clientX + "px", l = a.clientY + "px";
58
+ this.hook.emit("selected", this, { left: r, top: l });
58
59
  }
59
60
  }), this.domContainer = i.domContainer || null, this.meshContainer = i.meshContainer || null, this.five = i.five || null, this.areaItem.appendTo(this.domContainer), (n = this.five) == null || n.on("cameraUpdate", this.updateDom);
60
61
  }
@@ -63,13 +64,24 @@ class V {
63
64
  this.points = this.points.concat(e);
64
65
  const i = this.points.at(-2), n = this.points.at(-1);
65
66
  if (i && n) {
66
- const s = new u(new h(i), new h(n), this.polyline.model);
67
+ const s = new u(new p(i), new p(n), this.polyline.model);
67
68
  this.polyline.addLine(s), this.meshContainer.add(s.mesh), this.five && (s.distanceItem.setCanSelect(!1), s.distanceItem.appendTo(this.domContainer), s.distanceItem.update(this.five));
68
69
  }
69
- (a = this.meshContainer) != null && a.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 r.Plane().setFromCoplanarPoints(this.points[0], this.points[1], this.points[2]) : this.points.length < 3 && (this.planeHelper = null);
70
+ (a = this.meshContainer) != null && a.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 h.Plane().setFromCoplanarPoints(this.points[0], this.points[1], this.points[2]) : this.points.length < 3 && (this.planeHelper = null);
70
71
  }
71
- refresh() {
72
- this.polygon.updatePoints(this.points), this.areaItem.updateArea(this.five);
72
+ /**
73
+ * @description: 移除最后一个添加的点
74
+ */
75
+ popPoint() {
76
+ this.points.pop();
77
+ const e = this.polyline.lines.pop();
78
+ e == null || e.remove(), this.polygon.updatePoints(this.points), this.areaItem.updateArea(this.five), this.points.length < 3 && (this.planeHelper = null);
79
+ }
80
+ /**
81
+ * @description: 自动补全多边形的各个边
82
+ */
83
+ complete() {
84
+ this.points.at(-1).equals(this.points[0]) || this.addPoints(this.points[0]);
73
85
  }
74
86
  hideArea() {
75
87
  this.polygon.visible = !1, this.areaItem.hide();
@@ -81,7 +93,7 @@ class V {
81
93
  * @description: 获取一个点投影在当前平面上的点
82
94
  */
83
95
  projectPoint(e) {
84
- return this.planeHelper ? this.planeHelper.projectPoint(e, new r.Vector3()) : e;
96
+ return e && (this.planeHelper ? this.planeHelper.projectPoint(e, new h.Vector3()) : e);
85
97
  }
86
98
  remove() {
87
99
  this.polygon.removeFromParent(), this.areaItem.remove(), this.polyline.lines.forEach((e) => e.remove());
@@ -94,5 +106,5 @@ class V {
94
106
  }
95
107
  }
96
108
  export {
97
- V as default
109
+ O as default
98
110
  };
@@ -28,6 +28,7 @@ export declare class Model {
28
28
  addArea(area: Area): void;
29
29
  replacePolylineByID(id: string, polyline: Polyline): void;
30
30
  removePolyline(polyline: Polyline): void;
31
+ removeArea(area: Area): void;
31
32
  getPolylineByID(id: string): Polyline;
32
33
  getPolylineByLine(line: Line): Polyline;
33
34
  getLineByID(id: string): Line;
@@ -1,6 +1,6 @@
1
- var l = Object.defineProperty;
2
- var r = (o, i, e) => i in o ? l(o, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[i] = e;
3
- var t = (o, i, e) => (r(o, typeof i != "symbol" ? i + "" : i, e), e);
1
+ var t = Object.defineProperty;
2
+ var l = (s, e, i) => e in s ? t(s, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[e] = i;
3
+ var r = (s, e, i) => (l(s, typeof e != "symbol" ? e + "" : e, i), i);
4
4
  import { Polyline as n } from "./polyline.js";
5
5
  import { Subscribe as p } from "@realsee/five";
6
6
  import "./line.js";
@@ -14,78 +14,86 @@ import "../utils/dom/base.js";
14
14
  import "../utils/isNDCPointInScreen.js";
15
15
  import "./point.js";
16
16
  import "../../shared-utils/removeArrayItem.js";
17
- class B {
18
- constructor(i) {
19
- t(this, "config");
20
- t(this, "polylines", []);
21
- t(this, "areas", []);
22
- t(this, "hook", new p());
23
- this.config = i;
24
- }
25
- addPolyline(i) {
26
- if (this.includes(i)) {
17
+ class I {
18
+ constructor(e) {
19
+ r(this, "config");
20
+ r(this, "polylines", []);
21
+ r(this, "areas", []);
22
+ r(this, "hook", new p());
23
+ this.config = e;
24
+ }
25
+ addPolyline(e) {
26
+ if (this.includes(e)) {
27
27
  console.error(new Error("不能重复添加 polyline"));
28
28
  return;
29
29
  }
30
- this.polylines.push(i), this.hook.emit("polylineAdded", i);
30
+ this.polylines.push(e), this.hook.emit("polylineAdded", e);
31
31
  }
32
- addArea(i) {
33
- if (this.areas.find(({ id: e }) => e === i.id) !== void 0) {
32
+ addArea(e) {
33
+ if (this.areas.find(({ id: i }) => i === e.id) !== void 0) {
34
34
  console.error(new Error("不能重复添加 area"));
35
35
  return;
36
36
  }
37
- this.areas.push(i), this.hook.emit("areaAdded", i);
37
+ this.areas.push(e), this.hook.emit("areaAdded", e);
38
38
  }
39
- replacePolylineByID(i, e) {
40
- const s = this.getPolylineByID(i);
41
- s == null || s.replace(e);
39
+ replacePolylineByID(e, i) {
40
+ const o = this.getPolylineByID(e);
41
+ o == null || o.replace(i);
42
42
  }
43
- removePolyline(i) {
44
- const e = this.polylines.findIndex(({ id: s }) => s === i.id);
45
- if (e === -1) {
43
+ removePolyline(e) {
44
+ const i = this.polylines.findIndex(({ id: o }) => o === e.id);
45
+ if (i === -1) {
46
46
  console.error(new Error("polyline 不存在"));
47
47
  return;
48
48
  }
49
- this.polylines.splice(e, 1), this.hook.emit("polylineRemoved", i);
49
+ this.polylines.splice(i, 1), this.hook.emit("polylineRemoved", e);
50
50
  }
51
- getPolylineByID(i) {
52
- return this.polylines.find((e) => e.id === i);
51
+ removeArea(e) {
52
+ const i = this.areas.findIndex(({ id: o }) => o === e.id);
53
+ if (i === -1) {
54
+ console.error(new Error("area 不存在"));
55
+ return;
56
+ }
57
+ this.areas.splice(i, 1);
58
+ }
59
+ getPolylineByID(e) {
60
+ return this.polylines.find((i) => i.id === e);
53
61
  }
54
- getPolylineByLine(i) {
55
- return this.polylines.find((e) => e.includes(i));
62
+ getPolylineByLine(e) {
63
+ return this.polylines.find((i) => i.includes(e));
56
64
  }
57
- getLineByID(i) {
58
- return this.getAllLines().find((e) => e.id === i);
65
+ getLineByID(e) {
66
+ return this.getAllLines().find((i) => i.id === e);
59
67
  }
60
68
  getAllLines() {
61
- return this.polylines.map((i) => i.lines).flat(1);
69
+ return this.polylines.map((e) => e.lines).flat(1);
62
70
  }
63
71
  getAllAreas() {
64
72
  return this.areas;
65
73
  }
66
74
  getAllPoints() {
67
- return this.polylines.map((i) => i.points).flat(1);
75
+ return this.polylines.map((e) => e.points).flat(1);
68
76
  }
69
- includes(i) {
70
- return this.polylines.find(({ id: e }) => e === i.id) !== void 0;
77
+ includes(e) {
78
+ return this.polylines.find(({ id: i }) => i === e.id) !== void 0;
71
79
  }
72
80
  clear() {
73
- this.polylines.forEach((i) => this.hook.emit("polylineRemoved", i)), this.areas.forEach((i) => i.dispose()), this.polylines.splice(0, this.polylines.length), this.areas.splice(0, this.areas.length);
81
+ this.polylines.forEach((e) => this.hook.emit("polylineRemoved", e)), this.areas.forEach((e) => e.dispose()), this.polylines.splice(0, this.polylines.length), this.areas.splice(0, this.areas.length);
74
82
  }
75
83
  dispose() {
76
84
  this.clear();
77
85
  }
78
86
  getClosestPoint() {
79
87
  }
80
- parse(i) {
81
- this.clear(), this.polylines.push(...i.polylines.map((e) => new n({ model: this }).fromJson(e))), this.polylines.forEach((e) => this.hook.emit("polylineAdded", e));
88
+ parse(e) {
89
+ this.clear(), this.polylines.push(...e.polylines.map((i) => new n({ model: this }).fromJson(i))), this.polylines.forEach((i) => this.hook.emit("polylineAdded", i));
82
90
  }
83
91
  toJson() {
84
92
  return {
85
- polylines: this.polylines.map((i) => i.toJson()).filter((i) => i.lines.length > 0)
93
+ polylines: this.polylines.map((e) => e.toJson()).filter((e) => e.lines.length > 0)
86
94
  };
87
95
  }
88
96
  }
89
97
  export {
90
- B as Model
98
+ I as Model
91
99
  };
@@ -22,7 +22,10 @@ export default class Line {
22
22
  readonly hook: Subscribe<ILineHook>;
23
23
  readonly distanceItem: DistanceItem;
24
24
  private polyline?;
25
+ private visible?;
25
26
  constructor(point: Point, anotherPoint: Point, model: Model);
27
+ hide(): void;
28
+ show(): void;
26
29
  setPoints(startPoint: THREE.Vector3, endPoint: THREE.Vector3): void;
27
30
  remove(): void;
28
31
  clear(): void;