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

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