@realsee/dnalogel 2.21.0-dev.6 → 2.21.0-dev.8

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 (426) hide show
  1. package/components/index.js +329 -329
  2. package/dist/CSS3DRenderPlugin/Controller.d.ts +4 -1
  3. package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +13 -13
  4. package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +1 -1
  5. package/dist/PanoMeasurePlugin/Controller/index.d.ts +3 -0
  6. package/dist/PanoMeasurePlugin/Model/area.d.ts +9 -1
  7. package/dist/PanoMeasurePlugin/Model/index.d.ts +1 -0
  8. package/dist/PanoMeasurePlugin/Model/line.d.ts +2 -0
  9. package/dist/PanoMeasurePlugin/Model/polygon.d.ts +4 -0
  10. package/dist/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +7 -3
  11. package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -0
  12. package/dist/PanoMeasurePlugin/Modules/UIController/style.d.ts +0 -8
  13. package/dist/PanoMeasurePlugin/typings/data.d.ts +2 -1
  14. package/dist/PanoMeasurePlugin/typings/event.type.d.ts +3 -0
  15. package/dist/PanoMeasurePlugin/utils/dom/base.d.ts +4 -0
  16. package/dist/PanoMeasurePlugin/utils/geometryUtil.d.ts +1 -1
  17. package/dist/PanoMeasurePlugin/utils/ndc2Screen.d.ts +2 -1
  18. package/dist/base/BasePlugin.d.ts +4 -1
  19. package/dist/components/PaintBrush/style.d.ts +1 -1
  20. package/dist/index.cjs.js +62 -62
  21. package/dist/index.js +6708 -6414
  22. package/dist/index.umd.js +55 -55
  23. package/dist/shared-utils/absoluteUrl.d.ts +5 -0
  24. package/dist/{PanoMeasurePlugin/utils → shared-utils}/getPointFromHammerEvent.d.ts +1 -1
  25. package/dist/shared-utils/index.d.ts +1 -1
  26. package/dist/shared-utils/three/PointSelector.d.ts +37 -3
  27. package/docs/assets/search.js +1 -1
  28. package/docs/classes/CSS3DRender.html +32 -31
  29. package/docs/classes/CruisePluginController.html +46 -43
  30. package/docs/classes/GuideLineItem.GuideLineItem.html +21 -20
  31. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +36 -35
  32. package/docs/classes/Magnifier.html +21 -20
  33. package/docs/classes/ModelRoomLabelController.html +12 -11
  34. package/docs/classes/Object3DHelperController.html +45 -42
  35. package/docs/classes/PaintBrush.html +16 -15
  36. package/docs/classes/PanoMeasurePluginLine.html +46 -25
  37. package/docs/classes/PanoMeasurePluginModel.html +42 -26
  38. package/docs/classes/PanoMeasurePluginPoint.html +15 -14
  39. package/docs/classes/PanoMeasurePluginPolyline.html +28 -27
  40. package/docs/classes/PanoTagPluginController.html +67 -64
  41. package/docs/classes/Util.BetterTween.html +10 -9
  42. package/docs/classes/Util.Interval.html +13 -12
  43. package/docs/classes/Util.Magnifier.html +19 -18
  44. package/docs/classes/Util.PointDomHelper.html +12 -11
  45. package/docs/classes/Util.PointHelper.html +12 -11
  46. package/docs/classes/Util.PointSelectorHelper.html +18 -17
  47. package/docs/classes/Util.Rectangle.html +14 -13
  48. package/docs/enums/CameraMovementEffect.html +8 -7
  49. package/docs/enums/ContentType.html +21 -20
  50. package/docs/enums/DIRECTION.html +10 -9
  51. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +10 -9
  52. package/docs/enums/DimensionType.html +8 -7
  53. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +9 -8
  54. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +10 -9
  55. package/docs/enums/PaintBrushTypeEnum.html +9 -8
  56. package/docs/enums/PointType.html +8 -7
  57. package/docs/enums/Rotation.html +9 -8
  58. package/docs/functions/CSS3DRenderPlugin.html +5 -4
  59. package/docs/functions/CameraMovementPlugin.html +5 -4
  60. package/docs/functions/CruisePlugin.html +5 -4
  61. package/docs/functions/GuideLinePlugin.html +6 -5
  62. package/docs/functions/ItemLabelPlugin.html +5 -4
  63. package/docs/functions/MapviewFloorplanPlugin.html +5 -4
  64. package/docs/functions/ModelChassisCompassPlugin.html +5 -4
  65. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -4
  66. package/docs/functions/ModelFloorplanPlugin.html +5 -4
  67. package/docs/functions/ModelItemLabelPlugin.html +5 -4
  68. package/docs/functions/ModelRoomLabelPlugin.html +5 -4
  69. package/docs/functions/ModelTVVideoPlugin.html +5 -4
  70. package/docs/functions/ModelViewPlugin.html +5 -4
  71. package/docs/functions/Object3DHelperPlugin.html +5 -4
  72. package/docs/functions/PanoCompassPlugin.html +5 -4
  73. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -4
  74. package/docs/functions/PanoDoorLabelPlugin.html +5 -4
  75. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -4
  76. package/docs/functions/PanoMeasurePlugin.html +5 -4
  77. package/docs/functions/PanoRulerPlugin.html +5 -4
  78. package/docs/functions/PanoRulerProPlugin.html +5 -4
  79. package/docs/functions/PanoSpatialTagPlugin.html +5 -4
  80. package/docs/functions/PanoTagPlugin.html +5 -4
  81. package/docs/functions/PanoVideoPlugin.html +5 -4
  82. package/docs/functions/TopviewFloorplanPlugin.html +5 -4
  83. package/docs/functions/Util.absoluteUrl.html +370 -0
  84. package/docs/functions/Util.getCoordsFromClient.html +6 -5
  85. package/docs/functions/Util.getCoordsFromElement.html +6 -5
  86. package/docs/functions/Util.getFrameTime.html +6 -5
  87. package/docs/functions/Util.getIntersectFromRelativePosition.html +6 -5
  88. package/docs/functions/Util.getRaycasterFromFivePointer.html +6 -5
  89. package/docs/functions/Util.isAbsoluteURL.html +6 -5
  90. package/docs/functions/Util.isModelLike.html +6 -5
  91. package/docs/functions/Util.isNil.html +6 -5
  92. package/docs/functions/Util.isPanoramaLike.html +6 -5
  93. package/docs/functions/Util.nextFrame.html +6 -5
  94. package/docs/functions/Util.notNil.html +6 -5
  95. package/docs/functions/Util.requestAnimationFrameInterval.html +6 -5
  96. package/docs/functions/Util.tweenProgress.html +6 -5
  97. package/docs/functions/Util.uuid.html +6 -5
  98. package/docs/functions/pluginFlag.html +6 -5
  99. package/docs/index.html +6 -5
  100. package/docs/interfaces/AddTagConfig.html +7 -6
  101. package/docs/interfaces/CSS3DRenderPluginEventMap.html +12 -11
  102. package/docs/interfaces/CSS3DRenderPluginState.html +9 -8
  103. package/docs/interfaces/CameraMovementPluginExportType.html +8 -7
  104. package/docs/interfaces/CruisePluginTypes.Config.html +9 -8
  105. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +13 -12
  106. package/docs/interfaces/CruisePluginTypes.EventMap.html +21 -20
  107. package/docs/interfaces/CruisePluginTypes.MoveAction.html +13 -12
  108. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +15 -14
  109. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +15 -14
  110. package/docs/interfaces/CruisePluginTypes.PluginData.html +10 -9
  111. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +8 -7
  112. package/docs/interfaces/CruisePluginTypes.PluginState.html +12 -11
  113. package/docs/interfaces/EventMap.html +16 -15
  114. package/docs/interfaces/FloorplanBounding.html +9 -8
  115. package/docs/interfaces/FloorplanData.html +11 -10
  116. package/docs/interfaces/FloorplanEntrance.html +12 -11
  117. package/docs/interfaces/FloorplanExtraObject.html +11 -10
  118. package/docs/interfaces/FloorplanExtraObject3D.html +9 -8
  119. package/docs/interfaces/FloorplanFloorData.html +10 -9
  120. package/docs/interfaces/FloorplanImagePosition.html +8 -7
  121. package/docs/interfaces/FloorplanObserver.html +10 -9
  122. package/docs/interfaces/FloorplanOutlineItem.html +10 -9
  123. package/docs/interfaces/FloorplanPosition.html +8 -7
  124. package/docs/interfaces/FloorplanRoomItem.html +14 -13
  125. package/docs/interfaces/FloorplanRoomLabelItem.html +8 -7
  126. package/docs/interfaces/FloorplanServerBounding.html +9 -8
  127. package/docs/interfaces/FloorplanServerComputedData.html +11 -10
  128. package/docs/interfaces/FloorplanServerData.html +8 -7
  129. package/docs/interfaces/FloorplanServerDoorItem.html +11 -10
  130. package/docs/interfaces/FloorplanServerDoorPosition.html +9 -8
  131. package/docs/interfaces/FloorplanServerEntrance.html +12 -11
  132. package/docs/interfaces/FloorplanServerFloorData.html +10 -9
  133. package/docs/interfaces/FloorplanServerImagePosition.html +8 -7
  134. package/docs/interfaces/FloorplanServerObserver.html +10 -9
  135. package/docs/interfaces/FloorplanServerOutlineItem.html +10 -9
  136. package/docs/interfaces/FloorplanServerPosition.html +8 -7
  137. package/docs/interfaces/FloorplanServerRoomItem.html +15 -14
  138. package/docs/interfaces/FloorplanServerRoomLabelItem.html +8 -7
  139. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +9 -8
  140. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +11 -10
  141. package/docs/interfaces/GuideLinePluginType.EventMap.html +14 -13
  142. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +9 -8
  143. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +7 -6
  144. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +14 -13
  145. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +9 -8
  146. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +19 -18
  147. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +8 -7
  148. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +19 -18
  149. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +6 -5
  150. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +8 -7
  151. package/docs/interfaces/GuideLinePluginType.PluginState.html +9 -8
  152. package/docs/interfaces/GuideLinePluginType.Route.html +12 -11
  153. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +10 -9
  154. package/docs/interfaces/HelperOffset.html +9 -8
  155. package/docs/interfaces/ImagePlaneGroup.html +7 -6
  156. package/docs/interfaces/ItemLabelPluginData.html +7 -6
  157. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +12 -11
  158. package/docs/interfaces/ItemLabelPluginParametersType.html +10 -9
  159. package/docs/interfaces/MinMax.html +8 -7
  160. package/docs/interfaces/ModelChassisCompassPluginData.html +8 -7
  161. package/docs/interfaces/ModelChassisCompassPluginExportType.html +9 -8
  162. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +8 -7
  163. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +9 -8
  164. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +9 -8
  165. package/docs/interfaces/ModelItemLabelPluginData.html +7 -6
  166. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +12 -11
  167. package/docs/interfaces/ModelItemLabelPluginParametersType.html +8 -7
  168. package/docs/interfaces/ModelRoomLabelPluginData.html +7 -6
  169. package/docs/interfaces/ModelTVVideoPluginData.html +10 -9
  170. package/docs/interfaces/ModelTVVideoPluginExportType.html +9 -8
  171. package/docs/interfaces/ModelTVVideoPluginParameterType.html +7 -6
  172. package/docs/interfaces/ModelViewPluginExportType.html +12 -11
  173. package/docs/interfaces/Object3DHelperState.html +9 -8
  174. package/docs/interfaces/ObjectHelperControllers.html +10 -9
  175. package/docs/interfaces/PaintBrushAction.html +13 -12
  176. package/docs/interfaces/PaintBrushConfigs.html +13 -12
  177. package/docs/interfaces/PaintBrushState.html +11 -10
  178. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +11 -10
  179. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -5
  180. package/docs/interfaces/PanoMeasureParameterType.html +16 -15
  181. package/docs/interfaces/PanoMeasurePluginLineJson.html +9 -8
  182. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +8 -7
  183. package/docs/interfaces/PanoMeasurePluginPointJson.html +8 -7
  184. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +9 -8
  185. package/docs/interfaces/PanoRulerPluginExportType.html +11 -10
  186. package/docs/interfaces/PanoRulerPluginOptions.html +8 -7
  187. package/docs/interfaces/PanoRulerPluginParameterType.html +9 -8
  188. package/docs/interfaces/PanoRulerProPluginExportType.html +10 -9
  189. package/docs/interfaces/PanoRulerProPluginOptions.html +8 -7
  190. package/docs/interfaces/PanoRulerProPluginParameterType.html +8 -7
  191. package/docs/interfaces/PanoRulerProPluginState.html +9 -8
  192. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -5
  193. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -5
  194. package/docs/interfaces/PanoSpatialTagPluginData.html +12 -11
  195. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +11 -10
  196. package/docs/interfaces/PanoSpatialTagPluginExportType.html +14 -13
  197. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +11 -10
  198. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +14 -13
  199. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +12 -11
  200. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +11 -10
  201. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +7 -6
  202. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +9 -8
  203. package/docs/interfaces/PanoVideoPluginType.PluginData.html +7 -6
  204. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +10 -9
  205. package/docs/interfaces/PanoVideoPluginType.PluginState.html +7 -6
  206. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +9 -8
  207. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +11 -10
  208. package/docs/interfaces/Point.html +9 -8
  209. package/docs/interfaces/Room.html +10 -9
  210. package/docs/interfaces/RoomInfo.html +8 -7
  211. package/docs/interfaces/RoomLabel.html +15 -14
  212. package/docs/interfaces/RoomRules.html +6 -5
  213. package/docs/interfaces/Rooms.html +6 -5
  214. package/docs/interfaces/Scissor.html +10 -9
  215. package/docs/interfaces/State.html +9 -8
  216. package/docs/interfaces/TagCacheInterface.html +13 -12
  217. package/docs/interfaces/TagConfig.html +14 -13
  218. package/docs/interfaces/TagGLTFObjectGroup.html +7 -6
  219. package/docs/interfaces/TagIconUrl.html +13 -12
  220. package/docs/interfaces/TagObjectGroup.html +7 -6
  221. package/docs/interfaces/TagStyle.html +7 -6
  222. package/docs/interfaces/Tags.html +10 -9
  223. package/docs/interfaces/TemporaryState.html +7 -6
  224. package/docs/interfaces/Util.MagnifierParameter.html +12 -11
  225. package/docs/interfaces/Util.MouseGroupParameter.html +9 -8
  226. package/docs/interfaces/Util.PointIntersection.html +9 -8
  227. package/docs/modules/CruisePluginTypes.html +6 -5
  228. package/docs/modules/GuideLineItem.html +6 -5
  229. package/docs/modules/GuideLineModeItem.html +6 -5
  230. package/docs/modules/GuideLinePluginType.html +6 -5
  231. package/docs/modules/PanoVideoPluginType.html +6 -5
  232. package/docs/modules/Util.html +7 -5
  233. package/docs/modules.html +5 -4
  234. package/docs/types/ArrayPosition.html +6 -5
  235. package/docs/types/AudioAppearance.html +6 -5
  236. package/docs/types/AudioTagTypeConfigKey.html +6 -5
  237. package/docs/types/CSS3DRenderExportType.html +6 -5
  238. package/docs/types/CSS3DRenderPluginExportType.html +6 -5
  239. package/docs/types/CSS3DRenderPluginParameterType.html +6 -5
  240. package/docs/types/ClassFunctionParameters.html +6 -5
  241. package/docs/types/Color.html +6 -5
  242. package/docs/types/ContentTypeConfigKey.html +6 -5
  243. package/docs/types/ContentTypeConfigKeySplit.html +6 -5
  244. package/docs/types/ContentTypeMap.html +6 -5
  245. package/docs/types/Create3DDomContainerReturnType.html +6 -5
  246. package/docs/types/Create3DElementReturnType.html +6 -5
  247. package/docs/types/CruisePluginExportType.html +6 -5
  248. package/docs/types/CruisePluginTypes.CruiseData.html +6 -5
  249. package/docs/types/CruisePluginTypes.MoveEffect.html +6 -5
  250. package/docs/types/DeprecatedMediaPlaneProperty.html +6 -5
  251. package/docs/types/DeprecatedTagProperty.html +6 -5
  252. package/docs/types/Direction-1.html +6 -5
  253. package/docs/types/Direction4.html +6 -5
  254. package/docs/types/ElementRenderer.html +6 -5
  255. package/docs/types/FloorplanRuleLabels.html +6 -5
  256. package/docs/types/FloorplanServerRuleLabels.html +6 -5
  257. package/docs/types/GuideLinePluginExportType.html +6 -5
  258. package/docs/types/GuideLinePluginType.GuideLineItem.html +6 -5
  259. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +6 -5
  260. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +6 -5
  261. package/docs/types/GuideLinePluginType.GuideLineStyle.html +6 -5
  262. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +6 -5
  263. package/docs/types/GuideLinePluginType.PathItem.html +6 -5
  264. package/docs/types/GuideLinePluginType.PluginData.html +6 -5
  265. package/docs/types/HelperEventMap.html +6 -5
  266. package/docs/types/LoadTagConfig.html +6 -5
  267. package/docs/types/MapviewFloorplanPluginParameterType.html +6 -5
  268. package/docs/types/MapviewFloorplanPluginReturnType.html +6 -5
  269. package/docs/types/MediaData.html +6 -5
  270. package/docs/types/MediaStore.html +6 -5
  271. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -5
  272. package/docs/types/ModelFloorplanPluginParameterType.html +6 -5
  273. package/docs/types/ModelFloorplanPluginReturnType.html +6 -5
  274. package/docs/types/ModelRoomLabelPluginParameters.html +6 -5
  275. package/docs/types/ModelRoomLabelPluginReturnType.html +6 -5
  276. package/docs/types/MoveArgs.html +6 -5
  277. package/docs/types/MoveOpts.html +6 -5
  278. package/docs/types/Object3DHelperEventMap.html +6 -5
  279. package/docs/types/ObjectFit.html +6 -5
  280. package/docs/types/PaintBrushEventMap.html +6 -5
  281. package/docs/types/PanoCompassPluginData.html +6 -5
  282. package/docs/types/PanoCompassPluginExportType.html +6 -5
  283. package/docs/types/PanoCompassPluginParameterType.html +6 -5
  284. package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -5
  285. package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -5
  286. package/docs/types/PanoIndex.html +6 -5
  287. package/docs/types/PanoMeasurePluginEvent.html +6 -5
  288. package/docs/types/PanoMeasureReturnType.html +6 -5
  289. package/docs/types/PanoSpatialTagPluginId.html +6 -5
  290. package/docs/types/PanoTagPluginExportInterface.html +6 -5
  291. package/docs/types/PanoTagPluginParamsInterface.html +6 -5
  292. package/docs/types/PanoVideoPluginParameterType.html +6 -5
  293. package/docs/types/PanoVideoPluginReturnType.html +6 -5
  294. package/docs/types/PartialObjectDeep.html +6 -5
  295. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +6 -5
  296. package/docs/types/PlaneTag.html +6 -5
  297. package/docs/types/Point2DTag.html +6 -5
  298. package/docs/types/Point3DTag.html +6 -5
  299. package/docs/types/PointTag.html +6 -5
  300. package/docs/types/PointTagInstance.html +6 -5
  301. package/docs/types/Position.html +6 -5
  302. package/docs/types/RotateArgs.html +6 -5
  303. package/docs/types/RotateOpts.html +6 -5
  304. package/docs/types/RuleLabelsKey.html +6 -5
  305. package/docs/types/RuleLabelsValue.html +6 -5
  306. package/docs/types/StickType.html +6 -5
  307. package/docs/types/Tag.html +6 -5
  308. package/docs/types/Tag2D.html +6 -5
  309. package/docs/types/Tag3D.html +6 -5
  310. package/docs/types/TagContentType.html +6 -5
  311. package/docs/types/TagDimensionType.html +6 -5
  312. package/docs/types/TagElement.html +6 -5
  313. package/docs/types/TagEvents.html +6 -5
  314. package/docs/types/TagGLTFObject.html +6 -5
  315. package/docs/types/TagHooks.html +6 -5
  316. package/docs/types/TagId.html +6 -5
  317. package/docs/types/TagInstance.html +6 -5
  318. package/docs/types/TagPointType.html +6 -5
  319. package/docs/types/TagRendererMap.html +6 -5
  320. package/docs/types/TopviewFloorplanPluginParameterType.html +6 -5
  321. package/docs/types/TopviewFloorplanPluginReturnType.html +6 -5
  322. package/docs/types/WorkCode.html +6 -5
  323. package/docs/variables/FLOOR_TYPE_MAP.html +6 -5
  324. package/docs/variables/PLUGIN.html +6 -5
  325. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -5
  326. package/docs/variables/ROOM_TYPE_MAP.html +6 -5
  327. package/docs/variables/itemLabelPluginServerParams.html +6 -5
  328. package/docs/variables/modelItemLabelPluginServerParams.html +6 -5
  329. package/docs/variables/modelRoomLabelPluginServerParams.html +6 -5
  330. package/libs/CSS3DRenderPlugin/Controller.d.ts +4 -1
  331. package/libs/CSS3DRenderPlugin/Controller.js +31 -28
  332. package/libs/CSS3DRenderPlugin/index.js +1 -1
  333. package/libs/CruisePlugin/Controller.js +1 -1
  334. package/libs/CruisePlugin/index.js +1 -1
  335. package/libs/GuideLinePlugin/Components/Tag.js +68 -68
  336. package/libs/GuideLinePlugin/Controller.js +1 -1
  337. package/libs/GuideLinePlugin/GuideLineItem.js +1 -1
  338. package/libs/GuideLinePlugin/GuideLineModeItem.js +1 -1
  339. package/libs/GuideLinePlugin/index.js +1 -1
  340. package/libs/ItemLabelPlugin/ItemLabelItem.js +82 -82
  341. package/libs/ModelTVVideoPlugin/Plugin.js +30 -29
  342. package/libs/ModelTVVideoPlugin/index.js +4 -3
  343. package/libs/Object3DHelperPlugin/Controller.js +1 -1
  344. package/libs/Object3DHelperPlugin/index.js +1 -1
  345. package/libs/PanoCompassPlugin/Controller.js +20 -20
  346. package/libs/PanoCompassPlugin/index.js +1 -1
  347. package/libs/PanoDoorLabelPlugin/BaseController.js +1 -1
  348. package/libs/PanoDoorLabelPlugin/Controller.js +1 -1
  349. package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +60 -60
  350. package/libs/PanoDoorLabelPlugin/index.js +1 -1
  351. package/libs/PanoMeasurePlugin/Components/Controller0.js +131 -64
  352. package/libs/PanoMeasurePlugin/Components/Controller1.js +228 -153
  353. package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +13 -13
  354. package/libs/PanoMeasurePlugin/Controller/EditController.js +181 -112
  355. package/libs/PanoMeasurePlugin/Controller/MixedController.js +5 -5
  356. package/libs/PanoMeasurePlugin/Controller/WatchController.d.ts +1 -1
  357. package/libs/PanoMeasurePlugin/Controller/WatchController.js +13 -12
  358. package/libs/PanoMeasurePlugin/Controller/index.d.ts +3 -0
  359. package/libs/PanoMeasurePlugin/Controller/index.js +64 -67
  360. package/libs/PanoMeasurePlugin/Model/area.d.ts +9 -1
  361. package/libs/PanoMeasurePlugin/Model/area.js +23 -11
  362. package/libs/PanoMeasurePlugin/Model/index.d.ts +1 -0
  363. package/libs/PanoMeasurePlugin/Model/index.js +47 -39
  364. package/libs/PanoMeasurePlugin/Model/line.d.ts +2 -0
  365. package/libs/PanoMeasurePlugin/Model/line.js +6 -0
  366. package/libs/PanoMeasurePlugin/Model/polygon.d.ts +4 -0
  367. package/libs/PanoMeasurePlugin/Model/polygon.js +18 -13
  368. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +7 -3
  369. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +34 -24
  370. package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -0
  371. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +23 -15
  372. package/libs/PanoMeasurePlugin/Modules/UIController/style.d.ts +0 -8
  373. package/libs/PanoMeasurePlugin/Modules/UIController/style.js +16 -24
  374. package/libs/PanoMeasurePlugin/index.js +22 -20
  375. package/libs/PanoMeasurePlugin/typings/data.d.ts +2 -1
  376. package/libs/PanoMeasurePlugin/typings/event.type.d.ts +3 -0
  377. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +36 -15
  378. package/libs/PanoMeasurePlugin/utils/dom/base.d.ts +4 -0
  379. package/libs/PanoMeasurePlugin/utils/dom/base.js +37 -31
  380. package/libs/PanoMeasurePlugin/utils/dom/distanceItem.js +38 -23
  381. package/libs/PanoMeasurePlugin/utils/generatePolygonGeometry.js +3 -3
  382. package/libs/PanoMeasurePlugin/utils/geometryUtil.d.ts +1 -1
  383. package/libs/PanoMeasurePlugin/utils/geometryUtil.js +15 -13
  384. package/libs/PanoMeasurePlugin/utils/ndc2Screen.d.ts +2 -1
  385. package/libs/PanoSpatialTagPlugin/Plugin.js +1 -1
  386. package/libs/PanoSpatialTagPlugin/index.js +1 -1
  387. package/libs/PanoTagPlugin/controller/TagCache.js +1 -1
  388. package/libs/PanoTagPlugin/controller/TagComputer.js +1 -1
  389. package/libs/PanoTagPlugin/controller/TagRender.js +1 -1
  390. package/libs/PanoTagPlugin/controller/TagUtil.js +1 -1
  391. package/libs/PanoTagPlugin/controller/index.js +1 -1
  392. package/libs/PanoTagPlugin/index.js +1 -1
  393. package/libs/PanoVideoPlugin/Controller.js +1 -1
  394. package/libs/PanoVideoPlugin/index.js +1 -1
  395. package/libs/base/BasePlugin.d.ts +4 -1
  396. package/libs/base/BasePlugin.js +14 -11
  397. package/libs/components/PaintBrush/style.d.ts +1 -1
  398. package/libs/components/PaintBrush/style.js +4 -4
  399. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -1
  400. package/libs/floorplan/MapviewFloorplanPlugin/index.js +1 -1
  401. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -1
  402. package/libs/floorplan/ModelFloorplanPlugin/index.js +1 -1
  403. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
  404. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +1 -1
  405. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -1
  406. package/libs/floorplan/TopviewFloorplanPlugin/index.js +1 -1
  407. package/libs/index.js +7 -7
  408. package/libs/shared-utils/absoluteUrl.d.ts +5 -0
  409. package/libs/shared-utils/absoluteUrl.js +10 -0
  410. package/libs/{PanoMeasurePlugin/utils → shared-utils}/getPointFromHammerEvent.d.ts +1 -1
  411. package/libs/shared-utils/index.d.ts +1 -1
  412. package/libs/shared-utils/index.js +17 -16
  413. package/libs/shared-utils/logger.js +1 -1
  414. package/libs/shared-utils/three/Magnifier.js +6 -5
  415. package/libs/shared-utils/three/PointSelector.d.ts +37 -3
  416. package/libs/shared-utils/three/PointSelector.js +84 -36
  417. package/libs/shared-utils/three/PointSelectorHelper.js +7 -7
  418. package/libs/vendor/svelte/internal/index.js +392 -345
  419. package/package.json +1 -1
  420. package/dist/shared-utils/isAbsoluteURL.d.ts +0 -1
  421. package/libs/shared-utils/isAbsoluteURL.d.ts +0 -1
  422. package/libs/shared-utils/isAbsoluteURL.js +0 -6
  423. /package/dist/{PanoMeasurePlugin/utils → shared-utils}/getIntersectionFromEvent.d.ts +0 -0
  424. /package/libs/{PanoMeasurePlugin/utils → shared-utils}/getIntersectionFromEvent.d.ts +0 -0
  425. /package/libs/{PanoMeasurePlugin/utils → shared-utils}/getIntersectionFromEvent.js +0 -0
  426. /package/libs/{PanoMeasurePlugin/utils → shared-utils}/getPointFromHammerEvent.js +0 -0
