@realsee/dnalogel 3.80.7 → 3.81.0-alpha.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/DigitalPerformancePlugin/core/DigitalHuman.d.ts +18 -0
- package/dist/DigitalPerformanceV2Plugin/controller/index.d.ts +330 -0
- package/dist/DigitalPerformanceV2Plugin/core/CameraDirector.d.ts +61 -0
- package/dist/DigitalPerformanceV2Plugin/core/CameraSampler.d.ts +53 -0
- package/dist/DigitalPerformanceV2Plugin/core/CameraTrack.d.ts +21 -0
- package/dist/DigitalPerformanceV2Plugin/core/FiveModelCameraBridge.d.ts +39 -0
- package/dist/DigitalPerformanceV2Plugin/core/PerformanceClock.d.ts +55 -0
- package/dist/DigitalPerformanceV2Plugin/core/Playground.d.ts +106 -0
- package/dist/DigitalPerformanceV2Plugin/core/shared.d.ts +4 -0
- package/dist/DigitalPerformanceV2Plugin/index.d.ts +9 -0
- package/dist/DigitalPerformanceV2Plugin/typings/index.d.ts +113 -0
- package/dist/index.cjs.js +84 -84
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8206 -6916
- package/dist/index.umd.js +77 -77
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +2 -2
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +2 -2
- package/docs/classes/CSS3DRender.html +2 -2
- package/docs/classes/DigitalHuman.html +11 -2
- package/docs/classes/DigitalPerformanceV2.DigitalPerformanceV2PluginController.html +156 -0
- package/docs/classes/DigitalPlayground.html +2 -2
- package/docs/classes/DigitalStateMachine.html +2 -2
- package/docs/classes/GuideLineItem.GuideLineItem.html +2 -2
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +2 -2
- package/docs/classes/ModelMakerPluginInstance.html +2 -2
- package/docs/classes/ModelMakerPluginType.ModelMakerBoxItem.html +2 -2
- package/docs/classes/ModelMakerPluginType.ModelMakerPolygonItem.html +2 -2
- package/docs/classes/ModelMakerPluginType.ModelMakerPrismItem.html +2 -2
- package/docs/classes/ModelRoomLabelController.html +2 -2
- package/docs/classes/MoveController.html +2 -2
- package/docs/classes/Object3DHelperController.html +2 -2
- package/docs/classes/PaintBrush.html +2 -2
- package/docs/classes/PanoMeasurePluginLine.html +2 -2
- package/docs/classes/PanoMeasurePluginModel.html +2 -2
- package/docs/classes/PanoMeasurePluginPoint.html +2 -2
- package/docs/classes/PanoMeasurePluginPolyline.html +2 -2
- package/docs/classes/PanoTagPluginController.html +2 -2
- package/docs/classes/Sculpt.html +2 -2
- package/docs/classes/Util.BetterTween.html +2 -2
- package/docs/classes/Util.FiveDomEvents.html +2 -2
- package/docs/classes/Util.FivePuppet.html +2 -2
- package/docs/classes/Util.Interval.html +2 -2
- package/docs/classes/Util.LegacyPointHelper.html +2 -2
- package/docs/classes/Util.LightTag.html +2 -2
- package/docs/classes/Util.LineSegments.html +2 -2
- package/docs/classes/Util.Magnifier.html +2 -2
- package/docs/classes/Util.Object3D.html +2 -2
- package/docs/classes/Util.PointDomHelper.html +2 -2
- package/docs/classes/Util.PointHelper.html +2 -2
- package/docs/classes/Util.PointSelector.html +2 -2
- package/docs/classes/Util.PointSelectorHelper.html +2 -2
- package/docs/classes/Util.Rectangle.html +2 -2
- package/docs/classes/Util.sculpt.BaseEditor.html +2 -2
- package/docs/classes/Util.sculpt.BoxMesh.html +2 -2
- package/docs/classes/Util.sculpt.BoxMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.CircleMesh.html +2 -2
- package/docs/classes/Util.sculpt.CircleMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +2 -2
- package/docs/classes/Util.sculpt.CylinderMesh.html +2 -2
- package/docs/classes/Util.sculpt.CylinderMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.LineMesh.html +2 -2
- package/docs/classes/Util.sculpt.PointMesh.html +2 -2
- package/docs/classes/Util.sculpt.PolygonMesh.html +2 -2
- package/docs/classes/Util.sculpt.PrismMesh.html +2 -2
- package/docs/classes/Util.sculpt.PrismMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.RectangleMesh.html +2 -2
- package/docs/classes/Util.sculpt.RectangleMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +2 -2
- package/docs/classes/WalkController.html +2 -2
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/ContentType.html +2 -2
- package/docs/enums/DIRECTION.html +2 -2
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/DimensionType.html +2 -2
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +2 -2
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/PaintBrushTypeEnum.html +2 -2
- package/docs/enums/PointType.html +2 -2
- package/docs/enums/Rotation.html +2 -2
- package/docs/functions/AreaMakerPlugin.html +1 -1
- package/docs/functions/CSS3DRenderPlugin.html +1 -1
- package/docs/functions/CameraMovementPlugin.html +2 -2
- package/docs/functions/CruisePlugin.html +1 -1
- package/docs/functions/CurrentPanoImagePlugin.html +1 -1
- package/docs/functions/DigitalPerformancePlugin.html +1 -1
- package/docs/functions/DigitalPerformanceV2.DigitalPerformanceV2Plugin.html +1 -0
- package/docs/functions/FloorplanGuidePlugin.html +1 -1
- package/docs/functions/GuideLinePlugin.html +1 -1
- package/docs/functions/ItemLabelPlugin.html +1 -1
- package/docs/functions/MapviewFloorplanPlugin.html +1 -1
- package/docs/functions/MeasurePlugin.html +1 -1
- package/docs/functions/ModelChassisCompassPlugin.html +2 -2
- package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -2
- package/docs/functions/ModelFloorplanPlugin.html +1 -1
- package/docs/functions/ModelItemLabelPlugin.html +1 -1
- package/docs/functions/ModelMakerPlugin.html +1 -1
- package/docs/functions/ModelRoomLabelPlugin.html +1 -1
- package/docs/functions/ModelTVVideoPlugin.html +1 -1
- package/docs/functions/ModelViewPlugin.html +2 -2
- package/docs/functions/MovePlugin.html +1 -1
- package/docs/functions/Object3DHelperPlugin.html +1 -1
- package/docs/functions/PanoCompassPlugin.html +1 -1
- package/docs/functions/PanoCursorRaycasterPlugin.html +2 -2
- package/docs/functions/PanoDoorLabelPlugin.html +1 -1
- package/docs/functions/PanoFloorplanRadarPlugin.html +1 -1
- package/docs/functions/PanoMeasurePlugin.html +1 -1
- package/docs/functions/PanoRulerPlugin.html +2 -2
- package/docs/functions/PanoRulerProPlugin.html +2 -2
- package/docs/functions/PanoSpatialTagPlugin.html +2 -2
- package/docs/functions/PanoTagPlugin.html +1 -1
- package/docs/functions/PanoVideoPlugin.html +2 -2
- package/docs/functions/PipelinePlugin.html +1 -1
- package/docs/functions/SculptPlugin.html +2 -2
- package/docs/functions/SculptPluginForFive.html +2 -2
- package/docs/functions/TopviewFloorplanPlugin.html +1 -1
- package/docs/functions/Util.awaitNextFrame.html +1 -1
- package/docs/functions/Util.blink.html +2 -2
- package/docs/functions/Util.blinkWithPreset.html +2 -2
- package/docs/functions/Util.bounding.html +1 -1
- package/docs/functions/Util.boundingBox.html +1 -1
- package/docs/functions/Util.boundingSphere.html +1 -1
- package/docs/functions/Util.boxVertex.html +2 -2
- package/docs/functions/Util.boxVertexes.html +1 -1
- package/docs/functions/Util.checkFiveModelLoaded.html +2 -2
- package/docs/functions/Util.cleanup.html +2 -2
- package/docs/functions/Util.convexHull.html +2 -2
- package/docs/functions/Util.equal.html +2 -2
- package/docs/functions/Util.fiveModelIsLoaded.html +2 -2
- package/docs/functions/Util.generatePolygonGeometry.html +2 -2
- package/docs/functions/Util.getCoordsFromClient.html +1 -1
- package/docs/functions/Util.getCoordsFromElement.html +1 -1
- package/docs/functions/Util.getFrameTime.html +2 -2
- package/docs/functions/Util.getGeometryArea.html +1 -1
- package/docs/functions/Util.getGeometryInfo.html +1 -1
- package/docs/functions/Util.getIntersectFromRelativePosition.html +1 -1
- package/docs/functions/Util.getRaycasterFromFivePointer.html +1 -1
- package/docs/functions/Util.initialCSS3DRender.html +1 -1
- package/docs/functions/Util.inside.html +1 -1
- package/docs/functions/Util.isModelLike.html +1 -1
- package/docs/functions/Util.isNil.html +2 -2
- package/docs/functions/Util.isPanoramaLike.html +1 -1
- package/docs/functions/Util.lookObject.html +2 -2
- package/docs/functions/Util.lookPoint.html +2 -2
- package/docs/functions/Util.nextFrame.html +1 -1
- package/docs/functions/Util.notNil.html +2 -2
- package/docs/functions/Util.reblink.html +2 -2
- package/docs/functions/Util.replaceStaticPrefix.html +2 -2
- package/docs/functions/Util.requestAnimationFrameInterval.html +2 -2
- package/docs/functions/Util.sculpt.createBox.html +1 -1
- package/docs/functions/Util.sculpt.createCircle.html +1 -1
- package/docs/functions/Util.sculpt.createCylinder.html +1 -1
- package/docs/functions/Util.sculpt.createLine.html +2 -2
- package/docs/functions/Util.sculpt.createPoint.html +1 -1
- package/docs/functions/Util.sculpt.createPolygon.html +1 -1
- package/docs/functions/Util.sculpt.createPrism.html +1 -1
- package/docs/functions/Util.sculpt.createRectangle.html +2 -2
- package/docs/functions/Util.sculpt.transformUnit.html +1 -1
- package/docs/functions/Util.sculpt.transformUnitSquare.html +1 -1
- package/docs/functions/Util.tag.html +1 -1
- package/docs/functions/Util.triangleArea.html +2 -2
- package/docs/functions/Util.triangleCenter.html +2 -2
- package/docs/functions/Util.tweenProgress.html +1 -1
- package/docs/functions/Util.uuid.html +2 -2
- package/docs/functions/Util.waitFiveModelLoaded.html +2 -2
- package/docs/functions/Util.worldBounding.html +1 -1
- package/docs/functions/Util.worldBoundingBox.html +1 -1
- package/docs/functions/Util.worldBoundingSphere.html +1 -1
- package/docs/functions/createPolyline.html +2 -2
- package/docs/functions/pluginFlag.html +1 -1
- package/docs/functions/validatePolygon.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.Config.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.Params.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.State.html +2 -2
- package/docs/interfaces/BoxAnimationConfig.html +2 -2
- package/docs/interfaces/BoxPosition.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/ChapterLocation.html +2 -2
- package/docs/interfaces/ChapterTimeInfo.html +2 -2
- package/docs/interfaces/ContentTypeMapInterface.html +2 -2
- package/docs/interfaces/CruisePluginTypes.Config.html +2 -2
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
- package/docs/interfaces/CruisePluginTypes.EventMap.html +2 -2
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginState.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +2 -2
- package/docs/interfaces/DigitalCameraKeyframe.html +2 -2
- package/docs/interfaces/DigitalCameraPlayer.html +2 -2
- package/docs/interfaces/DigitalCameraState.html +2 -2
- package/docs/interfaces/DigitalChapter.html +2 -2
- package/docs/interfaces/DigitalDataPlayer.html +2 -2
- package/docs/interfaces/DigitalDataState.html +2 -2
- package/docs/interfaces/DigitalEffectKeyframe.html +2 -2
- package/docs/interfaces/DigitalEffectState.html +2 -2
- package/docs/interfaces/DigitalItemKeyframe.html +2 -2
- package/docs/interfaces/DigitalItemState.html +2 -2
- package/docs/interfaces/DigitalModelKeyframe.html +2 -2
- package/docs/interfaces/DigitalModelPlayer.html +2 -2
- package/docs/interfaces/DigitalModelPlayerEffect.html +2 -2
- package/docs/interfaces/DigitalModelPlayerItem.html +2 -2
- package/docs/interfaces/DigitalModelState.html +2 -2
- package/docs/interfaces/DigitalPerformancePluginConfig.html +2 -2
- package/docs/interfaces/DigitalPerformanceV2.CameraState.html +13 -0
- package/docs/interfaces/DigitalPerformanceV2.DigitalCameraKeyframe.html +23 -0
- package/docs/interfaces/DigitalPerformanceV2.DigitalCameraPlayer.html +7 -0
- package/docs/interfaces/DigitalPerformanceV2.DigitalPerformanceV2PluginConfig.html +7 -0
- package/docs/interfaces/DigitalPerformanceV2.GroupChapterTimeInfo.html +13 -0
- package/docs/interfaces/DigitalPerformanceV2.GroupProgress.html +18 -0
- package/docs/interfaces/DigitalPerformanceV2.V2Progress.html +10 -0
- package/docs/interfaces/DigitalScript.html +2 -2
- package/docs/interfaces/DigitalSubTitleKeyframe.html +2 -2
- package/docs/interfaces/DigitalSubTitlePlayer.html +2 -2
- package/docs/interfaces/DigitalSubTitleState.html +2 -2
- package/docs/interfaces/ExtendedAnimationConfig.html +2 -2
- package/docs/interfaces/FloorplanBounding.html +2 -2
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +2 -2
- package/docs/interfaces/FloorplanExtraObject.html +2 -2
- package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
- package/docs/interfaces/FloorplanFloorData.html +2 -2
- package/docs/interfaces/FloorplanImagePosition.html +2 -2
- package/docs/interfaces/FloorplanObserver.html +2 -2
- package/docs/interfaces/FloorplanOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanPosition.html +2 -2
- package/docs/interfaces/FloorplanRoomItem.html +2 -2
- package/docs/interfaces/FloorplanRoomLabelItem.html +2 -2
- package/docs/interfaces/FloorplanServerBounding.html +2 -2
- package/docs/interfaces/FloorplanServerComputedData.html +2 -2
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
- package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
- package/docs/interfaces/FloorplanServerEntrance.html +2 -2
- package/docs/interfaces/FloorplanServerFloorData.html +2 -2
- package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
- package/docs/interfaces/FloorplanServerObserver.html +2 -2
- package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanServerPosition.html +2 -2
- package/docs/interfaces/FloorplanServerRoomItem.html +2 -2
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +2 -2
- package/docs/interfaces/GlobalProgress.html +2 -2
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +2 -2
- package/docs/interfaces/GuideLinePluginType.EventMap.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginState.html +2 -2
- package/docs/interfaces/GuideLinePluginType.Route.html +2 -2
- package/docs/interfaces/HelperOffset.html +2 -2
- package/docs/interfaces/ImagePlaneGroup.html +2 -2
- package/docs/interfaces/ItemLabelPluginData.html +2 -2
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/MinMax.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginData.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginData.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.BoxItemObjectData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.PrismItemObjectData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.State.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.TrianglesItemObjectData.html +2 -2
- package/docs/interfaces/ModelRoomLabelPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginExportType.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -2
- package/docs/interfaces/ModelViewPluginExportType.html +2 -2
- package/docs/interfaces/Object3DHelperState.html +2 -2
- package/docs/interfaces/ObjectHelperControllers.html +2 -2
- package/docs/interfaces/PaintBrushAction.html +2 -2
- package/docs/interfaces/PaintBrushConfigs.html +2 -2
- package/docs/interfaces/PaintBrushState.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +2 -2
- package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +2 -2
- package/docs/interfaces/PanoRulerPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerProPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginState.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +2 -2
- package/docs/interfaces/PluginEventMap.html +2 -2
- package/docs/interfaces/Point.html +2 -2
- package/docs/interfaces/ProgressBarEvents.html +2 -2
- package/docs/interfaces/Room.html +2 -2
- package/docs/interfaces/RoomInfo.html +2 -2
- package/docs/interfaces/RoomLabel.html +2 -2
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Scissor.html +2 -2
- package/docs/interfaces/SculptConfig.html +2 -2
- package/docs/interfaces/State.html +2 -2
- package/docs/interfaces/TagCacheInterface.html +2 -2
- package/docs/interfaces/TagConfig.html +2 -2
- package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
- package/docs/interfaces/TagIconAnimationConfig.html +2 -2
- package/docs/interfaces/TagIconUrl.html +2 -2
- package/docs/interfaces/TagObjectGroup.html +2 -2
- package/docs/interfaces/TagState.html +2 -2
- package/docs/interfaces/TagStyle.html +2 -2
- package/docs/interfaces/Tags.html +2 -2
- package/docs/interfaces/TemporaryState.html +2 -2
- package/docs/interfaces/TraceManager.html +2 -2
- package/docs/interfaces/TracePoint.html +2 -2
- package/docs/interfaces/Util.AnimeInstance.html +2 -2
- package/docs/interfaces/Util.BlinkAnimeOptions.html +2 -2
- package/docs/interfaces/Util.EventHandlerConfig.html +2 -2
- package/docs/interfaces/Util.FiveDomEvent.html +2 -2
- package/docs/interfaces/Util.FiveDomEventMap.html +2 -2
- package/docs/interfaces/Util.LegacyMouseGroupParameter.html +2 -2
- package/docs/interfaces/Util.MagnifierParameter.html +2 -2
- package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
- package/docs/interfaces/Util.ObjectInitialState.html +2 -2
- package/docs/interfaces/Util.PointIntersection.html +2 -2
- package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +2 -2
- package/docs/modules/AreaMakerPluginType.html +2 -2
- package/docs/modules/CruisePluginTypes.html +2 -2
- package/docs/modules/CurrentPanoImagePluginType.html +2 -2
- package/docs/modules/DigitalPerformanceV2.html +16 -0
- package/docs/modules/GuideLineItem.html +2 -2
- package/docs/modules/GuideLineModeItem.html +2 -2
- package/docs/modules/GuideLinePluginType.html +2 -2
- package/docs/modules/ModelMakerPluginType.html +2 -2
- package/docs/modules/PanoVideoPluginType.html +2 -2
- package/docs/modules/SculptData.html +2 -2
- package/docs/modules/SculptType.html +2 -2
- package/docs/modules/Util.html +2 -2
- package/docs/modules/Util.sculpt.html +2 -2
- package/docs/modules.html +3 -2
- package/docs/types/AddObject3DHelperConfig.html +2 -2
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +2 -2
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -1
- package/docs/types/AreaMakerPluginType.PluginData.html +2 -2
- package/docs/types/AreaMakerPluginType.ServerData.html +2 -2
- package/docs/types/ArrayPosition.html +1 -1
- package/docs/types/AudioAppearance.html +1 -1
- package/docs/types/BoxTag.html +2 -2
- package/docs/types/CSS3DRenderExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginParameterType.html +1 -1
- package/docs/types/ClassFunctionParameters.html +1 -1
- package/docs/types/Color.html +1 -1
- package/docs/types/ContentTypeConfigKey.html +1 -1
- package/docs/types/ContentTypeConfigKeySplit.html +1 -1
- package/docs/types/ContentTypeMap.html +1 -1
- package/docs/types/Create3DDomContainerReturnType.html +1 -1
- package/docs/types/Create3DElementReturnType.html +1 -1
- package/docs/types/CruisePluginExportType.html +1 -1
- package/docs/types/CruisePluginTypes.CruiseData.html +2 -2
- package/docs/types/CruisePluginTypes.MoveEffect.html +1 -1
- package/docs/types/CurrentPanoImagePluginExportType.html +1 -1
- package/docs/types/DeprecatedMediaPlaneProperty.html +2 -2
- package/docs/types/DeprecatedTagProperty.html +2 -2
- package/docs/types/DigitalPerformancePluginExportInterface.html +1 -1
- package/docs/types/DigitalPerformancePluginParamsInterface.html +1 -1
- package/docs/types/DigitalPerformanceV2.CameraCoordinateSpace.html +7 -0
- package/docs/types/DigitalPerformanceV2.CameraTransition.html +7 -0
- package/docs/types/DigitalPerformanceV2.DigitalPerformanceV2PluginExportInterface.html +1 -0
- package/docs/types/DigitalPerformanceV2.DigitalPerformanceV2PluginParamsInterface.html +1 -0
- package/docs/types/DigitalPerformanceV2.V2ProgressListener.html +1 -0
- package/docs/types/Direction-1.html +1 -1
- package/docs/types/Direction4.html +1 -1
- package/docs/types/ElementRenderer.html +2 -2
- package/docs/types/FloorplanGuidePluginParameterType.html +1 -1
- package/docs/types/FloorplanGuidePluginReturnType.html +1 -1
- package/docs/types/FloorplanRuleLabels.html +2 -2
- package/docs/types/FloorplanServerRuleLabels.html +1 -1
- package/docs/types/GuideLinePluginExportType.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -2
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -2
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -2
- package/docs/types/GuideLinePluginType.PathItem.html +2 -2
- package/docs/types/GuideLinePluginType.PluginData.html +2 -2
- package/docs/types/GuideLinePluginType.RouteConfig.html +2 -2
- package/docs/types/HelperEventMap.html +1 -1
- package/docs/types/InternalHelperEventMap.html +1 -1
- package/docs/types/KeyframeType.html +1 -1
- package/docs/types/MapviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/MapviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/MaskPosition.html +2 -2
- package/docs/types/MaskTag.html +2 -2
- package/docs/types/MeasureEndReason.html +1 -1
- package/docs/types/MeasurePluginConfig.html +2 -2
- package/docs/types/MeasurePluginEventMap.html +1 -1
- package/docs/types/MediaData.html +2 -2
- package/docs/types/MediaStore.html +1 -1
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginReturnType.html +1 -1
- package/docs/types/ModelId.html +1 -1
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -1
- package/docs/types/ModelMakerPluginType.ItemType.html +2 -2
- package/docs/types/ModelMakerPluginType.MarkerItem.html +1 -1
- package/docs/types/ModelMakerPluginType.ServerItem.html +2 -2
- package/docs/types/ModelRoomLabelPluginParameters.html +1 -1
- package/docs/types/ModelRoomLabelPluginReturnType.html +1 -1
- package/docs/types/MoveArgs.html +2 -2
- package/docs/types/MoveOpts.html +2 -2
- package/docs/types/Object3DHelperEventMap.html +1 -1
- package/docs/types/ObjectFit.html +1 -1
- package/docs/types/PaintBrushEventMap.html +1 -1
- package/docs/types/PanoCompassPluginData.html +1 -1
- package/docs/types/PanoCompassPluginExportType.html +1 -1
- package/docs/types/PanoCompassPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -1
- package/docs/types/PanoIndex.html +1 -1
- package/docs/types/PanoMeasurePluginEvent.html +1 -1
- package/docs/types/PanoMeasureReturnType.html +1 -1
- package/docs/types/PanoSpatialTagPluginId.html +1 -1
- package/docs/types/PanoTagPluginExportInterface.html +1 -1
- package/docs/types/PanoTagPluginParamsInterface.html +1 -1
- package/docs/types/PanoVideoPluginParameterType.html +1 -1
- package/docs/types/PanoVideoPluginReturnType.html +1 -1
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -2
- package/docs/types/PipelinePluginParameterType.html +1 -1
- package/docs/types/PipelinePluginReturnType.html +1 -1
- package/docs/types/PlaneTag.html +2 -2
- package/docs/types/Point2DTag.html +2 -2
- package/docs/types/Point3DTag.html +2 -2
- package/docs/types/PointTagInstance.html +1 -1
- package/docs/types/PolygonPosition.html +2 -2
- package/docs/types/PolygonTag.html +2 -2
- package/docs/types/Position.html +1 -1
- package/docs/types/PositionFrom.html +1 -1
- package/docs/types/ProgressListener.html +1 -1
- package/docs/types/RotateArgs.html +2 -2
- package/docs/types/RotateOpts.html +2 -2
- package/docs/types/RuleLabelsKey.html +1 -1
- package/docs/types/RuleLabelsValue.html +1 -1
- package/docs/types/ScaleCallback.html +1 -1
- package/docs/types/ScalePosition.html +2 -2
- package/docs/types/SculptData.BoxData.html +1 -1
- package/docs/types/SculptData.CircleData.html +1 -1
- package/docs/types/SculptData.CylinderData.html +1 -1
- package/docs/types/SculptData.PointData.html +1 -1
- package/docs/types/SculptData.PolygonData.html +1 -1
- package/docs/types/SculptData.PolylineData.html +1 -1
- package/docs/types/SculptData.PrismData.html +1 -1
- package/docs/types/SculptData.RectangleData.html +1 -1
- package/docs/types/SculptType.Theme.html +2 -2
- package/docs/types/StateType.html +1 -1
- package/docs/types/StickType.html +1 -1
- package/docs/types/Tag.html +2 -2
- package/docs/types/Tag2D.html +2 -2
- package/docs/types/Tag3D.html +2 -2
- package/docs/types/TagClickParams.html +1 -1
- package/docs/types/TagConfigByKey.html +1 -1
- package/docs/types/TagContentType.html +1 -1
- package/docs/types/TagContentTypeMapping.html +1 -1
- package/docs/types/TagDimensionType.html +1 -1
- package/docs/types/TagElement.html +2 -2
- package/docs/types/TagEvents.html +1 -1
- package/docs/types/TagGLTFObject.html +1 -1
- package/docs/types/TagHooks.html +1 -1
- package/docs/types/TagId.html +1 -1
- package/docs/types/TagInstance.html +1 -1
- package/docs/types/TagPlacement.html +2 -2
- package/docs/types/TagPointType.html +2 -2
- package/docs/types/TagRendererMap.html +1 -1
- package/docs/types/TopviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/TopviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/Util.ActionIfNoIntersection.html +1 -1
- package/docs/types/Util.AdherePoint.html +2 -2
- package/docs/types/Util.PointSelectorConfig.html +1 -1
- package/docs/types/Util.SupportedTarget.html +2 -2
- package/docs/types/Util.Target.html +2 -2
- package/docs/types/Util.ThreeObject.html +2 -2
- package/docs/types/WorkCode.html +1 -1
- package/docs/variables/FLOOR_TYPE_MAP.html +2 -2
- package/docs/variables/PLUGIN.html +1 -1
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -2
- package/docs/variables/ROOM_TYPE_MAP.html +2 -2
- package/docs/variables/Util.ANIME_PRESETS.html +2 -2
- package/docs/variables/Util.CURRENT_PANO_IMAGE_DEFAULT_IMAGE.html +2 -2
- package/docs/variables/Util.DEFAULT_ANIME_CONFIG.html +2 -2
- package/docs/variables/Util.DEFAULT_STATIC_PREFIX.html +2 -2
- package/docs/variables/Util.DNALOGEL_DEFAULT_ASSETS.html +2 -2
- package/docs/variables/Util.ENTRY_DOOR_DEFAULT_IMAGE.html +2 -2
- package/docs/variables/Util.FLOORPLAN_DEFAULT_IMAGE.html +2 -2
- package/docs/variables/Util.GUIDELINE_DEFAULT_ARROW_TEXTURE.html +2 -2
- package/docs/variables/Util.GUIDELINE_WHITE_ARROW_TEXTURE.html +2 -2
- package/docs/variables/Util.MODEL_CHASSIS_COMPASS_DEFAULT_MODEL.html +2 -2
- package/docs/variables/Util.MODEL_ENTRY_DOOR_GUIDE_PLUGIN_DEFAULT_MODEL.html +2 -2
- package/docs/variables/Util.PANO_COMPASS_DEFAULT_IMAGE.html +2 -2
- package/docs/variables/Util.PANO_SPATIAL_TAG_BLUR_IMAGE.html +2 -2
- package/docs/variables/Util.PANO_TAG_DEFAULT_LINK_ICON.html +2 -2
- package/docs/variables/defaultGlobalConfig.html +1 -1
- package/docs/variables/itemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelItemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelRoomLabelPluginServerParams.html +1 -1
- package/libs/DigitalPerformancePlugin/core/DigitalHuman.d.ts +18 -0
- package/libs/DigitalPerformancePlugin/core/DigitalHuman.js +198 -110
- package/libs/DigitalPerformanceV2Plugin/controller/index.d.ts +330 -0
- package/libs/DigitalPerformanceV2Plugin/controller/index.js +715 -0
- package/libs/DigitalPerformanceV2Plugin/core/CameraDirector.d.ts +61 -0
- package/libs/DigitalPerformanceV2Plugin/core/CameraDirector.js +101 -0
- package/libs/DigitalPerformanceV2Plugin/core/CameraSampler.d.ts +53 -0
- package/libs/DigitalPerformanceV2Plugin/core/CameraSampler.js +91 -0
- package/libs/DigitalPerformanceV2Plugin/core/CameraTrack.d.ts +21 -0
- package/libs/DigitalPerformanceV2Plugin/core/CameraTrack.js +32 -0
- package/libs/DigitalPerformanceV2Plugin/core/FiveModelCameraBridge.d.ts +39 -0
- package/libs/DigitalPerformanceV2Plugin/core/FiveModelCameraBridge.js +72 -0
- package/libs/DigitalPerformanceV2Plugin/core/PerformanceClock.d.ts +55 -0
- package/libs/DigitalPerformanceV2Plugin/core/PerformanceClock.js +98 -0
- package/libs/DigitalPerformanceV2Plugin/core/Playground.d.ts +106 -0
- package/libs/DigitalPerformanceV2Plugin/core/Playground.js +209 -0
- package/libs/DigitalPerformanceV2Plugin/core/shared.d.ts +4 -0
- package/libs/DigitalPerformanceV2Plugin/core/shared.js +12 -0
- package/libs/DigitalPerformanceV2Plugin/index/index.js +11 -0
- package/libs/DigitalPerformanceV2Plugin/index.d.ts +9 -0
- package/libs/DigitalPerformanceV2Plugin/index.js +20 -0
- package/libs/DigitalPerformanceV2Plugin/typings/index.d.ts +113 -0
- package/libs/DigitalPerformanceV2Plugin/typings/index.js +1 -0
- package/libs/base/BasePlugin.js +5 -5
- package/libs/index.d.ts +1 -0
- package/libs/index.js +167 -158
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import type { Five } from '@realsee/five';
|
|
2
|
+
import { DigitalPlayground } from './shared';
|
|
3
|
+
import type { DigitalChapter } from './shared';
|
|
4
|
+
import { PerformanceClock } from './PerformanceClock';
|
|
5
|
+
import { CameraDirector } from './CameraDirector';
|
|
6
|
+
import type { DigitalCameraKeyframe, CameraState } from '../typings';
|
|
7
|
+
/** 取章节时长:所有含关键帧的 player 末帧 timeStamp 的最大值 */
|
|
8
|
+
export declare function getChapterDuration(chapter: DigitalChapter): number;
|
|
9
|
+
/**
|
|
10
|
+
* 取章节「模型动画」时长:仅统计 model players 末帧 timeStamp 的最大值(排除 camera player)。
|
|
11
|
+
* 章节总时长以模型动画为准;相机关键帧应被钳制为不超过该总时长,不参与时长计算。
|
|
12
|
+
*/
|
|
13
|
+
export declare function getChapterModelDuration(chapter: DigitalChapter): number;
|
|
14
|
+
/**
|
|
15
|
+
* PerformancePlayground —— V2 的章节播放编排(统一时钟驱动)
|
|
16
|
+
*
|
|
17
|
+
* 复用 Shared_Core 的 DigitalPlayground 做模型/动画/道具加载与实例管理,
|
|
18
|
+
* 但用 PerformanceClock 统一驱动 DigitalHuman.renderAtTime,不使用 Legacy 的 playByChapter / 自驱 rAF。
|
|
19
|
+
*/
|
|
20
|
+
export declare class PerformancePlayground {
|
|
21
|
+
/** 复用 Shared_Core 的加载与实例管理 */
|
|
22
|
+
readonly loader: DigitalPlayground;
|
|
23
|
+
/** 运镜导演(消费 camera player,驱动 five 相机) */
|
|
24
|
+
readonly director: CameraDirector;
|
|
25
|
+
private readonly clock;
|
|
26
|
+
private currentChapter;
|
|
27
|
+
private shownHumans;
|
|
28
|
+
private unsubTick;
|
|
29
|
+
/** 结束当前 pending 的 playByChapter Promise 的句柄(用于 reset 时干净收尾,避免 await 泄漏) */
|
|
30
|
+
private currentPlayResolve;
|
|
31
|
+
constructor(five: Five, debug?: boolean);
|
|
32
|
+
getClock(): PerformanceClock;
|
|
33
|
+
getCurrentChapter(): DigitalChapter | null;
|
|
34
|
+
setScript(script: Parameters<DigitalPlayground['setScript']>[0]): void;
|
|
35
|
+
/**
|
|
36
|
+
* 播放指定章节:准备模型 → 统一时钟驱动 renderAtTime → 自然结束 resolve。
|
|
37
|
+
* 仅处理模型 player 的渲染;相机运镜在后续任务(CameraDirector 接入)中叠加。
|
|
38
|
+
* @param opts.prepare 加法式可选:在轨道绑定/attach 完成「之后」、时钟 start「之前」被 await 的钩子,
|
|
39
|
+
* 用于接管前 prepare(无突变 user→director 切换)。缺省(undefined)保持既有行为不变。
|
|
40
|
+
* prepare 在时钟启动前执行,故不计入播放时间(时钟不推进)。失败时静默降级、仍照常播放。
|
|
41
|
+
*/
|
|
42
|
+
playByChapter(chapter: DigitalChapter, fromTime?: number, opts?: {
|
|
43
|
+
prepare?: () => Promise<void>;
|
|
44
|
+
}): Promise<void>;
|
|
45
|
+
/** 暂停(保留时间) */
|
|
46
|
+
pause(): void;
|
|
47
|
+
/**
|
|
48
|
+
* 加法式新增:播放/预览专用切章准备(不启动时钟)。
|
|
49
|
+
* 复用 playByChapter 的「模型可见性切换 + 相机轨道重绑」逻辑:隐藏其它章节模型、显示目标章节模型、
|
|
50
|
+
* 按目标章节运镜重绑或解绑相机轨道(不 attach,故不接管 tick)、将时钟配置为目标章节时长并 seek 到 fromTime,
|
|
51
|
+
* 最后渲染该帧(模型)。不 start 时钟、不做编辑端联动。供 Controller.setCurrentChapterForPlayback 调用。
|
|
52
|
+
*/
|
|
53
|
+
prepareChapter(chapter: DigitalChapter, fromTime?: number): void;
|
|
54
|
+
/**
|
|
55
|
+
* 加法式新增:立即结束当前 pending 的 playByChapter(resolve 其 Promise)并冻结时钟,
|
|
56
|
+
* 供连播中「跨章 seek 重定向」使用——上层连播循环 await 返回后据 seekRedirect 跳转到目标章节继续。
|
|
57
|
+
*/
|
|
58
|
+
abortCurrentPlay(): void;
|
|
59
|
+
/** 显示目标章节的模型 player(visible + 外部驱动准备),返回展示的 DigitalHuman 列表 */
|
|
60
|
+
private showChapterModels;
|
|
61
|
+
/**
|
|
62
|
+
* 绑定目标章节相机轨道(存在非空 camera player 则绑定;否则解绑),失败静默降级。
|
|
63
|
+
* @param attach true 则 attach 到时钟(播放接管);false 仅重绑轨道、detach 不接管(暂停态预览)。
|
|
64
|
+
*/
|
|
65
|
+
private bindChapterCamera;
|
|
66
|
+
/** 续播 */
|
|
67
|
+
resume(): void;
|
|
68
|
+
/**
|
|
69
|
+
* 跳转到指定时间并渲染当前帧(seek 预览)。不改变播放/暂停状态。
|
|
70
|
+
* 有活动 tick 监听时由 clock.seek 触发渲染;否则直接渲染一次。
|
|
71
|
+
*/
|
|
72
|
+
setTimelineTo(time: number): void;
|
|
73
|
+
/** 运镜开关(透传到 CameraDirector,立即生效) */
|
|
74
|
+
setCameraDirectionEnabled(enabled: boolean): void;
|
|
75
|
+
/**
|
|
76
|
+
* 加法式新增:立即将一个 CameraState 应用到 five(透传到 CameraDirector,复用其桥实例)。
|
|
77
|
+
* 供 controller 的「章节默认视角」应用使用;不改变播放/时钟状态、不绑定轨道。
|
|
78
|
+
* 统一 Mapview:应用后 five 即合法 orbit 状态,用户可立即正常拖拽。
|
|
79
|
+
*/
|
|
80
|
+
applyCameraStateImmediately(state: CameraState): void;
|
|
81
|
+
/**
|
|
82
|
+
* 加法式新增:暂停态 scrub 预览,应用 `sample(time)`(透传 CameraDirector.previewAt)。
|
|
83
|
+
* 仅在运镜启用且轨道有内容时生效;否则 no-op。预览后用户可立即正常拖拽(Mapview orbit)。
|
|
84
|
+
*/
|
|
85
|
+
previewCameraAt(time: number): void;
|
|
86
|
+
/**
|
|
87
|
+
* 加法式新增:接管前 prepare(透传到 CameraDirector)。
|
|
88
|
+
* enabled 且当前轨道有内容时,以内插动画平滑过渡到 `sample(time)` 并在过渡稳定后 resolve;
|
|
89
|
+
* 否则立即 resolve(no-op)。不触碰时钟/播放状态,调用方应在时钟 start/resume 前 await。
|
|
90
|
+
*/
|
|
91
|
+
prepareCameraTo(time: number): Promise<void>;
|
|
92
|
+
/**
|
|
93
|
+
* 编辑期:用关键帧重建并绑定相机轨道,供后续 seek 预览/播放接管使用。
|
|
94
|
+
* 空序列时解绑轨道(不接管相机)。
|
|
95
|
+
* 注意:此处仅重建轨道,不主动 apply 到 five,避免「捕获关键帧」时改变用户当前的自由导航相机。
|
|
96
|
+
* 相机接管仅发生在播放 tick 或显式 setTimelineTo 预览(统一 Mapview,用户暂停时始终可自由 orbit/平移)。
|
|
97
|
+
*/
|
|
98
|
+
setCameraKeyframes(keyframes: ReadonlyArray<DigitalCameraKeyframe>): void;
|
|
99
|
+
/** 重置:停止时钟、隐藏数字人、复位 loader 实例(保留已加载模型与 currentScript) */
|
|
100
|
+
reset(): void;
|
|
101
|
+
/** 释放资源 */
|
|
102
|
+
dispose(): void;
|
|
103
|
+
private renderShownAt;
|
|
104
|
+
private hideShownHumans;
|
|
105
|
+
private stopTick;
|
|
106
|
+
}
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
var k = Object.defineProperty;
|
|
2
|
+
var y = (s, e, t) => e in s ? k(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
|
|
3
|
+
var o = (s, e, t) => (y(s, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
+
import "three";
|
|
5
|
+
import { DigitalPlayground as C } from "../../DigitalPerformancePlugin/core/DigitalPlayground.js";
|
|
6
|
+
import { PerformanceClock as T } from "./PerformanceClock.js";
|
|
7
|
+
import { CameraTrack as u } from "./CameraTrack.js";
|
|
8
|
+
import { CameraDirector as w } from "./CameraDirector.js";
|
|
9
|
+
import "@realsee/five/gltf-loader";
|
|
10
|
+
import "../../DigitalPerformancePlugin/core/DigitalHuman.js";
|
|
11
|
+
import "../../DigitalPerformancePlugin/core/DigitalStateMachine.js";
|
|
12
|
+
import "../../DigitalPerformancePlugin/core/Trace.js";
|
|
13
|
+
import "@realsee/five";
|
|
14
|
+
import "./CameraSampler.js";
|
|
15
|
+
import "./FiveModelCameraBridge.js";
|
|
16
|
+
function d(s) {
|
|
17
|
+
let e = 0;
|
|
18
|
+
for (const t of s.players) {
|
|
19
|
+
const r = t.keyframes;
|
|
20
|
+
r && r.length > 0 && (e = Math.max(e, r[r.length - 1].timeStamp));
|
|
21
|
+
}
|
|
22
|
+
return e;
|
|
23
|
+
}
|
|
24
|
+
function I(s) {
|
|
25
|
+
let e = 0;
|
|
26
|
+
for (const t of s.players) {
|
|
27
|
+
if (t.type !== "model")
|
|
28
|
+
continue;
|
|
29
|
+
const r = t.keyframes;
|
|
30
|
+
r && r.length > 0 && (e = Math.max(e, r[r.length - 1].timeStamp));
|
|
31
|
+
}
|
|
32
|
+
return e;
|
|
33
|
+
}
|
|
34
|
+
function m(s, e, t) {
|
|
35
|
+
return s < e ? e : s > t ? t : s;
|
|
36
|
+
}
|
|
37
|
+
class B {
|
|
38
|
+
constructor(e, t = !1) {
|
|
39
|
+
/** 复用 Shared_Core 的加载与实例管理 */
|
|
40
|
+
o(this, "loader");
|
|
41
|
+
/** 运镜导演(消费 camera player,驱动 five 相机) */
|
|
42
|
+
o(this, "director");
|
|
43
|
+
o(this, "clock");
|
|
44
|
+
o(this, "currentChapter", null);
|
|
45
|
+
o(this, "shownHumans", []);
|
|
46
|
+
o(this, "unsubTick", null);
|
|
47
|
+
/** 结束当前 pending 的 playByChapter Promise 的句柄(用于 reset 时干净收尾,避免 await 泄漏) */
|
|
48
|
+
o(this, "currentPlayResolve", null);
|
|
49
|
+
this.loader = new C(t), this.clock = new T(e), this.director = new w(e);
|
|
50
|
+
}
|
|
51
|
+
getClock() {
|
|
52
|
+
return this.clock;
|
|
53
|
+
}
|
|
54
|
+
getCurrentChapter() {
|
|
55
|
+
return this.currentChapter;
|
|
56
|
+
}
|
|
57
|
+
setScript(e) {
|
|
58
|
+
this.loader.setScript(e);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* 播放指定章节:准备模型 → 统一时钟驱动 renderAtTime → 自然结束 resolve。
|
|
62
|
+
* 仅处理模型 player 的渲染;相机运镜在后续任务(CameraDirector 接入)中叠加。
|
|
63
|
+
* @param opts.prepare 加法式可选:在轨道绑定/attach 完成「之后」、时钟 start「之前」被 await 的钩子,
|
|
64
|
+
* 用于接管前 prepare(无突变 user→director 切换)。缺省(undefined)保持既有行为不变。
|
|
65
|
+
* prepare 在时钟启动前执行,故不计入播放时间(时钟不推进)。失败时静默降级、仍照常播放。
|
|
66
|
+
*/
|
|
67
|
+
playByChapter(e, t = 0, r) {
|
|
68
|
+
this.stopTick(), this.currentChapter = e, this.hideShownHumans(), this.shownHumans = this.showChapterModels(e), this.bindChapterCamera(e, !0);
|
|
69
|
+
const i = d(e);
|
|
70
|
+
return new Promise((n) => {
|
|
71
|
+
let c = null;
|
|
72
|
+
const a = () => {
|
|
73
|
+
this.currentPlayResolve === a && (this.currentPlayResolve = null, c && c(), this.stopTick(), n());
|
|
74
|
+
};
|
|
75
|
+
this.currentPlayResolve = a;
|
|
76
|
+
const h = () => {
|
|
77
|
+
this.currentPlayResolve === a && (this.unsubTick = this.clock.onTick((p, f) => {
|
|
78
|
+
this.renderShownAt(p, f);
|
|
79
|
+
}), c = this.clock.onEnded(() => a()), this.clock.start(i, t));
|
|
80
|
+
}, l = r == null ? void 0 : r.prepare;
|
|
81
|
+
l ? Promise.resolve().then(() => l()).catch(() => {
|
|
82
|
+
}).then(() => h()) : h();
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
/** 暂停(保留时间) */
|
|
86
|
+
pause() {
|
|
87
|
+
this.clock.pause();
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* 加法式新增:播放/预览专用切章准备(不启动时钟)。
|
|
91
|
+
* 复用 playByChapter 的「模型可见性切换 + 相机轨道重绑」逻辑:隐藏其它章节模型、显示目标章节模型、
|
|
92
|
+
* 按目标章节运镜重绑或解绑相机轨道(不 attach,故不接管 tick)、将时钟配置为目标章节时长并 seek 到 fromTime,
|
|
93
|
+
* 最后渲染该帧(模型)。不 start 时钟、不做编辑端联动。供 Controller.setCurrentChapterForPlayback 调用。
|
|
94
|
+
*/
|
|
95
|
+
prepareChapter(e, t = 0) {
|
|
96
|
+
this.stopTick(), this.currentChapter = e, this.hideShownHumans(), this.shownHumans = this.showChapterModels(e), this.bindChapterCamera(e, !1);
|
|
97
|
+
const r = d(e);
|
|
98
|
+
this.clock.setDuration(r), this.clock.seek(m(t, 0, r > 0 ? r : t)), this.renderShownAt(this.clock.getTime(), 0);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* 加法式新增:立即结束当前 pending 的 playByChapter(resolve 其 Promise)并冻结时钟,
|
|
102
|
+
* 供连播中「跨章 seek 重定向」使用——上层连播循环 await 返回后据 seekRedirect 跳转到目标章节继续。
|
|
103
|
+
*/
|
|
104
|
+
abortCurrentPlay() {
|
|
105
|
+
this.currentPlayResolve && this.currentPlayResolve(), this.stopTick(), this.clock.pause(), this.director.detach();
|
|
106
|
+
}
|
|
107
|
+
/** 显示目标章节的模型 player(visible + 外部驱动准备),返回展示的 DigitalHuman 列表 */
|
|
108
|
+
showChapterModels(e) {
|
|
109
|
+
const t = e.players.filter((i) => i.type === "model"), r = [];
|
|
110
|
+
for (const i of t) {
|
|
111
|
+
const n = this.loader.getDigitalHuman(i.model, i.id);
|
|
112
|
+
n && (n.model.visible = !0, n.container.visible = !0, n.prepareExternalDrive({ keyframes: i.keyframes, items: [], effects: [] }), r.push(n));
|
|
113
|
+
}
|
|
114
|
+
return r;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* 绑定目标章节相机轨道(存在非空 camera player 则绑定;否则解绑),失败静默降级。
|
|
118
|
+
* @param attach true 则 attach 到时钟(播放接管);false 仅重绑轨道、detach 不接管(暂停态预览)。
|
|
119
|
+
*/
|
|
120
|
+
bindChapterCamera(e, t) {
|
|
121
|
+
try {
|
|
122
|
+
const r = e.players.find((i) => i.type === "camera");
|
|
123
|
+
if (r && r.keyframes && r.keyframes.length > 0) {
|
|
124
|
+
const i = new u();
|
|
125
|
+
i.setKeyframes(r.keyframes), this.director.bindTrack(i), t ? this.director.attach(this.clock) : this.director.detach();
|
|
126
|
+
} else
|
|
127
|
+
this.director.detach(), this.director.bindTrack(null);
|
|
128
|
+
} catch (r) {
|
|
129
|
+
this.director.detach(), this.director.bindTrack(null);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
/** 续播 */
|
|
133
|
+
resume() {
|
|
134
|
+
this.clock.resume();
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* 跳转到指定时间并渲染当前帧(seek 预览)。不改变播放/暂停状态。
|
|
138
|
+
* 有活动 tick 监听时由 clock.seek 触发渲染;否则直接渲染一次。
|
|
139
|
+
*/
|
|
140
|
+
setTimelineTo(e) {
|
|
141
|
+
const t = this.clock.getDuration(), r = m(e, 0, t > 0 ? t : e);
|
|
142
|
+
this.clock.seek(r), this.unsubTick || this.renderShownAt(this.clock.getTime(), 0);
|
|
143
|
+
}
|
|
144
|
+
/** 运镜开关(透传到 CameraDirector,立即生效) */
|
|
145
|
+
setCameraDirectionEnabled(e) {
|
|
146
|
+
this.director.setEnabled(e);
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* 加法式新增:立即将一个 CameraState 应用到 five(透传到 CameraDirector,复用其桥实例)。
|
|
150
|
+
* 供 controller 的「章节默认视角」应用使用;不改变播放/时钟状态、不绑定轨道。
|
|
151
|
+
* 统一 Mapview:应用后 five 即合法 orbit 状态,用户可立即正常拖拽。
|
|
152
|
+
*/
|
|
153
|
+
applyCameraStateImmediately(e) {
|
|
154
|
+
this.director.applyCameraStateImmediately(e);
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* 加法式新增:暂停态 scrub 预览,应用 `sample(time)`(透传 CameraDirector.previewAt)。
|
|
158
|
+
* 仅在运镜启用且轨道有内容时生效;否则 no-op。预览后用户可立即正常拖拽(Mapview orbit)。
|
|
159
|
+
*/
|
|
160
|
+
previewCameraAt(e) {
|
|
161
|
+
this.director.previewAt(e);
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* 加法式新增:接管前 prepare(透传到 CameraDirector)。
|
|
165
|
+
* enabled 且当前轨道有内容时,以内插动画平滑过渡到 `sample(time)` 并在过渡稳定后 resolve;
|
|
166
|
+
* 否则立即 resolve(no-op)。不触碰时钟/播放状态,调用方应在时钟 start/resume 前 await。
|
|
167
|
+
*/
|
|
168
|
+
prepareCameraTo(e) {
|
|
169
|
+
return this.director.prepareTo(e);
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* 编辑期:用关键帧重建并绑定相机轨道,供后续 seek 预览/播放接管使用。
|
|
173
|
+
* 空序列时解绑轨道(不接管相机)。
|
|
174
|
+
* 注意:此处仅重建轨道,不主动 apply 到 five,避免「捕获关键帧」时改变用户当前的自由导航相机。
|
|
175
|
+
* 相机接管仅发生在播放 tick 或显式 setTimelineTo 预览(统一 Mapview,用户暂停时始终可自由 orbit/平移)。
|
|
176
|
+
*/
|
|
177
|
+
setCameraKeyframes(e) {
|
|
178
|
+
if (e && e.length > 0) {
|
|
179
|
+
const t = new u();
|
|
180
|
+
t.setKeyframes(e), this.director.bindTrack(t);
|
|
181
|
+
} else
|
|
182
|
+
this.director.bindTrack(null);
|
|
183
|
+
}
|
|
184
|
+
/** 重置:停止时钟、隐藏数字人、复位 loader 实例(保留已加载模型与 currentScript) */
|
|
185
|
+
reset() {
|
|
186
|
+
this.currentPlayResolve && this.currentPlayResolve(), this.stopTick(), this.clock.stop(), this.director.detach(), this.director.bindTrack(null), this.hideShownHumans(), this.currentChapter = null, this.loader.reset();
|
|
187
|
+
}
|
|
188
|
+
/** 释放资源 */
|
|
189
|
+
dispose() {
|
|
190
|
+
this.currentPlayResolve && this.currentPlayResolve(), this.stopTick(), this.clock.dispose(), this.director.dispose(), this.shownHumans = [], this.currentChapter = null, this.loader.dispose();
|
|
191
|
+
}
|
|
192
|
+
renderShownAt(e, t) {
|
|
193
|
+
for (const r of this.shownHumans)
|
|
194
|
+
r.renderAtTime(e, t);
|
|
195
|
+
}
|
|
196
|
+
hideShownHumans() {
|
|
197
|
+
for (const e of this.shownHumans)
|
|
198
|
+
e.model.visible = !1, e.container.visible = !1;
|
|
199
|
+
this.shownHumans = [];
|
|
200
|
+
}
|
|
201
|
+
stopTick() {
|
|
202
|
+
this.unsubTick && (this.unsubTick(), this.unsubTick = null);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
export {
|
|
206
|
+
B as PerformancePlayground,
|
|
207
|
+
d as getChapterDuration,
|
|
208
|
+
I as getChapterModelDuration
|
|
209
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { DigitalStateMachine } from '../../DigitalPerformancePlugin/core/DigitalStateMachine';
|
|
2
|
+
export { DigitalHuman } from '../../DigitalPerformancePlugin/core/DigitalHuman';
|
|
3
|
+
export { DigitalPlayground } from '../../DigitalPerformancePlugin/core/DigitalPlayground';
|
|
4
|
+
export type { DigitalScript, DigitalChapter, DigitalModelPlayer, DigitalSubTitlePlayer, DigitalCameraPlayer, DigitalCameraKeyframe, DigitalModelKeyframe, DigitalModelState, DigitalCameraState, KeyframeType, StateType, } from '../../DigitalPerformancePlugin/core/DigitalStateMachine';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DigitalStateMachine as p } from "../../DigitalPerformancePlugin/core/DigitalStateMachine.js";
|
|
2
|
+
import { DigitalHuman as g } from "../../DigitalPerformancePlugin/core/DigitalHuman.js";
|
|
3
|
+
import { DigitalPlayground as f } from "../../DigitalPerformancePlugin/core/DigitalPlayground.js";
|
|
4
|
+
import "three";
|
|
5
|
+
import "../../DigitalPerformancePlugin/core/Trace.js";
|
|
6
|
+
import "@realsee/five/gltf-loader";
|
|
7
|
+
import "@realsee/five";
|
|
8
|
+
export {
|
|
9
|
+
g as DigitalHuman,
|
|
10
|
+
f as DigitalPlayground,
|
|
11
|
+
p as DigitalStateMachine
|
|
12
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import r from "../controller/index.js";
|
|
2
|
+
const e = (o, t) => new r(o, t), l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
|
+
__proto__: null,
|
|
4
|
+
DigitalPerformanceV2Plugin: e,
|
|
5
|
+
DigitalPerformanceV2PluginController: r,
|
|
6
|
+
default: e
|
|
7
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
8
|
+
export {
|
|
9
|
+
e as DigitalPerformanceV2Plugin,
|
|
10
|
+
l as index
|
|
11
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Five } from '@realsee/five';
|
|
2
|
+
import DigitalPerformanceV2PluginController from './controller';
|
|
3
|
+
export { default as DigitalPerformanceV2PluginController } from './controller';
|
|
4
|
+
export type { V2Progress, V2ProgressListener } from './controller';
|
|
5
|
+
export * from './typings';
|
|
6
|
+
export type DigitalPerformanceV2PluginExportInterface = InstanceType<typeof DigitalPerformanceV2PluginController>;
|
|
7
|
+
export type DigitalPerformanceV2PluginParamsInterface = ConstructorParameters<typeof DigitalPerformanceV2PluginController>[1];
|
|
8
|
+
export declare const DigitalPerformanceV2Plugin: (five: Five, params?: DigitalPerformanceV2PluginParamsInterface) => DigitalPerformanceV2PluginController;
|
|
9
|
+
export default DigitalPerformanceV2Plugin;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as D } from "./controller/index.js";
|
|
2
|
+
import { DigitalPerformanceV2Plugin as d, DigitalPerformanceV2Plugin as s } from "./index/index.js";
|
|
3
|
+
import "./core/Playground.js";
|
|
4
|
+
import "three";
|
|
5
|
+
import "../DigitalPerformancePlugin/core/DigitalPlayground.js";
|
|
6
|
+
import "@realsee/five/gltf-loader";
|
|
7
|
+
import "../DigitalPerformancePlugin/core/DigitalHuman.js";
|
|
8
|
+
import "../DigitalPerformancePlugin/core/DigitalStateMachine.js";
|
|
9
|
+
import "../DigitalPerformancePlugin/core/Trace.js";
|
|
10
|
+
import "@realsee/five";
|
|
11
|
+
import "./core/PerformanceClock.js";
|
|
12
|
+
import "./core/CameraTrack.js";
|
|
13
|
+
import "./core/CameraSampler.js";
|
|
14
|
+
import "./core/CameraDirector.js";
|
|
15
|
+
import "./core/FiveModelCameraBridge.js";
|
|
16
|
+
export {
|
|
17
|
+
d as DigitalPerformanceV2Plugin,
|
|
18
|
+
D as DigitalPerformanceV2PluginController,
|
|
19
|
+
s as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import type * as THREE from 'three';
|
|
2
|
+
export interface DigitalPerformanceV2PluginConfig {
|
|
3
|
+
/** 是否在加载剧本后自动播放第一个章节 */
|
|
4
|
+
autoPlay?: boolean;
|
|
5
|
+
/** 是否循环播放 */
|
|
6
|
+
loop?: boolean;
|
|
7
|
+
/** 是否输出调试日志 */
|
|
8
|
+
debug?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 关键帧到下一关键帧的过渡缓动
|
|
12
|
+
* - 'linear' : 线性(缺省)
|
|
13
|
+
* - 'easeInOut' : smoothstep 缓入缓出
|
|
14
|
+
* - 'instant' : 直接 snap,不向下一帧插值
|
|
15
|
+
*/
|
|
16
|
+
export type CameraTransition = 'linear' | 'easeInOut' | 'instant';
|
|
17
|
+
/**
|
|
18
|
+
* 运镜关键帧坐标空间(前向兼容标记)
|
|
19
|
+
* - 'five-world' : five 运行时世界系(target 直接来自 five 当前 Mapview 位姿,重播直接消费,不再变换)。缺省按此解释。
|
|
20
|
+
* - 'work-local' : 作品本地坐标系(与模型 player 同口径,加载时需经 transformPosition 变换)。
|
|
21
|
+
* 试点阶段统一写 'five-world'。
|
|
22
|
+
*/
|
|
23
|
+
export type CameraCoordinateSpace = 'five-world' | 'work-local';
|
|
24
|
+
/**
|
|
25
|
+
* 运镜关键帧(序列化结构)—— 统一采用 five **Mapview**(地图态 / orbit)位姿。
|
|
26
|
+
*
|
|
27
|
+
* Mapview 下相机绕 `target`(注视点 = orbit 轴心)旋转:
|
|
28
|
+
* 相机位置 = target - coordinatesToVector(longitude, latitude) × distance,视线恒指向 `target`。
|
|
29
|
+
* 这样「播放」「暂停后用户拖拽」「续播」均在同一 orbit 参数系下表达,
|
|
30
|
+
* 暂停即天然交还用户做左键 orbit / 右键平移(无需 look-from→orbit 转换,无跳变)。
|
|
31
|
+
*/
|
|
32
|
+
export interface DigitalCameraKeyframe {
|
|
33
|
+
/** 时间点(ms),章节内相对时间 */
|
|
34
|
+
timeStamp: number;
|
|
35
|
+
/** orbit 目标点(= 注视点 / 旋转轴心),five 世界坐标 [x,y,z] */
|
|
36
|
+
target: number[];
|
|
37
|
+
/** 水平角 longitude(rad) */
|
|
38
|
+
longitude: number;
|
|
39
|
+
/** 俯仰角 latitude(rad) */
|
|
40
|
+
latitude: number;
|
|
41
|
+
/** 相机到 target 的距离(m) */
|
|
42
|
+
distance: number;
|
|
43
|
+
/** 视场角(度),表达视角「缩放」 */
|
|
44
|
+
fov: number;
|
|
45
|
+
/** 到下一关键帧的过渡缓动(缺省 'linear') */
|
|
46
|
+
transition?: CameraTransition;
|
|
47
|
+
/**
|
|
48
|
+
* 关键帧缩略图 URL(编辑端封面,运行时忽略)。
|
|
49
|
+
* 约定存 COS 直传得到的持久化 URL;编辑期的本地 blob 预览不写入此字段。
|
|
50
|
+
*/
|
|
51
|
+
thumbnail?: string;
|
|
52
|
+
}
|
|
53
|
+
/** 运镜播放器(序列化进 script) */
|
|
54
|
+
export interface DigitalCameraPlayer {
|
|
55
|
+
name: string;
|
|
56
|
+
type: 'camera';
|
|
57
|
+
keyframes: DigitalCameraKeyframe[];
|
|
58
|
+
/** 关键帧坐标空间(前向兼容标记;缺省按 'five-world' 解释) */
|
|
59
|
+
coordinateSpace?: CameraCoordinateSpace;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* 运行时统一相机状态(采样器输出、桥的输入)—— five Mapview(orbit)位姿。
|
|
63
|
+
* 直接对应 `five.setState({ offset: target, longitude, latitude, distance, fov, mode: 'Mapview' })`。
|
|
64
|
+
*/
|
|
65
|
+
export interface CameraState {
|
|
66
|
+
/** orbit 目标点(注视点 / 旋转轴心),five 世界坐标 */
|
|
67
|
+
target: THREE.Vector3;
|
|
68
|
+
/** 水平角 longitude(rad) */
|
|
69
|
+
longitude: number;
|
|
70
|
+
/** 俯仰角 latitude(rad) */
|
|
71
|
+
latitude: number;
|
|
72
|
+
/** 相机到 target 距离(m) */
|
|
73
|
+
distance: number;
|
|
74
|
+
/** 视场角(度) */
|
|
75
|
+
fov: number;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* 组级(整组连续播放)章节时间映射项 —— 加法式新增。
|
|
79
|
+
* 把 N 个章节按各自模型动画时长(getChapterModelDuration)逐章累计成单一组级时间轴上的区间。
|
|
80
|
+
*/
|
|
81
|
+
export interface GroupChapterTimeInfo {
|
|
82
|
+
/** 章节索引(0-based) */
|
|
83
|
+
index: number;
|
|
84
|
+
/** 章节名称 */
|
|
85
|
+
name: string;
|
|
86
|
+
/** 组级累计起点(ms):startTime[0]=0,startTime[i]=endTime[i-1] */
|
|
87
|
+
startTime: number;
|
|
88
|
+
/** 组级累计终点(ms):endTime[i]=startTime[i]+duration[i],endTime[last]=组级总时长 */
|
|
89
|
+
endTime: number;
|
|
90
|
+
/** 该章节时长(ms) = getChapterModelDuration(排除 camera player) */
|
|
91
|
+
duration: number;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* 组级(整组连续播放)进度聚合 —— 加法式新增,不替换章节级 V2Progress。
|
|
95
|
+
* 由「各章节 duration 的累计(getGroupChapterTimeMap)」+「当前章节 index」+「当前章节内时间」派生。
|
|
96
|
+
* 字段语义与 Legacy GlobalProgress 对齐,使展示端进度条 UI 可平滑复用。
|
|
97
|
+
*/
|
|
98
|
+
export interface GroupProgress {
|
|
99
|
+
/** 组级当前时间(ms) = 先序章节 duration 之和 + 当前章节内 currentTime(钳制) */
|
|
100
|
+
groupCurrentTime: number;
|
|
101
|
+
/** 组级总时长(ms) = 所有章节 duration 之和 */
|
|
102
|
+
groupTotalTime: number;
|
|
103
|
+
/** 组级进度百分比 [0,100] = groupCurrentTime / groupTotalTime * 100(groupTotalTime=0 时为 0) */
|
|
104
|
+
percentage: number;
|
|
105
|
+
/** 当前章节索引(0-based;无当前章节为 -1) */
|
|
106
|
+
currentChapterIndex: number;
|
|
107
|
+
/** 当前章节内时间(ms)(即 V2Progress.currentTime) */
|
|
108
|
+
currentChapterTime: number;
|
|
109
|
+
/** 当前章节总时长(ms)(即 V2Progress.totalTime) */
|
|
110
|
+
currentChapterTotalTime: number;
|
|
111
|
+
/** 章节总数 */
|
|
112
|
+
totalChapters: number;
|
|
113
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var e = Object.defineProperty;
|
|
2
2
|
var s = (o, t, i) => t in o ? e(o, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : o[t] = i;
|
|
3
3
|
var r = (o, t, i) => (s(o, typeof t != "symbol" ? t + "" : t, i), i);
|
|
4
|
-
import { Subscribe as
|
|
4
|
+
import { Subscribe as l } from "../shared-utils/Subscribe.js";
|
|
5
5
|
import "../shared-utils/tag.js";
|
|
6
6
|
import "three";
|
|
7
7
|
import "../vendor/hammerjs/hammer.js";
|
|
@@ -15,7 +15,7 @@ import "../shared-utils/three/blink.js";
|
|
|
15
15
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
16
16
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
17
17
|
import "../vendor/earcut/src/earcut.js";
|
|
18
|
-
import { FiveUtil as
|
|
18
|
+
import { FiveUtil as m } from "../shared-utils/Utils/FiveUtil.js";
|
|
19
19
|
import { DEFAULT_STATIC_PREFIX as p } from "../shared-utils/url/defaultUrls.js";
|
|
20
20
|
import "../shared-utils/five/FivePuppet.js";
|
|
21
21
|
let I = class {
|
|
@@ -23,7 +23,7 @@ let I = class {
|
|
|
23
23
|
/**
|
|
24
24
|
* @realsee/dnalogel 版本号
|
|
25
25
|
*/
|
|
26
|
-
r(this, "VERSION", "3.
|
|
26
|
+
r(this, "VERSION", "3.81.0-alpha.0");
|
|
27
27
|
r(this, "NAME");
|
|
28
28
|
r(this, "five");
|
|
29
29
|
r(this, "workUtil");
|
|
@@ -31,9 +31,9 @@ let I = class {
|
|
|
31
31
|
/**
|
|
32
32
|
* @description: 插件事件钩子
|
|
33
33
|
*/
|
|
34
|
-
r(this, "hooks", new
|
|
34
|
+
r(this, "hooks", new l());
|
|
35
35
|
r(this, "staticPrefix", p);
|
|
36
|
-
this.five = t, this.fiveUtil = new
|
|
36
|
+
this.five = t, this.fiveUtil = new m(t), this.workUtil = this.fiveUtil.workUtil, i != null && i.staticPrefix && (this.staticPrefix = i.staticPrefix);
|
|
37
37
|
}
|
|
38
38
|
set workCode(t) {
|
|
39
39
|
this.workUtil.workCode = t, this.onWorkCodeChange();
|
package/libs/index.d.ts
CHANGED
|
@@ -28,4 +28,5 @@ export * from './CurrentPanoImagePlugin';
|
|
|
28
28
|
export * from './Sculpt';
|
|
29
29
|
export * from './ModelMakerPlugin';
|
|
30
30
|
export * from './DigitalPerformancePlugin';
|
|
31
|
+
export * as DigitalPerformanceV2 from './DigitalPerformanceV2Plugin';
|
|
31
32
|
export * as Util from './shared-utils/exports';
|