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