@realsee/dnalogel 2.21.0-dev.14 → 2.21.0-dev.16

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/Controller/index.d.ts +1 -0
  2. package/dist/index.cjs.js +27 -27
  3. package/dist/index.js +613 -608
  4. package/dist/index.umd.js +31 -31
  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 +105 -105
  307. package/libs/PanoMeasurePlugin/Components/Controller0.js +83 -83
  308. package/libs/PanoMeasurePlugin/Components/Controller1.js +103 -103
  309. package/libs/PanoMeasurePlugin/Components/Tip.js +58 -58
  310. package/libs/PanoMeasurePlugin/Controller/EditController.js +74 -72
  311. package/libs/PanoMeasurePlugin/Controller/WatchController.js +7 -7
  312. package/libs/PanoMeasurePlugin/Controller/index.d.ts +1 -0
  313. package/libs/PanoMeasurePlugin/Controller/index.js +14 -11
  314. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +2 -2
  315. package/libs/base/BasePlugin.js +1 -1
  316. package/libs/shared-utils/logger.js +1 -1
  317. package/package.json +1 -1
@@ -1,8 +1,8 @@
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";
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 I, attr as _, toggle_class as R, insert as B, append as v, mount_component as K, transition_in as h, transition_out as k, check_outros as z, detach as D, destroy_component as q, onMount as oe, onDestroy as re, add_render_callback as O, create_bidirectional_transition as E, text as N, set_style as Q, listen as V, group_outros as A } from "../../vendor/svelte/internal/index.js";
2
2
  import ie from "./Common/Switcher1.js";
3
- import ne from "./Common/CircleButton.js";
3
+ import le from "./Common/CircleButton.js";
4
4
  import F from "../Controller/EditController.js";
5
- import le from "./Common/Exit.js";
5
+ import ne from "./Common/Exit.js";
6
6
  import { fade as S } from "../../vendor/svelte/transition/index.js";
7
7
  import { IconUndo as se, IconOk as ae } from "./Common/icons/index.js";
8
8
  import "../Modules/UIController/mobileHTML.js";
@@ -70,12 +70,12 @@ 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 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}");
73
+ function pe(o) {
74
+ 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}");
75
75
  }
