@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.
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +1 -0
- package/dist/index.cjs.js +27 -27
- package/dist/index.js +613 -608
- package/dist/index.umd.js +31 -31
- package/docs/classes/CSS3DRender.html +30 -30
- package/docs/classes/CruisePluginController.html +25 -25
- package/docs/classes/GuideLineItem.GuideLineItem.html +19 -19
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +34 -34
- package/docs/classes/Magnifier.html +19 -19
- package/docs/classes/ModelRoomLabelController.html +10 -10
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +14 -14
- package/docs/classes/PanoMeasurePluginLine.html +26 -26
- package/docs/classes/PanoMeasurePluginModel.html +26 -26
- package/docs/classes/PanoMeasurePluginPoint.html +13 -13
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +46 -46
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.Interval.html +11 -11
- package/docs/classes/Util.Magnifier.html +19 -19
- package/docs/classes/Util.PointDomHelper.html +10 -10
- package/docs/classes/Util.PointHelper.html +10 -10
- package/docs/classes/Util.PointSelectorHelper.html +15 -15
- package/docs/classes/Util.Rectangle.html +12 -12
- package/docs/enums/CameraMovementEffect.html +6 -6
- package/docs/enums/ContentType.html +19 -19
- package/docs/enums/DIRECTION.html +8 -8
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/DimensionType.html +6 -6
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -7
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/PaintBrushTypeEnum.html +7 -7
- package/docs/enums/PointType.html +6 -6
- package/docs/enums/Rotation.html +7 -7
- package/docs/functions/CSS3DRenderPlugin.html +3 -3
- package/docs/functions/CameraMovementPlugin.html +3 -3
- package/docs/functions/CruisePlugin.html +3 -3
- package/docs/functions/GuideLinePlugin.html +4 -4
- package/docs/functions/ItemLabelPlugin.html +3 -3
- package/docs/functions/MapviewFloorplanPlugin.html +3 -3
- package/docs/functions/ModelChassisCompassPlugin.html +3 -3
- package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
- package/docs/functions/ModelFloorplanPlugin.html +3 -3
- package/docs/functions/ModelItemLabelPlugin.html +3 -3
- package/docs/functions/ModelRoomLabelPlugin.html +3 -3
- package/docs/functions/ModelTVVideoPlugin.html +3 -3
- package/docs/functions/ModelViewPlugin.html +3 -3
- package/docs/functions/Object3DHelperPlugin.html +3 -3
- package/docs/functions/PanoCompassPlugin.html +3 -3
- package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
- package/docs/functions/PanoDoorLabelPlugin.html +3 -3
- package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
- package/docs/functions/PanoMeasurePlugin.html +3 -3
- package/docs/functions/PanoRulerPlugin.html +3 -3
- package/docs/functions/PanoRulerProPlugin.html +3 -3
- package/docs/functions/PanoSpatialTagPlugin.html +3 -3
- package/docs/functions/PanoTagPlugin.html +3 -3
- package/docs/functions/PanoVideoPlugin.html +3 -3
- package/docs/functions/TopviewFloorplanPlugin.html +3 -3
- package/docs/functions/Util.absoluteUrl.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +4 -4
- package/docs/functions/Util.getCoordsFromElement.html +4 -4
- package/docs/functions/Util.getFrameTime.html +4 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
- package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
- package/docs/functions/Util.isAbsoluteURL.html +4 -4
- package/docs/functions/Util.isModelLike.html +4 -4
- package/docs/functions/Util.isNil.html +4 -4
- package/docs/functions/Util.isPanoramaLike.html +4 -4
- package/docs/functions/Util.nextFrame.html +4 -4
- package/docs/functions/Util.notNil.html +4 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
- package/docs/functions/Util.tweenProgress.html +4 -4
- package/docs/functions/Util.uuid.html +4 -4
- package/docs/functions/pluginFlag.html +4 -4
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +5 -5
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -10
- package/docs/interfaces/CSS3DRenderPluginState.html +7 -7
- package/docs/interfaces/CameraMovementPluginExportType.html +6 -6
- package/docs/interfaces/CruisePluginTypes.Config.html +7 -7
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -11
- package/docs/interfaces/CruisePluginTypes.EventMap.html +19 -19
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +6 -6
- package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
- package/docs/interfaces/EventMap.html +14 -14
- package/docs/interfaces/FloorplanBounding.html +7 -7
- package/docs/interfaces/FloorplanData.html +9 -9
- package/docs/interfaces/FloorplanEntrance.html +10 -10
- package/docs/interfaces/FloorplanExtraObject.html +9 -9
- package/docs/interfaces/FloorplanExtraObject3D.html +7 -7
- package/docs/interfaces/FloorplanFloorData.html +8 -8
- package/docs/interfaces/FloorplanImagePosition.html +6 -6
- package/docs/interfaces/FloorplanObserver.html +8 -8
- package/docs/interfaces/FloorplanOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanPosition.html +6 -6
- package/docs/interfaces/FloorplanRoomItem.html +12 -12
- package/docs/interfaces/FloorplanRoomLabelItem.html +6 -6
- package/docs/interfaces/FloorplanServerBounding.html +7 -7
- package/docs/interfaces/FloorplanServerComputedData.html +9 -9
- package/docs/interfaces/FloorplanServerData.html +6 -6
- package/docs/interfaces/FloorplanServerDoorItem.html +9 -9
- package/docs/interfaces/FloorplanServerDoorPosition.html +7 -7
- package/docs/interfaces/FloorplanServerEntrance.html +10 -10
- package/docs/interfaces/FloorplanServerFloorData.html +8 -8
- package/docs/interfaces/FloorplanServerImagePosition.html +6 -6
- package/docs/interfaces/FloorplanServerObserver.html +8 -8
- package/docs/interfaces/FloorplanServerOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanServerPosition.html +6 -6
- package/docs/interfaces/FloorplanServerRoomItem.html +13 -13
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -6
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +7 -7
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
- package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -12
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +17 -17
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +17 -17
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +6 -6
- package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -7
- package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -8
- package/docs/interfaces/HelperOffset.html +7 -7
- package/docs/interfaces/ImagePlaneGroup.html +5 -5
- package/docs/interfaces/ItemLabelPluginData.html +5 -5
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ItemLabelPluginParametersType.html +8 -8
- package/docs/interfaces/MinMax.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginData.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -6
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -7
- package/docs/interfaces/ModelItemLabelPluginData.html +5 -5
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -6
- package/docs/interfaces/ModelRoomLabelPluginData.html +5 -5
- package/docs/interfaces/ModelTVVideoPluginData.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -7
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -5
- package/docs/interfaces/ModelViewPluginExportType.html +10 -10
- package/docs/interfaces/Object3DHelperState.html +7 -7
- package/docs/interfaces/ObjectHelperControllers.html +8 -8
- package/docs/interfaces/PaintBrushAction.html +11 -11
- package/docs/interfaces/PaintBrushConfigs.html +11 -11
- package/docs/interfaces/PaintBrushState.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
- package/docs/interfaces/PanoMeasureParameterType.html +14 -14
- package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -7
- package/docs/interfaces/PanoRulerPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginExportType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -6
- package/docs/interfaces/PanoRulerProPluginState.html +7 -7
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginData.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
- package/docs/interfaces/Point.html +7 -7
- package/docs/interfaces/Room.html +8 -8
- package/docs/interfaces/RoomInfo.html +6 -6
- package/docs/interfaces/RoomLabel.html +13 -13
- package/docs/interfaces/RoomRules.html +4 -4
- package/docs/interfaces/Rooms.html +4 -4
- package/docs/interfaces/Scissor.html +8 -8
- package/docs/interfaces/State.html +7 -7
- package/docs/interfaces/TagCacheInterface.html +11 -11
- package/docs/interfaces/TagConfig.html +12 -12
- package/docs/interfaces/TagGLTFObjectGroup.html +5 -5
- package/docs/interfaces/TagIconUrl.html +11 -11
- package/docs/interfaces/TagObjectGroup.html +5 -5
- package/docs/interfaces/TagStyle.html +5 -5
- package/docs/interfaces/Tags.html +8 -8
- package/docs/interfaces/TemporaryState.html +5 -5
- package/docs/interfaces/Util.MagnifierParameter.html +10 -10
- package/docs/interfaces/Util.MouseGroupParameter.html +7 -7
- package/docs/interfaces/Util.PointIntersection.html +7 -7
- package/docs/modules/CruisePluginTypes.html +4 -4
- package/docs/modules/GuideLineItem.html +4 -4
- package/docs/modules/GuideLineModeItem.html +4 -4
- package/docs/modules/GuideLinePluginType.html +4 -4
- package/docs/modules/PanoVideoPluginType.html +4 -4
- package/docs/modules/Util.html +4 -4
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +4 -4
- package/docs/types/AudioAppearance.html +4 -4
- package/docs/types/AudioTagTypeConfigKey.html +4 -4
- package/docs/types/CSS3DRenderExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
- package/docs/types/ClassFunctionParameters.html +4 -4
- package/docs/types/Color.html +4 -4
- package/docs/types/ContentTypeConfigKey.html +4 -4
- package/docs/types/ContentTypeConfigKeySplit.html +4 -4
- package/docs/types/ContentTypeMap.html +4 -4
- package/docs/types/Create3DDomContainerReturnType.html +4 -4
- package/docs/types/Create3DElementReturnType.html +4 -4
- package/docs/types/CruisePluginExportType.html +4 -4
- package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
- package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
- package/docs/types/DeprecatedMediaPlaneProperty.html +4 -4
- package/docs/types/DeprecatedTagProperty.html +4 -4
- package/docs/types/Direction-1.html +4 -4
- package/docs/types/Direction4.html +4 -4
- package/docs/types/ElementRenderer.html +4 -4
- package/docs/types/FloorplanRuleLabels.html +4 -4
- package/docs/types/FloorplanServerRuleLabels.html +4 -4
- package/docs/types/GuideLinePluginExportType.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
- package/docs/types/GuideLinePluginType.PathItem.html +4 -4
- package/docs/types/GuideLinePluginType.PluginData.html +4 -4
- package/docs/types/HelperEventMap.html +4 -4
- package/docs/types/LoadTagConfig.html +4 -4
- package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/MediaData.html +4 -4
- package/docs/types/MediaStore.html +4 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
- package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
- package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
- package/docs/types/MoveArgs.html +4 -4
- package/docs/types/MoveOpts.html +4 -4
- package/docs/types/Object3DHelperEventMap.html +4 -4
- package/docs/types/ObjectFit.html +4 -4
- package/docs/types/PaintBrushEventMap.html +4 -4
- package/docs/types/PanoCompassPluginData.html +4 -4
- package/docs/types/PanoCompassPluginExportType.html +4 -4
- package/docs/types/PanoCompassPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
- package/docs/types/PanoIndex.html +4 -4
- package/docs/types/PanoMeasurePluginEvent.html +4 -4
- package/docs/types/PanoMeasureReturnType.html +4 -4
- package/docs/types/PanoSpatialTagPluginId.html +4 -4
- package/docs/types/PanoTagPluginExportInterface.html +4 -4
- package/docs/types/PanoTagPluginParamsInterface.html +4 -4
- package/docs/types/PanoVideoPluginParameterType.html +4 -4
- package/docs/types/PanoVideoPluginReturnType.html +4 -4
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
- package/docs/types/PlaneTag.html +4 -4
- package/docs/types/Point2DTag.html +4 -4
- package/docs/types/Point3DTag.html +4 -4
- package/docs/types/PointTag.html +4 -4
- package/docs/types/PointTagInstance.html +4 -4
- package/docs/types/Position.html +4 -4
- package/docs/types/RotateArgs.html +4 -4
- package/docs/types/RotateOpts.html +4 -4
- package/docs/types/RuleLabelsKey.html +4 -4
- package/docs/types/RuleLabelsValue.html +4 -4
- package/docs/types/StickType.html +4 -4
- package/docs/types/Tag.html +4 -4
- package/docs/types/Tag2D.html +4 -4
- package/docs/types/Tag3D.html +4 -4
- package/docs/types/TagContentType.html +4 -4
- package/docs/types/TagDimensionType.html +4 -4
- package/docs/types/TagElement.html +4 -4
- package/docs/types/TagEvents.html +4 -4
- package/docs/types/TagGLTFObject.html +4 -4
- package/docs/types/TagHooks.html +4 -4
- package/docs/types/TagId.html +4 -4
- package/docs/types/TagInstance.html +4 -4
- package/docs/types/TagPointType.html +4 -4
- package/docs/types/TagRendererMap.html +4 -4
- package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/WorkCode.html +4 -4
- package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
- package/docs/variables/PLUGIN.html +4 -4
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
- package/docs/variables/ROOM_TYPE_MAP.html +4 -4
- package/docs/variables/itemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
- package/libs/PanoMeasurePlugin/Components/Common/Switcher0.js +105 -105
- package/libs/PanoMeasurePlugin/Components/Controller0.js +83 -83
- package/libs/PanoMeasurePlugin/Components/Controller1.js +103 -103
- package/libs/PanoMeasurePlugin/Components/Tip.js +58 -58
- package/libs/PanoMeasurePlugin/Controller/EditController.js +74 -72
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +7 -7
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Controller/index.js +14 -11
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +2 -2
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- 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
|
|
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
|
|
3
|
+
import le from "./Common/CircleButton.js";
|
|
4
4
|
import F from "../Controller/EditController.js";
|
|
5
|
-
import
|
|
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
|
|
74
|
-
te(o, "svelte-
|
|
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,
|
|
78
|
-
return t = new
|
|
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
|
-
|
|
87
|
+
I(t.$$.fragment);
|
|
88
88
|
},
|
|
89
89
|
m(e, i) {
|
|
90
|
-
|
|
90
|
+
K(t, e, i), l = !0;
|
|
91
91
|
},
|
|
92
92
|
p(e, i) {
|
|
93
|
-
const
|
|
93
|
+
const n = {};
|
|
94
94
|
i & /*measureController*/
|
|
95
|
-
1 && (
|
|
96
|
-
e[0].disable), t.$set(
|
|
95
|
+
1 && (n.onClick = /*measureController*/
|
|
96
|
+
e[0].disable), t.$set(n);
|
|
97
97
|
},
|
|
98
98
|
i(e) {
|
|
99
|
-
|
|
99
|
+
l || (h(t.$$.fragment, e), l = !0);
|
|
100
100
|
},
|
|
101
101
|
o(e) {
|
|
102
|
-
k(t.$$.fragment, e),
|
|
102
|
+
k(t.$$.fragment, e), l = !1;
|
|
103
103
|
},
|
|
104
104
|
d(e) {
|
|
105
|
-
|
|
105
|
+
q(t, e);
|
|
106
106
|
}
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
109
|
function H(o) {
|
|
110
|
-
let t,
|
|
111
|
-
return
|
|
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"),
|
|
125
|
+
t = C("div"), I(l.$$.fragment), _(t, "class", "mode-switcher svelte-ldjbp8");
|
|
126
126
|
},
|
|
127
|
-
m(
|
|
128
|
-
|
|
127
|
+
m(n, p) {
|
|
128
|
+
B(n, t, p), K(l, t, null), i = !0;
|
|
129
129
|
},
|
|
130
|
-
p(
|
|
131
|
-
o =
|
|
132
|
-
const
|
|
133
|
-
|
|
134
|
-
1 && (
|
|
135
|
-
o[0].currentMeasureType),
|
|
136
|
-
1 && (
|
|
137
|
-
o[0].changeMeasureType),
|
|
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(
|
|
140
|
-
i || (
|
|
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(
|
|
145
|
-
k(
|
|
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(
|
|
148
|
-
|
|
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,
|
|
153
|
+
let t, l, e, i, n, p, b;
|
|
154
154
|
return {
|
|
155
155
|
c() {
|
|
156
|
-
t = C("div"),
|
|
157
|
-
撤销`), _(
|
|
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,
|
|
165
|
-
|
|
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
|
-
),
|
|
170
|
+
), p = !0);
|
|
171
171
|
},
|
|
172
|
-
p(r,
|
|
173
|
-
o = r, (!
|
|
174
|
-
4) &&
|
|
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
|
-
|
|
183
|
-
|
|
184
|
-
}),
|
|
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)),
|
|
187
|
+
r && (i || (i = E(t, S, { duration: P }, !1)), i.run(0)), n = !1;
|
|
188
188
|
},
|
|
189
189
|
d(r) {
|
|
190
|
-
r &&
|
|
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,
|
|
195
|
+
let t, l, e, i, n, p, b;
|
|
196
196
|
return {
|
|
197
197
|
c() {
|
|
198
|
-
t = C("div"),
|
|
199
|
-
结束`), _(
|
|
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,
|
|
202
|
-
|
|
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
|
-
),
|
|
207
|
+
), p = !0);
|
|
208
208
|
},
|
|
209
|
-
p(r,
|
|
209
|
+
p(r, u) {
|
|
210
210
|
o = r;
|
|
211
211
|
},
|
|
212
212
|
i(r) {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
}),
|
|
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)),
|
|
218
|
+
r && (i || (i = E(t, S, { duration: P }, !1)), i.run(0)), n = !1;
|
|
219
219
|
},
|
|
220
220
|
d(r) {
|
|
221
|
-
r &&
|
|
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,
|
|
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
|
|
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(),
|
|
266
|
-
o[4]), _(r, "class", "controller svelte-
|
|
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
|
-
|
|
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 &&
|
|
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
|
-
}),
|
|
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 &&
|
|
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
|
-
}),
|
|
281
|
+
}), z()), /*showButton*/
|
|
282
282
|
s[3] ? f ? (f.p(s, c), c & /*showButton*/
|
|
283
|
-
8 &&
|
|
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
|
-
}),
|
|
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) &&
|
|
300
|
+
16) && R(j, "forbid", !/*allowAddPoint*/
|
|
301
301
|
s[4]), /*showButton*/
|
|
302
302
|
s[3] ? d ? (d.p(s, c), c & /*showButton*/
|
|
303
|
-
8 &&
|
|
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
|
-
}),
|
|
305
|
+
}), z());
|
|
306
306
|
},
|
|
307
307
|
i(s) {
|
|
308
|
-
T || (
|
|
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 &&
|
|
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,
|
|
319
|
+
function fe(o, t, l) {
|
|
320
320
|
let { measureController: e } = t, { showExit: i = !1 } = t;
|
|
321
|
-
const
|
|
321
|
+
const n = {
|
|
322
322
|
start: "开始",
|
|
323
323
|
add: "添加",
|
|
324
324
|
end: "结束",
|
|
325
325
|
complete: "完成"
|
|
326
|
-
},
|
|
326
|
+
}, p = {
|
|
327
327
|
start: "white",
|
|
328
328
|
add: "white",
|
|
329
329
|
end: "blue",
|
|
330
330
|
complete: "blue"
|
|
331
331
|
};
|
|
332
|
-
let
|
|
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 = (
|
|
340
|
-
|
|
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" &&
|
|
347
|
-
}, s = (
|
|
348
|
-
|
|
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 = (
|
|
352
|
-
|
|
353
|
-
},
|
|
354
|
-
|
|
355
|
-
}, W = (
|
|
356
|
-
|
|
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",
|
|
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",
|
|
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
|
-
|
|
364
|
+
u === "start" ? w() : u === "add" ? y() : (u === "end" || u === "complete") && m();
|
|
365
365
|
};
|
|
366
|
-
return o.$$set = (
|
|
367
|
-
"measureController" in
|
|
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 &&
|
|
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
|
-
|
|
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 },
|
|
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
|
|
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(
|
|
5
|
-
E(
|
|
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
|
|
8
|
-
let n,
|
|
7
|
+
function T(s) {
|
|
8
|
+
let n, i, e, o, r;
|
|
9
9
|
return {
|
|
10
10
|
c() {
|
|
11
|
-
n =
|
|
11
|
+
n = b("div"), i = b("div"), e = A(
|
|
12
12
|
/*tip*/
|
|
13
|
-
|
|
14
|
-
), g(
|
|
13
|
+
s[2]
|
|
14
|
+
), g(i, "class", "text svelte-1kdvs98"), g(n, "class", "Measure-Tips svelte-1kdvs98");
|
|
15
15
|
},
|
|
16
|
-
m(
|
|
17
|
-
M(
|
|
16
|
+
m(l, a) {
|
|
17
|
+
M(l, n, a), v(n, i), v(i, e), s[6](i), r = !0;
|
|
18
18
|
},
|
|
19
|
-
p(
|
|
20
|
-
(!r ||
|
|
19
|
+
p(l, a) {
|
|
20
|
+
(!r || a & /*tip*/
|
|
21
21
|
4) && B(
|
|
22
22
|
e,
|
|
23
23
|
/*tip*/
|
|
24
|
-
|
|
24
|
+
l[2]
|
|
25
25
|
);
|
|
26
26
|
},
|
|
27
|
-
i(
|
|
27
|
+
i(l) {
|
|
28
28
|
r || (F(() => {
|
|
29
|
-
r && (
|
|
29
|
+
r && (o || (o = y(n, C, {}, !0)), o.run(1));
|
|
30
30
|
}), r = !0);
|
|
31
31
|
},
|
|
32
|
-
o(
|
|
33
|
-
|
|
32
|
+
o(l) {
|
|
33
|
+
o || (o = y(n, C, {}, !1)), o.run(0), r = !1;
|
|
34
34
|
},
|
|
35
|
-
d(
|
|
36
|
-
|
|
35
|
+
d(l) {
|
|
36
|
+
l && w(n), s[6](null), l && o && o.end();
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
function J(
|
|
41
|
-
let n,
|
|
40
|
+
function J(s) {
|
|
41
|
+
let n, i, e = (
|
|
42
42
|
/*visible*/
|
|
43
|
-
|
|
43
|
+
s[0] && T(s)
|
|
44
44
|
);
|
|
45
45
|
return {
|
|
46
46
|
c() {
|
|
47
47
|
e && e.c(), n = N();
|
|
48
48
|
},
|
|
49
|
-
m(
|
|
50
|
-
e && e.m(
|
|
49
|
+
m(o, r) {
|
|
50
|
+
e && e.m(o, r), M(o, n, r), i = !0;
|
|
51
51
|
},
|
|
52
|
-
p(
|
|
52
|
+
p(o, [r]) {
|
|
53
53
|
/*visible*/
|
|
54
|
-
|
|
55
|
-
1 && m(e, 1)) : (e =
|
|
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(
|
|
60
|
-
|
|
59
|
+
i(o) {
|
|
60
|
+
i || (m(e), i = !0);
|
|
61
61
|
},
|
|
62
|
-
o(
|
|
63
|
-
|
|
62
|
+
o(o) {
|
|
63
|
+
_(e), i = !1;
|
|
64
64
|
},
|
|
65
|
-
d(
|
|
66
|
-
e && e.d(
|
|
65
|
+
d(o) {
|
|
66
|
+
e && e.d(o), o && w(n);
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
function K(
|
|
71
|
-
let { measureController: e } = n, { tips:
|
|
72
|
-
const
|
|
73
|
-
const
|
|
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 =
|
|
76
|
-
},
|
|
77
|
-
|
|
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
|
-
|
|
79
|
+
i(2, d = "");
|
|
80
80
|
};
|
|
81
81
|
let d = "";
|
|
82
82
|
const p = (t) => {
|
|
83
|
-
t === "Edit" ? e.changeMeasureType ?
|
|
83
|
+
t === "Edit" ? e.changeMeasureType ? f("start") : f("select") : t === "Watch" ? f("select") : u();
|
|
84
84
|
}, h = () => {
|
|
85
|
-
e.getCurrentMode() === "Watch" &&
|
|
86
|
-
},
|
|
87
|
-
e.currentMeasureType === "area" && (t.length >= 2 ?
|
|
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",
|
|
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
|
-
|
|
96
|
+
a = t, i(1, a), i(5, r);
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
return
|
|
100
|
-
"measureController" in t &&
|
|
101
|
-
},
|
|
102
|
-
if (
|
|
103
|
-
34 &&
|
|
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) &&
|
|
106
|
-
}, [
|
|
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
|
|
108
|
+
class U extends D {
|
|
109
109
|
constructor(n) {
|
|
110
|
-
super(),
|
|
110
|
+
super(), W(
|
|
111
111
|
this,
|
|
112
112
|
n,
|
|
113
113
|
K,
|
|
114
114
|
J,
|
|
115
|
-
|
|
115
|
+
q,
|
|
116
116
|
{
|
|
117
117
|
measureController: 3,
|
|
118
118
|
tips: 4,
|