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

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