76
76
  function G(o) {
77
- let t, n;
78
- return t = new le({
77
+ let t, l;
78
+ return t = new ne({
79
79
  props: {
80
80
  onClick: (
81
81
  /*measureController*/
@@ -84,31 +84,31 @@ function G(o) {
84
84
  }
85
85
  }), {
86
86
  c() {
87
- K(t.$$.fragment);
87
+ I(t.$$.fragment);
88
88
  },
89
89
  m(e, i) {
90
- q(t, e, i), n = !0;
90
+ K(t, e, i), l = !0;
91
91
  },
92
92
  p(e, i) {
93
- const l = {};
93
+ const n = {};
94
94
  i & /*measureController*/
95
- 1 && (l.onClick = /*measureController*/
96
- e[0].disable), t.$set(l);
95
+ 1 && (n.onClick = /*measureController*/
96
+ e[0].disable), t.$set(n);
97
97
  },
98
98
  i(e) {
99
- n || (g(t.$$.fragment, e), n = !0);
99
+ l || (h(t.$$.fragment, e), l = !0);
100
100
  },
101
101
  o(e) {
102
- k(t.$$.fragment, e), n = !1;
102
+ k(t.$$.fragment, e), l = !1;
103
103
  },
104
104
  d(e) {
105
- O(t, e);
105
+ q(t, e);
106
106
  }
107
107
  };
108
108
  }
109
109
  function H(o) {
110
- let t, n, e, i;
111
- return n = new ie({
110
+ let t, l, e, i;
111
+ return l = new ie({
112
112
  props: {
113
113
  options: [{ key: "line", value: "测距离" }, { key: "area", value: "测面积" }],
114
114
  defaultKey: (
@@ -122,56 +122,56 @@ function H(o) {
122
122
  }
123
123
  }), {
124
124
  c() {
125
- t = C("div"), K(n.$$.fragment), _(t, "class", "mode-switcher svelte-13udz89");
125
+ t = C("div"), I(l.$$.fragment), _(t, "class", "mode-switcher svelte-ldjbp8");
126
126
  },
127
- m(l, u) {
128
- D(l, t, u), q(n, t, null), i = !0;
127
+ m(n, p) {
128
+ B(n, t, p), K(l, t, null), i = !0;
129
129
  },
130
- p(l, u) {
131
- o = l;
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);
130
+ p(n, p) {
131
+ o = n;
132
+ const b = {};
133
+ p & /*measureController*/
134
+ 1 && (b.defaultKey = /*measureController*/
135
+ o[0].currentMeasureType), p & /*measureController*/
136
+ 1 && (b.onChange = /*measureController*/
137
+ o[0].changeMeasureType), l.$set(b);
138
138
  },
139
- i(l) {
140
- i || (g(n.$$.fragment, l), l && U(() => {
139
+ i(n) {
140
+ i || (h(l.$$.fragment, n), n && O(() => {
141
141
  i && (e || (e = E(t, S, { duration: P }, !0)), e.run(1));
142
142
  }), i = !0);
143
143
  },
144
- o(l) {
145
- k(n.$$.fragment, l), l && (e || (e = E(t, S, { duration: P }, !1)), e.run(0)), i = !1;
144
+ o(n) {
145
+ k(l.$$.fragment, n), n && (e || (e = E(t, S, { duration: P }, !1)), e.run(0)), i = !1;
146
146
  },
147
- d(l) {
148
- l && I(t), O(n), l && e && e.end();
147
+ d(n) {
148
+ n && D(t), q(l), n && e && e.end();
149
149
  }
150
150
  };
151
151
  }
152
152
  function J(o) {
153
- let t, n, e, i, l, u, h;
153
+ let t, l, e, i, n, p, b;
154
154
  return {
155
155
  c() {
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(
156
+ t = C("div"), l = C("div"), e = N(`
157
+ 撤销`), _(l, "class", "icon svelte-ldjbp8"), Q(l, "background-image", `url(${se})`), _(t, "class", "button svelte-ldjbp8"), R(
158
158
  t,
159
159
  "forbid",
160
160
  /*buttonState*/
161
161
  o[2] === "start"
162
162
  );
163
163
  },
164
- m(r, p) {
165
- D(r, t, p), b(t, n), b(t, e), l = !0, u || (h = V(
164
+ m(r, u) {
165
+ B(r, t, u), v(t, l), v(t, e), n = !0, p || (b = V(
166
166
  t,
167
167
  "click",
168
168
  /*click_handler*/
169
169
  o[12]
170
- ), u = !0);
170
+ ), p = !0);
171
171
  },
172
- p(r, p) {
173
- o = r, (!l || p & /*buttonState*/
174
- 4) && B(
172
+ p(r, u) {
173
+ o = r, (!n || u & /*buttonState*/
174
+ 4) && R(
175
175
  t,
176
176
  "forbid",
177
177
  /*buttonState*/
@@ -179,51 +179,51 @@ function J(o) {
179
179
  );
180
180
  },
181
181
  i(r) {
182
- l || (r && U(() => {
183
- l && (i || (i = E(t, S, { duration: P }, !0)), i.run(1));
184
- }), l = !0);
182
+ n || (r && O(() => {
183
+ n && (i || (i = E(t, S, { duration: P }, !0)), i.run(1));
184
+ }), n = !0);
185
185
  },
186
186
  o(r) {
187
- r && (i || (i = E(t, S, { duration: P }, !1)), i.run(0)), l = !1;
187
+ r && (i || (i = E(t, S, { duration: P }, !1)), i.run(0)), n = !1;
188
188
  },
189
189
  d(r) {
190
- r && I(t), r && i && i.end(), u = !1, h();
190
+ r && D(t), r && i && i.end(), p = !1, b();
191
191
  }
192
192
  };
193
193
  }
194
194
  function L(o) {
195
- let t, n, e, i, l, u, h;
195
+ let t, l, e, i, n, p, b;
196
196
  return {
197
197
  c() {
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");
198
+ t = C("div"), l = C("div"), e = N(`
199
+ 结束`), _(l, "class", "icon svelte-ldjbp8"), Q(l, "background-image", `url(${ae})`), _(t, "class", "button svelte-ldjbp8");
200
200
  },
201
- m(r, p) {
202
- D(r, t, p), b(t, n), b(t, e), l = !0, u || (h = V(
201
+ m(r, u) {
202
+ B(r, t, u), v(t, l), v(t, e), n = !0, p || (b = V(
203
203
  t,
204
204
  "click",
205
205
  /*complete*/
206
206
  o[9]
207
- ), u = !0);
207
+ ), p = !0);
208
208
  },
209
- p(r, p) {
209
+ p(r, u) {
210
210
  o = r;
211
211
  },
212
212
  i(r) {
213
- l || (r && U(() => {
214
- l && (i || (i = E(t, S, { duration: P }, !0)), i.run(1));
215
- }), l = !0);
213
+ n || (r && O(() => {
214
+ n && (i || (i = E(t, S, { duration: P }, !0)), i.run(1));
215
+ }), n = !0);
216
216
  },
217
217
  o(r) {
218
- r && (i || (i = E(t, S, { duration: P }, !1)), i.run(0)), l = !1;
218
+ r && (i || (i = E(t, S, { duration: P }, !1)), i.run(0)), n = !1;
219
219
  },
220
220
  d(r) {
221
- r && I(t), r && i && i.end(), u = !1, h();
221
+ r && D(t), r && i && i.end(), p = !1, b();
222
222
  }
223
223
  };
224
224
  }
225
225
  function me(o) {
226
- let t, n, e, i, l, u, h, r, p, z, w, y, T, a = (
226
+ let t, l, e, i, n, p, b, r, u, j, w, y, T, a = (
227
227
  /*showExit*/
228
228
  o[1] && G(o)
229
229
  ), m = (
@@ -234,7 +234,7 @@ function me(o) {
234
234
  /*showButton*/
235
235
  o[3] && J(o)
236
236
  );
237
- w = new ne({
237
+ w = new le({
238
238
  props: {
239
239
  onClick: (
240
240
  /*func*/
@@ -262,27 +262,27 @@ function me(o) {
262
262
  );
263
263
  return {
264
264
  c() {
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");
265
+ t = C("div"), a && a.c(), l = $(), e = C("div"), i = C("div"), n = $(), p = C("div"), m && m.c(), b = $(), r = C("div"), f && f.c(), u = $(), j = C("div"), I(w.$$.fragment), y = $(), d && d.c(), _(i, "class", "mask svelte-ldjbp8"), _(j, "class", "main-button svelte-ldjbp8"), R(j, "forbid", !/*allowAddPoint*/
266
+ o[4]), _(r, "class", "controller svelte-ldjbp8"), _(p, "class", "center svelte-ldjbp8"), _(e, "class", "bottom svelte-ldjbp8"), _(t, "class", "Measure-Controller svelte-ldjbp8");
267
267
  },
268
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;
269
+ B(s, t, c), a && a.m(t, null), v(t, l), v(t, e), v(e, i), v(e, n), v(e, p), m && m.m(p, null), v(p, b), v(p, r), f && f.m(r, null), v(r, u), v(r, j), K(w, j, null), v(r, y), d && d.m(r, null), T = !0;
270
270
  },
271
271
  p(s, [c]) {
272
272
  /*showExit*/
273
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, () => {
274
+ 2 && h(a, 1)) : (a = G(s), a.c(), h(a, 1), a.m(t, l)) : a && (A(), k(a, 1, 1, () => {
275
275
  a = null;
276
- }), A()), /*measureController*/
276
+ }), z()), /*measureController*/
277
277
  s[0].allowMeasureType.length >= 2 && /*buttonState*/
278
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, () => {
279
+ 5 && h(m, 1)) : (m = H(s), m.c(), h(m, 1), m.m(p, b)) : m && (A(), k(m, 1, 1, () => {
280
280
  m = null;
281
- }), A()), /*showButton*/
281
+ }), z()), /*showButton*/
282
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, () => {
283
+ 8 && h(f, 1)) : (f = J(s), f.c(), h(f, 1), f.m(r, u)) : f && (A(), k(f, 1, 1, () => {
284
284
  f = null;
285
- }), A());
285
+ }), z());
286
286
  const M = {};
287
287
  c & /*buttonState*/
288
288
  4 && (M.onClick = /*func*/
@@ -297,97 +297,97 @@ function me(o) {
297
297
  /*buttonState*/
298
298
  s[2]
299
299
  ]), w.$set(M), (!T || c & /*allowAddPoint*/
300
- 16) && B(z, "forbid", !/*allowAddPoint*/
300
+ 16) && R(j, "forbid", !/*allowAddPoint*/
301
301
  s[4]), /*showButton*/
302
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, () => {
303
+ 8 && h(d, 1)) : (d = L(s), d.c(), h(d, 1), d.m(r, null)) : d && (A(), k(d, 1, 1, () => {
304
304
  d = null;
305
- }), A());
305
+ }), z());
306
306
  },
307
307
  i(s) {
308
- T || (g(a), g(m), g(f), g(w.$$.fragment, s), g(d), T = !0);
308
+ T || (h(a), h(m), h(f), h(w.$$.fragment, s), h(d), T = !0);
309
309
  },
310
310
  o(s) {
311
311
  k(a), k(m), k(f), k(w.$$.fragment, s), k(d), T = !1;
312
312
  },
313
313
  d(s) {
314
- s && I(t), a && a.d(), m && m.d(), f && f.d(), O(w), d && d.d();
314
+ s && D(t), a && a.d(), m && m.d(), f && f.d(), q(w), d && d.d();
315
315
  }
316
316
  };
317
317
  }
318
318
  const P = 100;
319
- function fe(o, t, n) {
319
+ function fe(o, t, l) {
320
320
  let { measureController: e } = t, { showExit: i = !1 } = t;
321
- const l = {
321
+ const n = {
322
322
  start: "开始",
323
323
  add: "添加",
324
324
  end: "结束",
325
325
  complete: "完成"
326
- }, u = {
326
+ }, p = {
327
327
  start: "white",
328
328
  add: "white",
329
329
  end: "blue",
330
330
  complete: "blue"
331
331
  };
332
- let h = !1, r = !0, p = "start", z = e.currentMeasureType;
332
+ let b = !1, r = !0, u = "start", j = e.currentMeasureType;
333
333
  const w = () => {
334
334
  e.getCurrentMode() !== "Edit" ? e.changeMode("Edit") : (a("add"), y());
335
335
  }, y = () => {
336
336
  e.controller instanceof F && e.controller.selectPoint();
337
337
  }, T = () => {
338
338
  e.controller instanceof F && e.controller.complete();
339
- }, a = (v) => {
340
- n(2, p = v);
339
+ }, a = (g) => {
340
+ l(2, u = g);
341
341
  }, m = () => {
342
342
  y(), M("allow");
343
343
  }, f = () => {
344
344
  a("complete");
345
345
  }, d = () => {
346
- e.currentMeasureType === "area" && p === "complete" && a("add");
347
- }, s = (v) => {
348
- v.length;
346
+ e.currentMeasureType === "area" && u === "complete" && a("add");
347
+ }, s = (g) => {
348
+ g.length;
349
349
  }, c = () => {
350
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");
351
+ }, M = (g) => {
352
+ l(4, r = g === "allow");
353
+ }, U = (g) => {
354
+ l(11, j = g);
355
+ }, W = (g) => {
356
+ g.isEmpty && a("start");
357
357
  };
358
358
  oe(() => {
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);
359
+ 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);
360
360
  }), re(() => {
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);
361
+ 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);
362
362
  });
363
363
  const X = () => e.revoke(), Y = () => {
364
- p === "start" ? w() : p === "add" ? y() : (p === "end" || p === "complete") && m();
364
+ u === "start" ? w() : u === "add" ? y() : (u === "end" || u === "complete") && m();
365
365
  };
366
- return o.$$set = (v) => {
367
- "measureController" in v && n(0, e = v.measureController), "showExit" in v && n(1, i = v.showExit);
366
+ return o.$$set = (g) => {
367
+ "measureController" in g && l(0, e = g.measureController), "showExit" in g && l(1, i = g.showExit);
368
368
  }, o.$$.update = () => {
369
369
  o.$$.dirty & /*currentMeasureType, buttonState*/
370
- 2052 && n(3, h = z === "area" && p !== "start");
370
+ 2052 && l(3, b = j === "area" && u !== "start");
371
371
  }, [
372
372
  e,
373
373
  i,
374
- p,
375
- h,
376
- r,
377
- l,
378
374
  u,
375
+ b,
376
+ r,
377
+ n,
378
+ p,
379
379
  w,
380
380
  y,
381
381
  T,
382
382
  m,
383
- z,
383
+ j,
384
384
  X,
385
385
  Y
386
386
  ];
387
387
  }
388
388
  class $t extends Z {
389
389
  constructor(t) {
390
- super(), x(this, t, fe, me, ee, { measureController: 0, showExit: 1 }, ue);
390
+ super(), x(this, t, fe, me, ee, { measureController: 0, showExit: 1 }, pe);
391
391
  }
392
392
  }
393
393
  export {
@@ -1,118 +1,118 @@
1
- import { SvelteComponent as W, init as q, safe_not_equal as z, append_styles as E, empty as N, insert as M, transition_in as m, transition_out as b, check_outros as O, detach as T, onMount as P, onDestroy as j, element as y, text as A, attr as g, append as k, set_data as B, add_render_callback as F, create_bidirectional_transition as x, group_outros as G, binding_callbacks as H } from "../../vendor/svelte/internal/index.js";
1
+ import { SvelteComponent as D, init as W, safe_not_equal as q, append_styles as E, empty as N, insert as M, transition_in as m, transition_out as _, check_outros as O, detach as w, onMount as P, onDestroy as j, element as b, text as A, attr as g, append as v, set_data as B, add_render_callback as F, create_bidirectional_transition as y, group_outros as G, binding_callbacks as H } from "../../vendor/svelte/internal/index.js";
2
2
  import { fade as C } from "../../vendor/svelte/transition/index.js";
3
3
  import "../../vendor/svelte/easing/index.js";
4
- function I(l) {
5
- E(l, "svelte-1x2fiiy", ".Measure-Tips.svelte-1x2fiiy.svelte-1x2fiiy{box-sizing:border-box;position:absolute;pointer-events:none;top:0;width:100%;padding:0 2.5rem}.Measure-Tips.svelte-1x2fiiy .text.svelte-1x2fiiy{text-align:center;position:relative;max-width:100%;top:3.125rem;color:#fff;word-break:break-all;word-wrap:break-word;text-shadow:0 0.0625rem 0.375rem rgba(0, 0, 0, 0.5)}");
4
+ function I(s) {
5
+ E(s, "svelte-1kdvs98", ".Measure-Tips.svelte-1kdvs98.svelte-1kdvs98{box-sizing:border-box;position:absolute;pointer-events:none;top:0;width:100%;padding:0 2.5rem}.Measure-Tips.svelte-1kdvs98 .text.svelte-1kdvs98{text-align:center;position:relative;max-width:100%;top:3.125rem;color:#fff;word-break:break-all;word-wrap:break-word;text-shadow:0 0.0625rem 0.375rem rgba(0, 0, 0, 0.5);font-size:1.25rem}");
6
6
  }
7
- function v(l) {
8
- let n, o, e, i, r;
7
+ function T(s) {
8
+ let n, i, e, o, r;
9
9
  return {
10
10
  c() {
11
- n = y("div"), o = y("div"), e = A(
11
+ n = b("div"), i = b("div"), e = A(
12
12
  /*tip*/
13
- l[2]
14
- ), g(o, "class", "text svelte-1x2fiiy"), g(n, "class", "Measure-Tips svelte-1x2fiiy");
13
+ s[2]
14
+ ), g(i, "class", "text svelte-1kdvs98"), g(n, "class", "Measure-Tips svelte-1kdvs98");
15
15
  },
16
- m(s, f) {
17
- M(s, n, f), k(n, o), k(o, e), l[6](o), r = !0;
16
+ m(l, a) {
17
+ M(l, n, a), v(n, i), v(i, e), s[6](i), r = !0;
18
18
  },
19
- p(s, f) {
20
- (!r || f & /*tip*/
19
+ p(l, a) {
20
+ (!r || a & /*tip*/
21
21
  4) && B(
22
22
  e,
23
23
  /*tip*/
24
- s[2]
24
+ l[2]
25
25
  );
26
26
  },
27
- i(s) {
27
+ i(l) {
28
28
  r || (F(() => {
29
- r && (i || (i = x(n, C, {}, !0)), i.run(1));
29
+ r && (o || (o = y(n, C, {}, !0)), o.run(1));
30
30
  }), r = !0);
31
31
  },
32
- o(s) {
33
- i || (i = x(n, C, {}, !1)), i.run(0), r = !1;
32
+ o(l) {
33
+ o || (o = y(n, C, {}, !1)), o.run(0), r = !1;
34
34
  },
35
- d(s) {
36
- s && T(n), l[6](null), s && i && i.end();
35
+ d(l) {
36
+ l && w(n), s[6](null), l && o && o.end();
37
37
  }
38
38
  };
39
39
  }
40
- function J(l) {
41
- let n, o, e = (
40
+ function J(s) {
41
+ let n, i, e = (
42
42
  /*visible*/
43
- l[0] && v(l)
43
+ s[0] && T(s)
44
44
  );
45
45
  return {
46
46
  c() {
47
47
  e && e.c(), n = N();
48
48
  },
49
- m(i, r) {
50
- e && e.m(i, r), M(i, n, r), o = !0;
49
+ m(o, r) {
50
+ e && e.m(o, r), M(o, n, r), i = !0;
51
51
  },
52
- p(i, [r]) {
52
+ p(o, [r]) {
53
53
  /*visible*/
54
- i[0] ? e ? (e.p(i, r), r & /*visible*/
55
- 1 && m(e, 1)) : (e = v(i), e.c(), m(e, 1), e.m(n.parentNode, n)) : e && (G(), b(e, 1, 1, () => {
54
+ o[0] ? e ? (e.p(o, r), r & /*visible*/
55
+ 1 && m(e, 1)) : (e = T(o), e.c(), m(e, 1), e.m(n.parentNode, n)) : e && (G(), _(e, 1, 1, () => {
56
56
  e = null;
57
57
  }), O());
58
58
  },
59
- i(i) {
60
- o || (m(e), o = !0);
59
+ i(o) {
60
+ i || (m(e), i = !0);
61
61
  },
62
- o(i) {
63
- b(e), o = !1;
62
+ o(o) {
63
+ _(e), i = !1;
64
64
  },
65
- d(i) {
66
- e && e.d(i), i && T(n);
65
+ d(o) {
66
+ e && e.d(o), o && w(n);
67
67
  }
68
68
  };
69
69
  }
70
- function K(l, n, o) {
71
- let { measureController: e } = n, { tips: i } = n, { tipStyle: r = {} } = n, { visible: s = !0 } = n, f = null;
72
- const w = (t) => {
73
- const D = e.currentMeasureType;
70
+ function K(s, n, i) {
71
+ let { measureController: e } = n, { tips: o } = n, { tipStyle: r = {} } = n, { visible: l = !0 } = n, a = null;
72
+ const x = (t) => {
73
+ const z = e.currentMeasureType;
74
74
  let c = "";
75
- return c = i[t], c === void 0 && (c = i[D][t]), c;
76
- }, a = (t) => {
77
- o(2, d = w(t));
75
+ return c = o[t], c === void 0 && (c = o[z][t]), c;
76
+ }, f = (t) => {
77
+ i(2, d = x(t));
78
78
  }, u = () => {
79
- o(2, d = "");
79
+ i(2, d = "");
80
80
  };
81
81
  let d = "";
82
82
  const p = (t) => {
83
- t === "Edit" ? e.changeMeasureType ? a("start") : a("select") : t === "Watch" ? a("select") : u();
83
+ t === "Edit" ? e.changeMeasureType ? f("start") : f("select") : t === "Watch" ? f("select") : u();
84
84
  }, h = () => {
85
- e.getCurrentMode() === "Watch" && a("select");
86
- }, _ = (t) => {
87
- e.currentMeasureType === "area" && (t.length >= 2 ? a("close") : t.length === 0 ? a("start") : u());
85
+ e.getCurrentMode() === "Watch" && f("select");
86
+ }, k = (t) => {
87
+ e.currentMeasureType === "area" && (t.length >= 2 ? f("close") : t.length === 0 ? f("start") : u());
88
88
  };
89
89
  P(() => {
90
- p(e.getCurrentMode()), e.hook.on("modeChange", p), e.hook.on("complete", h), e.hook.on("pointsChange", _);
90
+ p(e.getCurrentMode()), e.hook.on("modeChange", p), e.hook.on("complete", h), e.hook.on("pointsChange", k), e.hook.on("measureTypeChange", u);
91
91
  }), j(() => {
92
- e.hook.off("modeChange", p), e.hook.off("complete", h), e.hook.off("pointsChange", _), u();
92
+ e.hook.off("modeChange", p), e.hook.off("complete", h), e.hook.off("pointsChange", k), e.hook.off("measureTypeChange", u), u();
93
93
  });
94
94
  function S(t) {
95
95
  H[t ? "unshift" : "push"](() => {
96
- f = t, o(1, f), o(5, r);
96
+ a = t, i(1, a), i(5, r);
97
97
  });
98
98
  }
99
- return l.$$set = (t) => {
100
- "measureController" in t && o(3, e = t.measureController), "tips" in t && o(4, i = t.tips), "tipStyle" in t && o(5, r = t.tipStyle), "visible" in t && o(0, s = t.visible);
101
- }, l.$$.update = () => {
102
- if (l.$$.dirty & /*textDom, tipStyle*/
103
- 34 && f)
99
+ return s.$$set = (t) => {
100
+ "measureController" in t && i(3, e = t.measureController), "tips" in t && i(4, o = t.tips), "tipStyle" in t && i(5, r = t.tipStyle), "visible" in t && i(0, l = t.visible);
101
+ }, s.$$.update = () => {
102
+ if (s.$$.dirty & /*textDom, tipStyle*/
103
+ 34 && a)
104
104
  for (const t in r)
105
- r.hasOwnProperty(t) && o(1, f.style[t] = r[t], f);
106
- }, [s, f, d, e, i, r, S];
105
+ r.hasOwnProperty(t) && i(1, a.style[t] = r[t], a);
106
+ }, [l, a, d, e, o, r, S];
107
107
  }
108
- class U extends W {
108
+ class U extends D {
109
109
  constructor(n) {
110
- super(), q(
110
+ super(), W(
111
111
  this,
112
112
  n,
113
113
  K,
114
114
  J,
115
- z,
115
+ q,
116
116
  {
117
117
  measureController: 3,
118
118
  tips: 4,