@realsee/dnalogel 2.21.0-dev.13 → 2.21.0-dev.15

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