@realsee/dnalogel 2.21.0-dev.5 → 2.21.0-dev.7
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/components/index.js +329 -329
- package/dist/CSS3DRenderPlugin/Controller.d.ts +4 -1
- package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +2 -13
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +3 -0
- package/dist/PanoMeasurePlugin/Model/area.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Model/index.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Model/line.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Model/polygon.d.ts +3 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/style.d.ts +0 -8
- package/dist/PanoMeasurePlugin/typings/data.d.ts +2 -1
- package/dist/PanoMeasurePlugin/typings/event.type.d.ts +3 -0
- package/dist/PanoMeasurePlugin/utils/dom/base.d.ts +4 -0
- package/dist/PanoMeasurePlugin/utils/geometryUtil.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/ndc2Screen.d.ts +2 -1
- package/dist/base/BasePlugin.d.ts +4 -1
- package/dist/components/PaintBrush/style.d.ts +1 -1
- package/dist/index.cjs.js +62 -62
- package/dist/index.js +6431 -6190
- package/dist/index.umd.js +55 -55
- package/dist/shared-utils/absoluteUrl.d.ts +5 -0
- package/dist/{PanoMeasurePlugin/utils → shared-utils}/getPointFromHammerEvent.d.ts +1 -1
- package/dist/shared-utils/index.d.ts +1 -1
- package/dist/shared-utils/three/PointSelector.d.ts +37 -3
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +32 -31
- package/docs/classes/CruisePluginController.html +46 -43
- package/docs/classes/GuideLineItem.GuideLineItem.html +21 -20
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +36 -35
- package/docs/classes/Magnifier.html +21 -20
- package/docs/classes/ModelRoomLabelController.html +12 -11
- package/docs/classes/Object3DHelperController.html +45 -42
- package/docs/classes/PaintBrush.html +16 -15
- package/docs/classes/PanoMeasurePluginLine.html +46 -25
- package/docs/classes/PanoMeasurePluginModel.html +42 -26
- package/docs/classes/PanoMeasurePluginPoint.html +15 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +28 -27
- package/docs/classes/PanoTagPluginController.html +67 -64
- package/docs/classes/Util.BetterTween.html +10 -9
- package/docs/classes/Util.Interval.html +13 -12
- package/docs/classes/Util.Magnifier.html +19 -18
- package/docs/classes/Util.PointDomHelper.html +12 -11
- package/docs/classes/Util.PointHelper.html +12 -11
- package/docs/classes/Util.PointSelectorHelper.html +18 -17
- package/docs/classes/Util.Rectangle.html +14 -13
- package/docs/enums/CameraMovementEffect.html +8 -7
- package/docs/enums/ContentType.html +21 -20
- package/docs/enums/DIRECTION.html +10 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +10 -9
- package/docs/enums/DimensionType.html +8 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +9 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +10 -9
- package/docs/enums/PaintBrushTypeEnum.html +9 -8
- package/docs/enums/PointType.html +8 -7
- package/docs/enums/Rotation.html +9 -8
- package/docs/functions/CSS3DRenderPlugin.html +5 -4
- package/docs/functions/CameraMovementPlugin.html +5 -4
- package/docs/functions/CruisePlugin.html +5 -4
- package/docs/functions/GuideLinePlugin.html +6 -5
- package/docs/functions/ItemLabelPlugin.html +5 -4
- package/docs/functions/MapviewFloorplanPlugin.html +5 -4
- package/docs/functions/ModelChassisCompassPlugin.html +5 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -4
- package/docs/functions/ModelFloorplanPlugin.html +5 -4
- package/docs/functions/ModelItemLabelPlugin.html +5 -4
- package/docs/functions/ModelRoomLabelPlugin.html +5 -4
- package/docs/functions/ModelTVVideoPlugin.html +5 -4
- package/docs/functions/ModelViewPlugin.html +5 -4
- package/docs/functions/Object3DHelperPlugin.html +5 -4
- package/docs/functions/PanoCompassPlugin.html +5 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +5 -4
- package/docs/functions/PanoDoorLabelPlugin.html +5 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +5 -4
- package/docs/functions/PanoMeasurePlugin.html +5 -4
- package/docs/functions/PanoRulerPlugin.html +5 -4
- package/docs/functions/PanoRulerProPlugin.html +5 -4
- package/docs/functions/PanoSpatialTagPlugin.html +5 -4
- package/docs/functions/PanoTagPlugin.html +5 -4
- package/docs/functions/PanoVideoPlugin.html +5 -4
- package/docs/functions/TopviewFloorplanPlugin.html +5 -4
- package/docs/functions/Util.absoluteUrl.html +370 -0
- package/docs/functions/Util.getCoordsFromClient.html +6 -5
- package/docs/functions/Util.getCoordsFromElement.html +6 -5
- package/docs/functions/Util.getFrameTime.html +6 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +6 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +6 -5
- package/docs/functions/Util.isAbsoluteURL.html +6 -5
- package/docs/functions/Util.isModelLike.html +6 -5
- package/docs/functions/Util.isNil.html +6 -5
- package/docs/functions/Util.isPanoramaLike.html +6 -5
- package/docs/functions/Util.nextFrame.html +6 -5
- package/docs/functions/Util.notNil.html +6 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +6 -5
- package/docs/functions/Util.tweenProgress.html +6 -5
- package/docs/functions/Util.uuid.html +6 -5
- package/docs/functions/pluginFlag.html +6 -5
- package/docs/index.html +6 -5
- package/docs/interfaces/AddTagConfig.html +7 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +12 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +9 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +8 -7
- package/docs/interfaces/CruisePluginTypes.Config.html +9 -8
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +13 -12
- package/docs/interfaces/CruisePluginTypes.EventMap.html +21 -20
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +13 -12
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +15 -14
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +15 -14
- package/docs/interfaces/CruisePluginTypes.PluginData.html +10 -9
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +8 -7
- package/docs/interfaces/CruisePluginTypes.PluginState.html +12 -11
- package/docs/interfaces/EventMap.html +16 -15
- package/docs/interfaces/FloorplanBounding.html +9 -8
- package/docs/interfaces/FloorplanData.html +11 -10
- package/docs/interfaces/FloorplanEntrance.html +12 -11
- package/docs/interfaces/FloorplanExtraObject.html +11 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +9 -8
- package/docs/interfaces/FloorplanFloorData.html +10 -9
- package/docs/interfaces/FloorplanImagePosition.html +8 -7
- package/docs/interfaces/FloorplanObserver.html +10 -9
- package/docs/interfaces/FloorplanOutlineItem.html +10 -9
- package/docs/interfaces/FloorplanPosition.html +8 -7
- package/docs/interfaces/FloorplanRoomItem.html +14 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +8 -7
- package/docs/interfaces/FloorplanServerBounding.html +9 -8
- package/docs/interfaces/FloorplanServerComputedData.html +11 -10
- package/docs/interfaces/FloorplanServerData.html +8 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +11 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +9 -8
- package/docs/interfaces/FloorplanServerEntrance.html +12 -11
- package/docs/interfaces/FloorplanServerFloorData.html +10 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +8 -7
- package/docs/interfaces/FloorplanServerObserver.html +10 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +10 -9
- package/docs/interfaces/FloorplanServerPosition.html +8 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +15 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +8 -7
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +9 -8
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +11 -10
- package/docs/interfaces/GuideLinePluginType.EventMap.html +14 -13
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +9 -8
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +7 -6
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +14 -13
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +9 -8
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +19 -18
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +8 -7
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +19 -18
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +6 -5
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +8 -7
- package/docs/interfaces/GuideLinePluginType.PluginState.html +9 -8
- package/docs/interfaces/GuideLinePluginType.Route.html +12 -11
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +10 -9
- package/docs/interfaces/HelperOffset.html +9 -8
- package/docs/interfaces/ImagePlaneGroup.html +7 -6
- package/docs/interfaces/ItemLabelPluginData.html +7 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +12 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +10 -9
- package/docs/interfaces/MinMax.html +8 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +8 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +9 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +8 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +9 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +9 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +7 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +12 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +8 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +7 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +10 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +9 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +7 -6
- package/docs/interfaces/ModelViewPluginExportType.html +12 -11
- package/docs/interfaces/Object3DHelperState.html +9 -8
- package/docs/interfaces/ObjectHelperControllers.html +10 -9
- package/docs/interfaces/PaintBrushAction.html +13 -12
- package/docs/interfaces/PaintBrushConfigs.html +13 -12
- package/docs/interfaces/PaintBrushState.html +11 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +11 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -5
- package/docs/interfaces/PanoMeasureParameterType.html +16 -15
- package/docs/interfaces/PanoMeasurePluginLineJson.html +9 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +8 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +8 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +9 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +11 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +8 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +9 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +10 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +8 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +8 -7
- package/docs/interfaces/PanoRulerProPluginState.html +9 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +12 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +11 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +14 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +11 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +14 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +12 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +11 -10
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +7 -6
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +9 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +7 -6
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +10 -9
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +7 -6
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +9 -8
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +11 -10
- package/docs/interfaces/Point.html +9 -8
- package/docs/interfaces/Room.html +10 -9
- package/docs/interfaces/RoomInfo.html +8 -7
- package/docs/interfaces/RoomLabel.html +15 -14
- package/docs/interfaces/RoomRules.html +6 -5
- package/docs/interfaces/Rooms.html +6 -5
- package/docs/interfaces/Scissor.html +10 -9
- package/docs/interfaces/State.html +9 -8
- package/docs/interfaces/TagCacheInterface.html +13 -12
- package/docs/interfaces/TagConfig.html +14 -13
- package/docs/interfaces/TagGLTFObjectGroup.html +7 -6
- package/docs/interfaces/TagIconUrl.html +13 -12
- package/docs/interfaces/TagObjectGroup.html +7 -6
- package/docs/interfaces/TagStyle.html +7 -6
- package/docs/interfaces/Tags.html +10 -9
- package/docs/interfaces/TemporaryState.html +7 -6
- package/docs/interfaces/Util.MagnifierParameter.html +12 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +9 -8
- package/docs/interfaces/Util.PointIntersection.html +9 -8
- package/docs/modules/CruisePluginTypes.html +6 -5
- package/docs/modules/GuideLineItem.html +6 -5
- package/docs/modules/GuideLineModeItem.html +6 -5
- package/docs/modules/GuideLinePluginType.html +6 -5
- package/docs/modules/PanoVideoPluginType.html +6 -5
- package/docs/modules/Util.html +7 -5
- package/docs/modules.html +5 -4
- package/docs/types/ArrayPosition.html +6 -5
- package/docs/types/AudioAppearance.html +6 -5
- package/docs/types/AudioTagTypeConfigKey.html +6 -5
- package/docs/types/CSS3DRenderExportType.html +6 -5
- package/docs/types/CSS3DRenderPluginExportType.html +6 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +6 -5
- package/docs/types/ClassFunctionParameters.html +6 -5
- package/docs/types/Color.html +6 -5
- package/docs/types/ContentTypeConfigKey.html +6 -5
- package/docs/types/ContentTypeConfigKeySplit.html +6 -5
- package/docs/types/ContentTypeMap.html +6 -5
- package/docs/types/Create3DDomContainerReturnType.html +6 -5
- package/docs/types/Create3DElementReturnType.html +6 -5
- package/docs/types/CruisePluginExportType.html +6 -5
- package/docs/types/CruisePluginTypes.CruiseData.html +6 -5
- package/docs/types/CruisePluginTypes.MoveEffect.html +6 -5
- package/docs/types/DeprecatedMediaPlaneProperty.html +6 -5
- package/docs/types/DeprecatedTagProperty.html +6 -5
- package/docs/types/Direction-1.html +6 -5
- package/docs/types/Direction4.html +6 -5
- package/docs/types/ElementRenderer.html +6 -5
- package/docs/types/FloorplanRuleLabels.html +6 -5
- package/docs/types/FloorplanServerRuleLabels.html +6 -5
- package/docs/types/GuideLinePluginExportType.html +6 -5
- package/docs/types/GuideLinePluginType.GuideLineItem.html +6 -5
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +6 -5
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +6 -5
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +6 -5
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +6 -5
- package/docs/types/GuideLinePluginType.PathItem.html +6 -5
- package/docs/types/GuideLinePluginType.PluginData.html +6 -5
- package/docs/types/HelperEventMap.html +6 -5
- package/docs/types/LoadTagConfig.html +6 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +6 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +6 -5
- package/docs/types/MediaData.html +6 -5
- package/docs/types/MediaStore.html +6 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +6 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +6 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +6 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +6 -5
- package/docs/types/MoveArgs.html +6 -5
- package/docs/types/MoveOpts.html +6 -5
- package/docs/types/Object3DHelperEventMap.html +6 -5
- package/docs/types/ObjectFit.html +6 -5
- package/docs/types/PaintBrushEventMap.html +6 -5
- package/docs/types/PanoCompassPluginData.html +6 -5
- package/docs/types/PanoCompassPluginExportType.html +6 -5
- package/docs/types/PanoCompassPluginParameterType.html +6 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -5
- package/docs/types/PanoIndex.html +6 -5
- package/docs/types/PanoMeasurePluginEvent.html +6 -5
- package/docs/types/PanoMeasureReturnType.html +6 -5
- package/docs/types/PanoSpatialTagPluginId.html +6 -5
- package/docs/types/PanoTagPluginExportInterface.html +6 -5
- package/docs/types/PanoTagPluginParamsInterface.html +6 -5
- package/docs/types/PanoVideoPluginParameterType.html +6 -5
- package/docs/types/PanoVideoPluginReturnType.html +6 -5
- package/docs/types/PartialObjectDeep.html +6 -5
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +6 -5
- package/docs/types/PlaneTag.html +6 -5
- package/docs/types/Point2DTag.html +6 -5
- package/docs/types/Point3DTag.html +6 -5
- package/docs/types/PointTag.html +6 -5
- package/docs/types/PointTagInstance.html +6 -5
- package/docs/types/Position.html +6 -5
- package/docs/types/RotateArgs.html +6 -5
- package/docs/types/RotateOpts.html +6 -5
- package/docs/types/RuleLabelsKey.html +6 -5
- package/docs/types/RuleLabelsValue.html +6 -5
- package/docs/types/StickType.html +6 -5
- package/docs/types/Tag.html +6 -5
- package/docs/types/Tag2D.html +6 -5
- package/docs/types/Tag3D.html +6 -5
- package/docs/types/TagContentType.html +6 -5
- package/docs/types/TagDimensionType.html +6 -5
- package/docs/types/TagElement.html +6 -5
- package/docs/types/TagEvents.html +6 -5
- package/docs/types/TagGLTFObject.html +6 -5
- package/docs/types/TagHooks.html +6 -5
- package/docs/types/TagId.html +6 -5
- package/docs/types/TagInstance.html +6 -5
- package/docs/types/TagPointType.html +6 -5
- package/docs/types/TagRendererMap.html +6 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +6 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +6 -5
- package/docs/types/WorkCode.html +6 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +6 -5
- package/docs/variables/PLUGIN.html +6 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -5
- package/docs/variables/ROOM_TYPE_MAP.html +6 -5
- package/docs/variables/itemLabelPluginServerParams.html +6 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +6 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +6 -5
- package/libs/CSS3DRenderPlugin/Controller.d.ts +4 -1
- package/libs/CSS3DRenderPlugin/Controller.js +31 -28
- package/libs/CSS3DRenderPlugin/index.js +1 -1
- package/libs/CruisePlugin/Controller.js +1 -1
- package/libs/CruisePlugin/index.js +1 -1
- package/libs/GuideLinePlugin/Components/Tag.js +68 -68
- package/libs/GuideLinePlugin/Controller.js +1 -1
- package/libs/GuideLinePlugin/GuideLineItem.js +1 -1
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +2 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +1 -1
- package/libs/GuideLinePlugin/index.js +1 -1
- package/libs/ItemLabelPlugin/ItemLabelItem.js +82 -82
- package/libs/ModelTVVideoPlugin/Plugin.js +30 -29
- package/libs/ModelTVVideoPlugin/index.js +4 -3
- package/libs/Object3DHelperPlugin/Controller.js +1 -1
- package/libs/Object3DHelperPlugin/index.js +1 -1
- package/libs/PanoCompassPlugin/Controller.js +20 -20
- package/libs/PanoCompassPlugin/index.js +1 -1
- package/libs/PanoDoorLabelPlugin/BaseController.js +1 -1
- package/libs/PanoDoorLabelPlugin/Controller.js +1 -1
- package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +60 -60
- package/libs/PanoDoorLabelPlugin/index.js +1 -1
- package/libs/PanoMeasurePlugin/Components/Controller1.js +225 -155
- package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +2 -13
- package/libs/PanoMeasurePlugin/Controller/EditController.js +142 -110
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +1 -1
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +3 -0
- package/libs/PanoMeasurePlugin/Controller/index.js +63 -66
- package/libs/PanoMeasurePlugin/Model/area.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Model/area.js +10 -5
- package/libs/PanoMeasurePlugin/Model/index.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Model/index.js +47 -39
- package/libs/PanoMeasurePlugin/Model/line.d.ts +2 -0
- package/libs/PanoMeasurePlugin/Model/line.js +6 -0
- package/libs/PanoMeasurePlugin/Model/polygon.d.ts +3 -0
- package/libs/PanoMeasurePlugin/Model/polygon.js +17 -14
- package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +16 -14
- package/libs/PanoMeasurePlugin/Modules/UIController/style.d.ts +0 -8
- package/libs/PanoMeasurePlugin/Modules/UIController/style.js +16 -24
- package/libs/PanoMeasurePlugin/index.js +19 -17
- package/libs/PanoMeasurePlugin/typings/data.d.ts +2 -1
- package/libs/PanoMeasurePlugin/typings/event.type.d.ts +3 -0
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +36 -15
- package/libs/PanoMeasurePlugin/utils/dom/base.d.ts +4 -0
- package/libs/PanoMeasurePlugin/utils/dom/base.js +37 -31
- package/libs/PanoMeasurePlugin/utils/dom/distanceItem.js +38 -23
- package/libs/PanoMeasurePlugin/utils/geometryUtil.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/geometryUtil.js +15 -13
- package/libs/PanoMeasurePlugin/utils/ndc2Screen.d.ts +2 -1
- package/libs/PanoSpatialTagPlugin/Plugin.js +1 -1
- package/libs/PanoSpatialTagPlugin/index.js +1 -1
- package/libs/PanoTagPlugin/controller/TagCache.js +1 -1
- package/libs/PanoTagPlugin/controller/TagComputer.js +1 -1
- package/libs/PanoTagPlugin/controller/TagRender.js +1 -1
- package/libs/PanoTagPlugin/controller/TagUtil.js +1 -1
- package/libs/PanoTagPlugin/controller/index.js +1 -1
- package/libs/PanoTagPlugin/index.js +1 -1
- package/libs/PanoVideoPlugin/Controller.js +1 -1
- package/libs/PanoVideoPlugin/index.js +1 -1
- package/libs/base/BasePlugin.d.ts +4 -1
- package/libs/base/BasePlugin.js +14 -11
- package/libs/components/PaintBrush/style.d.ts +1 -1
- package/libs/components/PaintBrush/style.js +4 -4
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -1
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/index.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +1 -1
- package/libs/index.js +4 -4
- package/libs/shared-utils/absoluteUrl.d.ts +5 -0
- package/libs/shared-utils/absoluteUrl.js +10 -0
- package/libs/{PanoMeasurePlugin/utils → shared-utils}/getPointFromHammerEvent.d.ts +1 -1
- package/libs/shared-utils/index.d.ts +1 -1
- package/libs/shared-utils/index.js +17 -16
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/Magnifier.js +6 -5
- package/libs/shared-utils/three/PointSelector.d.ts +37 -3
- package/libs/shared-utils/three/PointSelector.js +84 -36
- package/libs/vendor/svelte/internal/index.js +392 -345
- package/package.json +1 -1
- package/dist/shared-utils/isAbsoluteURL.d.ts +0 -1
- package/libs/shared-utils/isAbsoluteURL.d.ts +0 -1
- package/libs/shared-utils/isAbsoluteURL.js +0 -6
- /package/dist/{PanoMeasurePlugin/utils → shared-utils}/getIntersectionFromEvent.d.ts +0 -0
- /package/libs/{PanoMeasurePlugin/utils → shared-utils}/getIntersectionFromEvent.d.ts +0 -0
- /package/libs/{PanoMeasurePlugin/utils → shared-utils}/getIntersectionFromEvent.js +0 -0
- /package/libs/{PanoMeasurePlugin/utils → shared-utils}/getPointFromHammerEvent.js +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { SvelteComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { SvelteComponent as U, init as V, safe_not_equal as W, append_styles as X, element as _, create_component as q, space as E, attr as k, toggle_class as $, insert as B, mount_component as z, append as b, transition_in as c, transition_out as h, check_outros as K, detach as D, destroy_component as L, onMount as Y, onDestroy as Z, add_render_callback as R, create_bidirectional_transition as S, listen as J, group_outros as j } from "../../vendor/svelte/internal/index.js";
|
|
2
|
+
import x from "./Common/Switcher1.js";
|
|
3
|
+
import ee from "./Common/CircleButton.js";
|
|
4
|
+
import F from "../Controller/EditController.js";
|
|
5
|
+
import te from "./Common/Exit.js";
|
|
6
|
+
import { fade as A } from "../../vendor/svelte/transition/index.js";
|
|
6
7
|
import "../Modules/UIController/mobileHTML.js";
|
|
7
|
-
import "hammerjs";
|
|
8
8
|
import "../Model/line.js";
|
|
9
9
|
import "../../shared-utils/uuid.js";
|
|
10
10
|
import "../utils/line.js";
|
|
@@ -20,8 +20,6 @@ import "../../shared-utils/removeArrayItem.js";
|
|
|
20
20
|
import "../../shared-utils/throttle.js";
|
|
21
21
|
import "../Controller/BaseController.js";
|
|
22
22
|
import "../utils/ironbox.js";
|
|
23
|
-
import "../utils/getIntersectionFromEvent.js";
|
|
24
|
-
import "../utils/getPointFromHammerEvent.js";
|
|
25
23
|
import "../Model/polyline.js";
|
|
26
24
|
import "../Model/area.js";
|
|
27
25
|
import "../Model/polygon.js";
|
|
@@ -35,6 +33,7 @@ import "../utils/isIntersecting.js";
|
|
|
35
33
|
import "../../shared-utils/three/PointSelector.js";
|
|
36
34
|
import "../../shared-utils/three/PointSelectorHelper.js";
|
|
37
35
|
import "../../shared-utils/three/Magnifier.js";
|
|
36
|
+
import "hammerjs";
|
|
38
37
|
import "../../shared-utils/three/getIntersect.js";
|
|
39
38
|
import "../../shared-utils/three/PointHelper.js";
|
|
40
39
|
import "../../shared-utils/three/Assets/index.js";
|
|
@@ -57,239 +56,310 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
57
56
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
58
57
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
59
58
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
60
|
-
import "../../shared-utils/
|
|
59
|
+
import "../../shared-utils/absoluteUrl.js";
|
|
61
60
|
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
62
61
|
import "../../shared-utils/animationFrame/index.js";
|
|
63
62
|
import "../../shared-utils/isTouchDevice.js";
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
import "../../shared-utils/getIntersectionFromEvent.js";
|
|
64
|
+
import "../../shared-utils/getPointFromHammerEvent.js";
|
|
65
|
+
import "../../vendor/svelte/easing/index.js";
|
|
66
|
+
function oe(r) {
|
|
67
|
+
X(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}");
|
|
66
68
|
}
|
|
67
|
-
function
|
|
68
|
-
let t,
|
|
69
|
-
return
|
|
69
|
+
function G(r) {
|
|
70
|
+
let o, t, e, m;
|
|
71
|
+
return t = new x({
|
|
70
72
|
props: {
|
|
71
73
|
options: [{ key: "line", value: "测距离" }, { key: "area", value: "测面积" }],
|
|
72
74
|
defaultKey: (
|
|
73
75
|
/*measureController*/
|
|
74
|
-
|
|
76
|
+
r[0].currentMeasureType
|
|
75
77
|
),
|
|
76
78
|
onChange: (
|
|
77
|
-
/*
|
|
78
|
-
|
|
79
|
+
/*measureController*/
|
|
80
|
+
r[0].changeMeasureType
|
|
79
81
|
)
|
|
80
82
|
}
|
|
81
83
|
}), {
|
|
82
84
|
c() {
|
|
83
|
-
|
|
85
|
+
o = _("div"), q(t.$$.fragment), k(o, "class", "mode-switcher svelte-oflaon");
|
|
84
86
|
},
|
|
85
|
-
m(
|
|
86
|
-
|
|
87
|
+
m(l, i) {
|
|
88
|
+
B(l, o, i), z(t, o, null), m = !0;
|
|
87
89
|
},
|
|
88
|
-
p(
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
90
|
+
p(l, i) {
|
|
91
|
+
r = l;
|
|
92
|
+
const a = {};
|
|
93
|
+
i & /*measureController*/
|
|
94
|
+
1 && (a.defaultKey = /*measureController*/
|
|
95
|
+
r[0].currentMeasureType), i & /*measureController*/
|
|
96
|
+
1 && (a.onChange = /*measureController*/
|
|
97
|
+
r[0].changeMeasureType), t.$set(a);
|
|
95
98
|
},
|
|
96
|
-
i(
|
|
97
|
-
|
|
99
|
+
i(l) {
|
|
100
|
+
m || (c(t.$$.fragment, l), l && R(() => {
|
|
101
|
+
m && (e || (e = S(o, A, { duration: P }, !0)), e.run(1));
|
|
102
|
+
}), m = !0);
|
|
98
103
|
},
|
|
99
|
-
o(
|
|
100
|
-
|
|
104
|
+
o(l) {
|
|
105
|
+
h(t.$$.fragment, l), l && (e || (e = S(o, A, { duration: P }, !1)), e.run(0)), m = !1;
|
|
101
106
|
},
|
|
102
|
-
d(
|
|
103
|
-
|
|
107
|
+
d(l) {
|
|
108
|
+
l && D(o), L(t), l && e && e.end();
|
|
104
109
|
}
|
|
105
110
|
};
|
|
106
111
|
}
|
|
107
|
-
function
|
|
108
|
-
let t,
|
|
112
|
+
function H(r) {
|
|
113
|
+
let o, t, e, m, l;
|
|
109
114
|
return {
|
|
110
115
|
c() {
|
|
111
|
-
|
|
116
|
+
o = _("div"), o.textContent = "撤销", k(o, "class", "button svelte-oflaon"), $(
|
|
117
|
+
o,
|
|
118
|
+
"forbid",
|
|
119
|
+
/*buttonState*/
|
|
120
|
+
r[4] === "start"
|
|
121
|
+
);
|
|
112
122
|
},
|
|
113
|
-
m(
|
|
114
|
-
|
|
115
|
-
|
|
123
|
+
m(i, a) {
|
|
124
|
+
B(i, o, a), e = !0, m || (l = J(
|
|
125
|
+
o,
|
|
116
126
|
"click",
|
|
117
127
|
/*click_handler*/
|
|
118
|
-
|
|
119
|
-
),
|
|
128
|
+
r[13]
|
|
129
|
+
), m = !0);
|
|
120
130
|
},
|
|
121
|
-
p
|
|
122
|
-
|
|
123
|
-
|
|
131
|
+
p(i, a) {
|
|
132
|
+
r = i, (!e || a & /*buttonState*/
|
|
133
|
+
16) && $(
|
|
134
|
+
o,
|
|
135
|
+
"forbid",
|
|
136
|
+
/*buttonState*/
|
|
137
|
+
r[4] === "start"
|
|
138
|
+
);
|
|
139
|
+
},
|
|
140
|
+
i(i) {
|
|
141
|
+
e || (i && R(() => {
|
|
142
|
+
e && (t || (t = S(o, A, { duration: P }, !0)), t.run(1));
|
|
143
|
+
}), e = !0);
|
|
144
|
+
},
|
|
145
|
+
o(i) {
|
|
146
|
+
i && (t || (t = S(o, A, { duration: P }, !1)), t.run(0)), e = !1;
|
|
147
|
+
},
|
|
148
|
+
d(i) {
|
|
149
|
+
i && D(o), i && t && t.end(), m = !1, l();
|
|
124
150
|
}
|
|
125
151
|
};
|
|
126
152
|
}
|
|
127
|
-
function
|
|
128
|
-
let t,
|
|
153
|
+
function I(r) {
|
|
154
|
+
let o, t, e, m, l;
|
|
129
155
|
return {
|
|
130
156
|
c() {
|
|
131
|
-
|
|
157
|
+
o = _("div"), o.textContent = "结束", k(o, "class", "button svelte-oflaon");
|
|
132
158
|
},
|
|
133
|
-
m(
|
|
134
|
-
|
|
135
|
-
|
|
159
|
+
m(i, a) {
|
|
160
|
+
B(i, o, a), e = !0, m || (l = J(
|
|
161
|
+
o,
|
|
136
162
|
"click",
|
|
137
|
-
/*
|
|
138
|
-
|
|
139
|
-
),
|
|
163
|
+
/*complete*/
|
|
164
|
+
r[10]
|
|
165
|
+
), m = !0);
|
|
140
166
|
},
|
|
141
|
-
p
|
|
142
|
-
|
|
143
|
-
|
|
167
|
+
p(i, a) {
|
|
168
|
+
r = i;
|
|
169
|
+
},
|
|
170
|
+
i(i) {
|
|
171
|
+
e || (i && R(() => {
|
|
172
|
+
e && (t || (t = S(o, A, { duration: P }, !0)), t.run(1));
|
|
173
|
+
}), e = !0);
|
|
174
|
+
},
|
|
175
|
+
o(i) {
|
|
176
|
+
i && (t || (t = S(o, A, { duration: P }, !1)), t.run(0)), e = !1;
|
|
177
|
+
},
|
|
178
|
+
d(i) {
|
|
179
|
+
i && D(o), i && t && t.end(), m = !1, l();
|
|
144
180
|
}
|
|
145
181
|
};
|
|
146
182
|
}
|
|
147
|
-
function
|
|
148
|
-
let
|
|
149
|
-
|
|
183
|
+
function re(r) {
|
|
184
|
+
let o, t, e, m, l, i, a, y, v, d, T, g;
|
|
185
|
+
t = new te({
|
|
150
186
|
props: {
|
|
151
187
|
onClick: (
|
|
152
188
|
/*measureController*/
|
|
153
|
-
|
|
189
|
+
r[0].disable
|
|
154
190
|
)
|
|
155
191
|
}
|
|
156
192
|
});
|
|
157
|
-
let
|
|
193
|
+
let s = (
|
|
158
194
|
/*measureController*/
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
195
|
+
r[0].allowMeasureType.length >= 2 && /*buttonState*/
|
|
196
|
+
r[4] === "start" && G(r)
|
|
197
|
+
), p = (
|
|
198
|
+
/*showButton*/
|
|
199
|
+
r[2] && H(r)
|
|
163
200
|
);
|
|
164
|
-
|
|
201
|
+
d = new ee({
|
|
165
202
|
props: {
|
|
166
203
|
onClick: (
|
|
167
|
-
/*
|
|
168
|
-
|
|
204
|
+
/*func*/
|
|
205
|
+
r[14]
|
|
169
206
|
),
|
|
170
207
|
text: (
|
|
171
|
-
/*
|
|
172
|
-
|
|
173
|
-
/*
|
|
174
|
-
|
|
175
|
-
|
|
208
|
+
/*currentMeasureType*/
|
|
209
|
+
r[1] === "area" ? (
|
|
210
|
+
/*buttonAreaTextMap*/
|
|
211
|
+
r[5][
|
|
212
|
+
/*buttonState*/
|
|
213
|
+
r[4]
|
|
214
|
+
]
|
|
215
|
+
) : (
|
|
216
|
+
/*buttonLineTextMap*/
|
|
217
|
+
r[6][
|
|
218
|
+
/*buttonState*/
|
|
219
|
+
r[4]
|
|
220
|
+
]
|
|
221
|
+
)
|
|
176
222
|
),
|
|
177
223
|
color: (
|
|
178
224
|
/*buttonColorMap*/
|
|
179
|
-
|
|
225
|
+
r[7][
|
|
180
226
|
/*buttonState*/
|
|
181
|
-
|
|
227
|
+
r[4]
|
|
182
228
|
]
|
|
183
229
|
)
|
|
184
230
|
}
|
|
185
231
|
});
|
|
186
|
-
let
|
|
187
|
-
/*
|
|
188
|
-
|
|
232
|
+
let f = (
|
|
233
|
+
/*showButton*/
|
|
234
|
+
r[2] && I(r)
|
|
189
235
|
);
|
|
190
236
|
return {
|
|
191
237
|
c() {
|
|
192
|
-
|
|
193
|
-
|
|
238
|
+
o = _("div"), q(t.$$.fragment), e = E(), m = _("div"), l = _("div"), s && s.c(), i = E(), a = _("div"), p && p.c(), y = E(), v = _("div"), q(d.$$.fragment), T = E(), f && f.c(), k(v, "class", "main-button svelte-oflaon"), $(v, "forbid", !/*allowAddPoint*/
|
|
239
|
+
r[3]), k(a, "class", "controller svelte-oflaon"), k(l, "class", "center svelte-oflaon"), k(m, "class", "bottom svelte-oflaon"), k(o, "class", "Measure-Controller svelte-oflaon");
|
|
194
240
|
},
|
|
195
|
-
m(
|
|
196
|
-
|
|
241
|
+
m(n, u) {
|
|
242
|
+
B(n, o, u), z(t, o, null), b(o, e), b(o, m), b(m, l), s && s.m(l, null), b(l, i), b(l, a), p && p.m(a, null), b(a, y), b(a, v), z(d, v, null), b(a, T), f && f.m(a, null), g = !0;
|
|
197
243
|
},
|
|
198
|
-
p(
|
|
199
|
-
const
|
|
200
|
-
|
|
201
|
-
1 && (
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
244
|
+
p(n, [u]) {
|
|
245
|
+
const M = {};
|
|
246
|
+
u & /*measureController*/
|
|
247
|
+
1 && (M.onClick = /*measureController*/
|
|
248
|
+
n[0].disable), t.$set(M), /*measureController*/
|
|
249
|
+
n[0].allowMeasureType.length >= 2 && /*buttonState*/
|
|
250
|
+
n[4] === "start" ? s ? (s.p(n, u), u & /*measureController, buttonState*/
|
|
251
|
+
17 && c(s, 1)) : (s = G(n), s.c(), c(s, 1), s.m(l, i)) : s && (j(), h(s, 1, 1, () => {
|
|
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
|
+
p = null;
|
|
257
|
+
}), K());
|
|
258
|
+
const w = {};
|
|
259
|
+
u & /*buttonState*/
|
|
260
|
+
16 && (w.onClick = /*func*/
|
|
261
|
+
n[14]), u & /*currentMeasureType, buttonState*/
|
|
262
|
+
18 && (w.text = /*currentMeasureType*/
|
|
263
|
+
n[1] === "area" ? (
|
|
264
|
+
/*buttonAreaTextMap*/
|
|
265
|
+
n[5][
|
|
266
|
+
/*buttonState*/
|
|
267
|
+
n[4]
|
|
268
|
+
]
|
|
269
|
+
) : (
|
|
270
|
+
/*buttonLineTextMap*/
|
|
271
|
+
n[6][
|
|
272
|
+
/*buttonState*/
|
|
273
|
+
n[4]
|
|
274
|
+
]
|
|
275
|
+
)), u & /*buttonState*/
|
|
276
|
+
16 && (w.color = /*buttonColorMap*/
|
|
277
|
+
n[7][
|
|
219
278
|
/*buttonState*/
|
|
220
|
-
|
|
221
|
-
]),
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
279
|
+
n[4]
|
|
280
|
+
]), d.$set(w), (!g || u & /*allowAddPoint*/
|
|
281
|
+
8) && $(v, "forbid", !/*allowAddPoint*/
|
|
282
|
+
n[3]), /*showButton*/
|
|
283
|
+
n[2] ? f ? (f.p(n, u), u & /*showButton*/
|
|
284
|
+
4 && c(f, 1)) : (f = I(n), f.c(), c(f, 1), f.m(a, null)) : f && (j(), h(f, 1, 1, () => {
|
|
285
|
+
f = null;
|
|
286
|
+
}), K());
|
|
225
287
|
},
|
|
226
|
-
i(
|
|
227
|
-
g || (
|
|
288
|
+
i(n) {
|
|
289
|
+
g || (c(t.$$.fragment, n), c(s), c(p), c(d.$$.fragment, n), c(f), g = !0);
|
|
228
290
|
},
|
|
229
|
-
o(
|
|
230
|
-
|
|
291
|
+
o(n) {
|
|
292
|
+
h(t.$$.fragment, n), h(s), h(p), h(d.$$.fragment, n), h(f), g = !1;
|
|
231
293
|
},
|
|
232
|
-
d(
|
|
233
|
-
|
|
294
|
+
d(n) {
|
|
295
|
+
n && D(o), L(t), s && s.d(), p && p.d(), L(d), f && f.d();
|
|
234
296
|
}
|
|
235
297
|
};
|
|
236
298
|
}
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
299
|
+
const P = 100;
|
|
300
|
+
function ne(r, o, t) {
|
|
301
|
+
let { measureController: e } = o;
|
|
302
|
+
const m = { start: "开始", add: "添加", end: "结束" }, l = { start: "开始", add: "添加", end: "完成" }, i = {
|
|
240
303
|
start: "white",
|
|
241
304
|
add: "white",
|
|
242
305
|
end: "blue"
|
|
243
306
|
};
|
|
244
|
-
let
|
|
245
|
-
const
|
|
246
|
-
e.getCurrentMode() !== "Edit" ? e.changeMode("Edit") : (
|
|
307
|
+
let a = !1, y = !1, v = !0, d = "start", T = e.currentMeasureType;
|
|
308
|
+
const g = () => {
|
|
309
|
+
t(12, a = !0), e.getCurrentMode() !== "Edit" ? e.changeMode("Edit") : (t(4, d = "add"), s());
|
|
310
|
+
}, s = () => {
|
|
311
|
+
e.controller instanceof F && e.controller.selectPoint();
|
|
312
|
+
}, p = () => {
|
|
313
|
+
e.controller instanceof F && e.controller.complete();
|
|
314
|
+
}, f = () => {
|
|
315
|
+
s(), M("allow");
|
|
316
|
+
}, n = () => {
|
|
317
|
+
t(4, d = "end");
|
|
247
318
|
}, u = () => {
|
|
248
|
-
|
|
249
|
-
}, M = () => {
|
|
250
|
-
|
|
251
|
-
},
|
|
252
|
-
|
|
253
|
-
},
|
|
254
|
-
|
|
255
|
-
}, a = (k) => {
|
|
256
|
-
o(1, c = k === "allow");
|
|
257
|
-
}, p = (k) => {
|
|
258
|
-
o(3, b = k);
|
|
319
|
+
t(4, d = "start"), M("allow");
|
|
320
|
+
}, M = (C) => {
|
|
321
|
+
t(3, v = C === "allow");
|
|
322
|
+
}, w = (C) => {
|
|
323
|
+
t(1, T = C);
|
|
324
|
+
}, N = (C) => {
|
|
325
|
+
C.isEmpty && t(4, d = "start");
|
|
259
326
|
};
|
|
260
|
-
|
|
261
|
-
e.hook.on("measureTypeChange",
|
|
262
|
-
}),
|
|
263
|
-
e.hook.off("measureTypeChange",
|
|
327
|
+
Y(() => {
|
|
328
|
+
e.hook.on("revoke", N), e.hook.on("measureTypeChange", w), e.hook.on("modeChange", u), e.hook.on("allowAddPointStateChange", M), e.hook.on("readyComplete", n), e.hook.on("complete", u);
|
|
329
|
+
}), Z(() => {
|
|
330
|
+
e.hook.off("measureTypeChange", w), e.hook.off("modeChange", u), e.hook.off("allowAddPointStateChange", M), e.hook.off("readyComplete", n), e.hook.off("complete", u);
|
|
264
331
|
});
|
|
265
|
-
const
|
|
266
|
-
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
332
|
+
const O = () => e.revoke(), Q = () => {
|
|
333
|
+
d === "start" ? g() : d === "add" ? s() : d === "end" && f();
|
|
334
|
+
};
|
|
335
|
+
return r.$$set = (C) => {
|
|
336
|
+
"measureController" in C && t(0, e = C.measureController);
|
|
337
|
+
}, r.$$.update = () => {
|
|
338
|
+
r.$$.dirty & /*currentMeasureType, isStarted*/
|
|
339
|
+
4098 && t(2, y = T === "area" && a);
|
|
272
340
|
}, [
|
|
273
341
|
e,
|
|
274
|
-
|
|
342
|
+
T,
|
|
343
|
+
y,
|
|
344
|
+
v,
|
|
345
|
+
d,
|
|
275
346
|
m,
|
|
276
|
-
|
|
277
|
-
|
|
347
|
+
l,
|
|
348
|
+
i,
|
|
349
|
+
g,
|
|
278
350
|
s,
|
|
279
|
-
|
|
280
|
-
u,
|
|
281
|
-
M,
|
|
282
|
-
r,
|
|
351
|
+
p,
|
|
283
352
|
f,
|
|
284
|
-
|
|
285
|
-
|
|
353
|
+
a,
|
|
354
|
+
O,
|
|
355
|
+
Q
|
|
286
356
|
];
|
|
287
357
|
}
|
|
288
|
-
class
|
|
289
|
-
constructor(
|
|
290
|
-
super(),
|
|
358
|
+
class ht extends U {
|
|
359
|
+
constructor(o) {
|
|
360
|
+
super(), V(this, o, ne, re, W, { measureController: 0 }, oe);
|
|
291
361
|
}
|
|
292
362
|
}
|
|
293
363
|
export {
|
|
294
|
-
|
|
364
|
+
ht as default
|
|
295
365
|
};
|
|
@@ -7,13 +7,10 @@ export default class EditController extends BaseController {
|
|
|
7
7
|
type: string;
|
|
8
8
|
polyline: Polyline;
|
|
9
9
|
area: Area;
|
|
10
|
-
/** 拖动的控制点 */
|
|
11
|
-
private pressPoint?;
|
|
12
10
|
private hasAppendDashed;
|
|
13
11
|
private fiveElement?;
|
|
14
12
|
/** 上一个端点位置 */
|
|
15
13
|
private lastPoint;
|
|
16
|
-
private hammer?;
|
|
17
14
|
private pointSelector;
|
|
18
15
|
/** 根据 intersection 更新放大镜和吸附点 */
|
|
19
16
|
private onIntersectionUpdate;
|
|
@@ -31,24 +28,16 @@ export default class EditController extends BaseController {
|
|
|
31
28
|
*/
|
|
32
29
|
revokeLine: (_polyline?: Polyline) => void;
|
|
33
30
|
selectPoint(): void;
|
|
31
|
+
complete(): void;
|
|
34
32
|
private onMouseLeave;
|
|
35
33
|
/** 编辑线条发生改变时通知外部 */
|
|
36
34
|
private onLineChanged;
|
|
37
|
-
private onPress;
|
|
38
|
-
/**
|
|
39
|
-
* 1. 如果之前没有长按行为「即没有长按点时」-> 滑动全景
|
|
40
|
-
* 2. 如果有长按点,把长按点位置更新为当前位置
|
|
41
|
-
*/
|
|
42
|
-
private onPan;
|
|
43
|
-
private onPanEnd;
|
|
44
35
|
/**
|
|
45
36
|
* 1. 如果存在上一个点,需要绘制当前点到上一个点的连线
|
|
46
37
|
* 2. 把上一个点的位置更新为当前点的位置
|
|
47
38
|
* 3. 清除 pointSelector
|
|
48
39
|
*/
|
|
49
|
-
private
|
|
50
|
-
/** 存在长按点时不能移动全景 */
|
|
51
|
-
private onWantsPanGesture;
|
|
40
|
+
private onSelect;
|
|
52
41
|
/** 移动全景时更新 distanceItem 在屏幕上的位置 */
|
|
53
42
|
private onCameraUpdate;
|
|
54
43
|
/** 更新虚线 */
|