@realsee/dnalogel 2.21.0-dev.7 → 2.21.0-dev.8
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/EditController.d.ts +11 -0
- package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Model/area.d.ts +8 -1
- package/dist/PanoMeasurePlugin/Model/polygon.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +7 -3
- package/dist/index.cjs.js +34 -34
- package/dist/index.js +2536 -2483
- package/dist/index.umd.js +28 -28
- 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 +17 -17
- package/docs/classes/Util.PointDomHelper.html +10 -10
- package/docs/classes/Util.PointHelper.html +10 -10
- package/docs/classes/Util.PointSelectorHelper.html +16 -16
- 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/PartialObjectDeep.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/Controller0.js +131 -64
- package/libs/PanoMeasurePlugin/Components/Controller1.js +120 -115
- package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +11 -0
- package/libs/PanoMeasurePlugin/Controller/EditController.js +166 -129
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +5 -5
- package/libs/PanoMeasurePlugin/Controller/WatchController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +13 -12
- package/libs/PanoMeasurePlugin/Controller/index.js +2 -2
- package/libs/PanoMeasurePlugin/Model/area.d.ts +8 -1
- package/libs/PanoMeasurePlugin/Model/area.js +21 -14
- package/libs/PanoMeasurePlugin/Model/polygon.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Model/polygon.js +16 -14
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +7 -3
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +34 -24
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +14 -8
- package/libs/PanoMeasurePlugin/index.js +3 -3
- package/libs/PanoMeasurePlugin/utils/generatePolygonGeometry.js +3 -3
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +3 -3
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/PointSelector.js +7 -7
- package/libs/shared-utils/three/PointSelectorHelper.js +7 -7
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { SvelteComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { SvelteComponent as Q, init as U, safe_not_equal as V, append_styles as W, element as _, create_component as q, space as P, attr as k, toggle_class as E, insert as B, mount_component as z, append as b, transition_in as c, transition_out as g, check_outros as K, detach as D, destroy_component as L, onMount as X, onDestroy as Y, add_render_callback as R, create_bidirectional_transition as y, listen as J, group_outros as j } from "../../vendor/svelte/internal/index.js";
|
|
2
|
+
import Z from "./Common/Switcher1.js";
|
|
3
|
+
import x from "./Common/CircleButton.js";
|
|
4
4
|
import F from "../Controller/EditController.js";
|
|
5
|
-
import
|
|
6
|
-
import { fade as
|
|
5
|
+
import ee from "./Common/Exit.js";
|
|
6
|
+
import { fade as T } from "../../vendor/svelte/transition/index.js";
|
|
7
7
|
import "../Modules/UIController/mobileHTML.js";
|
|
8
8
|
import "../Model/line.js";
|
|
9
9
|
import "../../shared-utils/uuid.js";
|
|
@@ -62,13 +62,19 @@ import "../../shared-utils/animationFrame/index.js";
|
|
|
62
62
|
import "../../shared-utils/isTouchDevice.js";
|
|
63
63
|
import "../../shared-utils/getIntersectionFromEvent.js";
|
|
64
64
|
import "../../shared-utils/getPointFromHammerEvent.js";
|
|
65
|
+
import "../Modules/DeleteDom/index.js";
|
|
66
|
+
import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
67
|
+
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
68
|
+
import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
|
|
69
|
+
import "../utils/findAssociatedLines.js";
|
|
70
|
+
import "../utils/math.js";
|
|
65
71
|
import "../../vendor/svelte/easing/index.js";
|
|
66
72
|
function oe(r) {
|
|
67
|
-
|
|
73
|
+
W(r, "svelte-oflaon", "*.forbid.svelte-oflaon.svelte-oflaon{pointer-events:none;opacity:0.5}.Measure-Controller.svelte-oflaon.svelte-oflaon{pointer-events:none;color:white}.Measure-Controller.svelte-oflaon .mode-switcher.svelte-oflaon{margin-top:2.25rem}.Measure-Controller.svelte-oflaon .bottom.svelte-oflaon{position:absolute;width:100%;bottom:2.5rem}.Measure-Controller.svelte-oflaon .bottom .center.svelte-oflaon{display:flex;flex-direction:column;align-items:center}.Measure-Controller.svelte-oflaon .controller.svelte-oflaon{pointer-events:all;display:flex;align-items:center}.Measure-Controller.svelte-oflaon .controller .button.svelte-oflaon{cursor:pointer;display:flex;align-items:center;justify-content: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-oflaon .controller .main-button.svelte-oflaon{margin-left:1.75rem;margin-right:1.75rem}");
|
|
68
74
|
}
|
|
69
75
|
function G(r) {
|
|
70
|
-
let
|
|
71
|
-
return
|
|
76
|
+
let t, o, e, m;
|
|
77
|
+
return o = new Z({
|
|
72
78
|
props: {
|
|
73
79
|
options: [{ key: "line", value: "测距离" }, { key: "area", value: "测面积" }],
|
|
74
80
|
defaultKey: (
|
|
@@ -82,10 +88,10 @@ function G(r) {
|
|
|
82
88
|
}
|
|
83
89
|
}), {
|
|
84
90
|
c() {
|
|
85
|
-
|
|
91
|
+
t = _("div"), q(o.$$.fragment), k(t, "class", "mode-switcher svelte-oflaon");
|
|
86
92
|
},
|
|
87
93
|
m(l, i) {
|
|
88
|
-
B(l,
|
|
94
|
+
B(l, t, i), z(o, t, null), m = !0;
|
|
89
95
|
},
|
|
90
96
|
p(l, i) {
|
|
91
97
|
r = l;
|
|
@@ -94,71 +100,71 @@ function G(r) {
|
|
|
94
100
|
1 && (a.defaultKey = /*measureController*/
|
|
95
101
|
r[0].currentMeasureType), i & /*measureController*/
|
|
96
102
|
1 && (a.onChange = /*measureController*/
|
|
97
|
-
r[0].changeMeasureType),
|
|
103
|
+
r[0].changeMeasureType), o.$set(a);
|
|
98
104
|
},
|
|
99
105
|
i(l) {
|
|
100
|
-
m || (c(
|
|
101
|
-
m && (e || (e =
|
|
106
|
+
m || (c(o.$$.fragment, l), l && R(() => {
|
|
107
|
+
m && (e || (e = y(t, T, { duration: S }, !0)), e.run(1));
|
|
102
108
|
}), m = !0);
|
|
103
109
|
},
|
|
104
110
|
o(l) {
|
|
105
|
-
|
|
111
|
+
g(o.$$.fragment, l), l && (e || (e = y(t, T, { duration: S }, !1)), e.run(0)), m = !1;
|
|
106
112
|
},
|
|
107
113
|
d(l) {
|
|
108
|
-
l && D(
|
|
114
|
+
l && D(t), L(o), l && e && e.end();
|
|
109
115
|
}
|
|
110
116
|
};
|
|
111
117
|
}
|
|
112
118
|
function H(r) {
|
|
113
|
-
let
|
|
119
|
+
let t, o, e, m, l;
|
|
114
120
|
return {
|
|
115
121
|
c() {
|
|
116
|
-
|
|
117
|
-
|
|
122
|
+
t = _("div"), t.textContent = "撤销", k(t, "class", "button svelte-oflaon"), E(
|
|
123
|
+
t,
|
|
118
124
|
"forbid",
|
|
119
125
|
/*buttonState*/
|
|
120
|
-
r[
|
|
126
|
+
r[1] === "start"
|
|
121
127
|
);
|
|
122
128
|
},
|
|
123
129
|
m(i, a) {
|
|
124
|
-
B(i,
|
|
125
|
-
|
|
130
|
+
B(i, t, a), e = !0, m || (l = J(
|
|
131
|
+
t,
|
|
126
132
|
"click",
|
|
127
133
|
/*click_handler*/
|
|
128
|
-
r[
|
|
134
|
+
r[12]
|
|
129
135
|
), m = !0);
|
|
130
136
|
},
|
|
131
137
|
p(i, a) {
|
|
132
138
|
r = i, (!e || a & /*buttonState*/
|
|
133
|
-
|
|
134
|
-
|
|
139
|
+
2) && E(
|
|
140
|
+
t,
|
|
135
141
|
"forbid",
|
|
136
142
|
/*buttonState*/
|
|
137
|
-
r[
|
|
143
|
+
r[1] === "start"
|
|
138
144
|
);
|
|
139
145
|
},
|
|
140
146
|
i(i) {
|
|
141
147
|
e || (i && R(() => {
|
|
142
|
-
e && (
|
|
148
|
+
e && (o || (o = y(t, T, { duration: S }, !0)), o.run(1));
|
|
143
149
|
}), e = !0);
|
|
144
150
|
},
|
|
145
151
|
o(i) {
|
|
146
|
-
i && (
|
|
152
|
+
i && (o || (o = y(t, T, { duration: S }, !1)), o.run(0)), e = !1;
|
|
147
153
|
},
|
|
148
154
|
d(i) {
|
|
149
|
-
i && D(
|
|
155
|
+
i && D(t), i && o && o.end(), m = !1, l();
|
|
150
156
|
}
|
|
151
157
|
};
|
|
152
158
|
}
|
|
153
159
|
function I(r) {
|
|
154
|
-
let
|
|
160
|
+
let t, o, e, m, l;
|
|
155
161
|
return {
|
|
156
162
|
c() {
|
|
157
|
-
|
|
163
|
+
t = _("div"), t.textContent = "结束", k(t, "class", "button svelte-oflaon");
|
|
158
164
|
},
|
|
159
165
|
m(i, a) {
|
|
160
|
-
B(i,
|
|
161
|
-
|
|
166
|
+
B(i, t, a), e = !0, m || (l = J(
|
|
167
|
+
t,
|
|
162
168
|
"click",
|
|
163
169
|
/*complete*/
|
|
164
170
|
r[10]
|
|
@@ -169,20 +175,20 @@ function I(r) {
|
|
|
169
175
|
},
|
|
170
176
|
i(i) {
|
|
171
177
|
e || (i && R(() => {
|
|
172
|
-
e && (
|
|
178
|
+
e && (o || (o = y(t, T, { duration: S }, !0)), o.run(1));
|
|
173
179
|
}), e = !0);
|
|
174
180
|
},
|
|
175
181
|
o(i) {
|
|
176
|
-
i && (
|
|
182
|
+
i && (o || (o = y(t, T, { duration: S }, !1)), o.run(0)), e = !1;
|
|
177
183
|
},
|
|
178
184
|
d(i) {
|
|
179
|
-
i && D(
|
|
185
|
+
i && D(t), i && o && o.end(), m = !1, l();
|
|
180
186
|
}
|
|
181
187
|
};
|
|
182
188
|
}
|
|
183
|
-
function
|
|
184
|
-
let
|
|
185
|
-
|
|
189
|
+
function te(r) {
|
|
190
|
+
let t, o, e, m, l, i, a, M, d, v, $, h;
|
|
191
|
+
o = new ee({
|
|
186
192
|
props: {
|
|
187
193
|
onClick: (
|
|
188
194
|
/*measureController*/
|
|
@@ -190,33 +196,33 @@ function re(r) {
|
|
|
190
196
|
)
|
|
191
197
|
}
|
|
192
198
|
});
|
|
193
|
-
let
|
|
199
|
+
let p = (
|
|
194
200
|
/*measureController*/
|
|
195
201
|
r[0].allowMeasureType.length >= 2 && /*buttonState*/
|
|
196
|
-
r[
|
|
197
|
-
),
|
|
202
|
+
r[1] === "start" && G(r)
|
|
203
|
+
), s = (
|
|
198
204
|
/*showButton*/
|
|
199
|
-
r[
|
|
205
|
+
r[3] && H(r)
|
|
200
206
|
);
|
|
201
|
-
|
|
207
|
+
v = new x({
|
|
202
208
|
props: {
|
|
203
209
|
onClick: (
|
|
204
210
|
/*func*/
|
|
205
|
-
r[
|
|
211
|
+
r[13]
|
|
206
212
|
),
|
|
207
213
|
text: (
|
|
208
214
|
/*currentMeasureType*/
|
|
209
|
-
r[
|
|
215
|
+
r[2] === "area" ? (
|
|
210
216
|
/*buttonAreaTextMap*/
|
|
211
217
|
r[5][
|
|
212
218
|
/*buttonState*/
|
|
213
|
-
r[
|
|
219
|
+
r[1]
|
|
214
220
|
]
|
|
215
221
|
) : (
|
|
216
222
|
/*buttonLineTextMap*/
|
|
217
223
|
r[6][
|
|
218
224
|
/*buttonState*/
|
|
219
|
-
r[
|
|
225
|
+
r[1]
|
|
220
226
|
]
|
|
221
227
|
)
|
|
222
228
|
),
|
|
@@ -224,142 +230,141 @@ function re(r) {
|
|
|
224
230
|
/*buttonColorMap*/
|
|
225
231
|
r[7][
|
|
226
232
|
/*buttonState*/
|
|
227
|
-
r[
|
|
233
|
+
r[1]
|
|
228
234
|
]
|
|
229
235
|
)
|
|
230
236
|
}
|
|
231
237
|
});
|
|
232
238
|
let f = (
|
|
233
239
|
/*showButton*/
|
|
234
|
-
r[
|
|
240
|
+
r[3] && I(r)
|
|
235
241
|
);
|
|
236
242
|
return {
|
|
237
243
|
c() {
|
|
238
|
-
|
|
239
|
-
r[
|
|
244
|
+
t = _("div"), q(o.$$.fragment), e = P(), m = _("div"), l = _("div"), p && p.c(), i = P(), a = _("div"), s && s.c(), M = P(), d = _("div"), q(v.$$.fragment), $ = P(), f && f.c(), k(d, "class", "main-button svelte-oflaon"), E(d, "forbid", !/*allowAddPoint*/
|
|
245
|
+
r[4]), k(a, "class", "controller svelte-oflaon"), k(l, "class", "center svelte-oflaon"), k(m, "class", "bottom svelte-oflaon"), k(t, "class", "Measure-Controller svelte-oflaon");
|
|
240
246
|
},
|
|
241
247
|
m(n, u) {
|
|
242
|
-
B(n,
|
|
248
|
+
B(n, t, u), z(o, t, null), b(t, e), b(t, m), b(m, l), p && p.m(l, null), b(l, i), b(l, a), s && s.m(a, null), b(a, M), b(a, d), z(v, d, null), b(a, $), f && f.m(a, null), h = !0;
|
|
243
249
|
},
|
|
244
250
|
p(n, [u]) {
|
|
245
|
-
const
|
|
251
|
+
const A = {};
|
|
246
252
|
u & /*measureController*/
|
|
247
|
-
1 && (
|
|
248
|
-
n[0].disable),
|
|
253
|
+
1 && (A.onClick = /*measureController*/
|
|
254
|
+
n[0].disable), o.$set(A), /*measureController*/
|
|
249
255
|
n[0].allowMeasureType.length >= 2 && /*buttonState*/
|
|
250
|
-
n[
|
|
251
|
-
|
|
252
|
-
s = null;
|
|
253
|
-
}), K()), /*showButton*/
|
|
254
|
-
n[2] ? p ? (p.p(n, u), u & /*showButton*/
|
|
255
|
-
4 && c(p, 1)) : (p = H(n), p.c(), c(p, 1), p.m(a, y)) : p && (j(), h(p, 1, 1, () => {
|
|
256
|
+
n[1] === "start" ? p ? (p.p(n, u), u & /*measureController, buttonState*/
|
|
257
|
+
3 && c(p, 1)) : (p = G(n), p.c(), c(p, 1), p.m(l, i)) : p && (j(), g(p, 1, 1, () => {
|
|
256
258
|
p = null;
|
|
259
|
+
}), K()), /*showButton*/
|
|
260
|
+
n[3] ? s ? (s.p(n, u), u & /*showButton*/
|
|
261
|
+
8 && c(s, 1)) : (s = H(n), s.c(), c(s, 1), s.m(a, M)) : s && (j(), g(s, 1, 1, () => {
|
|
262
|
+
s = null;
|
|
257
263
|
}), K());
|
|
258
264
|
const w = {};
|
|
259
265
|
u & /*buttonState*/
|
|
260
|
-
|
|
261
|
-
n[
|
|
262
|
-
|
|
263
|
-
n[
|
|
266
|
+
2 && (w.onClick = /*func*/
|
|
267
|
+
n[13]), u & /*currentMeasureType, buttonState*/
|
|
268
|
+
6 && (w.text = /*currentMeasureType*/
|
|
269
|
+
n[2] === "area" ? (
|
|
264
270
|
/*buttonAreaTextMap*/
|
|
265
271
|
n[5][
|
|
266
272
|
/*buttonState*/
|
|
267
|
-
n[
|
|
273
|
+
n[1]
|
|
268
274
|
]
|
|
269
275
|
) : (
|
|
270
276
|
/*buttonLineTextMap*/
|
|
271
277
|
n[6][
|
|
272
278
|
/*buttonState*/
|
|
273
|
-
n[
|
|
279
|
+
n[1]
|
|
274
280
|
]
|
|
275
281
|
)), u & /*buttonState*/
|
|
276
|
-
|
|
282
|
+
2 && (w.color = /*buttonColorMap*/
|
|
277
283
|
n[7][
|
|
278
284
|
/*buttonState*/
|
|
279
|
-
n[
|
|
280
|
-
]),
|
|
281
|
-
|
|
282
|
-
n[
|
|
283
|
-
n[
|
|
284
|
-
|
|
285
|
+
n[1]
|
|
286
|
+
]), v.$set(w), (!h || u & /*allowAddPoint*/
|
|
287
|
+
16) && E(d, "forbid", !/*allowAddPoint*/
|
|
288
|
+
n[4]), /*showButton*/
|
|
289
|
+
n[3] ? f ? (f.p(n, u), u & /*showButton*/
|
|
290
|
+
8 && c(f, 1)) : (f = I(n), f.c(), c(f, 1), f.m(a, null)) : f && (j(), g(f, 1, 1, () => {
|
|
285
291
|
f = null;
|
|
286
292
|
}), K());
|
|
287
293
|
},
|
|
288
294
|
i(n) {
|
|
289
|
-
|
|
295
|
+
h || (c(o.$$.fragment, n), c(p), c(s), c(v.$$.fragment, n), c(f), h = !0);
|
|
290
296
|
},
|
|
291
297
|
o(n) {
|
|
292
|
-
|
|
298
|
+
g(o.$$.fragment, n), g(p), g(s), g(v.$$.fragment, n), g(f), h = !1;
|
|
293
299
|
},
|
|
294
300
|
d(n) {
|
|
295
|
-
n && D(
|
|
301
|
+
n && D(t), L(o), p && p.d(), s && s.d(), L(v), f && f.d();
|
|
296
302
|
}
|
|
297
303
|
};
|
|
298
304
|
}
|
|
299
|
-
const
|
|
300
|
-
function
|
|
301
|
-
let { measureController: e } =
|
|
305
|
+
const S = 100;
|
|
306
|
+
function re(r, t, o) {
|
|
307
|
+
let { measureController: e } = t;
|
|
302
308
|
const m = { start: "开始", add: "添加", end: "结束" }, l = { start: "开始", add: "添加", end: "完成" }, i = {
|
|
303
309
|
start: "white",
|
|
304
310
|
add: "white",
|
|
305
311
|
end: "blue"
|
|
306
312
|
};
|
|
307
|
-
let a = !1,
|
|
308
|
-
const
|
|
309
|
-
|
|
310
|
-
},
|
|
313
|
+
let a = !1, M = !0, d = "start", v = e.currentMeasureType;
|
|
314
|
+
const $ = () => {
|
|
315
|
+
e.getCurrentMode() !== "Edit" ? e.changeMode("Edit") : (o(1, d = "add"), h());
|
|
316
|
+
}, h = () => {
|
|
311
317
|
e.controller instanceof F && e.controller.selectPoint();
|
|
312
318
|
}, p = () => {
|
|
313
319
|
e.controller instanceof F && e.controller.complete();
|
|
320
|
+
}, s = () => {
|
|
321
|
+
h(), u("allow");
|
|
314
322
|
}, f = () => {
|
|
315
|
-
|
|
323
|
+
o(1, d = "end");
|
|
316
324
|
}, n = () => {
|
|
317
|
-
|
|
318
|
-
}, u = () => {
|
|
319
|
-
|
|
320
|
-
},
|
|
321
|
-
|
|
325
|
+
o(1, d = "start"), u("allow");
|
|
326
|
+
}, u = (C) => {
|
|
327
|
+
o(4, M = C === "allow");
|
|
328
|
+
}, A = (C) => {
|
|
329
|
+
o(2, v = C);
|
|
322
330
|
}, w = (C) => {
|
|
323
|
-
|
|
324
|
-
}, N = (C) => {
|
|
325
|
-
C.isEmpty && t(4, d = "start");
|
|
331
|
+
C.isEmpty && o(1, d = "start");
|
|
326
332
|
};
|
|
327
|
-
|
|
328
|
-
e.hook.on("revoke",
|
|
329
|
-
}),
|
|
330
|
-
e.hook.off("measureTypeChange",
|
|
333
|
+
X(() => {
|
|
334
|
+
e.hook.on("revoke", w), e.hook.on("measureTypeChange", A), e.hook.on("modeChange", n), e.hook.on("allowAddPointStateChange", u), e.hook.on("readyComplete", f), e.hook.on("complete", n);
|
|
335
|
+
}), Y(() => {
|
|
336
|
+
e.hook.off("measureTypeChange", A), e.hook.off("modeChange", n), e.hook.off("allowAddPointStateChange", u), e.hook.off("readyComplete", f), e.hook.off("complete", n);
|
|
331
337
|
});
|
|
332
|
-
const
|
|
333
|
-
d === "start" ?
|
|
338
|
+
const N = () => e.revoke(), O = () => {
|
|
339
|
+
d === "start" ? $() : d === "add" ? h() : d === "end" && s();
|
|
334
340
|
};
|
|
335
341
|
return r.$$set = (C) => {
|
|
336
|
-
"measureController" in C &&
|
|
342
|
+
"measureController" in C && o(0, e = C.measureController);
|
|
337
343
|
}, r.$$.update = () => {
|
|
338
|
-
r.$$.dirty & /*currentMeasureType,
|
|
339
|
-
|
|
344
|
+
r.$$.dirty & /*currentMeasureType, buttonState*/
|
|
345
|
+
6 && o(3, a = v === "area" && d !== "start");
|
|
340
346
|
}, [
|
|
341
347
|
e,
|
|
342
|
-
T,
|
|
343
|
-
y,
|
|
344
|
-
v,
|
|
345
348
|
d,
|
|
349
|
+
v,
|
|
350
|
+
a,
|
|
351
|
+
M,
|
|
346
352
|
m,
|
|
347
353
|
l,
|
|
348
354
|
i,
|
|
349
|
-
|
|
350
|
-
|
|
355
|
+
$,
|
|
356
|
+
h,
|
|
351
357
|
p,
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
O
|
|
355
|
-
Q
|
|
358
|
+
s,
|
|
359
|
+
N,
|
|
360
|
+
O
|
|
356
361
|
];
|
|
357
362
|
}
|
|
358
|
-
class
|
|
359
|
-
constructor(
|
|
360
|
-
super(),
|
|
363
|
+
class Mo extends Q {
|
|
364
|
+
constructor(t) {
|
|
365
|
+
super(), U(this, t, re, te, V, { measureController: 0 }, oe);
|
|
361
366
|
}
|
|
362
367
|
}
|
|
363
368
|
export {
|
|
364
|
-
|
|
369
|
+
Mo as default
|
|
365
370
|
};
|
|
@@ -12,6 +12,7 @@ export default class EditController extends BaseController {
|
|
|
12
12
|
/** 上一个端点位置 */
|
|
13
13
|
private lastPoint;
|
|
14
14
|
private pointSelector;
|
|
15
|
+
private deleteDom;
|
|
15
16
|
/** 根据 intersection 更新放大镜和吸附点 */
|
|
16
17
|
private onIntersectionUpdate;
|
|
17
18
|
constructor(params: ControllerParams);
|
|
@@ -42,4 +43,14 @@ export default class EditController extends BaseController {
|
|
|
42
43
|
private onCameraUpdate;
|
|
43
44
|
/** 更新虚线 */
|
|
44
45
|
private updateDashed;
|
|
46
|
+
private wantsTapGesture;
|
|
47
|
+
private chooseLine;
|
|
48
|
+
private chooseArea;
|
|
49
|
+
private highlightArea;
|
|
50
|
+
private unHighlightArea;
|
|
51
|
+
private highlightLines;
|
|
52
|
+
private unHighlightLines;
|
|
53
|
+
private highlightLine;
|
|
54
|
+
private deleteArea;
|
|
55
|
+
private deleteLine;
|
|
45
56
|
}
|