@@ -1,10 +1,10 @@
1
- import { SvelteComponent as F, init as G, safe_not_equal as H, append_styles as I, element as v, create_component as P, space as T, attr as C, toggle_class as K, insert as $, mount_component as A, append as h, transition_in as z, transition_out as w, check_outros as J, detach as S, destroy_component as E, onMount as L, onDestroy as N, listen as D, noop as W, group_outros as O } from "../../vendor/svelte/internal/index.js";
2
- import Q from "./Common/Switcher1.js";
3
- import R from "./Common/CircleButton.js";
4
- import U from "../Controller/EditController.js";
5
- import V from "./Common/Exit.js";
1
+ import { SvelteComponent as Q, init as U, safe_not_equal as V, append_styles as W, element as _, create_component as q, space as P, attr as k, toggle_class as E, insert as B, mount_component as z, append as b, transition_in as c, transition_out as g, check_outros as K, detach as D, destroy_component as L, onMount as X, onDestroy as Y, add_render_callback as R, create_bidirectional_transition as y, listen as J, group_outros as j } from "../../vendor/svelte/internal/index.js";
2
+ import Z from "./Common/Switcher1.js";
3
+ import x from "./Common/CircleButton.js";
4
+ import F from "../Controller/EditController.js";
5
+ import ee from "./Common/Exit.js";
6
+ import { fade as T } from "../../vendor/svelte/transition/index.js";
6
7
  import "../Modules/UIController/mobileHTML.js";
