@realsee/dnalogel 2.23.0 → 2.23.1-dev.0

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