@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,6 +1,6 @@
1
1
  import type { FloorplanServerRoomItem } from '../floorplan/typings/floorplanServerData';
2
2
  import type * as BasePlugin from '../base/BasePluginWithData';
3
- export interface Config {
3
+ export interface Config extends BasePlugin.Config {
4
4
  compassImageUrl: string;
5
5
  entryDoorImageUrl: string;
6
6
  }
@@ -1,13 +1,12 @@
1
- import type FiveHelper from '../Modules/FiveHelper';
2
- import { type Group } from 'three';
1
+ import type Magnifier from '../Modules/Magnifier';
2
+ import type { Group } from 'three';
3
3
  import type { Model } from '../Model';
4
4
  import type { Config } from '../typings';
5
5
  import type { PanoMeasurePluginEvent } from '../typings/event.type';
6
- import type { UserDistanceItem } from '../utils/dom/distanceItem';
6
+ import type { UserDistanceItem } from '../utils/distanceDom';
7
7
  import type { Five, Intersection, IntersectMeshInterface, Subscribe } from '@realsee/five';
8
- import type { OpenParameter, EditParameter, MeasureType } from '../typings/data';
8
+ import type { OpenParameter } from '../typings/data';
9
9
  import Line from '../Model/line';
10
- import type { Magnifier } from '../../shared-utils';
11
10
  export interface ControllerParams {
12
11
  five: Five;
13
12
  group: Group;
@@ -16,11 +15,7 @@ export interface ControllerParams {
16
15
  mouseGroup: Group;
17
16
  container: Element;
18
17
  magnifier: Magnifier;
19
- fiveHelper: FiveHelper;
20
18
  openParams: OpenParameter;
21
- editParams: EditParameter;
22
- magnifierParams: ConstructorParameters<typeof Magnifier>[1];
23
- getMeasureType: () => MeasureType;
24
19
  hook: Subscribe<PanoMeasurePluginEvent>;
25
20
  userDistanceItemCreator?: () => UserDistanceItem;
26
21
  }
@@ -30,19 +25,13 @@ export default class BaseController {
30
25
  protected group: Group;
31
26
  protected config: Config;
32
27
  protected dashed: Line;
33
- protected perpendicularDashed: Line;
34
28
  protected disposed: boolean;
35
29
  protected isMobile: boolean;
36
30
  protected mouseGroup: Group;
37
31
  protected container: Element;
38
- protected fiveHelper: FiveHelper;
39
- protected editParams: EditParameter;
40
- protected magnifierParams: ConstructorParameters<typeof Magnifier>[1];
41
32
  protected hook: ControllerParams['hook'];
42
33
  protected magnifier: ControllerParams['magnifier'];
43
34
  protected userDistanceItemCreator: ControllerParams['userDistanceItemCreator'];
44
- protected get currentMeasureType(): MeasureType;
45
- private getMeasureType;
46
35
  constructor(params: ControllerParams);
47
36
  updateDistanceUI: () => void;
48
37
  protected removeLine(line: Line): void;
@@ -2,17 +2,17 @@ import Line from '../Model/line';
2
2
  import BaseController from './BaseController';
3
3
  import type { ControllerParams } from './BaseController';
4
4
  import { Polyline } from '../Model/polyline';
5
- import Area from '../Model/area';
6
5
  export default class EditController extends BaseController {
7
6
  type: string;
8
7
  polyline: Polyline;
9
- area: Area;
8
+ /** 拖动的控制点 */
9
+ private pressPoint?;
10
10
  private hasAppendDashed;
11
+ private hasAppendMouseGroup;
11
12
  private fiveElement?;
12
13
  /** 上一个端点位置 */
13
14
  private lastPoint;
14
- private pointSelector;
15
- private deleteDom;
15
+ private hammer?;
16
16
  /** 根据 intersection 更新放大镜和吸附点 */
17
17
  private onIntersectionUpdate;
18
18
  constructor(params: ControllerParams);
@@ -20,37 +20,29 @@ export default class EditController extends BaseController {
20
20
  getEditingLines(): Line[];
21
21
  /** 撤销编辑 */
22
22
  revoke: () => void;
23
- /**
24
- * @description: 测面积的撤销功能
25
- */
26
- revokeArea: () => void;
27
- /**
28
- * @description: 测距的撤销功能
29
- */
30
- revokeLine: (_polyline?: Polyline) => void;
31
- selectPoint(): void;
32
- complete(): void;
33
23
  private onMouseLeave;
34
24
  /** 编辑线条发生改变时通知外部 */
35
25
  private onLineChanged;
26
+ private onPress;
27
+ /**
28
+ * 1. 如果之前没有长按行为「即没有长按点时」-> 滑动全景
29
+ * 2. 如果有长按点,把长按点位置更新为当前位置
30
+ */
31
+ private onPan;
32
+ private onPanEnd;
36
33
  /**
37
34
  * 1. 如果存在上一个点,需要绘制当前点到上一个点的连线
38
35
  * 2. 把上一个点的位置更新为当前点的位置
39
- * 3. 清除 pointSelector
36
+ * 3. 清除 mouseGroup 和 magnifier
40
37
  */
41
- private onSelect;
38
+ private onTap;
39
+ private onWantsTapGesture;
40
+ /** 编辑时取消走点 */
41
+ private onWantsToMoveToPano;
42
+ /** 存在长按点时不能移动全景 */
43
+ private onWantsPanGesture;
42
44
  /** 移动全景时更新 distanceItem 在屏幕上的位置 */
43
45
  private onCameraUpdate;
44
46
  /** 更新虚线 */
45
47
  private updateDashed;
46
- private wantsTapGesture;
47
- private chooseLine;
48
- private chooseArea;
49
- private highlightArea;
50
- private unHighlightArea;
51
- private highlightLines;
52
- private unHighlightLines;
53
- private highlightLine;
54
- private deleteArea;
55
- private deleteLine;
56
48
  }
@@ -3,9 +3,7 @@ import BaseController, { type ControllerParams } from './BaseController';
3
3
  export default class WatchController extends BaseController {
4
4
  type: string;
5
5
  private deleteDom;
6
- private choose;
7
6
  private highlightedLines;
8
- private highlightedArea;
9
7
  private fiveElement?;
10
8
  private editPointState?;
11
9
  private hammer?;
@@ -13,10 +11,6 @@ export default class WatchController extends BaseController {
13
11
  dispose(): void;
14
12
  highlightLine(line: Line): void;
15
13
  clearHighlightLines(): void;
16
- private highlightArea;
17
- private unHighlightArea;
18
- private highlightLines;
19
- private unHighlightLines;
20
14
  private onPanStart;
21
15
  private onPanEnd;
22
16
  private onPan;
@@ -24,10 +18,9 @@ export default class WatchController extends BaseController {
24
18
  private wantsPanGesture;
25
19
  private wantsTapGesture;
26
20
  private chooseLine;
27
- private chooseArea;
21
+ private highlightLines;
28
22
  private polylineRemoved;
29
23
  private onCameraUpdate;
30
- private deleteArea;
31
- private deleteLine;
24
+ private deleteDomClickCallback;
32
25
  private cancelDeleteClickCallback;
33
26
  }
@@ -1,23 +1,17 @@
1
1
  import type { Config } from '../typings';
2
- import type { EditParameter, MeasureType, OpenParameter, PluginData } from '../typings/data';
2
+ import type { OpenParameter, PluginData } from '../typings/data';
3
3
  import type { PanoMeasurePluginEvent } from '../typings/event.type';
4
- import type { UserDistanceItem } from '../utils/dom/distanceItem';
4
+ import type { UserDistanceItem } from '../utils/distanceDom';
5
5
  import type { Polyline } from '../Model/polyline';
6
- import EditController from './EditController';
7
- import ViewController from './ViewController';
8
- import WatchController from './WatchController';
9
- import MixedController from './MixedController';
10
- import { type Five, Subscribe } from '@realsee/five';
6
+ import Magnifier, { type MagnifierParameter } from '../Modules/Magnifier';
7
+ import type { Five } from '@realsee/five';
8
+ import { Subscribe } from '@realsee/five';
11
9
  import { type UIControllerParams } from '../Modules/UIController';
12
10
  import { type GuideControllerParams } from '../Modules/GuideController';
13
- import { Magnifier } from '../../shared-utils';
14
- import type { MagnifierParameter } from '../../shared-utils';
15
- import type Area from '../Model/area';
16
11
  export type Mode = 'Watch' | 'Edit' | 'Mixed' | 'View';
17
12
  export interface PanoMeasureParameterType extends Partial<Config> {
18
- editParams?: EditParameter;
19
- magnifierParams?: MagnifierParameter;
20
13
  openParams?: OpenParameter;
14
+ magnifierParams?: MagnifierParameter;
21
15
  useUIController?: boolean | UIControllerParams;
22
16
  useGuideController?: boolean | GuideControllerParams;
23
17
  userDistanceItemCreator?: () => UserDistanceItem;
@@ -26,22 +20,17 @@ export default class MeasureController {
26
20
  hasOpen: boolean;
27
21
  hook: Subscribe<PanoMeasurePluginEvent>;
28
22
  magnifier: Magnifier;
29
- controller: WatchController | EditController | MixedController | ViewController | null;
30
- /** 允许的测量类型 */
31
- allowMeasureType: Array<MeasureType>;
32
- /** 当前的测量类型 */
33
- currentMeasureType: MeasureType | null;
34
23
  private five;
35
24
  private model;
36
25
  private group;
37
26
  private config;
38
27
  private isMobile;
39
- private fiveHelper;
40
28
  private useUIController?;
41
29
  private params;
42
30
  private useGuideController?;
43
31
  private container;
44
32
  private shortcutKeyController?;
33
+ private controller;
45
34
  constructor(five: Five, params: PanoMeasureParameterType);
46
35
  appendTo(parent: HTMLElement): void;
47
36
  dispose(): void;
@@ -61,22 +50,17 @@ export default class MeasureController {
61
50
  * @description 清除标尺线条
62
51
  * @description 还原点位展示和默认鼠标 UI
63
52
  */
64
- disable: () => void;
53
+ disable(): void;
65
54
  getCurrentMode: () => Mode | null;
66
55
  /** 变更场景
67
56
  * @description 如果从编辑场景改变到观看场景,不会自动保存,默认丢弃所有改动
68
57
  */
69
58
  changeMode: (mode: Mode) => void;
70
- /**
71
- * @description: 切换测量的类型
72
- */
73
- changeMeasureType: (measureType: MeasureType) => void;
74
59
  /** 进入编辑模式 */
75
- edit(measureType?: MeasureType): void;
60
+ edit(): void;
76
61
  /** 撤销编辑 */
77
62
  revoke(): void;
78
63
  removePolyline(polyline: Polyline): void;
79
- removeArea(area: Area): void;
80
64
  removePolylineByID(id: string): void;
81
65
  getPolylineByID(id: string): Polyline;
82
66
  getEditedPolyline(): void;
@@ -98,7 +82,6 @@ export default class MeasureController {
98
82
  /** 导出数据 */
99
83
  toJson(): PluginData;
100
84
  /**
101
- * @deprecated 暂不支持
102
85
  * @description 改变插件的模式(pc端模式或移动端模式)
103
86
  * @param isMobile true为移动端模式,false为pc端
104
87
  */
@@ -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;
@@ -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;
@@ -28,10 +28,6 @@ export declare class Polyline {
28
28
  removeLine(line: Line): void;
29
29
  isLastLine(line: Line): boolean;
30
30
  getLastLine(): Line;
31
- /**
32
- * @description: 获取连续线段的顶点数量
33
- */
34
- getPointLength(): number;
35
31
  clear(): void;
36
32
  /** 是否产生重叠 */
37
33
  overlapWith(item: Point | Line | Polyline): boolean;
@@ -6,25 +6,21 @@ export default class DeleteDom {
6
6
  private lines;
7
7
  private points;
8
8
  private onClick;
9
- private cancel;
9
+ private cancelDelete;
10
10
  private content;
11
11
  private container;
12
12
  private masking;
13
- private target;
14
13
  constructor(five: Five, opts?: {
15
- onClick?: (e: MouseEvent, target: any) => void;
16
- cancel?: (target: any) => void;
14
+ onClick?: (e: MouseEvent) => void;
15
+ cancelDelete?: (e: MouseEvent) => void;
17
16
  i18n?: (key: string) => string;
18
17
  });
19
18
  dispose(): void;
20
19
  appendTo(element: Element): this;
21
20
  setLines(lines: Line[]): this;
22
- setTarget(target: any): this;
23
- updatePosition(left?: string, top?: string): this;
21
+ updatePosition(): this;
24
22
  hide(): this;
25
23
  show(): this;
26
- private clickHandler;
27
- private cancelHandler;
28
24
  private onMouseEnter;
29
25
  private onMouseLeave;
30
26
  }
@@ -1,6 +1,6 @@
1
1
  import type MeasureController from '../Controller';
2
2
  export interface GuideControllerParams {
3
- container?: Element;
3
+ container: Element;
4
4
  startTip?: string;
5
5
  endTip?: string;
6
6
  firstPointTip?: string;
@@ -3,7 +3,7 @@ import Hammer from 'hammerjs';
3
3
  import * as THREE from 'three';
4
4
  import { Subscribe, type SubscribeEventMap } from '@realsee/five';
5
5
  interface MagnifierEvent extends SubscribeEventMap {
6
- wantsPanGesture: (event: (typeof Hammer)['Input']) => boolean;
6
+ wantsPanGesture: (event: typeof Hammer['Input']) => boolean;
7
7
  }
8
8
  /** 放大镜配置参数 */
9
9
  export interface MagnifierParameter {
@@ -1,19 +1,13 @@
1
1
  import type MeasureController from '../../Controller';
2
- export type UIMode = 'pc' | 'mobile';
3
2
  export interface UIControllerParams {
4
- container?: Element;
5
- mode?: UIMode;
6
- pointSelectorMode?: 'fixed' | 'cursor';
7
- useNewUI?: boolean;
8
- /**
9
- * @description: 是否展示退出按钮
10
- */
11
- showExit?: boolean;
3
+ container: Element;
4
+ mode?: 'pc' | 'mobile';
12
5
  startButtonText?: string;
13
6
  endButtonText?: string;
14
7
  revokeButtonText?: string;
15
8
  exitButtonText?: string;
16
9
  }
10
+ export type UIMode = 'pc' | 'mobile';
17
11
  export declare class UIController {
18
12
  private revoke?;
19
13
  private container;
@@ -21,7 +15,6 @@ export declare class UIController {
21
15
  private disposers;
22
16
  private measureController;
23
17
  private mode;
24
- private svelteDom?;
25
18
  private _params;
26
19
  constructor(measureController: MeasureController, params: UIControllerParams);
27
20
  dispose(): void;
@@ -2,7 +2,6 @@ import type { Five, Subscribe } from '@realsee/five';
2
2
  import type { Group } from 'three';
3
3
  import type { Model } from '../../Model';
4
4
  import type { PanoMeasurePluginEvent } from '../../typings/event.type';
5
- import type FiveHelper from '../FiveHelper';
6
5
  import type { OpenParameter } from '../../typings/data';
7
6
  export interface RangePieceControllerParams {
8
7
  openParams: OpenParameter;
@@ -11,7 +10,6 @@ export interface RangePieceControllerParams {
11
10
  group: Group;
12
11
  model: Model;
13
12
  mouseGroup: Group;
14
- fiveHelper: FiveHelper;
15
13
  hook: Subscribe<PanoMeasurePluginEvent>;
16
14
  }
17
15
  export default class RangePieceController {
@@ -20,7 +18,6 @@ export default class RangePieceController {
20
18
  private group;
21
19
  private mouseGroup;
22
20
  private hasAppendMouseGroup;
23
- private fiveHelper;
24
21
  private hook;
25
22
  private content;
26
23
  private intersectMesh;
@@ -21,30 +21,6 @@ export interface OpenParameter {
21
21
  isMobile?: boolean;
22
22
  crossHairParameter?: CrossHairParameter;
23
23
  }
24
- /** 长度达到一定值时,自动结束线段,null 的话不自动结束 */
25
- export interface autoEndConfig {
26
- line?: number | null;
27
- area?: number | null;
28
- }
29
- export type MeasureType = 'line' | 'area';
30
- export type PointSelectorMode = 'fixed' | 'cursor';
31
- export interface EditParameter {
32
- /**
33
- * @description 选择测量插件的模式
34
- * @default ['line']
35
- * @example
36
- * ['line']: 传统的测距
37
- * ['area']: 新增的测面积功能
38
- * ['line', 'area']: 同时开启测距和测面积功能
39
- */
40
- allowMeasureType?: Array<MeasureType>;
41
- /**
42
- * @description: 选点的两种模式, 'fixed' 为固定选点为屏幕中心点,拖动five画布来选点,'mouse' 为跟随鼠标移动
43
- * @default: 'fixed'
44
- */
45
- pointSelectorMode?: PointSelectorMode;
46
- autoEndConfig?: autoEndConfig;
47
- }
48
24
  export interface CrossHairParameter {
49
25
  useNormalVector?: boolean;
50
26
  ballColor?: number;
@@ -4,7 +4,6 @@ import type { State } from '../Controller/MixedController';
4
4
  import type Line from '../Model/line';
5
5
  import type Point from '../Model/point';
6
6
  import type { Polyline } from '../Model/polyline';
7
- import type { MeasureType } from './data';
8
7
  type ControllerEvent = {
9
8
  enable: (userAction: boolean) => void;
10
9
  disable: (userAction: boolean) => void;
@@ -17,22 +16,13 @@ type WatchEvent = {
17
16
  selectedChange: (lines: Line[]) => void;
18
17
  };
19
18
  type EditEvent = {
20
- /** 编辑线条变更 */
19
+ /**
20
+ * 编辑线条变更
21
+ */
21
22
  editedPolylineChange: (polyline: Polyline) => void;
22
23
  /** 编辑中的虚线变更 */
23
24
  editedDashedLineChange: (line: Line | null) => void;
24
25
  anchorChange: (anchor: Vector3 | null) => void;
25
- /** 测量类型变更 */
26
- measureTypeChange: (measureTpe: MeasureType) => void;
27
- revoke: (params: {
28
- isEmpty: boolean;
29
- }) => void;
30
- /** 差最后一次打点就可以完成完成 */
31
- readyComplete: () => void;
32
- /** 一条线段或者一个面积编辑完成 */
33
- complete: () => void;
34
- /** 测量面积时,是否可以打点的状态是会一直变的 */
35
- allowAddPointStateChange: (state: 'allow' | 'forbid') => void;
36
26
  };
37
27
  type DragEvent = {
38
28
  wantsDragLine: (event: {
@@ -1,5 +1,5 @@
1
1
  import type { Config as BaseConfig } from '../../base/BasePlugin';
2
- import type { UserDistanceItem } from '../utils/dom/distanceItem';
2
+ import type { UserDistanceItem } from '../utils/distanceDom';
3
3
  export interface Config extends BaseConfig {
4
4
  userDistanceItemCreator?: undefined | (() => UserDistanceItem);
5
5
  /** 展示 distance DOM 时,使用的转换函数
@@ -0,0 +1,30 @@
1
+ import type Line from '../Model/line';
2
+ import type { Five } from '@realsee/five';
3
+ import { Vector3 } from 'three';
4
+ import type { Polyline } from '../Model/polyline';
5
+ export type DistanceItem = ReturnType<typeof createDistanceItem>;
6
+ export interface UserDistanceItem {
7
+ element: Element;
8
+ highlight: () => void;
9
+ unHighlight: () => void;
10
+ update: (params: {
11
+ line: Line;
12
+ polyline: Polyline;
13
+ }) => void;
14
+ }
15
+ export interface CreateDistanceItemProps {
16
+ line: Line;
17
+ userDistanceItem?: UserDistanceItem;
18
+ clickCallback?: (item: DistanceItem) => unknown;
19
+ }
20
+ export declare function createDistanceItem(props: CreateDistanceItemProps): {
21
+ lineID: string;
22
+ ndcPosition: Vector3;
23
+ update: (five: Five) => void;
24
+ appendTo: (container: Element) => void;
25
+ remove: () => void;
26
+ highlight: () => void;
27
+ unHighlight: () => void;
28
+ getCurrentContent: () => string;
29
+ setItemSelectable: (value: boolean) => void;
30
+ };
@@ -1,4 +1,4 @@
1
1
  import type Hammer from 'hammerjs';
2
2
  import type { Five, Intersection } from '@realsee/five';
3
3
  /** 通过鼠标事件或者触摸事件,获取当前点击屏幕关联的射线与模型的交点 */
4
- export declare function getIntersectionFromEvent(five: Five, event: (typeof Hammer)['Input']): Intersection[];
4
+ export declare function getIntersectionFromEvent(five: Five, event: typeof Hammer['Input']): Intersection[];
@@ -4,7 +4,7 @@ import { Vector2 } from 'three';
4
4
  * 从 Hammer 事件中获取操作的点在交互 DOM 中的位置
5
5
  * @ignore TODO: make a suitable name
6
6
  */
7
- export declare function getPointFromHammerEvent(event: (typeof Hammer)['Input']): {
7
+ export declare function getPointFromHammerEvent(event: typeof Hammer['Input']): {
8
8
  point: Vector2;
9
9
  ndcPoint: Vector2;
10
10
  };
@@ -1,7 +1,6 @@
1
1
  import type Line from '../Model/line';
2
2
  import { Line as FiveLine } from '@realsee/five/line';
3
- import type { Texture, Vector3 } from 'three';
4
- import { Color } from 'three';
3
+ import { Color, Texture, Vector3 } from 'three';
5
4
  type ISetMaterialOpts = Parameters<FiveLine['setMaterial']>[0];
6
5
  export interface ICreateLineOpts extends ISetMaterialOpts {
7
6
  hasPoint?: boolean;
@@ -1,5 +1,4 @@
1
- import { Vector2 } from 'three';
2
- import type { Vector3 } from 'three';
1
+ import { Vector2, Vector3 } from 'three';
3
2
  export default function ndc2Screen(ndcPosition: Vector3, containerSize: {
4
3
  width: number;
5
4
  height: number;
@@ -21,7 +21,7 @@ interface BaseOptions {
21
21
  /** 是否是用户行为 */
22
22
  userAction?: boolean;
23
23
  }
24
- export interface Config {
24
+ interface Config {
25
25
  /** 静态资源前缀 */
26
26
  staticPrefix?: string;
27
27
  /** 国际化转换函数 */
@@ -96,8 +96,8 @@ declare abstract class Controller<PluginState extends State, PluginEventMap exte
96
96
  */
97
97
  setState?(state: Partial<PluginState>, options?: BaseOptions): void;
98
98
  /**
99
- * @description: 获取静态资源的url
100
- */
99
+ * @description: 获取静态资源的url
100
+ */
101
101
  absoluteUrl(url: string): string;
102
102
  /**
103
103
  * 启用插件,让插件能够响应交互
@@ -112,5 +112,5 @@ declare abstract class Controller<PluginState extends State, PluginEventMap exte
112
112
  */
113
113
  abstract dispose(): void;
114
114
  }
115
- export type { State, EventMap, BaseOptions };
115
+ export type { State, Config, EventMap, BaseOptions };
116
116
  export { Controller };
@@ -1,5 +1,6 @@
1
1
  import * as BasePlugin from './BasePlugin';
2
2
  type State = BasePlugin.State;
3
+ type Config = BasePlugin.Config;
3
4
  interface EventMap<PluginState, PluginData> extends BasePlugin.EventMap<PluginState> {
4
5
  /** 数据变更 */
5
6
  dataChange: (data: PluginData, prevData?: PluginData) => void;
@@ -30,5 +31,5 @@ declare abstract class Controller<PluginState extends State, PluginEventMap exte
30
31
  /** 把原始数据转化为插件数据 */
31
32
  protected abstract formatData?(serverData: PluginServerData): Promise<PluginData>;
32
33
  }
33
- export type { State, EventMap, ServerData };
34
+ export type { State, EventMap, ServerData, Config };
34
35
  export { Controller };