@realsee/dnalogel 2.25.0 → 2.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CruisePlugin/typing.d.ts +1 -1
- package/dist/GuideLinePlugin/typing.d.ts +1 -1
- package/dist/PanoCompassPlugin/typings.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Model/point.d.ts +0 -4
- package/dist/PanoMeasurePlugin/Model/polyline.d.ts +1 -1
- package/dist/PipelinePlugin/Controller.d.ts +108 -0
- package/dist/PipelinePlugin/index.d.ts +6 -0
- package/dist/PipelinePlugin/typing/PluginData.d.ts +20 -0
- package/dist/PipelinePlugin/typing/ServerData.d.ts +28 -0
- package/dist/PipelinePlugin/typing/index.d.ts +79 -0
- package/dist/PipelinePlugin/utils/Objects/FlowPipe.d.ts +34 -0
- package/dist/PipelinePlugin/utils/Objects/Pipe.d.ts +49 -0
- package/dist/PipelinePlugin/utils/formatData.d.ts +12 -0
- package/dist/base/BasePluginWithData.d.ts +3 -15
- package/dist/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +1 -1
- package/dist/floorplan/typings/index.d.ts +1 -1
- package/dist/index.cjs.js +100 -65
- package/dist/index.d.ts +1 -0
- package/dist/index.js +9180 -8600
- package/dist/index.umd.js +89 -54
- package/dist/shared-utils/three/Extras/Core/Interpolations.d.ts +11 -0
- package/dist/shared-utils/three/Extras/Curves/BezierCurve3.d.ts +13 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +33 -30
- package/docs/classes/CruisePluginController.html +28 -25
- package/docs/classes/GuideLineItem.GuideLineItem.html +22 -19
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +37 -34
- package/docs/classes/Magnifier.html +22 -19
- package/docs/classes/ModelRoomLabelController.html +13 -10
- package/docs/classes/Object3DHelperController.html +27 -24
- package/docs/classes/PaintBrush.html +17 -14
- package/docs/classes/PanoMeasurePluginLine.html +29 -26
- package/docs/classes/PanoMeasurePluginModel.html +29 -26
- package/docs/classes/PanoMeasurePluginPoint.html +14 -48
- package/docs/classes/PanoMeasurePluginPolyline.html +43 -32
- package/docs/classes/PanoTagPluginController.html +49 -46
- package/docs/classes/Util.BetterTween.html +11 -8
- package/docs/classes/Util.Interval.html +14 -11
- package/docs/classes/Util.Magnifier.html +22 -19
- package/docs/classes/Util.PointDomHelper.html +13 -10
- package/docs/classes/Util.PointHelper.html +13 -10
- package/docs/classes/Util.PointSelectorHelper.html +18 -15
- package/docs/classes/Util.Rectangle.html +15 -12
- package/docs/enums/CameraMovementEffect.html +9 -6
- package/docs/enums/ContentType.html +22 -19
- package/docs/enums/DIRECTION.html +11 -8
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +11 -8
- package/docs/enums/DimensionType.html +9 -6
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +10 -7
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +11 -8
- package/docs/enums/PaintBrushTypeEnum.html +10 -7
- package/docs/enums/PointType.html +9 -6
- package/docs/enums/Rotation.html +10 -7
- package/docs/functions/CSS3DRenderPlugin.html +6 -3
- package/docs/functions/CameraMovementPlugin.html +6 -3
- package/docs/functions/CruisePlugin.html +6 -3
- package/docs/functions/GuideLinePlugin.html +7 -4
- package/docs/functions/ItemLabelPlugin.html +6 -3
- package/docs/functions/MapviewFloorplanPlugin.html +6 -3
- package/docs/functions/ModelChassisCompassPlugin.html +6 -3
- package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -3
- package/docs/functions/ModelFloorplanPlugin.html +6 -3
- package/docs/functions/ModelItemLabelPlugin.html +6 -3
- package/docs/functions/ModelRoomLabelPlugin.html +6 -3
- package/docs/functions/ModelTVVideoPlugin.html +6 -3
- package/docs/functions/ModelViewPlugin.html +6 -3
- package/docs/functions/Object3DHelperPlugin.html +6 -3
- package/docs/functions/PanoCompassPlugin.html +6 -3
- package/docs/functions/PanoCursorRaycasterPlugin.html +6 -3
- package/docs/functions/PanoDoorLabelPlugin.html +6 -3
- package/docs/functions/PanoFloorplanRadarPlugin.html +6 -3
- package/docs/functions/PanoMeasurePlugin.html +6 -3
- package/docs/functions/PanoRulerPlugin.html +6 -3
- package/docs/functions/PanoRulerProPlugin.html +6 -3
- package/docs/functions/PanoSpatialTagPlugin.html +6 -3
- package/docs/functions/PanoTagPlugin.html +6 -3
- package/docs/functions/PanoVideoPlugin.html +6 -3
- package/docs/functions/PipelinePlugin.html +280 -0
- package/docs/functions/TopviewFloorplanPlugin.html +6 -3
- package/docs/functions/Util.absoluteUrl.html +7 -4
- package/docs/functions/Util.getCoordsFromClient.html +7 -4
- package/docs/functions/Util.getCoordsFromElement.html +7 -4
- package/docs/functions/Util.getFrameTime.html +7 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +7 -4
- package/docs/functions/Util.getRaycasterFromFivePointer.html +7 -4
- package/docs/functions/Util.isAbsoluteURL.html +7 -4
- package/docs/functions/Util.isModelLike.html +7 -4
- package/docs/functions/Util.isNil.html +7 -4
- package/docs/functions/Util.isPanoramaLike.html +7 -4
- package/docs/functions/Util.nextFrame.html +7 -4
- package/docs/functions/Util.notNil.html +7 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +7 -4
- package/docs/functions/Util.tweenProgress.html +7 -4
- package/docs/functions/Util.uuid.html +7 -4
- package/docs/functions/pluginFlag.html +7 -4
- package/docs/index.html +7 -4
- package/docs/interfaces/AddTagConfig.html +8 -5
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +13 -10
- package/docs/interfaces/CSS3DRenderPluginState.html +10 -7
- package/docs/interfaces/CameraMovementPluginExportType.html +9 -6
- package/docs/interfaces/CruisePluginTypes.Config.html +10 -7
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +14 -11
- package/docs/interfaces/CruisePluginTypes.EventMap.html +22 -19
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +14 -11
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +16 -13
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +16 -13
- package/docs/interfaces/CruisePluginTypes.PluginData.html +11 -8
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +10 -21
- package/docs/interfaces/CruisePluginTypes.PluginState.html +13 -10
- package/docs/interfaces/EventMap.html +17 -14
- package/docs/interfaces/FloorplanBounding.html +10 -7
- package/docs/interfaces/FloorplanData.html +12 -9
- package/docs/interfaces/FloorplanEntrance.html +13 -10
- package/docs/interfaces/FloorplanExtraObject.html +12 -9
- package/docs/interfaces/FloorplanExtraObject3D.html +10 -7
- package/docs/interfaces/FloorplanFloorData.html +11 -8
- package/docs/interfaces/FloorplanImagePosition.html +9 -6
- package/docs/interfaces/FloorplanObserver.html +11 -8
- package/docs/interfaces/FloorplanOutlineItem.html +11 -8
- package/docs/interfaces/FloorplanPosition.html +9 -6
- package/docs/interfaces/FloorplanRoomItem.html +15 -12
- package/docs/interfaces/FloorplanRoomLabelItem.html +9 -6
- package/docs/interfaces/FloorplanServerBounding.html +10 -7
- package/docs/interfaces/FloorplanServerComputedData.html +12 -9
- package/docs/interfaces/FloorplanServerData.html +9 -6
- package/docs/interfaces/FloorplanServerDoorItem.html +12 -9
- package/docs/interfaces/FloorplanServerDoorPosition.html +10 -7
- package/docs/interfaces/FloorplanServerEntrance.html +13 -10
- package/docs/interfaces/FloorplanServerFloorData.html +11 -8
- package/docs/interfaces/FloorplanServerImagePosition.html +9 -6
- package/docs/interfaces/FloorplanServerObserver.html +11 -8
- package/docs/interfaces/FloorplanServerOutlineItem.html +11 -8
- package/docs/interfaces/FloorplanServerPosition.html +9 -6
- package/docs/interfaces/FloorplanServerRoomItem.html +16 -13
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +9 -6
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +10 -7
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +12 -9
- package/docs/interfaces/GuideLinePluginType.EventMap.html +15 -12
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +10 -7
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +8 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +15 -12
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +10 -7
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +20 -17
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +9 -6
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +20 -17
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +7 -4
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +10 -21
- package/docs/interfaces/GuideLinePluginType.PluginState.html +10 -7
- package/docs/interfaces/GuideLinePluginType.Route.html +13 -10
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +11 -8
- package/docs/interfaces/HelperOffset.html +10 -7
- package/docs/interfaces/ImagePlaneGroup.html +8 -5
- package/docs/interfaces/ItemLabelPluginData.html +8 -5
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +13 -10
- package/docs/interfaces/ItemLabelPluginParametersType.html +11 -8
- package/docs/interfaces/MinMax.html +9 -6
- package/docs/interfaces/ModelChassisCompassPluginData.html +9 -6
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +10 -7
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +9 -6
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +10 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +10 -7
- package/docs/interfaces/ModelItemLabelPluginData.html +8 -5
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +13 -10
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +9 -6
- package/docs/interfaces/ModelRoomLabelPluginData.html +8 -5
- package/docs/interfaces/ModelTVVideoPluginData.html +11 -8
- package/docs/interfaces/ModelTVVideoPluginExportType.html +10 -7
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +8 -5
- package/docs/interfaces/ModelViewPluginExportType.html +13 -10
- package/docs/interfaces/Object3DHelperState.html +10 -7
- package/docs/interfaces/ObjectHelperControllers.html +11 -8
- package/docs/interfaces/PaintBrushAction.html +14 -11
- package/docs/interfaces/PaintBrushConfigs.html +14 -11
- package/docs/interfaces/PaintBrushState.html +12 -9
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +12 -9
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +7 -4
- package/docs/interfaces/PanoMeasureParameterType.html +18 -15
- package/docs/interfaces/PanoMeasurePluginLineJson.html +10 -7
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +9 -6
- package/docs/interfaces/PanoMeasurePluginPointJson.html +9 -6
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +10 -7
- package/docs/interfaces/PanoRulerPluginExportType.html +12 -9
- package/docs/interfaces/PanoRulerPluginOptions.html +9 -6
- package/docs/interfaces/PanoRulerPluginParameterType.html +10 -7
- package/docs/interfaces/PanoRulerProPluginExportType.html +11 -8
- package/docs/interfaces/PanoRulerProPluginOptions.html +9 -6
- package/docs/interfaces/PanoRulerProPluginParameterType.html +9 -6
- package/docs/interfaces/PanoRulerProPluginState.html +10 -7
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +7 -4
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +7 -4
- package/docs/interfaces/PanoSpatialTagPluginData.html +13 -10
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +12 -9
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +15 -12
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +12 -9
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +15 -12
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +13 -10
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +12 -9
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +8 -5
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +10 -7
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +8 -5
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +11 -8
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +8 -5
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +10 -7
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +12 -9
- package/docs/interfaces/Point.html +10 -7
- package/docs/interfaces/Room.html +11 -8
- package/docs/interfaces/RoomInfo.html +9 -6
- package/docs/interfaces/RoomLabel.html +16 -13
- package/docs/interfaces/RoomRules.html +7 -4
- package/docs/interfaces/Rooms.html +7 -4
- package/docs/interfaces/Scissor.html +11 -8
- package/docs/interfaces/State.html +10 -7
- package/docs/interfaces/TagCacheInterface.html +14 -11
- package/docs/interfaces/TagConfig.html +15 -12
- package/docs/interfaces/TagGLTFObjectGroup.html +8 -5
- package/docs/interfaces/TagIconUrl.html +14 -11
- package/docs/interfaces/TagObjectGroup.html +8 -5
- package/docs/interfaces/TagStyle.html +8 -5
- package/docs/interfaces/Tags.html +11 -8
- package/docs/interfaces/TemporaryState.html +8 -5
- package/docs/interfaces/Util.MagnifierParameter.html +13 -10
- package/docs/interfaces/Util.MouseGroupParameter.html +10 -7
- package/docs/interfaces/Util.PointIntersection.html +10 -7
- package/docs/modules/CruisePluginTypes.html +7 -4
- package/docs/modules/GuideLineItem.html +7 -4
- package/docs/modules/GuideLineModeItem.html +7 -4
- package/docs/modules/GuideLinePluginType.html +7 -4
- package/docs/modules/PanoVideoPluginType.html +7 -4
- package/docs/modules/Util.html +7 -4
- package/docs/modules.html +10 -4
- package/docs/types/ArrayPosition.html +7 -4
- package/docs/types/AudioAppearance.html +7 -4
- package/docs/types/AudioTagTypeConfigKey.html +7 -4
- package/docs/types/CSS3DRenderExportType.html +7 -4
- package/docs/types/CSS3DRenderPluginExportType.html +7 -4
- package/docs/types/CSS3DRenderPluginParameterType.html +7 -4
- package/docs/types/ClassFunctionParameters.html +7 -4
- package/docs/types/Color.html +7 -4
- package/docs/types/ContentTypeConfigKey.html +7 -4
- package/docs/types/ContentTypeConfigKeySplit.html +7 -4
- package/docs/types/ContentTypeMap.html +7 -4
- package/docs/types/Create3DDomContainerReturnType.html +7 -4
- package/docs/types/Create3DElementReturnType.html +7 -4
- package/docs/types/CruisePluginExportType.html +7 -4
- package/docs/types/CruisePluginTypes.CruiseData.html +7 -4
- package/docs/types/CruisePluginTypes.MoveEffect.html +7 -4
- package/docs/types/DeprecatedMediaPlaneProperty.html +7 -4
- package/docs/types/DeprecatedTagProperty.html +7 -4
- package/docs/types/Direction-1.html +7 -4
- package/docs/types/Direction4.html +7 -4
- package/docs/types/ElementRenderer.html +7 -4
- package/docs/types/FloorplanRuleLabels.html +7 -4
- package/docs/types/FloorplanServerRuleLabels.html +7 -4
- package/docs/types/GuideLinePluginExportType.html +7 -4
- package/docs/types/GuideLinePluginType.GuideLineItem.html +7 -4
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +7 -4
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +7 -4
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +7 -4
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +7 -4
- package/docs/types/GuideLinePluginType.PathItem.html +7 -4
- package/docs/types/GuideLinePluginType.PluginData.html +7 -4
- package/docs/types/HelperEventMap.html +7 -4
- package/docs/types/LoadTagConfig.html +7 -4
- package/docs/types/MapviewFloorplanPluginParameterType.html +7 -4
- package/docs/types/MapviewFloorplanPluginReturnType.html +7 -4
- package/docs/types/MediaData.html +7 -4
- package/docs/types/MediaStore.html +7 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -4
- package/docs/types/ModelFloorplanPluginParameterType.html +7 -4
- package/docs/types/ModelFloorplanPluginReturnType.html +7 -4
- package/docs/types/ModelRoomLabelPluginParameters.html +7 -4
- package/docs/types/ModelRoomLabelPluginReturnType.html +7 -4
- package/docs/types/MoveArgs.html +7 -4
- package/docs/types/MoveOpts.html +7 -4
- package/docs/types/Object3DHelperEventMap.html +7 -4
- package/docs/types/ObjectFit.html +7 -4
- package/docs/types/PaintBrushEventMap.html +7 -4
- package/docs/types/PanoCompassPluginData.html +7 -4
- package/docs/types/PanoCompassPluginExportType.html +7 -4
- package/docs/types/PanoCompassPluginParameterType.html +7 -4
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +7 -4
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +7 -4
- package/docs/types/PanoIndex.html +7 -4
- package/docs/types/PanoMeasurePluginEvent.html +7 -4
- package/docs/types/PanoMeasureReturnType.html +7 -4
- package/docs/types/PanoSpatialTagPluginId.html +7 -4
- package/docs/types/PanoTagPluginExportInterface.html +7 -4
- package/docs/types/PanoTagPluginParamsInterface.html +7 -4
- package/docs/types/PanoVideoPluginParameterType.html +7 -4
- package/docs/types/PanoVideoPluginReturnType.html +7 -4
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +7 -4
- package/docs/types/PipelinePluginParameterType.html +271 -0
- package/docs/types/PipelinePluginReturnType.html +271 -0
- package/docs/types/PlaneTag.html +7 -4
- package/docs/types/Point2DTag.html +7 -4
- package/docs/types/Point3DTag.html +7 -4
- package/docs/types/PointTag.html +7 -4
- package/docs/types/PointTagInstance.html +7 -4
- package/docs/types/Position.html +7 -4
- package/docs/types/RotateArgs.html +7 -4
- package/docs/types/RotateOpts.html +7 -4
- package/docs/types/RuleLabelsKey.html +7 -4
- package/docs/types/RuleLabelsValue.html +7 -4
- package/docs/types/StickType.html +7 -4
- package/docs/types/Tag.html +7 -4
- package/docs/types/Tag2D.html +7 -4
- package/docs/types/Tag3D.html +7 -4
- package/docs/types/TagContentType.html +7 -4
- package/docs/types/TagDimensionType.html +7 -4
- package/docs/types/TagElement.html +7 -4
- package/docs/types/TagEvents.html +7 -4
- package/docs/types/TagGLTFObject.html +7 -4
- package/docs/types/TagHooks.html +7 -4
- package/docs/types/TagId.html +7 -4
- package/docs/types/TagInstance.html +7 -4
- package/docs/types/TagPointType.html +7 -4
- package/docs/types/TagRendererMap.html +7 -4
- package/docs/types/TopviewFloorplanPluginParameterType.html +7 -4
- package/docs/types/TopviewFloorplanPluginReturnType.html +7 -4
- package/docs/types/WorkCode.html +7 -4
- package/docs/variables/FLOOR_TYPE_MAP.html +7 -4
- package/docs/variables/PLUGIN.html +7 -4
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +7 -4
- package/docs/variables/ROOM_TYPE_MAP.html +7 -4
- package/docs/variables/itemLabelPluginServerParams.html +7 -4
- package/docs/variables/modelItemLabelPluginServerParams.html +7 -4
- package/docs/variables/modelRoomLabelPluginServerParams.html +7 -4
- package/libs/CruisePlugin/typing.d.ts +1 -1
- package/libs/GuideLinePlugin/typing.d.ts +1 -1
- package/libs/PanoCompassPlugin/typings.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Components/Controller0.js +2 -4
- package/libs/PanoMeasurePlugin/Components/Controller1.js +52 -54
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +2 -3
- package/libs/PanoMeasurePlugin/Controller/EditController.js +5 -7
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +14 -16
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +2 -3
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +41 -43
- package/libs/PanoMeasurePlugin/Controller/index.js +26 -30
- package/libs/PanoMeasurePlugin/Model/area.js +2 -3
- package/libs/PanoMeasurePlugin/Model/index.js +2 -3
- package/libs/PanoMeasurePlugin/Model/line.js +20 -20
- package/libs/PanoMeasurePlugin/Model/point.d.ts +0 -4
- package/libs/PanoMeasurePlugin/Model/point.js +12 -20
- package/libs/PanoMeasurePlugin/Model/polyline.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Model/polyline.js +59 -51
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +22 -24
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +2 -3
- package/libs/PanoMeasurePlugin/index.js +13 -15
- package/libs/PanoVideoPlugin/VideoMeshController.js +1 -2
- package/libs/PipelinePlugin/Controller.d.ts +108 -0
- package/libs/PipelinePlugin/Controller.js +344 -0
- package/libs/PipelinePlugin/index.d.ts +6 -0
- package/libs/PipelinePlugin/index.js +39 -0
- package/libs/PipelinePlugin/typing/PluginData/index.js +6 -0
- package/libs/PipelinePlugin/typing/PluginData.d.ts +20 -0
- package/libs/PipelinePlugin/typing/PluginData.js +1 -0
- package/libs/PipelinePlugin/typing/ServerData/index.js +6 -0
- package/libs/PipelinePlugin/typing/ServerData.d.ts +28 -0
- package/libs/PipelinePlugin/typing/ServerData.js +1 -0
- package/libs/PipelinePlugin/typing/index.d.ts +79 -0
- package/libs/PipelinePlugin/typing/index.js +6 -0
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.d.ts +34 -0
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +106 -0
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.d.ts +11 -0
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +52 -0
- package/libs/PipelinePlugin/utils/Objects/Pipe.d.ts +49 -0
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +179 -0
- package/libs/PipelinePlugin/utils/formatData.d.ts +12 -0
- package/libs/PipelinePlugin/utils/formatData.js +46 -0
- package/libs/base/BasePlugin.js +1 -1
- package/libs/base/BasePluginWithData.d.ts +3 -15
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +87 -88
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +75 -76
- package/libs/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +1 -1
- package/libs/floorplan/typings/index.d.ts +1 -1
- package/libs/index.d.ts +1 -0
- package/libs/index.js +117 -110
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/Extras/Core/Interpolations.d.ts +11 -0
- package/libs/shared-utils/three/Extras/Core/Interpolations.js +28 -0
- package/libs/shared-utils/three/Extras/Core/Interpolations2.js +34 -0
- package/libs/shared-utils/three/Extras/Curves/BezierCurve3.d.ts +13 -0
- package/libs/shared-utils/three/Extras/Curves/BezierCurve3.js +30 -0
- package/package.json +1 -1
- package/dist/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +0 -2
- package/dist/shared-utils/removeArrayItem.d.ts +0 -7
- package/libs/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +0 -2
- package/libs/PanoMeasurePlugin/utils/findAssociatedLines.js +0 -13
- package/libs/shared-utils/removeArrayItem.d.ts +0 -7
- package/libs/shared-utils/removeArrayItem.js +0 -8
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { uuid as
|
|
7
|
-
import { Subscribe as
|
|
1
|
+
var c = Object.defineProperty;
|
|
2
|
+
var f = (r, i, e) => i in r ? c(r, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[i] = e;
|
|
3
|
+
var o = (r, i, e) => (f(r, typeof i != "symbol" ? i + "" : i, e), e);
|
|
4
|
+
import a from "./line.js";
|
|
5
|
+
import m from "./point.js";
|
|
6
|
+
import { uuid as P } from "../../shared-utils/uuid.js";
|
|
7
|
+
import { Subscribe as g } from "@realsee/five";
|
|
8
8
|
import "../utils/line.js";
|
|
9
9
|
import "@realsee/five/line";
|
|
10
10
|
import "../utils/constants.js";
|
|
@@ -13,38 +13,46 @@ import "../utils/dom/distanceItem.js";
|
|
|
13
13
|
import "../utils/dom/base.js";
|
|
14
14
|
import "../utils/isNDCPointInScreen.js";
|
|
15
15
|
import "../../shared-utils/three/centerPoint.js";
|
|
16
|
-
|
|
17
|
-
class W {
|
|
16
|
+
class M {
|
|
18
17
|
constructor(i) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
s(this, "hook", new v());
|
|
18
|
+
o(this, "id", P());
|
|
19
|
+
o(this, "lines", []);
|
|
20
|
+
o(this, "visiblePanoIndexes");
|
|
21
|
+
o(this, "model");
|
|
22
|
+
o(this, "type", "polyline");
|
|
23
|
+
o(this, "hook", new g());
|
|
26
24
|
this.model = i.model;
|
|
27
25
|
}
|
|
26
|
+
get points() {
|
|
27
|
+
const i = /* @__PURE__ */ new Set();
|
|
28
|
+
return this.lines.forEach((e) => {
|
|
29
|
+
i.add(e.points[0]), i.add(e.points[1]);
|
|
30
|
+
}), Array.from(i);
|
|
31
|
+
}
|
|
28
32
|
addLine(i) {
|
|
29
33
|
if (this.includes(i)) {
|
|
30
34
|
console.error(new Error("不能重复添加线段"));
|
|
31
35
|
return;
|
|
32
36
|
}
|
|
33
|
-
const
|
|
34
|
-
|
|
37
|
+
const e = this.getLastPoint(), l = e && i.findAnotherPoint(e);
|
|
38
|
+
if (e && !l) {
|
|
39
|
+
console.error(new Error("传入线段无法与当前折线进行连接"));
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
this.lines.push(i), this.hook.emit("lineAdded", i);
|
|
35
43
|
}
|
|
36
44
|
removeLine(i) {
|
|
37
|
-
if (this.lines.length
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
this.lines.pop(), this.lines.length === 0 ? this.points.slice(0, this.points.length) : this.points.pop(), this.hook.emit("lineRemoved", i);
|
|
45
|
+
if (this.lines.length === 0)
|
|
46
|
+
return;
|
|
47
|
+
if (!this.isLastLine(i)) {
|
|
48
|
+
console.error(new Error("传入线段不是当前折线的最后一段"));
|
|
49
|
+
return;
|
|
43
50
|
}
|
|
51
|
+
this.lines.pop() && this.hook.emit("lineRemoved", i);
|
|
44
52
|
}
|
|
45
53
|
isLastLine(i) {
|
|
46
|
-
const
|
|
47
|
-
return
|
|
54
|
+
const e = this.getLastLine();
|
|
55
|
+
return e ? i.id === e.id : !1;
|
|
48
56
|
}
|
|
49
57
|
getLastLine() {
|
|
50
58
|
return this.lines.slice(-1)[0];
|
|
@@ -57,17 +65,17 @@ class W {
|
|
|
57
65
|
}
|
|
58
66
|
clear() {
|
|
59
67
|
const i = this.lines.slice();
|
|
60
|
-
this.lines.
|
|
68
|
+
this.lines.length = 0, i.reduceRight((e, l) => this.hook.emit("lineRemoved", l), void 0);
|
|
61
69
|
}
|
|
62
70
|
/** 是否产生重叠 */
|
|
63
71
|
overlapWith(i) {
|
|
64
|
-
return i.type === "point" ? this.includes(i) : i.type === "line" ? i.points.some((
|
|
72
|
+
return i.type === "point" ? this.includes(i) : i.type === "line" ? i.points.some((e) => this.includes(e)) : i.type === "polyline" ? i.points.some((e) => this.includes(e)) : !0;
|
|
65
73
|
}
|
|
66
74
|
includes(i) {
|
|
67
|
-
return i.type === "point" ? this.points.find(({ id:
|
|
75
|
+
return i.type === "point" ? this.points.find(({ id: e }) => e === i.id) !== void 0 : i.type === "line" ? this.lines.find(({ id: e }) => e === i.id) !== void 0 : !1;
|
|
68
76
|
}
|
|
69
77
|
isEmpty() {
|
|
70
|
-
return this.
|
|
78
|
+
return this.lines.length === 0;
|
|
71
79
|
}
|
|
72
80
|
getLastPoint() {
|
|
73
81
|
return this.points.slice(-1)[0];
|
|
@@ -80,38 +88,38 @@ class W {
|
|
|
80
88
|
};
|
|
81
89
|
}
|
|
82
90
|
getPointByID(i) {
|
|
83
|
-
return this.points.find(({ id:
|
|
91
|
+
return this.points.find(({ id: e }) => e === i);
|
|
84
92
|
}
|
|
85
93
|
fromJson(i) {
|
|
86
94
|
this.clear(), this.id = i.id;
|
|
87
|
-
const { getPoint:
|
|
88
|
-
const [
|
|
89
|
-
if (!n || !
|
|
95
|
+
const { getPoint: e } = u(), l = i.lines.map((t) => {
|
|
96
|
+
const [d, p] = t.points, n = e(d), h = e(p);
|
|
97
|
+
if (!n || !h)
|
|
90
98
|
throw new Error("线上的点不存在");
|
|
91
|
-
const
|
|
92
|
-
return
|
|
93
|
-
})
|
|
94
|
-
this.
|
|
95
|
-
function
|
|
96
|
-
const
|
|
97
|
-
function
|
|
98
|
-
const
|
|
99
|
-
if (
|
|
100
|
-
return
|
|
101
|
-
const
|
|
102
|
-
return
|
|
99
|
+
const s = new a(n, h, this.model);
|
|
100
|
+
return s.id = t.id, s.text = t.text, s;
|
|
101
|
+
});
|
|
102
|
+
this.lines.push(...l), this.visiblePanoIndexes = i.visiblePanoIndexes;
|
|
103
|
+
function u() {
|
|
104
|
+
const t = /* @__PURE__ */ new Map();
|
|
105
|
+
function d(n) {
|
|
106
|
+
const h = t.get(n.id);
|
|
107
|
+
if (h)
|
|
108
|
+
return h;
|
|
109
|
+
const s = new m(n.position);
|
|
110
|
+
return s.id = n.id, t.set(n.id, s), s;
|
|
103
111
|
}
|
|
104
|
-
function
|
|
105
|
-
return Array.from(
|
|
112
|
+
function p() {
|
|
113
|
+
return Array.from(t.values());
|
|
106
114
|
}
|
|
107
|
-
return { getPoint:
|
|
115
|
+
return { getPoint: d, getAllPoints: p };
|
|
108
116
|
}
|
|
109
117
|
return this;
|
|
110
118
|
}
|
|
111
119
|
replace(i) {
|
|
112
|
-
this.id = i.id, this.clear(), this.lines.push(...i.lines)
|
|
120
|
+
this.id = i.id, this.clear(), this.lines.push(...i.lines);
|
|
113
121
|
}
|
|
114
122
|
}
|
|
115
123
|
export {
|
|
116
|
-
|
|
124
|
+
M as Polyline
|
|
117
125
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var a = Object.defineProperty;
|
|
2
|
-
var h = (r,
|
|
3
|
-
var
|
|
2
|
+
var h = (r, e, t) => e in r ? a(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
|
+
var o = (r, e, t) => (h(r, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
4
|
import d from "./HTML.js";
|
|
5
5
|
import u from "./mobileHTML.js";
|
|
6
6
|
import { controllerBackgroundStyle as y, operatingSpaceStyle as f, uiWrapperStyle as v, textStyle as C, exitItemStyle as E, exitIconStyle as x } from "./style.js";
|
|
@@ -25,7 +25,6 @@ import "../../utils/dom/base.js";
|
|
|
25
25
|
import "../../utils/isNDCPointInScreen.js";
|
|
26
26
|
import "../../../shared-utils/three/centerPoint.js";
|
|
27
27
|
import "../../Model/point.js";
|
|
28
|
-
import "../../../shared-utils/removeArrayItem.js";
|
|
29
28
|
import "../../../shared-utils/throttle.js";
|
|
30
29
|
import "../../Controller/BaseController.js";
|
|
31
30
|
import "../../utils/ironbox.js";
|
|
@@ -75,28 +74,27 @@ import "../DeleteDom/index.js";
|
|
|
75
74
|
import "../DeleteDom/_Assets/delete.svg.js";
|
|
76
75
|
import "../DeleteDom/_Assets/delete_bg.png.js";
|
|
77
76
|
import "../DeleteDom/_Assets/delete_hover_bg.png.js";
|
|
78
|
-
import "../../utils/findAssociatedLines.js";
|
|
79
77
|
import "../../utils/math.js";
|
|
80
78
|
import "../../Components/Common/icons/index.js";
|
|
81
79
|
import "../../Components/Common/Switcher1.js";
|
|
82
80
|
import "../../Components/Common/CircleButton.js";
|
|
83
81
|
import "../../../vendor/svelte/transition/index.js";
|
|
84
82
|
import "../../../vendor/svelte/easing/index.js";
|
|
85
|
-
class
|
|
86
|
-
constructor(
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
const
|
|
97
|
-
if (!t || !
|
|
83
|
+
class Yt {
|
|
84
|
+
constructor(e, t) {
|
|
85
|
+
o(this, "revoke");
|
|
86
|
+
o(this, "container");
|
|
87
|
+
o(this, "mainController");
|
|
88
|
+
o(this, "disposers", []);
|
|
89
|
+
o(this, "measureController");
|
|
90
|
+
o(this, "mode");
|
|
91
|
+
o(this, "svelteDom");
|
|
92
|
+
o(this, "_params");
|
|
93
|
+
o(this, "handleExit", () => {
|
|
94
|
+
const e = this.container.querySelector(".fpm__exit-icon"), t = this.container.querySelector(".fpm__exit");
|
|
95
|
+
if (!t || !e)
|
|
98
96
|
throw new Error("cannot find dom");
|
|
99
|
-
this.mode === "pc" && (Object.assign(t.style, E), Object.assign(
|
|
97
|
+
this.mode === "pc" && (Object.assign(t.style, E), Object.assign(e == null ? void 0 : e.style, x));
|
|
100
98
|
const i = () => {
|
|
101
99
|
t.style.opacity = "1";
|
|
102
100
|
}, s = () => {
|
|
@@ -109,7 +107,7 @@ class to {
|
|
|
109
107
|
};
|
|
110
108
|
});
|
|
111
109
|
var s, n;
|
|
112
|
-
this._params = t, this.measureController =
|
|
110
|
+
this._params = t, this.measureController = e, this.mode = (s = t.mode) != null ? s : "pc", this.container = document.createElement("div"), this.container.innerHTML = this.mode === "mobile" ? u : d, this.container.classList.add("fpm__ui-controller", this.mode), this.container.style.background = "rgba(0, 0, 0, 0.15)";
|
|
113
111
|
const i = (n = t.useNewUI) != null ? n : !1;
|
|
114
112
|
if (i && (t.pointSelectorMode === "cursor" ? this.svelteDom = new _({
|
|
115
113
|
target: t.container,
|
|
@@ -124,17 +122,17 @@ class to {
|
|
|
124
122
|
}
|
|
125
123
|
}
|
|
126
124
|
dispose() {
|
|
127
|
-
var
|
|
128
|
-
this.hide(), (
|
|
125
|
+
var e;
|
|
126
|
+
this.hide(), (e = this.svelteDom) == null || e.$destroy(), this.container.remove();
|
|
129
127
|
}
|
|
130
128
|
show() {
|
|
131
129
|
return this.container.style.display = "block", this.container.style.opacity = "1", this.container.style.transform = "translate(0, 0)", this.mode === "pc" ? (this.revoke = new w(this.measureController, this.container), this.mainController = new S(this.measureController, this.container, this._params)) : this.mainController = new g(this.measureController, this.container, this._params), this.disposers.push(this.handleExit()), this;
|
|
132
130
|
}
|
|
133
131
|
hide() {
|
|
134
|
-
var
|
|
135
|
-
return this.container.style.display = "none", this.container.style.opacity = "0", this.container.style.transform = "translate(0, 10px)", this.mode === "pc" && ((
|
|
132
|
+
var e, t;
|
|
133
|
+
return this.container.style.display = "none", this.container.style.opacity = "0", this.container.style.transform = "translate(0, 10px)", this.mode === "pc" && ((e = this.revoke) == null || e.dispose()), (t = this.mainController) == null || t.dispose(), this.disposers.forEach((i) => i()), this.disposers = [], this;
|
|
136
134
|
}
|
|
137
135
|
}
|
|
138
136
|
export {
|
|
139
|
-
|
|
137
|
+
Yt as UIController
|
|
140
138
|
};
|
|
@@ -19,8 +19,7 @@ import { noop as x } from "../../../shared-utils/noop.js";
|
|
|
19
19
|
import A from "../../utils/calculateThreeMouse.js";
|
|
20
20
|
import { getMouseGroup as X } from "../../utils/mouseGroup.js";
|
|
21
21
|
import "../../../shared-utils/uuid.js";
|
|
22
|
-
|
|
23
|
-
class L {
|
|
22
|
+
class V {
|
|
24
23
|
// eslint-disable-next-line @typescript-eslint/explicit-member-accessibility
|
|
25
24
|
constructor(t) {
|
|
26
25
|
i(this, "container", document.createElement("div"));
|
|
@@ -131,5 +130,5 @@ class L {
|
|
|
131
130
|
}
|
|
132
131
|
}
|
|
133
132
|
export {
|
|
134
|
-
|
|
133
|
+
V as default
|
|
135
134
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import t from "./Controller/index.js";
|
|
2
|
-
import { default as
|
|
3
|
-
import { Model as
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
import { Polyline as
|
|
2
|
+
import { default as Wo } from "./Modules/Magnifier.js";
|
|
3
|
+
import { Model as Yo } from "./Model/index.js";
|
|
4
|
+
import { default as _o } from "./Model/point.js";
|
|
5
|
+
import { default as or } from "./Model/line.js";
|
|
6
|
+
import { Polyline as tr } from "./Model/polyline.js";
|
|
7
7
|
import "./Controller/EditController.js";
|
|
8
8
|
import "../shared-utils/throttle.js";
|
|
9
9
|
import "./Controller/BaseController.js";
|
|
@@ -18,7 +18,6 @@ import "./utils/dom/distanceItem.js";
|
|
|
18
18
|
import "./utils/dom/base.js";
|
|
19
19
|
import "./utils/isNDCPointInScreen.js";
|
|
20
20
|
import "../shared-utils/three/centerPoint.js";
|
|
21
|
-
import "../shared-utils/removeArrayItem.js";
|
|
22
21
|
import "./Model/area.js";
|
|
23
22
|
import "./Model/polygon.js";
|
|
24
23
|
import "../shared-utils/three/IObject3D.js";
|
|
@@ -64,7 +63,6 @@ import "./Modules/DeleteDom/index.js";
|
|
|
64
63
|
import "./Modules/DeleteDom/_Assets/delete.svg.js";
|
|
65
64
|
import "./Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
66
65
|
import "./Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
|
|
67
|
-
import "./utils/findAssociatedLines.js";
|
|
68
66
|
import "./utils/math.js";
|
|
69
67
|
import "./Controller/ViewController.js";
|
|
70
68
|
import "./Controller/WatchController.js";
|
|
@@ -99,15 +97,15 @@ import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
|
99
97
|
import "./Components/Tip.js";
|
|
100
98
|
import "./Controller/ShortcutKeyController.js";
|
|
101
99
|
import "../shared-utils/safeObj.js";
|
|
102
|
-
const
|
|
100
|
+
const To = function(o, r) {
|
|
103
101
|
return new t(o, r);
|
|
104
102
|
};
|
|
105
103
|
export {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
104
|
+
Wo as Magnifier,
|
|
105
|
+
To as PanoMeasurePlugin,
|
|
106
|
+
or as PanoMeasurePluginLine,
|
|
107
|
+
Yo as PanoMeasurePluginModel,
|
|
108
|
+
_o as PanoMeasurePluginPoint,
|
|
109
|
+
tr as PanoMeasurePluginPolyline,
|
|
110
|
+
To as default
|
|
113
111
|
};
|
|
@@ -77,8 +77,7 @@ class K {
|
|
|
77
77
|
});
|
|
78
78
|
/** 兼容视频播放 */
|
|
79
79
|
t(this, "onFiveWantsMoveToPano", (e) => {
|
|
80
|
-
e === this.panoIndex && (this.hasVideoEverPlayed || this.video.play().catch((
|
|
81
|
-
console.error("🐶 ==> error:", i);
|
|
80
|
+
e === this.panoIndex && (this.hasVideoEverPlayed || this.video.play().catch(() => {
|
|
82
81
|
}));
|
|
83
82
|
});
|
|
84
83
|
/** 走到某个点位上时,挂载/卸载视频 */
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import type { Five } from '@realsee/five';
|
|
2
|
+
import type { State, EventMap, ServerData, PluginData, LoadOptions, ShowHideOptions, SetSpeedOptions, ShowPipelinesOptions } from './typing';
|
|
3
|
+
import * as THREE from 'three';
|
|
4
|
+
import * as BasePlugin from '../base/BasePluginWithData';
|
|
5
|
+
import { ObjectFlowPipe } from './utils/Objects/FlowPipe';
|
|
6
|
+
export declare class Controller extends BasePlugin.Controller<State, EventMap, ServerData.RootObject, PluginData.RootObject> {
|
|
7
|
+
data?: PluginData.RootObject;
|
|
8
|
+
/** 插件状态
|
|
9
|
+
* @property `visible` `<boolean>` 是否可见
|
|
10
|
+
* @property `enabled` `<boolean>` 是否启用
|
|
11
|
+
* @property `visiblePipeIDs` `<string[]>` 可见的管道 ID
|
|
12
|
+
* @property `speed` `<Speed>` 水流速度
|
|
13
|
+
* @property `speed.flowSpeed` `<number>` 横向流动速度,默认是 0.6 m/s
|
|
14
|
+
* @property `speed.rotateSpeed` `<number>` 纵向旋转速度:默认是 0 deg/s
|
|
15
|
+
*/
|
|
16
|
+
state: State;
|
|
17
|
+
/** 当前插件所有新增 THREE 相关副作用都在 group 下 */
|
|
18
|
+
group: THREE.Group;
|
|
19
|
+
/** 用于展示水流的水管 */
|
|
20
|
+
pipeObjects: ObjectFlowPipe[];
|
|
21
|
+
/** 水管贴图缓存 */
|
|
22
|
+
private texturePromiseCache;
|
|
23
|
+
constructor(five: Five);
|
|
24
|
+
/** 加载管道数据,重复调用会使用新数据覆盖旧数据
|
|
25
|
+
* @param `data` `<Plugin.ServerData>` Open API 接口返回的数据。
|
|
26
|
+
* @param `initialState` `<Plugin.State> | <undefined>` 数据加载后,要应用的 state,默认是 undefined。
|
|
27
|
+
* @param `userAction` `<boolean> | <undefined>` 是否是用户操作,默认是 true。
|
|
28
|
+
* @param `options` `<Plugin.LoadOptions> | <undefined>` 数据加载配置项。
|
|
29
|
+
* @param `options.getPipeRadius` `<(pipe: ServerData.LinesDataset) => number> | <undefined>` 允许用户通过函数自定义管道半径。
|
|
30
|
+
* @param `options.getPipeUrl` `<(water: Water) => string> | <undefined>` 允许用户通过函数自定义管道贴图,
|
|
31
|
+
* 函数返回的 string 就是当前 water 对应的贴图地址。
|
|
32
|
+
*/
|
|
33
|
+
load(data: ServerData.RootObject, initialState?: Partial<State>, userAction?: boolean, options?: Partial<LoadOptions>): Promise<void>;
|
|
34
|
+
/** 更改插件 State
|
|
35
|
+
* @param `state` `<Partial<Plugin.State>>` 插件属性 `state` 的子集。
|
|
36
|
+
* @param `options` `<Option> | <undefined>`
|
|
37
|
+
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
38
|
+
*/
|
|
39
|
+
setState(state: Partial<State>, options?: BasePlugin.BaseOptions): void;
|
|
40
|
+
/** 启用插件
|
|
41
|
+
* @param `options` `<Option> | <undefined>`
|
|
42
|
+
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
43
|
+
*/
|
|
44
|
+
enable(options?: BasePlugin.BaseOptions): void;
|
|
45
|
+
/** 禁用插件
|
|
46
|
+
* @param `options` `<Option> | <undefined>`
|
|
47
|
+
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
48
|
+
*/
|
|
49
|
+
disable(options?: BasePlugin.BaseOptions): void;
|
|
50
|
+
/** 展示管道模型,注意如果通过 `switchPipelines` 更改过 `visibleIDs`,则只会展示这一部分模型。
|
|
51
|
+
* @param `options` `<Partial<ShowHideOptions>> | <undefined>`
|
|
52
|
+
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
53
|
+
* @param `options.anime` `<AnimeOptions> | <undefined>` 动画配置。
|
|
54
|
+
* @param `options.anime.duration` `<number> | <undefined>` 动画时间,默认是 500ms。
|
|
55
|
+
*/
|
|
56
|
+
show(options?: Partial<ShowHideOptions>): Promise<void>;
|
|
57
|
+
/** 插件内容整体隐藏
|
|
58
|
+
* @param `options` `<Partial<ShowHideOptions>> | <undefined>`
|
|
59
|
+
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
60
|
+
* @param `options.anime` `<AnimeOptions> | <undefined>` 动画配置。
|
|
61
|
+
* @param `options.anime.duration` `<number> | <undefined>` 动画时间,默认是 500ms。
|
|
62
|
+
*/
|
|
63
|
+
hide(options?: Partial<ShowHideOptions>): Promise<void>;
|
|
64
|
+
/** 切换管路
|
|
65
|
+
* @param `options` `Partial<ShowPipelinesOptions> | <undefined>`
|
|
66
|
+
* @param `options.target` `<{ startLibraryID: number; endLibraryID: number }[]> | <undefined>`
|
|
67
|
+
* 目标管路,存在时,展示目标管路包含的管道,同时隐藏其他管道。不存在则展示所有管道。
|
|
68
|
+
* startLibraryID 和 endLibraryID 是起始和结束的设备 ID。
|
|
69
|
+
* @param `options.showAnime` `<AnimeOptions> | <undefined>` 展示的动画配置。
|
|
70
|
+
* @param `options.hideAnime` `<AnimeOptions> | <undefined>` 隐藏的动画配置。
|
|
71
|
+
* @param `options.anime` `<AnimeOptions> | <undefined>` 兜底的动画配置。
|
|
72
|
+
* @param `options.userAction` `<boolean> | <undefined>` 是否是否是用户操作。
|
|
73
|
+
* */
|
|
74
|
+
switchPipelines(options?: Partial<ShowPipelinesOptions>): Promise<void>;
|
|
75
|
+
/** 开始流动 */
|
|
76
|
+
flow(options?: BasePlugin.BaseOptions): void;
|
|
77
|
+
/** 停止流动 */
|
|
78
|
+
stopFlow(options?: BasePlugin.BaseOptions): void;
|
|
79
|
+
/** 更改水管流速
|
|
80
|
+
* @param `options` `<SetSpeedOptions> | <undefined>`
|
|
81
|
+
* @param `options.speed` `<Speed> | <undefined>` 参考 `state.speed` 的描述。
|
|
82
|
+
* @param `options.userAction` `<boolean> | <undefined>` 是否是否是用户操作。
|
|
83
|
+
*/
|
|
84
|
+
setSpeed(options?: Partial<SetSpeedOptions>): void;
|
|
85
|
+
/** 销毁插件,移除所有副作用,销毁后将不响应任何 API */
|
|
86
|
+
dispose: () => void;
|
|
87
|
+
protected formatData(data: ServerData.RootObject, options?: Partial<LoadOptions>): Promise<PluginData.RootObject>;
|
|
88
|
+
private _enable;
|
|
89
|
+
private _disable;
|
|
90
|
+
private _show;
|
|
91
|
+
private _hide;
|
|
92
|
+
private _switchPipelines;
|
|
93
|
+
private _flow;
|
|
94
|
+
private _stopFlow;
|
|
95
|
+
private _setSpeed;
|
|
96
|
+
private updateState;
|
|
97
|
+
/** 加载管道贴图,如果再加载中,复用之前的加载 Promise */
|
|
98
|
+
private loadPipeTexture;
|
|
99
|
+
/** 销毁所有动画 */
|
|
100
|
+
private disposeAnime;
|
|
101
|
+
/** 移除所有管道模型 */
|
|
102
|
+
private removeAllPipes;
|
|
103
|
+
/** 根据 ID 查找管道模型 */
|
|
104
|
+
private findPipeObjectWithID;
|
|
105
|
+
/** 根据 target 查找管道模型 */
|
|
106
|
+
private findPipeObjectWithTarget;
|
|
107
|
+
private onWantsFiveTapGesture;
|
|
108
|
+
}
|