@realsee/dnalogel 2.25.0 → 2.26.0
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/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 +9269 -8673
- package/dist/index.umd.js +93 -58
- 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 +16 -13
- package/docs/classes/PanoMeasurePluginPolyline.html +29 -26
- 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/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 -108
- 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
|
@@ -68,7 +68,7 @@ export interface MoveWithKeyframesAction extends MoveAction {
|
|
|
68
68
|
/** for ts check, no care */
|
|
69
69
|
panoIndexList?: undefined;
|
|
70
70
|
}
|
|
71
|
-
export interface PluginServerData
|
|
71
|
+
export interface PluginServerData {
|
|
72
72
|
data: MoveWithKeyframesAction | MoveWithPanoIndexAction;
|
|
73
73
|
}
|
|
74
74
|
export interface PluginState extends BasePluginWithData.State {
|
|
@@ -20,7 +20,7 @@ export type PluginData = {
|
|
|
20
20
|
routes?: Route[];
|
|
21
21
|
config?: RouteConfig;
|
|
22
22
|
};
|
|
23
|
-
export interface PluginServerData
|
|
23
|
+
export interface PluginServerData {
|
|
24
24
|
data: PluginData;
|
|
25
25
|
}
|
|
26
26
|
export interface PluginState extends BasePluginWithData.State {
|
|
@@ -49,7 +49,7 @@ export interface EventMap extends BasePlugin.EventMap<State, PluginData> {
|
|
|
49
49
|
userAction: boolean;
|
|
50
50
|
}) => void;
|
|
51
51
|
}
|
|
52
|
-
export interface PluginServerData
|
|
52
|
+
export interface PluginServerData {
|
|
53
53
|
version: number;
|
|
54
54
|
data: PluginData;
|
|
55
55
|
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { FivePlugin } from '@realsee/five';
|
|
2
|
+
import { Controller } from './Controller';
|
|
3
|
+
export declare const PipelinePlugin: FivePlugin<undefined, Controller>;
|
|
4
|
+
export type PipelinePluginParameterType = undefined;
|
|
5
|
+
export type PipelinePluginReturnType = InstanceType<typeof Controller>;
|
|
6
|
+
export default PipelinePlugin;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface Water {
|
|
2
|
+
isHot: boolean;
|
|
3
|
+
quality: number;
|
|
4
|
+
}
|
|
5
|
+
export interface Pipe {
|
|
6
|
+
id: string;
|
|
7
|
+
path: number[][];
|
|
8
|
+
texture?: string;
|
|
9
|
+
radius: number;
|
|
10
|
+
water: Water;
|
|
11
|
+
}
|
|
12
|
+
export interface Pipeline {
|
|
13
|
+
startLibraryID: number;
|
|
14
|
+
endLibraryID: number;
|
|
15
|
+
pipes: Pipe[];
|
|
16
|
+
}
|
|
17
|
+
export interface RootObject {
|
|
18
|
+
pipelines: Pipeline[];
|
|
19
|
+
pipes: Pipe[];
|
|
20
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface LinesDataset {
|
|
2
|
+
id: string;
|
|
3
|
+
type: string;
|
|
4
|
+
name: string;
|
|
5
|
+
data: number[][];
|
|
6
|
+
}
|
|
7
|
+
export interface ConnectsDataset {
|
|
8
|
+
waterType: number;
|
|
9
|
+
start: number;
|
|
10
|
+
end: number;
|
|
11
|
+
data: string[];
|
|
12
|
+
}
|
|
13
|
+
export interface WaterTypeMap {
|
|
14
|
+
name: string;
|
|
15
|
+
type: number;
|
|
16
|
+
}
|
|
17
|
+
export interface ModelMap {
|
|
18
|
+
library: number;
|
|
19
|
+
name: string;
|
|
20
|
+
}
|
|
21
|
+
/** LinesDataset 的别名 */
|
|
22
|
+
export type PipeItem = LinesDataset;
|
|
23
|
+
export interface RootObject {
|
|
24
|
+
LinesDataset: LinesDataset[];
|
|
25
|
+
ConnectsDataset: ConnectsDataset[];
|
|
26
|
+
WaterTypeMap: WaterTypeMap[];
|
|
27
|
+
ModelMap: ModelMap[];
|
|
28
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type * as THREE from 'THREE';
|
|
2
|
+
import type * as PluginData from './PluginData';
|
|
3
|
+
import type * as ServerData from './ServerData';
|
|
4
|
+
import type * as BasePlugin from '../../base/BasePluginWithData';
|
|
5
|
+
import type { EventCallback } from '@realsee/five';
|
|
6
|
+
import type { AnimeOptions } from '../utils/Objects/Pipe';
|
|
7
|
+
export interface PipelineTargetItem {
|
|
8
|
+
startLibraryID: number;
|
|
9
|
+
endLibraryID: number;
|
|
10
|
+
}
|
|
11
|
+
export interface State extends BasePlugin.State {
|
|
12
|
+
enabled: boolean;
|
|
13
|
+
visible: boolean;
|
|
14
|
+
isFlowing: boolean;
|
|
15
|
+
speed: Speed;
|
|
16
|
+
target: null | PipelineTargetItem[];
|
|
17
|
+
}
|
|
18
|
+
export interface LoadOptions {
|
|
19
|
+
/** 获取管道半径,单位是 m。默认是 0.016 m */
|
|
20
|
+
getPipeRadius: (pipe: ServerData.LinesDataset) => number;
|
|
21
|
+
/** 自定义不同水质的贴图 */
|
|
22
|
+
getPipeUrl: <T extends PluginData.Water>(water: T) => string;
|
|
23
|
+
}
|
|
24
|
+
export interface EventMap extends BasePlugin.EventMap<State, PluginData.RootObject> {
|
|
25
|
+
/** visible 从 false 到 true 的回调
|
|
26
|
+
* @param event.userAction 是否是用户操作
|
|
27
|
+
*/
|
|
28
|
+
show: (event: {
|
|
29
|
+
userAction: boolean;
|
|
30
|
+
}) => void;
|
|
31
|
+
/** visible 从 true 到 false 的回调
|
|
32
|
+
* @param event.userAction 是否是用户操作
|
|
33
|
+
*/
|
|
34
|
+
hide: (event: {
|
|
35
|
+
userAction: boolean;
|
|
36
|
+
}) => void;
|
|
37
|
+
/** enabled 从 false 到 true 的回调
|
|
38
|
+
* @param event.userAction 是否是用户操作
|
|
39
|
+
*/
|
|
40
|
+
enable: (event: {
|
|
41
|
+
userAction: boolean;
|
|
42
|
+
}) => void;
|
|
43
|
+
/** enabled 从 true 到 false 的回调
|
|
44
|
+
* @param event.userAction 是否是用户操作
|
|
45
|
+
*/
|
|
46
|
+
disable: (event: {
|
|
47
|
+
userAction: boolean;
|
|
48
|
+
}) => void;
|
|
49
|
+
tap: (data: {
|
|
50
|
+
pipe: PluginData.Pipe;
|
|
51
|
+
pipeline: PluginData.Pipeline;
|
|
52
|
+
intersectObjects: THREE.Intersection[];
|
|
53
|
+
wantsFiveTapGestureParams: Parameters<EventCallback['wantsTapGesture']>;
|
|
54
|
+
}) => any;
|
|
55
|
+
}
|
|
56
|
+
export interface ShowHideOptions {
|
|
57
|
+
userAction: boolean;
|
|
58
|
+
anime: AnimeOptions;
|
|
59
|
+
}
|
|
60
|
+
export interface ShowPipelinesOptions {
|
|
61
|
+
userAction: boolean;
|
|
62
|
+
showAnime: AnimeOptions;
|
|
63
|
+
hideAnime: AnimeOptions;
|
|
64
|
+
anime: AnimeOptions;
|
|
65
|
+
target: PipelineTargetItem[];
|
|
66
|
+
}
|
|
67
|
+
/** 流速 */
|
|
68
|
+
export interface Speed {
|
|
69
|
+
/** 横向流速:m/s */
|
|
70
|
+
flowSpeed?: number;
|
|
71
|
+
/** 纵向旋转速度:deg/s */
|
|
72
|
+
rotateSpeed?: number;
|
|
73
|
+
}
|
|
74
|
+
export interface SetSpeedOptions {
|
|
75
|
+
speed: Speed;
|
|
76
|
+
userAction: boolean;
|
|
77
|
+
}
|
|
78
|
+
export * as ServerData from './ServerData';
|
|
79
|
+
export * as PluginData from './PluginData';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { PipeParams as BasePipeParams } from './Pipe';
|
|
2
|
+
import { ObjectPipe } from './Pipe';
|
|
3
|
+
export type PipeParams = BasePipeParams;
|
|
4
|
+
export declare class ObjectFlowPipe extends ObjectPipe {
|
|
5
|
+
/** 初始状态下,当前水管内的水流在整体管道上的位移
|
|
6
|
+
* @description 因为水管是不连续的,而要达到水流的连续效果,需要用过贴图的 uOffset 控制每根水管的初始状态
|
|
7
|
+
*/
|
|
8
|
+
private initialDisplacement;
|
|
9
|
+
private oldTime;
|
|
10
|
+
/** 横向流动速度:m / s */
|
|
11
|
+
private flowSpeed;
|
|
12
|
+
/** 纵向旋转速度:deg / s */
|
|
13
|
+
private rotateSpeed;
|
|
14
|
+
constructor(params: PipeParams);
|
|
15
|
+
setInitialDisplacement(distance: number, direction?: 'forward' | 'backward'): void;
|
|
16
|
+
/** 水流移动「基于初始位置」
|
|
17
|
+
* @description 因为贴图的运动与 u 的 uOffset 相反,比较反直觉,所以封装方法易于理解
|
|
18
|
+
* @param displacement 位移:米 * 方向(向前 -> 正, 向后 -> 负)
|
|
19
|
+
*/
|
|
20
|
+
moveFromOrigin(displacement: number): boolean;
|
|
21
|
+
/** 水流移动「基于调整管道差值之后的位置」
|
|
22
|
+
*
|
|
23
|
+
* @param distance 位移:米 * 方向
|
|
24
|
+
*/
|
|
25
|
+
moveForwardFromInitialOffset(distance: number): void;
|
|
26
|
+
flow(): void;
|
|
27
|
+
stopFlow(): void;
|
|
28
|
+
setSpeed(speed?: {
|
|
29
|
+
flowSpeed?: number;
|
|
30
|
+
rotateSpeed?: number;
|
|
31
|
+
}): void;
|
|
32
|
+
disposeAnime(): void;
|
|
33
|
+
private flowAnimationDisposer;
|
|
34
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
import { BetterTween } from '../../../shared-utils';
|
|
3
|
+
import { CustomBezierCurve3 } from '../../../shared-utils/three/Extras/Curves/BezierCurve3';
|
|
4
|
+
export interface PipeParams {
|
|
5
|
+
id?: string;
|
|
6
|
+
path: number[][];
|
|
7
|
+
texture: THREE.Texture;
|
|
8
|
+
geometryConfig?: {
|
|
9
|
+
radius?: number;
|
|
10
|
+
radialSegments?: number;
|
|
11
|
+
tubularSegments?: number;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export interface AnimeOptions {
|
|
15
|
+
duration?: number;
|
|
16
|
+
}
|
|
17
|
+
export declare class ObjectPipe extends THREE.Mesh<THREE.TubeBufferGeometry, THREE.ShaderMaterial> {
|
|
18
|
+
/** 根据控制点数量计算管道路径
|
|
19
|
+
*
|
|
20
|
+
* @description 两个控制点使用直线路径,多个控制点使用贝塞尔路径
|
|
21
|
+
*/
|
|
22
|
+
static calculatePath(points: THREE.Vector3[]): THREE.LineCurve3 | CustomBezierCurve3;
|
|
23
|
+
static formatGeometryUV<T extends THREE.BufferGeometry>(geometry: T, pathLength: number, uPreMeter: number): T;
|
|
24
|
+
/**
|
|
25
|
+
* 管道的 Texture 需要满足一定的要求,需要使用 formatTexture 先 format
|
|
26
|
+
*/
|
|
27
|
+
static formatTexture(texture: THREE.Texture): THREE.Texture;
|
|
28
|
+
geometryConfig: {
|
|
29
|
+
radius: number;
|
|
30
|
+
tubularSegments: number;
|
|
31
|
+
radialSegments: number;
|
|
32
|
+
};
|
|
33
|
+
customID: string;
|
|
34
|
+
path: THREE.LineCurve3 | CustomBezierCurve3;
|
|
35
|
+
pathLength: number;
|
|
36
|
+
pathPoints: number[][];
|
|
37
|
+
texture: THREE.Texture;
|
|
38
|
+
protected opacityAnime?: BetterTween<{
|
|
39
|
+
progress: number;
|
|
40
|
+
}>;
|
|
41
|
+
/** u / m: 每米水管对应到贴图上,应该对应的 u 的长度 */
|
|
42
|
+
protected uPreMeter: number;
|
|
43
|
+
constructor(params: PipeParams, fragmentShader?: string);
|
|
44
|
+
hide(options?: AnimeOptions): Promise<boolean>;
|
|
45
|
+
show(options?: AnimeOptions): Promise<boolean>;
|
|
46
|
+
setOpacity(value: number): boolean;
|
|
47
|
+
disposeAnime(): void;
|
|
48
|
+
dispose(): void;
|
|
49
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { PluginData, ServerData, LoadOptions } from '../typing';
|
|
2
|
+
/** 从 PluginData 中找到符合「从 ID 为 startLibraryID 的设备到 ID 为 endLibraryID 的设备」的 pipe data */
|
|
3
|
+
export declare function getPipesFromLibrary(params: {
|
|
4
|
+
data: PluginData.RootObject;
|
|
5
|
+
target: {
|
|
6
|
+
startLibraryID: number;
|
|
7
|
+
endLibraryID: number;
|
|
8
|
+
}[];
|
|
9
|
+
}): PluginData.Pipe[];
|
|
10
|
+
/** 获取默认的管道贴图 */
|
|
11
|
+
export declare function getDefaultPipeUrl<T extends PluginData.Water>(water: T): string | undefined;
|
|
12
|
+
export declare function format(origin: ServerData.RootObject, options?: Partial<LoadOptions>): PluginData.RootObject;
|
|
@@ -7,20 +7,7 @@ interface EventMap<PluginState, PluginData> extends BasePlugin.EventMap<PluginSt
|
|
|
7
7
|
/** 数据加载完成 */
|
|
8
8
|
dataLoaded: (data: PluginData) => void;
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
* 插件的基础数据
|
|
12
|
-
*/
|
|
13
|
-
interface ServerData {
|
|
14
|
-
/**
|
|
15
|
-
* 数据版本
|
|
16
|
-
*/
|
|
17
|
-
version: number;
|
|
18
|
-
/**
|
|
19
|
-
* 数据
|
|
20
|
-
*/
|
|
21
|
-
data?: unknown;
|
|
22
|
-
}
|
|
23
|
-
declare abstract class Controller<PluginState extends State, PluginEventMap extends EventMap<PluginState, PluginData>, PluginServerData extends ServerData, PluginData> extends BasePlugin.Controller<PluginState, PluginEventMap> {
|
|
10
|
+
declare abstract class Controller<PluginState extends State, PluginEventMap extends EventMap<PluginState, PluginData>, PluginServerData, PluginData> extends BasePlugin.Controller<PluginState, PluginEventMap> {
|
|
24
11
|
protected abstract data?: PluginData;
|
|
25
12
|
/**
|
|
26
13
|
* 加载插件依赖数据
|
|
@@ -31,5 +18,6 @@ declare abstract class Controller<PluginState extends State, PluginEventMap exte
|
|
|
31
18
|
/** 把原始数据转化为插件数据 */
|
|
32
19
|
protected abstract formatData?(serverData: PluginServerData): Promise<PluginData>;
|
|
33
20
|
}
|
|
34
|
-
export type { State, EventMap,
|
|
21
|
+
export type { State, EventMap, Config };
|
|
22
|
+
export type { BaseOptions } from './BasePlugin';
|
|
35
23
|
export { Controller };
|
|
@@ -60,7 +60,7 @@ export interface Parameters extends Partial<Config> {
|
|
|
60
60
|
selector?: string | Element;
|
|
61
61
|
scale?: number;
|
|
62
62
|
}
|
|
63
|
-
export interface PluginServerData
|
|
63
|
+
export interface PluginServerData {
|
|
64
64
|
version: number;
|
|
65
65
|
data: FloorplanServerData;
|
|
66
66
|
}
|