@realsee/dnalogel 2.21.0-dev.9 → 2.21.1

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