7
- import "hammerjs";
8
8
  import "../Model/line.js";
9
9
  import "../../shared-utils/uuid.js";
10
10
  import "../utils/line.js";
@@ -20,8 +20,6 @@ import "../../shared-utils/removeArrayItem.js";
20
20
  import "../../shared-utils/throttle.js";
21
21
  import "../Controller/BaseController.js";
22
22
  import "../utils/ironbox.js";
23
- import "../utils/getIntersectionFromEvent.js";
24
- import "../utils/getPointFromHammerEvent.js";
25
23
  import "../Model/polyline.js";
26
24
  import "../Model/area.js";
27
25
  import "../Model/polygon.js";
@@ -35,6 +33,7 @@ import "../utils/isIntersecting.js";
35
33
  import "../../shared-utils/three/PointSelector.js";
36
34
  import "../../shared-utils/three/PointSelectorHelper.js";
37
35
  import "../../shared-utils/three/Magnifier.js";
36
+ import "hammerjs";
38
37
  import "../../shared-utils/three/getIntersect.js";
39
38
  import "../../shared-utils/three/PointHelper.js";
40
39
  import "../../shared-utils/three/Assets/index.js";
@@ -57,239 +56,315 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
57
56
  import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
58
57
  import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
59
58
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
60
- import "../../shared-utils/isAbsoluteURL.js";
59
+ import "../../shared-utils/absoluteUrl.js";
61
60
  import "../../shared-utils/animationFrame/BetterTween.js";
