@realsee/dnalogel 2.21.0-dev.0 → 2.21.0-dev.10
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/GuideLinePlugin/Controller.d.ts +5 -3
- package/dist/GuideLinePlugin/GuideLineItem.d.ts +1 -1
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +17 -0
- package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +7 -0
- package/dist/PanoMeasurePlugin/Components/Common/Exit.svelte.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Components/Common/Switcher0.svelte.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Components/Common/icons/index.d.ts +4 -0
- package/dist/PanoMeasurePlugin/Components/Controller0.svelte.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +17 -18
- package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +6 -3
- package/dist/PanoMeasurePlugin/Model/area.d.ts +9 -1
- package/dist/PanoMeasurePlugin/Model/index.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Model/line.d.ts +3 -0
- package/dist/PanoMeasurePlugin/Model/polygon.d.ts +4 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +7 -3
- package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +9 -3
- package/dist/PanoMeasurePlugin/Modules/UIController/style.d.ts +0 -8
- package/dist/PanoMeasurePlugin/typings/data.d.ts +8 -2
- 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 +70 -66
- package/dist/index.js +8065 -6908
- package/dist/index.umd.js +65 -61
- package/dist/shared-utils/absoluteUrl.d.ts +5 -0
- package/dist/{PanoMeasurePlugin/utils → shared-utils}/getIntersectionFromEvent.d.ts +1 -1
- package/dist/{PanoMeasurePlugin/utils → shared-utils}/getPointFromHammerEvent.d.ts +1 -1
- package/dist/shared-utils/index.d.ts +1 -1
- package/dist/shared-utils/isTouchDevice.d.ts +1 -0
- package/dist/shared-utils/three/Magnifier.d.ts +2 -0
- package/dist/shared-utils/three/PointSelector.d.ts +76 -0
- package/dist/shared-utils/three/PointSelectorHelper.d.ts +50 -0
- package/dist/shared-utils/three/index.d.ts +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +34 -32
- package/docs/classes/CruisePluginController.html +48 -44
- package/docs/classes/GuideLineItem.GuideLineItem.html +23 -21
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +90 -33
- package/docs/classes/Magnifier.html +23 -21
- package/docs/classes/ModelRoomLabelController.html +14 -12
- package/docs/classes/Object3DHelperController.html +47 -43
- package/docs/classes/PaintBrush.html +18 -16
- package/docs/classes/PanoMeasurePluginLine.html +48 -26
- package/docs/classes/PanoMeasurePluginModel.html +44 -27
- package/docs/classes/PanoMeasurePluginPoint.html +17 -15
- package/docs/classes/PanoMeasurePluginPolyline.html +30 -28
- package/docs/classes/PanoTagPluginController.html +69 -65
- package/docs/classes/Util.BetterTween.html +12 -10
- package/docs/classes/Util.Interval.html +15 -13
- package/docs/classes/Util.Magnifier.html +42 -20
- package/docs/classes/Util.PointDomHelper.html +14 -12
- package/docs/classes/Util.PointHelper.html +14 -12
- package/docs/classes/{Util.FivePointSelector.html → Util.PointSelectorHelper.html} +105 -27
- package/docs/classes/Util.Rectangle.html +16 -14
- package/docs/enums/CameraMovementEffect.html +10 -8
- package/docs/enums/ContentType.html +23 -21
- package/docs/enums/DIRECTION.html +12 -10
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +12 -10
- package/docs/enums/DimensionType.html +10 -8
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +11 -9
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +12 -10
- package/docs/enums/PaintBrushTypeEnum.html +11 -9
- package/docs/enums/PointType.html +10 -8
- package/docs/enums/Rotation.html +11 -9
- package/docs/functions/CSS3DRenderPlugin.html +7 -5
- package/docs/functions/CameraMovementPlugin.html +7 -5
- package/docs/functions/CruisePlugin.html +7 -5
- package/docs/functions/GuideLinePlugin.html +8 -6
- package/docs/functions/ItemLabelPlugin.html +7 -5
- package/docs/functions/MapviewFloorplanPlugin.html +7 -5
- package/docs/functions/ModelChassisCompassPlugin.html +7 -5
- package/docs/functions/ModelEntryDoorGuidePlugin.html +7 -5
- package/docs/functions/ModelFloorplanPlugin.html +7 -5
- package/docs/functions/ModelItemLabelPlugin.html +7 -5
- package/docs/functions/ModelRoomLabelPlugin.html +7 -5
- package/docs/functions/ModelTVVideoPlugin.html +7 -5
- package/docs/functions/ModelViewPlugin.html +7 -5
- package/docs/functions/Object3DHelperPlugin.html +7 -5
- package/docs/functions/PanoCompassPlugin.html +7 -5
- package/docs/functions/PanoCursorRaycasterPlugin.html +7 -5
- package/docs/functions/PanoDoorLabelPlugin.html +7 -5
- package/docs/functions/PanoFloorplanRadarPlugin.html +7 -5
- package/docs/functions/PanoMeasurePlugin.html +7 -5
- package/docs/functions/PanoRulerPlugin.html +7 -5
- package/docs/functions/PanoRulerProPlugin.html +7 -5
- package/docs/functions/PanoSpatialTagPlugin.html +7 -5
- package/docs/functions/PanoTagPlugin.html +7 -5
- package/docs/functions/PanoVideoPlugin.html +7 -5
- package/docs/functions/TopviewFloorplanPlugin.html +7 -5
- package/docs/functions/Util.absoluteUrl.html +370 -0
- package/docs/functions/Util.getCoordsFromClient.html +8 -6
- package/docs/functions/Util.getCoordsFromElement.html +8 -6
- package/docs/functions/Util.getFrameTime.html +8 -6
- package/docs/functions/Util.getIntersectFromRelativePosition.html +8 -6
- package/docs/functions/Util.getRaycasterFromFivePointer.html +8 -6
- package/docs/functions/Util.isAbsoluteURL.html +8 -6
- package/docs/functions/Util.isModelLike.html +8 -6
- package/docs/functions/Util.isNil.html +8 -6
- package/docs/functions/Util.isPanoramaLike.html +8 -6
- package/docs/functions/Util.nextFrame.html +8 -6
- package/docs/functions/Util.notNil.html +8 -6
- package/docs/functions/Util.requestAnimationFrameInterval.html +8 -6
- package/docs/functions/Util.tweenProgress.html +8 -6
- package/docs/functions/Util.uuid.html +8 -6
- package/docs/functions/pluginFlag.html +8 -6
- package/docs/index.html +8 -6
- package/docs/interfaces/AddTagConfig.html +9 -7
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +14 -12
- package/docs/interfaces/CSS3DRenderPluginState.html +11 -9
- package/docs/interfaces/CameraMovementPluginExportType.html +10 -8
- package/docs/interfaces/CruisePluginTypes.Config.html +11 -9
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +15 -13
- package/docs/interfaces/CruisePluginTypes.EventMap.html +23 -21
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +15 -13
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +17 -15
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +17 -15
- package/docs/interfaces/CruisePluginTypes.PluginData.html +12 -10
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +10 -8
- package/docs/interfaces/CruisePluginTypes.PluginState.html +14 -12
- package/docs/interfaces/EventMap.html +18 -16
- package/docs/interfaces/FloorplanBounding.html +11 -9
- package/docs/interfaces/FloorplanData.html +13 -11
- package/docs/interfaces/FloorplanEntrance.html +14 -12
- package/docs/interfaces/FloorplanExtraObject.html +13 -11
- package/docs/interfaces/FloorplanExtraObject3D.html +11 -9
- package/docs/interfaces/FloorplanFloorData.html +12 -10
- package/docs/interfaces/FloorplanImagePosition.html +10 -8
- package/docs/interfaces/FloorplanObserver.html +12 -10
- package/docs/interfaces/FloorplanOutlineItem.html +12 -10
- package/docs/interfaces/FloorplanPosition.html +10 -8
- package/docs/interfaces/FloorplanRoomItem.html +16 -14
- package/docs/interfaces/FloorplanRoomLabelItem.html +10 -8
- package/docs/interfaces/FloorplanServerBounding.html +11 -9
- package/docs/interfaces/FloorplanServerComputedData.html +13 -11
- package/docs/interfaces/FloorplanServerData.html +10 -8
- package/docs/interfaces/FloorplanServerDoorItem.html +13 -11
- package/docs/interfaces/FloorplanServerDoorPosition.html +11 -9
- package/docs/interfaces/FloorplanServerEntrance.html +14 -12
- package/docs/interfaces/FloorplanServerFloorData.html +12 -10
- package/docs/interfaces/FloorplanServerImagePosition.html +10 -8
- package/docs/interfaces/FloorplanServerObserver.html +12 -10
- package/docs/interfaces/FloorplanServerOutlineItem.html +12 -10
- package/docs/interfaces/FloorplanServerPosition.html +10 -8
- package/docs/interfaces/FloorplanServerRoomItem.html +17 -15
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +10 -8
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +11 -9
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +13 -11
- package/docs/interfaces/GuideLinePluginType.EventMap.html +16 -14
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +11 -9
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +9 -7
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +16 -14
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +11 -9
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +21 -19
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +10 -8
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +21 -19
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +8 -6
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +10 -8
- package/docs/interfaces/GuideLinePluginType.PluginState.html +11 -9
- package/docs/interfaces/GuideLinePluginType.Route.html +14 -12
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +12 -10
- package/docs/interfaces/HelperOffset.html +11 -9
- package/docs/interfaces/ImagePlaneGroup.html +9 -7
- package/docs/interfaces/ItemLabelPluginData.html +9 -7
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +14 -12
- package/docs/interfaces/ItemLabelPluginParametersType.html +12 -10
- package/docs/interfaces/MinMax.html +10 -8
- package/docs/interfaces/ModelChassisCompassPluginData.html +10 -8
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +11 -9
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +10 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +11 -9
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +11 -9
- package/docs/interfaces/ModelItemLabelPluginData.html +9 -7
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +14 -12
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +10 -8
- package/docs/interfaces/ModelRoomLabelPluginData.html +9 -7
- package/docs/interfaces/ModelTVVideoPluginData.html +12 -10
- package/docs/interfaces/ModelTVVideoPluginExportType.html +11 -9
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +9 -7
- package/docs/interfaces/ModelViewPluginExportType.html +14 -12
- package/docs/interfaces/Object3DHelperState.html +11 -9
- package/docs/interfaces/ObjectHelperControllers.html +12 -10
- package/docs/interfaces/PaintBrushAction.html +15 -13
- package/docs/interfaces/PaintBrushConfigs.html +15 -13
- package/docs/interfaces/PaintBrushState.html +13 -11
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +13 -11
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +8 -6
- package/docs/interfaces/PanoMeasureParameterType.html +18 -16
- package/docs/interfaces/PanoMeasurePluginLineJson.html +11 -9
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +10 -8
- package/docs/interfaces/PanoMeasurePluginPointJson.html +10 -8
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +11 -9
- package/docs/interfaces/PanoRulerPluginExportType.html +13 -11
- package/docs/interfaces/PanoRulerPluginOptions.html +10 -8
- package/docs/interfaces/PanoRulerPluginParameterType.html +11 -9
- package/docs/interfaces/PanoRulerProPluginExportType.html +12 -10
- package/docs/interfaces/PanoRulerProPluginOptions.html +10 -8
- package/docs/interfaces/PanoRulerProPluginParameterType.html +10 -8
- package/docs/interfaces/PanoRulerProPluginState.html +11 -9
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +8 -6
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +8 -6
- package/docs/interfaces/PanoSpatialTagPluginData.html +14 -12
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +13 -11
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +16 -14
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +13 -11
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +16 -14
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +14 -12
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +13 -11
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +9 -7
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +11 -9
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +9 -7
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +12 -10
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +9 -7
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +11 -9
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +13 -11
- package/docs/interfaces/Point.html +11 -9
- package/docs/interfaces/Room.html +12 -10
- package/docs/interfaces/RoomInfo.html +10 -8
- package/docs/interfaces/RoomLabel.html +17 -15
- package/docs/interfaces/RoomRules.html +8 -6
- package/docs/interfaces/Rooms.html +8 -6
- package/docs/interfaces/Scissor.html +12 -10
- package/docs/interfaces/State.html +11 -9
- package/docs/interfaces/TagCacheInterface.html +15 -13
- package/docs/interfaces/TagConfig.html +16 -14
- package/docs/interfaces/TagGLTFObjectGroup.html +9 -7
- package/docs/interfaces/TagIconUrl.html +15 -13
- package/docs/interfaces/TagObjectGroup.html +9 -7
- package/docs/interfaces/TagStyle.html +9 -7
- package/docs/interfaces/Tags.html +12 -10
- package/docs/interfaces/TemporaryState.html +9 -7
- package/docs/interfaces/Util.MagnifierParameter.html +14 -12
- package/docs/interfaces/Util.MouseGroupParameter.html +11 -9
- package/docs/interfaces/Util.PointIntersection.html +408 -0
- package/docs/modules/CruisePluginTypes.html +8 -6
- package/docs/modules/GuideLineItem.html +8 -6
- package/docs/modules/GuideLineModeItem.html +8 -6
- package/docs/modules/GuideLinePluginType.html +8 -6
- package/docs/modules/PanoVideoPluginType.html +8 -6
- package/docs/modules/Util.html +11 -7
- package/docs/modules.html +7 -5
- package/docs/types/ArrayPosition.html +8 -6
- package/docs/types/AudioAppearance.html +8 -6
- package/docs/types/AudioTagTypeConfigKey.html +8 -6
- package/docs/types/CSS3DRenderExportType.html +8 -6
- package/docs/types/CSS3DRenderPluginExportType.html +8 -6
- package/docs/types/CSS3DRenderPluginParameterType.html +8 -6
- package/docs/types/ClassFunctionParameters.html +8 -6
- package/docs/types/Color.html +8 -6
- package/docs/types/ContentTypeConfigKey.html +8 -6
- package/docs/types/ContentTypeConfigKeySplit.html +8 -6
- package/docs/types/ContentTypeMap.html +8 -6
- package/docs/types/Create3DDomContainerReturnType.html +8 -6
- package/docs/types/Create3DElementReturnType.html +8 -6
- package/docs/types/CruisePluginExportType.html +8 -6
- package/docs/types/CruisePluginTypes.CruiseData.html +8 -6
- package/docs/types/CruisePluginTypes.MoveEffect.html +8 -6
- package/docs/types/DeprecatedMediaPlaneProperty.html +8 -6
- package/docs/types/DeprecatedTagProperty.html +8 -6
- package/docs/types/Direction-1.html +8 -6
- package/docs/types/Direction4.html +8 -6
- package/docs/types/ElementRenderer.html +8 -6
- package/docs/types/FloorplanRuleLabels.html +8 -6
- package/docs/types/FloorplanServerRuleLabels.html +8 -6
- package/docs/types/GuideLinePluginExportType.html +8 -6
- package/docs/types/GuideLinePluginType.GuideLineItem.html +8 -6
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +8 -6
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +8 -6
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +8 -6
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +8 -6
- package/docs/types/GuideLinePluginType.PathItem.html +8 -6
- package/docs/types/GuideLinePluginType.PluginData.html +8 -6
- package/docs/types/HelperEventMap.html +8 -6
- package/docs/types/LoadTagConfig.html +8 -6
- package/docs/types/MapviewFloorplanPluginParameterType.html +8 -6
- package/docs/types/MapviewFloorplanPluginReturnType.html +8 -6
- package/docs/types/MediaData.html +8 -6
- package/docs/types/MediaStore.html +8 -6
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +8 -6
- package/docs/types/ModelFloorplanPluginParameterType.html +8 -6
- package/docs/types/ModelFloorplanPluginReturnType.html +8 -6
- package/docs/types/ModelRoomLabelPluginParameters.html +8 -6
- package/docs/types/ModelRoomLabelPluginReturnType.html +8 -6
- package/docs/types/MoveArgs.html +8 -6
- package/docs/types/MoveOpts.html +8 -6
- package/docs/types/Object3DHelperEventMap.html +8 -6
- package/docs/types/ObjectFit.html +8 -6
- package/docs/types/PaintBrushEventMap.html +8 -6
- package/docs/types/PanoCompassPluginData.html +8 -6
- package/docs/types/PanoCompassPluginExportType.html +8 -6
- package/docs/types/PanoCompassPluginParameterType.html +8 -6
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +8 -6
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +8 -6
- package/docs/types/PanoIndex.html +8 -6
- package/docs/types/PanoMeasurePluginEvent.html +8 -6
- package/docs/types/PanoMeasureReturnType.html +8 -6
- package/docs/types/PanoSpatialTagPluginId.html +8 -6
- package/docs/types/PanoTagPluginExportInterface.html +8 -6
- package/docs/types/PanoTagPluginParamsInterface.html +8 -6
- package/docs/types/PanoVideoPluginParameterType.html +8 -6
- package/docs/types/PanoVideoPluginReturnType.html +8 -6
- package/docs/types/PartialObjectDeep.html +8 -6
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +8 -6
- package/docs/types/PlaneTag.html +8 -6
- package/docs/types/Point2DTag.html +8 -6
- package/docs/types/Point3DTag.html +8 -6
- package/docs/types/PointTag.html +8 -6
- package/docs/types/PointTagInstance.html +8 -6
- package/docs/types/Position.html +8 -6
- package/docs/types/RotateArgs.html +8 -6
- package/docs/types/RotateOpts.html +8 -6
- package/docs/types/RuleLabelsKey.html +8 -6
- package/docs/types/RuleLabelsValue.html +8 -6
- package/docs/types/StickType.html +8 -6
- package/docs/types/Tag.html +8 -6
- package/docs/types/Tag2D.html +8 -6
- package/docs/types/Tag3D.html +8 -6
- package/docs/types/TagContentType.html +8 -6
- package/docs/types/TagDimensionType.html +8 -6
- package/docs/types/TagElement.html +8 -6
- package/docs/types/TagEvents.html +8 -6
- package/docs/types/TagGLTFObject.html +8 -6
- package/docs/types/TagHooks.html +8 -6
- package/docs/types/TagId.html +8 -6
- package/docs/types/TagInstance.html +8 -6
- package/docs/types/TagPointType.html +8 -6
- package/docs/types/TagRendererMap.html +8 -6
- package/docs/types/TopviewFloorplanPluginParameterType.html +8 -6
- package/docs/types/TopviewFloorplanPluginReturnType.html +8 -6
- package/docs/types/WorkCode.html +8 -6
- package/docs/variables/FLOOR_TYPE_MAP.html +8 -6
- package/docs/variables/PLUGIN.html +8 -6
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +8 -6
- package/docs/variables/ROOM_TYPE_MAP.html +8 -6
- package/docs/variables/itemLabelPluginServerParams.html +8 -6
- package/docs/variables/modelItemLabelPluginServerParams.html +8 -6
- package/docs/variables/modelRoomLabelPluginServerParams.html +8 -6
- 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 +137 -44
- package/libs/GuideLinePlugin/Controller.d.ts +5 -3
- package/libs/GuideLinePlugin/Controller.js +49 -45
- package/libs/GuideLinePlugin/GuideLineItem/index.js +1 -1
- package/libs/GuideLinePlugin/GuideLineItem.d.ts +1 -1
- package/libs/GuideLinePlugin/GuideLineItem.js +1 -1
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +150 -113
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +17 -0
- package/libs/GuideLinePlugin/GuideLineModeItem.js +1 -1
- package/libs/GuideLinePlugin/index.js +1 -1
- package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +7 -0
- package/libs/GuideLinePlugin/utils/createLineGeometry.js +19 -17
- package/libs/ItemLabelPlugin/ItemLabelItem.js +82 -82
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +77 -77
- 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/Common/CircleButton.js +78 -42
- package/libs/PanoMeasurePlugin/Components/Common/Exit.js +42 -0
- package/libs/PanoMeasurePlugin/Components/Common/Exit.svelte.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Components/Common/Switcher0.js +113 -117
- package/libs/PanoMeasurePlugin/Components/Common/Switcher1.js +71 -71
- package/libs/PanoMeasurePlugin/Components/Common/icons/index.d.ts +4 -0
- package/libs/PanoMeasurePlugin/Components/Common/icons/index.js +7 -0
- package/libs/PanoMeasurePlugin/Components/Controller0.js +188 -65
- package/libs/PanoMeasurePlugin/Components/Controller1.js +353 -108
- package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +2 -0
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +7 -6
- package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +17 -18
- package/libs/PanoMeasurePlugin/Controller/EditController.js +232 -127
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +5 -5
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +1 -1
- package/libs/PanoMeasurePlugin/Controller/WatchController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +15 -14
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +6 -3
- package/libs/PanoMeasurePlugin/Controller/index.js +93 -79
- package/libs/PanoMeasurePlugin/Model/area.d.ts +9 -1
- package/libs/PanoMeasurePlugin/Model/area.js +23 -11
- package/libs/PanoMeasurePlugin/Model/index.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Model/index.js +47 -39
- package/libs/PanoMeasurePlugin/Model/line.d.ts +3 -0
- package/libs/PanoMeasurePlugin/Model/line.js +27 -20
- package/libs/PanoMeasurePlugin/Model/point.js +17 -12
- package/libs/PanoMeasurePlugin/Model/polygon.d.ts +4 -0
- package/libs/PanoMeasurePlugin/Model/polygon.js +21 -15
- package/libs/PanoMeasurePlugin/Model/polyline.js +6 -6
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +7 -3
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +34 -24
- package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +9 -3
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +120 -43
- package/libs/PanoMeasurePlugin/Modules/UIController/style.d.ts +0 -8
- package/libs/PanoMeasurePlugin/Modules/UIController/style.js +16 -24
- package/libs/PanoMeasurePlugin/index.js +55 -37
- package/libs/PanoMeasurePlugin/typings/data.d.ts +8 -2
- 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/generatePolygonGeometry.js +3 -3
- 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 +2 -2
- 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/Components/RoomHighlight/Room.js +54 -54
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +8 -8
- 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/Components/CurrentFloor/CurrentFloor.js +30 -28
- 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 +128 -122
- package/libs/shared-utils/absoluteUrl.d.ts +5 -0
- package/libs/shared-utils/absoluteUrl.js +10 -0
- package/libs/{PanoMeasurePlugin/utils → shared-utils}/getIntersectionFromEvent.d.ts +1 -1
- 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 +21 -20
- package/libs/shared-utils/isTouchDevice.d.ts +1 -0
- package/libs/shared-utils/isTouchDevice.js +4 -0
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/Magnifier.d.ts +2 -0
- package/libs/shared-utils/three/Magnifier.js +11 -5
- package/libs/shared-utils/three/PointSelector.d.ts +76 -0
- package/libs/shared-utils/three/PointSelector.js +132 -0
- package/libs/shared-utils/three/PointSelectorHelper.d.ts +50 -0
- package/libs/shared-utils/three/PointSelectorHelper.js +100 -0
- package/libs/shared-utils/three/index.d.ts +1 -1
- package/libs/vendor/svelte/internal/index.js +392 -345
- package/package.json +1 -1
- package/dist/shared-utils/isAbsoluteURL.d.ts +0 -1
- package/dist/shared-utils/three/FivePointSelector.d.ts +0 -36
- package/libs/shared-utils/isAbsoluteURL.d.ts +0 -1
- package/libs/shared-utils/isAbsoluteURL.js +0 -6
- package/libs/shared-utils/three/FivePointSelector.d.ts +0 -36
- package/libs/shared-utils/three/FivePointSelector.js +0 -49
- /package/libs/{PanoMeasurePlugin/utils → shared-utils}/getIntersectionFromEvent.js +0 -0
- /package/libs/{PanoMeasurePlugin/utils → shared-utils}/getPointFromHammerEvent.js +0 -0
|
@@ -80,5 +80,8 @@ export default class Controller extends CSS3DRender implements BasePlugin.Contro
|
|
|
80
80
|
appendToElement: (element: HTMLElement) => import("./utils/three/CSS3DRenderer").default;
|
|
81
81
|
};
|
|
82
82
|
getBehindFiveElement(): HTMLElement;
|
|
83
|
-
|
|
83
|
+
/**
|
|
84
|
+
* @description: 获取静态资源的url
|
|
85
|
+
*/
|
|
86
|
+
absoluteUrl(url: string): string;
|
|
84
87
|
}
|
|
@@ -12,14 +12,16 @@ export default class Controller extends BasePluginWithData.Controller<PluginStat
|
|
|
12
12
|
readonly cruisePlugin: CruisePluginController;
|
|
13
13
|
/** GuideLineItem 索引 */
|
|
14
14
|
readonly itemMap: Map<string | number, GuideLineItem>;
|
|
15
|
-
|
|
16
|
-
private heightOffset;
|
|
17
|
-
get disposed(): boolean;
|
|
15
|
+
get config(): Config;
|
|
18
16
|
state: {
|
|
19
17
|
visible: boolean;
|
|
20
18
|
enabled: boolean;
|
|
21
19
|
};
|
|
22
20
|
protected data?: PluginData;
|
|
21
|
+
/** 当新增一根线时,整体高度的偏移值 */
|
|
22
|
+
private heightOffset;
|
|
23
|
+
get disposed(): boolean;
|
|
24
|
+
private _config;
|
|
23
25
|
private _disposed;
|
|
24
26
|
constructor(five: Five, config?: Config);
|
|
25
27
|
load(serverData: PluginServerData | PluginData, state?: PluginState, userAction?: boolean): Promise<void>;
|
|
@@ -2,7 +2,7 @@ import type { Five } from '@realsee/five';
|
|
|
2
2
|
import type GuideLinePlugin from './Controller';
|
|
3
3
|
import type * as PluginType from './typing';
|
|
4
4
|
import { GuideLineModeItem } from './GuideLineModeItem';
|
|
5
|
-
import { CruisePluginTypes } from '../CruisePlugin';
|
|
5
|
+
import type { CruisePluginTypes } from '../CruisePlugin';
|
|
6
6
|
import { Subscribe } from '@realsee/five';
|
|
7
7
|
/** 路线引导实例。
|
|
8
8
|
* - 路线包括两个部分:全景路线和模型路线。
|
|
@@ -18,12 +18,19 @@ declare class GuideLineModeItem {
|
|
|
18
18
|
get panoGroup(): number[];
|
|
19
19
|
/** 可展示的楼层 */
|
|
20
20
|
get visibleFloorIndexes(): number[];
|
|
21
|
+
/** THREE Curve 路径 */
|
|
22
|
+
get curvePath(): THREE.CurvePath<THREE.Vector3>;
|
|
23
|
+
/** THREE Curve 路径上的点 */
|
|
24
|
+
get curvePoints(): THREE.Vector3[];
|
|
25
|
+
name: string;
|
|
21
26
|
startTagContainer: GuideLineTagContainer;
|
|
22
27
|
endTagContainer: GuideLineTagContainer;
|
|
23
28
|
readonly mesh: THREE.Mesh<THREE.BufferGeometry, THREE.ShaderMaterial>;
|
|
24
29
|
private five;
|
|
25
30
|
private mode;
|
|
26
31
|
private path;
|
|
32
|
+
private _curvePath;
|
|
33
|
+
private _curvePoints;
|
|
27
34
|
private _panoGroup;
|
|
28
35
|
private skippedPositions;
|
|
29
36
|
private textureUrl;
|
|
@@ -47,6 +54,8 @@ declare class GuideLineModeItem {
|
|
|
47
54
|
private disposed;
|
|
48
55
|
private flowAnime;
|
|
49
56
|
private flickerAnime;
|
|
57
|
+
/** 缓存 panoGroup 中每个点距离起点的长度 */
|
|
58
|
+
private cacheLengths;
|
|
50
59
|
constructor(five: Five, options: {
|
|
51
60
|
mode: PluginType.GuideLineModeItemMode;
|
|
52
61
|
plugin: GuideLinePlugin;
|
|
@@ -90,6 +99,14 @@ declare class GuideLineModeItem {
|
|
|
90
99
|
setEndTag(tag: Tag | PluginType.ModelGuideLineTagData | null): void;
|
|
91
100
|
/** 闪烁 */
|
|
92
101
|
flicker(): void;
|
|
102
|
+
/** 求起点到 panoIndex 曲线长度
|
|
103
|
+
* @param index panoIndex 在 panoGroup 中的索引
|
|
104
|
+
*
|
|
105
|
+
* @description 为什么不使用 panoIndex 作为参数?
|
|
106
|
+
* - panoIndex 在一个曲线中可能出现多次,无法确定是哪一个。
|
|
107
|
+
*/
|
|
108
|
+
getLengthByPanoGroupIndex(index: number): number | void;
|
|
109
|
+
private getPanoGroupLengths;
|
|
93
110
|
private setTag;
|
|
94
111
|
/** 开始走点动画 */
|
|
95
112
|
private onWalkAnimationStart;
|
|
@@ -19,5 +19,12 @@ interface LineGeometryOption {
|
|
|
19
19
|
export declare function createLineGeometry(options: LineGeometryOption): {
|
|
20
20
|
geometry: THREE.BufferGeometry;
|
|
21
21
|
maxU: number;
|
|
22
|
+
curvePath?: undefined;
|
|
23
|
+
curvePoints?: undefined;
|
|
24
|
+
} | {
|
|
25
|
+
geometry: THREE.BufferGeometry;
|
|
26
|
+
maxU: number;
|
|
27
|
+
curvePath: THREE.CurvePath<THREE.Vector3>;
|
|
28
|
+
curvePoints: THREE.Vector3[];
|
|
22
29
|
};
|
|
23
30
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponentTyped as default } from 'svelte/internal';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponentTyped as default } from 'svelte/internal';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const IconUndo = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAASKADAAQAAAABAAAASAAAAACQMUbvAAAFfUlEQVR4Ae2aSYgdRRjHMy6473FDc9GDKB68CSqIicspHhQDXgRBQTSJChEUUQ/iVdGLiHgVBAUPUXKZKIKQi3jJYaKIjLiguC9RiWb8/Sb9hfJZ9ex67zmZaeuD/1T117V9v6qu7tc969Y1awQagUagEWgEGoFGoBFoBBqBRqARGAyBpaWlm9Eu9A7aiuYGE9y0gQDjHrQPLXSp+dunbfdI1D9q1p0C4j7afLBrN1bNQY6vn3VfK9HeMbPsBDj30969mTadiJMy/lXvmhkg4Owg2rtXfcSVA5zJJQachzs4Xkol20C5uORKZVadf2pABP0oUd2J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O6V5Tv3tvzyc7TnaMY1v+75099g08um5U/H78+G4pAzZognnMeC8WyzR40QE16PooSIE5SA3IVfPNygNKoKzXWc2AKT+1BcATKNMpKO+KGvgtuEElO7CXlaunKng0Mbh2Tff1wTjMve/OyJYB5rK1eRlZFAGFOfMa+GLMpbXImDTKDta13JxTphRR7/mT4ntwPl4+WjKPwZQa86cA4xBRhoDTYMz8PQ4+hKs9dJzKcw4l543H0qBCknzu9dz6FXgxJj0T2WTAPLX8GfIrwMu5dRsLx18OtAITjixciINEJHaZkAyn/rNRz3LLKA30cuA2U86U7OzamMfupRKVyIvt5hBA7e9kMfhy+1Ho3uNcC2fpmnedn1L6AT5VOyXi91A+ZT0P7OJADkaIPnG7kRkUM7kAeTMhjxO72R9+yqVq34soP9mjUAj0Ag0Ao1AI9AINAKNQCPQCDQCjUAj8L8j8BdMDI4sjknmbgAAAABJRU5ErkJggg==";
|
|
2
|
+
export declare const IconOk = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAASKADAAQAAAABAAAASAAAAACQMUbvAAAFO0lEQVR4Ae2YWYgdRRSG78SFOG6Ju4MxIRnRgCCKBlSC24P64IO4h7wI6oMPCioqAX1TfFIQRFFBETQmIioqGhDBh3GJiMSAZnABNSIuUQTFbcz4fZcup297b9+t7525wznwU11d1aervj6nurprtbAgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEMgIzM7OLkHL0STaJ8DMgRkDyDK0CX2MptEUOrMbSGPddB6VvkAwUo5Hd6OzCuP+hfr5Y2NjvxbON60uaXp2hE8CZ3+GfzJ6ABXhOLND0VoPOrF9O+k0Kn2AM85Y16M70UTJuL8taWtoWjSAgHMYM7sQ3YyWN8yysbKZ9NrdeKp1bVGsQcBxvbkUXYsOaD3d2jbabgXQ3yV9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AAAASUVORK5CYII=";
|
|
4
|
+
export declare const IconArea = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAADbN2wMAAAByElEQVRoBe1ZMU4DMRC8Q7yCJjVNKCh4ARVfAPo0PCYNPeQLVLyAggIa6jQ8g2NGsiJjeUfHrdGd0K60Sm7t3R3P+hx503UhwUAwEAzMyUCvkg/DcITxa+gldAXdQ5+hu77vv/DZTKbmMheQAt4D4XkF5Stsm1aL8OQiw5aQ+Rp4zqed461kci5VgUegO22F0BnnA9W+qcVQFeCeX4qYWNQC+MIuRUwsxwIhTxu1hV4w/ib8fzN0hskXwoFYqqIqsIMHT5uafML4XhuYaGMsxqwJMRBLVcyXmLOzs/ku8ybzTDhkthZfiWUNzSuxxbP8zVEV6HjOQx8KdNw2rcEzBWP+2JLMTQwctEQuwHJakj0WMHc1ogJRAScDsYWcBLrdowJuCp0BogJOAt3uUQE3hc4AUQEngW73/10BXimhtwVNvIDLq2gxf+wjYzL2QZg7XWsPtvKLCSQ5Wq1FXsCfoK2ulsRxBT2BliLbmGoLqXYfE/EC3koYqwae8WUbU1UgWoutyoM4KyuW2kJ7y2kGu4nF01rcVnpGk9aWTrq8eVbGad5alO2+MvuIZ9XGlLnMl5hJ01HK02ixfzGNICemBAPBQDDwhwx8A43PdoQvgLfYAAAAAElFTkSuQmCC";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponentTyped as default } from 'svelte/internal';
|
|
@@ -19,6 +19,7 @@ export interface ControllerParams {
|
|
|
19
19
|
fiveHelper: FiveHelper;
|
|
20
20
|
openParams: OpenParameter;
|
|
21
21
|
editParams: EditParameter;
|
|
22
|
+
magnifierParams: ConstructorParameters<typeof Magnifier>[1];
|
|
22
23
|
getMeasureType: () => MeasureType;
|
|
23
24
|
hook: Subscribe<PanoMeasurePluginEvent>;
|
|
24
25
|
userDistanceItemCreator?: () => UserDistanceItem;
|
|
@@ -36,6 +37,7 @@ export default class BaseController {
|
|
|
36
37
|
protected container: Element;
|
|
37
38
|
protected fiveHelper: FiveHelper;
|
|
38
39
|
protected editParams: EditParameter;
|
|
40
|
+
protected magnifierParams: ConstructorParameters<typeof Magnifier>[1];
|
|
39
41
|
protected hook: ControllerParams['hook'];
|
|
40
42
|
protected magnifier: ControllerParams['magnifier'];
|
|
41
43
|
protected userDistanceItemCreator: ControllerParams['userDistanceItemCreator'];
|
|
@@ -7,14 +7,12 @@ 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
|
-
private hasAppendMouseGroup;
|
|
14
11
|
private fiveElement?;
|
|
15
12
|
/** 上一个端点位置 */
|
|
16
13
|
private lastPoint;
|
|
17
|
-
private
|
|
14
|
+
private pointSelector;
|
|
15
|
+
private deleteDom;
|
|
18
16
|
/** 根据 intersection 更新放大镜和吸附点 */
|
|
19
17
|
private onIntersectionUpdate;
|
|
20
18
|
constructor(params: ControllerParams);
|
|
@@ -30,29 +28,30 @@ export default class EditController extends BaseController {
|
|
|
30
28
|
* @description: 测距的撤销功能
|
|
31
29
|
*/
|
|
32
30
|
revokeLine: (_polyline?: Polyline) => void;
|
|
31
|
+
selectPoint(): void;
|
|
32
|
+
complete(): void;
|
|
33
33
|
private onMouseLeave;
|
|
34
34
|
/** 编辑线条发生改变时通知外部 */
|
|
35
35
|
private onLineChanged;
|
|
36
|
-
private
|
|
37
|
-
/**
|
|
38
|
-
* 1. 如果之前没有长按行为「即没有长按点时」-> 滑动全景
|
|
39
|
-
* 2. 如果有长按点,把长按点位置更新为当前位置
|
|
40
|
-
*/
|
|
41
|
-
private onPan;
|
|
42
|
-
private onPanEnd;
|
|
36
|
+
private onWantsSelect;
|
|
43
37
|
/**
|
|
44
38
|
* 1. 如果存在上一个点,需要绘制当前点到上一个点的连线
|
|
45
39
|
* 2. 把上一个点的位置更新为当前点的位置
|
|
46
|
-
* 3. 清除
|
|
40
|
+
* 3. 清除 pointSelector
|
|
47
41
|
*/
|
|
48
|
-
private
|
|
49
|
-
private onWantsTapGesture;
|
|
50
|
-
/** 编辑时取消走点 */
|
|
51
|
-
private onWantsToMoveToPano;
|
|
52
|
-
/** 存在长按点时不能移动全景 */
|
|
53
|
-
private onWantsPanGesture;
|
|
42
|
+
private onSelect;
|
|
54
43
|
/** 移动全景时更新 distanceItem 在屏幕上的位置 */
|
|
55
44
|
private onCameraUpdate;
|
|
56
45
|
/** 更新虚线 */
|
|
57
46
|
private updateDashed;
|
|
47
|
+
private wantsTapGesture;
|
|
48
|
+
private chooseLine;
|
|
49
|
+
private chooseArea;
|
|
50
|
+
private highlightArea;
|
|
51
|
+
private unHighlightArea;
|
|
52
|
+
private highlightLines;
|
|
53
|
+
private unHighlightLines;
|
|
54
|
+
private highlightLine;
|
|
55
|
+
private deleteArea;
|
|
56
|
+
private deleteLine;
|
|
58
57
|
}
|
|
@@ -14,9 +14,9 @@ export default class WatchController extends BaseController {
|
|
|
14
14
|
highlightLine(line: Line): void;
|
|
15
15
|
clearHighlightLines(): void;
|
|
16
16
|
private highlightArea;
|
|
17
|
+
private unHighlightArea;
|
|
17
18
|
private highlightLines;
|
|
18
19
|
private unHighlightLines;
|
|
19
|
-
private unHighlightArea;
|
|
20
20
|
private onPanStart;
|
|
21
21
|
private onPanEnd;
|
|
22
22
|
private onPan;
|
|
@@ -12,6 +12,7 @@ import { type UIControllerParams } from '../Modules/UIController';
|
|
|
12
12
|
import { type GuideControllerParams } from '../Modules/GuideController';
|
|
13
13
|
import { Magnifier } from '../../shared-utils';
|
|
14
14
|
import type { MagnifierParameter } from '../../shared-utils';
|
|
15
|
+
import type Area from '../Model/area';
|
|
15
16
|
export type Mode = 'Watch' | 'Edit' | 'Mixed' | 'View';
|
|
16
17
|
export interface PanoMeasureParameterType extends Partial<Config> {
|
|
17
18
|
editParams?: EditParameter;
|
|
@@ -26,14 +27,14 @@ export default class MeasureController {
|
|
|
26
27
|
hook: Subscribe<PanoMeasurePluginEvent>;
|
|
27
28
|
magnifier: Magnifier;
|
|
28
29
|
controller: WatchController | EditController | MixedController | ViewController | null;
|
|
30
|
+
/** 允许的测量类型 */
|
|
31
|
+
allowMeasureType: Array<MeasureType>;
|
|
29
32
|
/** 当前的测量类型 */
|
|
30
33
|
currentMeasureType: MeasureType | null;
|
|
31
34
|
private five;
|
|
32
35
|
private model;
|
|
33
36
|
private group;
|
|
34
37
|
private config;
|
|
35
|
-
/** 允许的测量类型 */
|
|
36
|
-
private allowMeasureType;
|
|
37
38
|
private isMobile;
|
|
38
39
|
private fiveHelper;
|
|
39
40
|
private useUIController?;
|
|
@@ -60,7 +61,7 @@ export default class MeasureController {
|
|
|
60
61
|
* @description 清除标尺线条
|
|
61
62
|
* @description 还原点位展示和默认鼠标 UI
|
|
62
63
|
*/
|
|
63
|
-
disable()
|
|
64
|
+
disable: () => void;
|
|
64
65
|
getCurrentMode: () => Mode | null;
|
|
65
66
|
/** 变更场景
|
|
66
67
|
* @description 如果从编辑场景改变到观看场景,不会自动保存,默认丢弃所有改动
|
|
@@ -75,6 +76,7 @@ export default class MeasureController {
|
|
|
75
76
|
/** 撤销编辑 */
|
|
76
77
|
revoke(): void;
|
|
77
78
|
removePolyline(polyline: Polyline): void;
|
|
79
|
+
removeArea(area: Area): void;
|
|
78
80
|
removePolylineByID(id: string): void;
|
|
79
81
|
getPolylineByID(id: string): Polyline;
|
|
80
82
|
getEditedPolyline(): void;
|
|
@@ -96,6 +98,7 @@ export default class MeasureController {
|
|
|
96
98
|
/** 导出数据 */
|
|
97
99
|
toJson(): PluginData;
|
|
98
100
|
/**
|
|
101
|
+
* @deprecated 暂不支持
|
|
99
102
|
* @description 改变插件的模式(pc端模式或移动端模式)
|
|
100
103
|
* @param isMobile true为移动端模式,false为pc端
|
|
101
104
|
*/
|
|
@@ -18,6 +18,7 @@ export default class Area {
|
|
|
18
18
|
id: string;
|
|
19
19
|
selected: boolean;
|
|
20
20
|
text?: string;
|
|
21
|
+
readonly type = "area";
|
|
21
22
|
readonly lightMesh: FiveLine;
|
|
22
23
|
readonly areaItem: AreaItem;
|
|
23
24
|
readonly hook: Subscribe<AreaHook>;
|
|
@@ -43,7 +44,14 @@ export default class Area {
|
|
|
43
44
|
five?: Five;
|
|
44
45
|
});
|
|
45
46
|
addPoints(point: THREE.Vector3): void;
|
|
46
|
-
|
|
47
|
+
/**
|
|
48
|
+
* @description: 移除最后一个添加的点
|
|
49
|
+
*/
|
|
50
|
+
popPoint(): void;
|
|
51
|
+
/**
|
|
52
|
+
* @description: 自动补全多边形的各个边
|
|
53
|
+
*/
|
|
54
|
+
complete(): void;
|
|
47
55
|
hideArea(): void;
|
|
48
56
|
showArea(): void;
|
|
49
57
|
/**
|
|
@@ -28,6 +28,7 @@ export declare class Model {
|
|
|
28
28
|
addArea(area: Area): void;
|
|
29
29
|
replacePolylineByID(id: string, polyline: Polyline): void;
|
|
30
30
|
removePolyline(polyline: Polyline): void;
|
|
31
|
+
removeArea(area: Area): void;
|
|
31
32
|
getPolylineByID(id: string): Polyline;
|
|
32
33
|
getPolylineByLine(line: Line): Polyline;
|
|
33
34
|
getLineByID(id: string): Line;
|
|
@@ -22,7 +22,10 @@ export default class Line {
|
|
|
22
22
|
readonly hook: Subscribe<ILineHook>;
|
|
23
23
|
readonly distanceItem: DistanceItem;
|
|
24
24
|
private polyline?;
|
|
25
|
+
private visible?;
|
|
25
26
|
constructor(point: Point, anotherPoint: Point, model: Model);
|
|
27
|
+
hide(): void;
|
|
28
|
+
show(): void;
|
|
26
29
|
setPoints(startPoint: THREE.Vector3, endPoint: THREE.Vector3): void;
|
|
27
30
|
remove(): void;
|
|
28
31
|
clear(): void;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
2
|
import { IObject3D } from '../../shared-utils/three/IObject3D';
|
|
3
|
+
export declare const blankGeometry: THREE.BufferGeometry;
|
|
3
4
|
export default class PolygonMesh extends IObject3D {
|
|
5
|
+
readonly isPolygonMesh = true;
|
|
4
6
|
geometry: THREE.BufferGeometry;
|
|
7
|
+
isBlank: boolean;
|
|
8
|
+
points: THREE.Vector3[];
|
|
5
9
|
constructor(points?: THREE.Vector3[]);
|
|
6
10
|
/**
|
|
7
11
|
* @description: 按照新的端点来更新多边形的geometry
|
|
@@ -6,21 +6,25 @@ export default class DeleteDom {
|
|
|
6
6
|
private lines;
|
|
7
7
|
private points;
|
|
8
8
|
private onClick;
|
|
9
|
-
private
|
|
9
|
+
private cancel;
|
|
10
10
|
private content;
|
|
11
11
|
private container;
|
|
12
12
|
private masking;
|
|
13
|
+
private target;
|
|
13
14
|
constructor(five: Five, opts?: {
|
|
14
|
-
onClick?: (e: MouseEvent) => void;
|
|
15
|
-
|
|
15
|
+
onClick?: (e: MouseEvent, target: any) => void;
|
|
16
|
+
cancel?: (target: any) => void;
|
|
16
17
|
i18n?: (key: string) => string;
|
|
17
18
|
});
|
|
18
19
|
dispose(): void;
|
|
19
20
|
appendTo(element: Element): this;
|
|
20
21
|
setLines(lines: Line[]): this;
|
|
22
|
+
setTarget(target: any): this;
|
|
21
23
|
updatePosition(left?: string, top?: string): this;
|
|
22
24
|
hide(): this;
|
|
23
25
|
show(): this;
|
|
26
|
+
private clickHandler;
|
|
27
|
+
private cancelHandler;
|
|
24
28
|
private onMouseEnter;
|
|
25
29
|
private onMouseLeave;
|
|
26
30
|
}
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import type MeasureController from '../../Controller';
|
|
2
|
+
export type UIMode = 'pc' | 'mobile';
|
|
2
3
|
export interface UIControllerParams {
|
|
3
|
-
container
|
|
4
|
-
mode?:
|
|
4
|
+
container?: Element;
|
|
5
|
+
mode?: UIMode;
|
|
6
|
+
pointSelectorMode?: 'fixed' | 'cursor';
|
|
7
|
+
useNewUI?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* @description: 是否展示退出按钮
|
|
10
|
+
*/
|
|
11
|
+
showExit?: boolean;
|
|
5
12
|
startButtonText?: string;
|
|
6
13
|
endButtonText?: string;
|
|
7
14
|
revokeButtonText?: string;
|
|
8
15
|
exitButtonText?: string;
|
|
9
16
|
}
|
|
10
|
-
export type UIMode = 'pc' | 'mobile';
|
|
11
17
|
export declare class UIController {
|
|
12
18
|
private revoke?;
|
|
13
19
|
private container;
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
export declare const addHoverImage = "//vrlab-static.ljcdn.com/release/web/measure/add-hover.944fffad.png";
|
|
2
|
-
export declare const addNormalImage = "//vrlab-static.ljcdn.com/release/web/measure/add-normal.39e967e9.png";
|
|
3
|
-
export declare const cancelHoverImage = "//vrlab-static.ljcdn.com/release/web/measure/canale-hover.74b37e24.png";
|
|
4
|
-
export declare const cancelNormalImage = "//vrlab-static.ljcdn.com/release/web/measure/cancle-normal.77bb326c.png";
|
|
5
|
-
export declare const doneHoverImage = "//vrlab-static.ljcdn.com/release/web/measure/done-hover.9e09438b.png";
|
|
6
|
-
export declare const doneNormalImage = "//vrlab-static.ljcdn.com/release/web/measure/done-normal.4fcddd73.png";
|
|
7
|
-
export declare const exitImage = "//vrlab-static.ljcdn.com/release/web/measure/exit.6693ad51.png";
|
|
8
|
-
export declare const revokeImage = "//vrlab-static.ljcdn.com/release/web/measure/revoke.3e424843.png";
|
|
9
1
|
export declare const uiWrapperStyle: Partial<CSSStyleDeclaration>;
|
|
10
2
|
export declare const operatingSpaceStyle: Partial<CSSStyleDeclaration>;
|
|
11
3
|
export declare const controllerBackgroundStyle: Partial<CSSStyleDeclaration>;
|
|
@@ -23,10 +23,11 @@ export interface OpenParameter {
|
|
|
23
23
|
}
|
|
24
24
|
/** 长度达到一定值时,自动结束线段,null 的话不自动结束 */
|
|
25
25
|
export interface autoEndConfig {
|
|
26
|
-
line
|
|
27
|
-
area
|
|
26
|
+
line?: number | null;
|
|
27
|
+
area?: number | null;
|
|
28
28
|
}
|
|
29
29
|
export type MeasureType = 'line' | 'area';
|
|
30
|
+
export type PointSelectorMode = 'fixed' | 'cursor';
|
|
30
31
|
export interface EditParameter {
|
|
31
32
|
/**
|
|
32
33
|
* @description 选择测量插件的模式
|
|
@@ -37,6 +38,11 @@ export interface EditParameter {
|
|
|
37
38
|
* ['line', 'area']: 同时开启测距和测面积功能
|
|
38
39
|
*/
|
|
39
40
|
allowMeasureType?: Array<MeasureType>;
|
|
41
|
+
/**
|
|
42
|
+
* @description: 选点的两种模式, 'fixed' 为固定选点为屏幕中心点,拖动five画布来选点,'mouse' 为跟随鼠标移动
|
|
43
|
+
* @default: 'fixed'
|
|
44
|
+
*/
|
|
45
|
+
pointSelectorMode?: PointSelectorMode;
|
|
40
46
|
autoEndConfig?: autoEndConfig;
|
|
41
47
|
}
|
|
42
48
|
export interface CrossHairParameter {
|
|
@@ -24,6 +24,9 @@ type EditEvent = {
|
|
|
24
24
|
anchorChange: (anchor: Vector3 | null) => void;
|
|
25
25
|
/** 测量类型变更 */
|
|
26
26
|
measureTypeChange: (measureTpe: MeasureType) => void;
|
|
27
|
+
revoke: (params: {
|
|
28
|
+
isEmpty: boolean;
|
|
29
|
+
}) => void;
|
|
27
30
|
/** 差最后一次打点就可以完成完成 */
|
|
28
31
|
readyComplete: () => void;
|
|
29
32
|
/** 一条线段或者一个面积编辑完成 */
|
|
@@ -2,6 +2,8 @@ import type { Vector3 } from 'three';
|
|
|
2
2
|
import type { Five } from '@realsee/five';
|
|
3
3
|
export interface ItemDomParams {
|
|
4
4
|
clickCallback?: (event: MouseEvent, item: ItemDom) => unknown;
|
|
5
|
+
containerStyle?: Partial<CSSStyleDeclaration>;
|
|
6
|
+
contentStyle?: Partial<CSSStyleDeclaration>;
|
|
5
7
|
}
|
|
6
8
|
export declare abstract class ItemDom {
|
|
7
9
|
ndcPosition: Vector3 | null;
|
|
@@ -18,6 +20,8 @@ export declare abstract class ItemDom {
|
|
|
18
20
|
remove(): void;
|
|
19
21
|
show(): void;
|
|
20
22
|
hide(): void;
|
|
23
|
+
tempHide(): void;
|
|
24
|
+
tempShow(): void;
|
|
21
25
|
/**
|
|
22
26
|
* @description: camera update 的时候,更新dom的位置
|
|
23
27
|
*/
|
|
@@ -95,7 +95,10 @@ declare abstract class Controller<PluginState extends State, PluginEventMap exte
|
|
|
95
95
|
* @param options 配置项
|
|
96
96
|
*/
|
|
97
97
|
setState?(state: Partial<PluginState>, options?: BaseOptions): void;
|
|
98
|
-
|
|
98
|
+
/**
|
|
99
|
+
* @description: 获取静态资源的url
|
|
100
|
+
*/
|
|
101
|
+
absoluteUrl(url: string): string;
|
|
99
102
|
/**
|
|
100
103
|
* 启用插件,让插件能够响应交互
|
|
101
104
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const PaintBrushStyle = "\n<style type=\"text/css\">\n\n#_gl_paintBrush {\nposition: fixed;\ntop: 0;\nbottom: 0;\nleft: 0;\nright: 0;\ntransform: translateZ(0);\nz-index: 1997;\npointer-events: none;\nopacity: 0;\ntransition: all 500ms;\n}\n\n#_gl_paintBrush.brushing {\n opacity: 1;\n}\n\n#_gl_paintBrush ._paintBrush-canvas {\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n}\n\n#_gl_paintBrush ._paintBrush-canvas--sync {\n pointer-events: none;\n z-index: 0;\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n}\n\n#_gl_paintBrush ._paintBrush-canvas {\n pointer-events: none;\n z-index: 1;\n}\n\n#_gl_paintBrush.brushing ._paintBrush-canvas {\n pointer-events: auto;\n}\n\n#_gl_paintBrush ._paintBrush-ctrl {\n width: 140px;\n height: 52px;\n position: absolute;\n bottom: 28px;\n right: 50%;\n transform: translateX(50%);\n font-size: 10px;\n color: white;\n z-index: 2;\n}\n\n#_gl_paintBrush.brushing ._paintBrush-ctrl {\n pointer-events: auto;\n}\n\n#_gl_paintBrush ._paintBrush-ctrl ._paintBrush-ctrlinner {\n display: flex;\n justify-content: space-between;\n align-items: center;\n width: 100%;\n height: 100%;\n border-radius: 26px;\n padding: 8px 16px;\n box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.2);\n background-image: linear-gradient(180deg, hsl(0deg 0% 0% / 57%), hsl(0deg 0% 0% / 70%) 117%);\n}\n\n._paintBrush-ctrlitem {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 38px;\n height: 38px;\n cursor: pointer;\n}\n\n._paintBrush-ctrlitem--undo >.brush-icon{\n background-image: url(
|
|
1
|
+
declare const PaintBrushStyle = "\n<style type=\"text/css\">\n\n#_gl_paintBrush {\nposition: fixed;\ntop: 0;\nbottom: 0;\nleft: 0;\nright: 0;\ntransform: translateZ(0);\nz-index: 1997;\npointer-events: none;\nopacity: 0;\ntransition: all 500ms;\n}\n\n#_gl_paintBrush.brushing {\n opacity: 1;\n}\n\n#_gl_paintBrush ._paintBrush-canvas {\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n}\n\n#_gl_paintBrush ._paintBrush-canvas--sync {\n pointer-events: none;\n z-index: 0;\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n}\n\n#_gl_paintBrush ._paintBrush-canvas {\n pointer-events: none;\n z-index: 1;\n}\n\n#_gl_paintBrush.brushing ._paintBrush-canvas {\n pointer-events: auto;\n}\n\n#_gl_paintBrush ._paintBrush-ctrl {\n width: 140px;\n height: 52px;\n position: absolute;\n bottom: 28px;\n right: 50%;\n transform: translateX(50%);\n font-size: 10px;\n color: white;\n z-index: 2;\n}\n\n#_gl_paintBrush.brushing ._paintBrush-ctrl {\n pointer-events: auto;\n}\n\n#_gl_paintBrush ._paintBrush-ctrl ._paintBrush-ctrlinner {\n display: flex;\n justify-content: space-between;\n align-items: center;\n width: 100%;\n height: 100%;\n border-radius: 26px;\n padding: 8px 16px;\n box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.2);\n background-image: linear-gradient(180deg, hsl(0deg 0% 0% / 57%), hsl(0deg 0% 0% / 70%) 117%);\n}\n\n._paintBrush-ctrlitem {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 38px;\n height: 38px;\n cursor: pointer;\n}\n\n._paintBrush-ctrlitem--undo >.brush-icon{\n background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjJweCIgaGVpZ2h0PSIyMnB4IiB2aWV3Qm94PSIwIDAgMjIgMjIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8ZGVmcz4KICAgICAgICA8bGluZWFyR3JhZGllbnQgeDE9IjUwJSIgeTE9IjQ1LjY3NTI0OCUiIHgyPSItMTYuOTYxMDIzJSIgeTI9Ijg0LjIzODQxOTglIiBpZD0ibGluZWFyR3JhZGllbnQtMSI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiNGRkZGRkYiIG9mZnNldD0iMCUiPjwvc3RvcD4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0ZGRkZGRiIgc3RvcC1vcGFjaXR5PSIwLjMwMzY3Njc5MiIgb2Zmc2V0PSIxMDAlIj48L3N0b3A+CiAgICAgICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDwvZGVmcz4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xNDAuMDAwMDAwLCAtNzQwLjAwMDAwMCkiPgogICAgICAgICAgICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNDAuMDAwMDAwLCA3NDAuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8cmVjdCBmaWxsPSIjRDhEOEQ4IiBvcGFjaXR5PSIwIiB4PSIwIiB5PSIwIiB3aWR0aD0iMjIiIGhlaWdodD0iMjIiPjwvcmVjdD4KICAgICAgICAgICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDQuMDAwMDAwLCAyLjk5MDY1OSkiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIyIj4KICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMCwzLjc1ODc1NzA5IEw5Ljg0Mzc1LDMuNzU4NzU3MDkgQzEyLjY5MTQ2ODIsMy43NTg3NTcwOSAxNSw2LjA2NzI4ODg1IDE1LDguOTE1MDA3MDkgQzE1LDExLjc2MjcyNTMgMTIuNjkxNDY4MiwxNC4wNzEyNTcxIDkuODQzNzUsMTQuMDcxMjU3MSBMMSwxNC4wNzEyNTcxIiBzdHJva2U9InVybCgjbGluZWFyR3JhZGllbnQtMSkiPjwvcGF0aD4KICAgICAgICAgICAgICAgICAgICA8cG9seWxpbmUgc3Ryb2tlPSIjRkZGRkZGIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBwb2ludHM9IjMuNzkwMjI3MDcgNy41Mzk2NjA2NCAwIDMuNzU4NzU3MDkgMy43OTAyMjcwNyAwIj48L3BvbHlsaW5lPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=);\n background-size: 100%;\n width: 22px;\n height: 22px;\n}\n\n._paintBrush-ctrlitem--close >.brush-icon {\n background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMj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