62
61
  import "../../shared-utils/animationFrame/index.js";
63
62
  import "../../shared-utils/isTouchDevice.js";
64
- function X(l) {
65
- I(l, "svelte-12klgza", ".Measure-Controller.svelte-12klgza.svelte-12klgza{pointer-events:none;color:white}.Measure-Controller.svelte-12klgza .mode-switcher.svelte-12klgza{margin-top:2.25rem}.Measure-Controller.svelte-12klgza .bottom.svelte-12klgza{position:absolute;width:100%;bottom:2.5rem}.Measure-Controller.svelte-12klgza .bottom .center.svelte-12klgza{display:flex;flex-direction:column;align-items:center}.Measure-Controller.svelte-12klgza .controller.svelte-12klgza{pointer-events:all;display:flex;align-items:center}.Measure-Controller.svelte-12klgza .controller .button.svelte-12klgza{cursor:pointer;display:flex;align-items:center;justify-content:center;height:2.5rem;padding-left:1rem;padding-right:1rem;border-radius:624.9375rem;font-size:0.875rem;background-color:rgba(0, 0, 0, 0.2)}.Measure-Controller.svelte-12klgza .controller .main-button.svelte-12klgza{margin-left:1.75rem;margin-right:1.75rem}.Measure-Controller.svelte-12klgza .controller .main-button.forbid.svelte-12klgza{pointer-events:none;opacity:0.5}");
63
+ import "../../shared-utils/getIntersectionFromEvent.js";
64
+ import "../../shared-utils/getPointFromHammerEvent.js";
65
+ import "../Modules/DeleteDom/index.js";
66
+ import "../Modules/DeleteDom/_Assets/delete.svg.js";
67
+ import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
68
+ import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
69
+ import "../utils/findAssociatedLines.js";
70
+ import "../utils/math.js";
71
+ import "../../vendor/svelte/easing/index.js";
72
+ function oe(r) {
73
+ W(r, "svelte-oflaon", "*.forbid.svelte-oflaon.svelte-oflaon{pointer-events:none;opacity:0.5}.Measure-Controller.svelte-oflaon.svelte-oflaon{pointer-events:none;color:white}.Measure-Controller.svelte-oflaon .mode-switcher.svelte-oflaon{margin-top:2.25rem}.Measure-Controller.svelte-oflaon .bottom.svelte-oflaon{position:absolute;width:100%;bottom:2.5rem}.Measure-Controller.svelte-oflaon .bottom .center.svelte-oflaon{display:flex;flex-direction:column;align-items:center}.Measure-Controller.svelte-oflaon .controller.svelte-oflaon{pointer-events:all;display:flex;align-items:center}.Measure-Controller.svelte-oflaon .controller .button.svelte-oflaon{cursor:pointer;display:flex;align-items:center;justify-content:center;height:2.5rem;padding-left:1rem;padding-right:1rem;border-radius:624.9375rem;font-size:0.875rem;background-color:rgba(0, 0, 0, 0.2)}.Measure-Controller.svelte-oflaon .controller .main-button.svelte-oflaon{margin-left:1.75rem;margin-right:1.75rem}");
66
74
  }
67
- function j(l) {
68
- let t, o, e;
69
- return o = new Q({
75
+ function G(r) {
76
+ let t, o, e, m;
77
+ return o = new Z({
70
78
  props: {
71
79
  options: [{ key: "line", value: "测距离" }, { key: "area", value: "测面积" }],
72
80
  defaultKey: (
73
81
  /*measureController*/
74
- l[0].currentMeasureType
82
+ r[0].currentMeasureType
75
83
  ),
76
84
  onChange: (
77
- /*func*/
78
- l[9]
85
+ /*measureController*/
86
+ r[0].changeMeasureType
79
87
  )
80
88
  }
81
89
  }), {
82
90
  c() {
83
- t = v("div"), P(o.$$.fragment), C(t, "class", "mode-switcher svelte-12klgza");
91
+ t = _("div"), q(o.$$.fragment), k(t, "class", "mode-switcher svelte-oflaon");
84
92
  },
85
- m(n, s) {
86
- $(n, t, s), A(o, t, null), e = !0;
93
+ m(l, i) {
94
+ B(l, t, i), z(o, t, null), m = !0;
87
95
  },
88
- p(n, s) {
89
- const c = {};
90
- s & /*measureController*/
91
- 1 && (c.defaultKey = /*measureController*/
92
- n[0].currentMeasureType), s & /*measureController*/
93
- 1 && (c.onChange = /*func*/
94
- n[9]), o.$set(c);
96
+ p(l, i) {
97
+ r = l;
98
+ const a = {};
99
+ i & /*measureController*/
100
+ 1 && (a.defaultKey = /*measureController*/
101
+ r[0].currentMeasureType), i & /*measureController*/
102
+ 1 && (a.onChange = /*measureController*/
103
+ r[0].changeMeasureType), o.$set(a);
95
104
  },
96
- i(n) {
97
- e || (z(o.$$.fragment, n), e = !0);
105
+ i(l) {
106
+ m || (c(o.$$.fragment, l), l && R(() => {
107
+ m && (e || (e = y(t, T, { duration: S }, !0)), e.run(1));
108
+ }), m = !0);
98
109
  },
99
- o(n) {
100
- w(o.$$.fragment, n), e = !1;
110
+ o(l) {
111
+ g(o.$$.fragment, l), l && (e || (e = y(t, T, { duration: S }, !1)), e.run(0)), m = !1;
101
112
  },
102
- d(n) {
103
- n && S(t), E(o);
113
+ d(l) {
114
+ l && D(t), L(o), l && e && e.end();
104
115
  }
105
116
  };
106
117
  }
107
- function q(l) {
108
- let t, o, e;
118
+ function H(r) {
119
+ let t, o, e, m, l;
109
120
  return {
110
121
  c() {
111
- t = v("div"), t.textContent = "撤销", C(t, "class", "button svelte-12klgza");
122
+ t = _("div"), t.textContent = "撤销", k(t, "class", "button svelte-oflaon"), E(
123
+ t,
124
+ "forbid",
125
+ /*buttonState*/
126
+ r[1] === "start"
127
+ );
112
128
  },
113
- m(n, s) {
114
- $(n, t, s), o || (e = D(
129
+ m(i, a) {
130
+ B(i, t, a), e = !0, m || (l = J(
115
131
  t,
116
132
  "click",
117
133
  /*click_handler*/
118
- l[10]
119
- ), o = !0);
134
+ r[12]
135
+ ), m = !0);
120
136
  },
121
- p: W,
122
- d(n) {
123
- n && S(t), o = !1, e();
137
+ p(i, a) {
138
+ r = i, (!e || a & /*buttonState*/
139
+ 2) && E(
140
+ t,
141
+ "forbid",
142
+ /*buttonState*/
143
+ r[1] === "start"
144
+ );
145
+ },
146
+ i(i) {
147
+ e || (i && R(() => {
148
+ e && (o || (o = y(t, T, { duration: S }, !0)), o.run(1));
149
+ }), e = !0);
150
+ },
151
+ o(i) {
152
+ i && (o || (o = y(t, T, { duration: S }, !1)), o.run(0)), e = !1;
153
+ },
154
+ d(i) {
155
+ i && D(t), i && o && o.end(), m = !1, l();
124
156
  }
125
157
  };
126
158
  }
127
- function B(l) {
128
- let t, o, e;
159
+ function I(r) {
160
+ let t, o, e, m, l;
129
161
  return {
130
162
  c() {
131
- t = v("div"), t.textContent = "结束", C(t, "class", "button svelte-12klgza");
163
+ t = _("div"), t.textContent = "结束", k(t, "class", "button svelte-oflaon");
132
164
  },
133
- m(n, s) {
134
- $(n, t, s), o || (e = D(
165
+ m(i, a) {
166
+ B(i, t, a), e = !0, m || (l = J(
135
167
  t,
136
168
  "click",
137
- /*click_handler_1*/
138
- l[12]
139
- ), o = !0);
169
+ /*complete*/
170
+ r[10]
171
+ ), m = !0);
140
172
  },
141
- p: W,
142
- d(n) {
143
- n && S(t), o = !1, e();
173
+ p(i, a) {
174
+ r = i;
175
+ },
176
+ i(i) {
177
+ e || (i && R(() => {
178
+ e && (o || (o = y(t, T, { duration: S }, !0)), o.run(1));
179
+ }), e = !0);
180
+ },
181
+ o(i) {
182
+ i && (o || (o = y(t, T, { duration: S }, !1)), o.run(0)), e = !1;
183
+ },
184
+ d(i) {
185
+ i && D(t), i && o && o.end(), m = !1, l();
144
186
  }
145
187
  };
146
188
  }
147
- function Y(l) {
148
- let t, o, e, n, s, c, m, b, d, u, M, g;
149
- o = new V({
189
+ function te(r) {
190
+ let t, o, e, m, l, i, a, M, d, v, $, h;
191
+ o = new ee({
150
192
  props: {
151
193
  onClick: (
152
194
  /*measureController*/
153
- l[0].disable
195
+ r[0].disable
154
196
  )
155
197
  }
156
198
  });
157
- let i = (
199
+ let p = (
158
200
  /*measureController*/
159
- l[0].allowMeasureType.length >= 2 && j(l)
160
- ), a = (
161
- /*currentMeasureType*/
162
- l[3] === "area" && q(l)
201
+ r[0].allowMeasureType.length >= 2 && /*buttonState*/
202
+ r[1] === "start" && G(r)
203
+ ), s = (
204
+ /*showButton*/
205
+ r[3] && H(r)
163
206
  );
164
- u = new R({
207
+ v = new x({
165
208
  props: {
166
209
  onClick: (
167
- /*func_1*/
168
- l[11]
210
+ /*func*/
211
+ r[13]
169
212
  ),
170
213
  text: (
171
- /*buttonTextMap*/
172
- l[4][
173
- /*buttonState*/
174
- l[2]
175
- ]
214
+ /*currentMeasureType*/
215
+ r[2] === "area" ? (
216
+ /*buttonAreaTextMap*/
217
+ r[5][
218
+ /*buttonState*/
219
+ r[1]
220
+ ]
221
+ ) : (
222
+ /*buttonLineTextMap*/
223
+ r[6][
224
+ /*buttonState*/
225
+ r[1]
226
+ ]
227
+ )
176
228
  ),
177
229
  color: (
178
230
  /*buttonColorMap*/
179
- l[5][
231
+ r[7][
180
232
  /*buttonState*/
181
- l[2]
233
+ r[1]
182
234
  ]
183
235
  )
184
236
  }
185
237
  });
186
- let p = (
187
- /*currentMeasureType*/
188
- l[3] === "area" && B(l)
238
+ let f = (
239
+ /*showButton*/
240
+ r[3] && I(r)
189
241
  );
190
242
  return {
191
243
  c() {
192
- t = v("div"), P(o.$$.fragment), e = T(), n = v("div"), s = v("div"), i && i.c(), c = T(), m = v("div"), a && a.c(), b = T(), d = v("div"), P(u.$$.fragment), M = T(), p && p.c(), C(d, "class", "main-button svelte-12klgza"), K(d, "forbid", !/*allowAddPoint*/
193
- l[1]), C(m, "class", "controller svelte-12klgza"), C(s, "class", "center svelte-12klgza"), C(n, "class", "bottom svelte-12klgza"), C(t, "class", "Measure-Controller svelte-12klgza");
244
+ t = _("div"), q(o.$$.fragment), e = P(), m = _("div"), l = _("div"), p && p.c(), i = P(), a = _("div"), s && s.c(), M = P(), d = _("div"), q(v.$$.fragment), $ = P(), f && f.c(), k(d, "class", "main-button svelte-oflaon"), E(d, "forbid", !/*allowAddPoint*/
245
+ r[4]), k(a, "class", "controller svelte-oflaon"), k(l, "class", "center svelte-oflaon"), k(m, "class", "bottom svelte-oflaon"), k(t, "class", "Measure-Controller svelte-oflaon");
194
246
  },
195
- m(r, f) {
196
- $(r, t, f), A(o, t, null), h(t, e), h(t, n), h(n, s), i && i.m(s, null), h(s, c), h(s, m), a && a.m(m, null), h(m, b), h(m, d), A(u, d, null), h(m, M), p && p.m(m, null), g = !0;
247
+ m(n, u) {
248
+ B(n, t, u), z(o, t, null), b(t, e), b(t, m), b(m, l), p && p.m(l, null), b(l, i), b(l, a), s && s.m(a, null), b(a, M), b(a, d), z(v, d, null), b(a, $), f && f.m(a, null), h = !0;
197
249
  },
198
- p(r, [f]) {
199
- const y = {};
200
- f & /*measureController*/
201
- 1 && (y.onClick = /*measureController*/
202
- r[0].disable), o.$set(y), /*measureController*/
203
- r[0].allowMeasureType.length >= 2 ? i ? (i.p(r, f), f & /*measureController*/
204
- 1 && z(i, 1)) : (i = j(r), i.c(), z(i, 1), i.m(s, c)) : i && (O(), w(i, 1, 1, () => {
205
- i = null;
206
- }), J()), /*currentMeasureType*/
207
- r[3] === "area" ? a ? a.p(r, f) : (a = q(r), a.c(), a.m(m, b)) : a && (a.d(1), a = null);
208
- const _ = {};
209
- f & /*buttonState*/
210
- 4 && (_.onClick = /*func_1*/
211
- r[11]), f & /*buttonState*/
212
- 4 && (_.text = /*buttonTextMap*/
213
- r[4][
214
- /*buttonState*/
215
- r[2]
216
- ]), f & /*buttonState*/
217
- 4 && (_.color = /*buttonColorMap*/
218
- r[5][
250
+ p(n, [u]) {
251
+ const A = {};
252
+ u & /*measureController*/
253
+ 1 && (A.onClick = /*measureController*/
254
+ n[0].disable), o.$set(A), /*measureController*/
255
+ n[0].allowMeasureType.length >= 2 && /*buttonState*/
256
+ n[1] === "start" ? p ? (p.p(n, u), u & /*measureController, buttonState*/
257
+ 3 && c(p, 1)) : (p = G(n), p.c(), c(p, 1), p.m(l, i)) : p && (j(), g(p, 1, 1, () => {
258
+ p = null;
259
+ }), K()), /*showButton*/
260
+ n[3] ? s ? (s.p(n, u), u & /*showButton*/
261
+ 8 && c(s, 1)) : (s = H(n), s.c(), c(s, 1), s.m(a, M)) : s && (j(), g(s, 1, 1, () => {
262
+ s = null;
263
+ }), K());
264
+ const w = {};
265
+ u & /*buttonState*/
266
+ 2 && (w.onClick = /*func*/
267
+ n[13]), u & /*currentMeasureType, buttonState*/
268
+ 6 && (w.text = /*currentMeasureType*/
269
+ n[2] === "area" ? (
270
+ /*buttonAreaTextMap*/
271
+ n[5][
272
+ /*buttonState*/
273
+ n[1]
274
+ ]
275
+ ) : (
276
+ /*buttonLineTextMap*/
277
+ n[6][
278
+ /*buttonState*/
279
+ n[1]
280
+ ]
281
+ )), u & /*buttonState*/
282
+ 2 && (w.color = /*buttonColorMap*/
283
+ n[7][
219
284
  /*buttonState*/
220
- r[2]
221
- ]), u.$set(_), (!g || f & /*allowAddPoint*/
222
- 2) && K(d, "forbid", !/*allowAddPoint*/
223
- r[1]), /*currentMeasureType*/
224
- r[3] === "area" ? p ? p.p(r, f) : (p = B(r), p.c(), p.m(m, null)) : p && (p.d(1), p = null);
285
+ n[1]
286
+ ]), v.$set(w), (!h || u & /*allowAddPoint*/
287
+ 16) && E(d, "forbid", !/*allowAddPoint*/
288
+ n[4]), /*showButton*/
289
+ n[3] ? f ? (f.p(n, u), u & /*showButton*/
290
+ 8 && c(f, 1)) : (f = I(n), f.c(), c(f, 1), f.m(a, null)) : f && (j(), g(f, 1, 1, () => {
291
+ f = null;
292
+ }), K());
225
293
  },
226
- i(r) {
227
- g || (z(o.$$.fragment, r), z(i), z(u.$$.fragment, r), g = !0);
294
+ i(n) {
295
+ h || (c(o.$$.fragment, n), c(p), c(s), c(v.$$.fragment, n), c(f), h = !0);
228
296
  },
229
- o(r) {
230
- w(o.$$.fragment, r), w(i), w(u.$$.fragment, r), g = !1;
297
+ o(n) {
298
+ g(o.$$.fragment, n), g(p), g(s), g(v.$$.fragment, n), g(f), h = !1;
231
299
  },
232
- d(r) {
233
- r && S(t), E(o), i && i.d(), a && a.d(), E(u), p && p.d();
300
+ d(n) {
301
+ n && D(t), L(o), p && p.d(), s && s.d(), L(v), f && f.d();
234
302
  }
235
303
  };
236
304
  }
237
- function Z(l, t, o) {
305
+ const S = 100;
306
+ function re(r, t, o) {
238
307
  let { measureController: e } = t;
239
- const n = { start: "开始", add: "添加", end: "结束" }, s = {
308
+ const m = { start: "开始", add: "添加", end: "结束" }, l = { start: "开始", add: "添加", end: "完成" }, i = {
240
309
  start: "white",
241
310
  add: "white",
242
311
  end: "blue"
243
312
  };
244
- let c = !0, m = "start", b = e.currentMeasureType;
245
- const d = () => {
246
- e.getCurrentMode() !== "Edit" ? e.changeMode("Edit") : (o(2, m = "add"), u());
247
- }, u = () => {
248
- e.controller instanceof U && e.controller.selectPoint();
249
- }, M = () => {
250
- u(), a("allow");
251
- }, g = () => {
252
- o(2, m = "end");
253
- }, i = () => {
254
- o(2, m = "start"), a("allow");
255
- }, a = (k) => {
256
- o(1, c = k === "allow");
257
- }, p = (k) => {
258
- o(3, b = k);
313
+ let a = !1, M = !0, d = "start", v = e.currentMeasureType;
314
+ const $ = () => {
315
+ e.getCurrentMode() !== "Edit" ? e.changeMode("Edit") : (o(1, d = "add"), h());
316
+ }, h = () => {
317
+ e.controller instanceof F && e.controller.selectPoint();
318
+ }, p = () => {
319
+ e.controller instanceof F && e.controller.complete();
320
+ }, s = () => {
321
+ h(), u("allow");
322
+ }, f = () => {
323
+ o(1, d = "end");
324
+ }, n = () => {
325
+ o(1, d = "start"), u("allow");
326
+ }, u = (C) => {
327
+ o(4, M = C === "allow");
328
+ }, A = (C) => {
329
+ o(2, v = C);
330
+ }, w = (C) => {
331
+ C.isEmpty && o(1, d = "start");
259
332
  };
260
- L(() => {
261
- e.hook.on("measureTypeChange", p), e.hook.on("modeChange", i), e.hook.on("allowAddPointStateChange", a), e.hook.on("readyComplete", g), e.hook.on("complete", i);
262
- }), N(() => {
263
- e.hook.off("measureTypeChange", p), e.hook.off("modeChange", i), e.hook.off("allowAddPointStateChange", a), e.hook.off("readyComplete", g), e.hook.off("complete", i);
333
+ X(() => {
334
+ e.hook.on("revoke", w), e.hook.on("measureTypeChange", A), e.hook.on("modeChange", n), e.hook.on("allowAddPointStateChange", u), e.hook.on("readyComplete", f), e.hook.on("complete", n);
335
+ }), Y(() => {
336
+ e.hook.off("measureTypeChange", A), e.hook.off("modeChange", n), e.hook.off("allowAddPointStateChange", u), e.hook.off("readyComplete", f), e.hook.off("complete", n);
264
337
  });
265
- const r = (k) => {
266
- e.changeMeasureType(k);
267
- }, f = () => e.revoke(), y = () => {
268
- m === "start" ? d() : m === "add" ? u() : m === "end" && M();
269
- }, _ = () => e.save({ mode: "Watch" });
270
- return l.$$set = (k) => {
271
- "measureController" in k && o(0, e = k.measureController);
338
+ const N = () => e.revoke(), O = () => {
339
+ d === "start" ? $() : d === "add" ? h() : d === "end" && s();
340
+ };
341
+ return r.$$set = (C) => {
342
+ "measureController" in C && o(0, e = C.measureController);
343
+ }, r.$$.update = () => {
344
+ r.$$.dirty & /*currentMeasureType, buttonState*/
345
+ 6 && o(3, a = v === "area" && d !== "start");
272
346
  }, [
273
347
  e,
274
- c,
275
- m,
276
- b,
277
- n,
278
- s,
279
348
  d,
280
- u,
349
+ v,
350
+ a,
281
351
  M,
282
- r,
283
- f,
284
- y,
285
- _
352
+ m,
353
+ l,
354
+ i,
355
+ $,
356
+ h,
357
+ p,
358
+ s,
359
+ N,
360
+ O
286
361
  ];
287
362
  }
288
- class st extends F {
363
+ class Mo extends Q {
289
364
  constructor(t) {
290
- super(), G(this, t, Z, Y, H, { measureController: 0 }, X);
365
+ super(), U(this, t, re, te, V, { measureController: 0 }, oe);
291
366
  }
292
367
  }
293
368
  export {
294
- st as default
369
+ Mo as default
295
370
  };
@@ -7,14 +7,12 @@ export default class EditController extends BaseController {
7
7
  type: string;
8
8
  polyline: Polyline;
9
9
  area: Area;
10
- /** 拖动的控制点 */
11
- private pressPoint?;
12
10
  private hasAppendDashed;
13
11
  private fiveElement?;
14
12
  /** 上一个端点位置 */
15
13
  private lastPoint;
16
- private hammer?;
17
14
  private pointSelector;
15
+ private deleteDom;
18
16
  /** 根据 intersection 更新放大镜和吸附点 */
19
17
  private onIntersectionUpdate;
20
18
  constructor(params: ControllerParams);
@@ -31,26 +29,28 @@ export default class EditController extends BaseController {
31
29
  */
32
30
  revokeLine: (_polyline?: Polyline) => void;
33
31
  selectPoint(): void;
32
+ complete(): void;
34
33
  private onMouseLeave;
35
34
  /** 编辑线条发生改变时通知外部 */
36
35
  private onLineChanged;
37
- private onPress;
38
- /**
39
- * 1. 如果之前没有长按行为「即没有长按点时」-> 滑动全景
40
- * 2. 如果有长按点,把长按点位置更新为当前位置
41
- */
42
- private onPan;
43
- private onPanEnd;
44
36
  /**
45
37
  * 1. 如果存在上一个点,需要绘制当前点到上一个点的连线
46
38
  * 2. 把上一个点的位置更新为当前点的位置
47
39
  * 3. 清除 pointSelector
48
40
  */
49
- private onTap;
50
- /** 存在长按点时不能移动全景 */
51
- private onWantsPanGesture;
41
+ private onSelect;
52
42
  /** 移动全景时更新 distanceItem 在屏幕上的位置 */
53
43
  private onCameraUpdate;
54
44
  /** 更新虚线 */
55
45
  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
56
  }