@realsee/dnalogel 3.81.0-alpha.4 → 3.81.0-alpha.5
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 +23 -0
- package/dist/DigitalPerformancePlugin/core/DigitalPlayground.d.ts +7 -0
- package/dist/DigitalPerformanceV2Plugin/controller/index.d.ts +25 -2
- package/dist/DigitalPerformanceV2Plugin/core/Playground.d.ts +2 -0
- package/dist/DigitalPerformanceV2Plugin/typings/index.d.ts +2 -0
- package/dist/index.cjs.js +34 -34
- package/dist/index.js +1687 -1616
- package/dist/index.umd.js +34 -34
- 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 +13 -4
- package/docs/classes/DigitalPerformanceV2.DigitalPerformanceV2PluginController.html +50 -43
- package/docs/classes/DigitalPlayground.html +6 -3
- 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 -1
- 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 +7 -7
- package/docs/interfaces/DigitalPerformanceV2.DigitalCameraKeyframe.html +10 -10
- package/docs/interfaces/DigitalPerformanceV2.DigitalCameraPlayer.html +3 -3
- package/docs/interfaces/DigitalPerformanceV2.DigitalPerformanceV2PluginConfig.html +4 -2
- package/docs/interfaces/DigitalPerformanceV2.GroupChapterTimeInfo.html +7 -7
- package/docs/interfaces/DigitalPerformanceV2.GroupProgress.html +9 -9
- package/docs/interfaces/DigitalPerformanceV2.V2Progress.html +2 -2
- 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 +2 -2
- 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 +2 -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 +2 -2
- package/docs/types/DigitalPerformanceV2.CameraTransition.html +2 -2
- package/docs/types/DigitalPerformanceV2.DigitalPerformanceV2PluginExportInterface.html +1 -1
- package/docs/types/DigitalPerformanceV2.DigitalPerformanceV2PluginParamsInterface.html +1 -1
- package/docs/types/DigitalPerformanceV2.V2ProgressListener.html +1 -1
- 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 +23 -0
- package/libs/DigitalPerformancePlugin/core/DigitalHuman.js +169 -137
- package/libs/DigitalPerformancePlugin/core/DigitalPlayground.d.ts +7 -0
- package/libs/DigitalPerformancePlugin/core/DigitalPlayground.js +81 -70
- package/libs/DigitalPerformanceV2Plugin/controller/index.d.ts +25 -2
- package/libs/DigitalPerformanceV2Plugin/controller/index.js +91 -67
- package/libs/DigitalPerformanceV2Plugin/core/Playground.d.ts +2 -0
- package/libs/DigitalPerformanceV2Plugin/core/Playground.js +6 -2
- package/libs/DigitalPerformanceV2Plugin/typings/index.d.ts +2 -0
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -20,6 +20,11 @@ export declare class DigitalHuman {
|
|
|
20
20
|
effectsGroup: THREE.Group;
|
|
21
21
|
effectObjects: Map<string, THREE.Mesh>;
|
|
22
22
|
container: THREE.Group;
|
|
23
|
+
/**
|
|
24
|
+
* 运动轨迹线(curveLine)开关。默认关闭、不绘制、不显示。
|
|
25
|
+
* 仅 debug / 特殊需求时由业务经插件显式开启(见 setTraceVisible)。
|
|
26
|
+
*/
|
|
27
|
+
showTrace: boolean;
|
|
23
28
|
private mixer;
|
|
24
29
|
private action;
|
|
25
30
|
private itemMatrixMap;
|
|
@@ -34,6 +39,18 @@ export declare class DigitalHuman {
|
|
|
34
39
|
repeat: boolean;
|
|
35
40
|
switchDuration: number;
|
|
36
41
|
}): void;
|
|
42
|
+
/**
|
|
43
|
+
* seek/预览专用:立即「硬切」到目标动画(无 crossfade)。
|
|
44
|
+
*
|
|
45
|
+
* 背景:`playAnimation` 走 `crossFadeFrom(oldAction, switchDuration, true)` 做平滑过渡,依赖后续帧以
|
|
46
|
+
* 正的 delta 推进权重淡入淡出。但 seek/定格帧(delta===0)只做一次 `mixer.update(0)`,零时长的
|
|
47
|
+
* crossfade 不会推进——新动作权重可能仍≈0、旧动作权重仍≈1,且旧动作的 `stop()` 被 `setTimeout(…,0)`
|
|
48
|
+
* 推迟到本帧渲染之后执行。结果:跨动画 seek(如章节末「躺」姿回到起始帧「跑」)时旧姿态残留,
|
|
49
|
+
* 而位置/旋转因是直接拷贝关键帧的、已正确。
|
|
50
|
+
*
|
|
51
|
+
* 这里同步停旧动作、把新动作权重直接置 1,保证随后的 `mixer.update(0)` 立即定格到目标姿态。
|
|
52
|
+
*/
|
|
53
|
+
private switchAnimationImmediately;
|
|
37
54
|
pauseAnimation(): void;
|
|
38
55
|
stopAnimation(): void;
|
|
39
56
|
continueAnimation(): void;
|
|
@@ -62,6 +79,12 @@ export declare class DigitalHuman {
|
|
|
62
79
|
* @param delta 距上一帧的时间增量(ms),用于推进骨骼动画 mixer
|
|
63
80
|
*/
|
|
64
81
|
renderAtTime(time: number, delta: number): void;
|
|
82
|
+
/**
|
|
83
|
+
* 运动轨迹线开关(默认关闭、不显示)。仅 debug / 特殊需求由业务显式开启。
|
|
84
|
+
* - 开启:显示 curveLine,并回填当前时间点之前的轨迹(此后每帧继续累积)。
|
|
85
|
+
* - 关闭:隐藏并清空轨迹几何。
|
|
86
|
+
*/
|
|
87
|
+
setTraceVisible(visible: boolean): void;
|
|
65
88
|
traceUpDate(): void;
|
|
66
89
|
clearTrace(): void;
|
|
67
90
|
clearProcessedNeedRenderKeyframeIndices(): void;
|
|
@@ -1,65 +1,87 @@
|
|
|
1
1
|
var b = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
2
|
+
var R = (k, e, i) => e in k ? b(k, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : k[e] = i;
|
|
3
|
+
var h = (k, e, i) => (R(k, typeof e != "symbol" ? e + "" : e, i), i);
|
|
4
|
+
var v = (k, e, i) => new Promise((s, r) => {
|
|
5
|
+
var o = (n) => {
|
|
6
6
|
try {
|
|
7
|
-
|
|
8
|
-
} catch (
|
|
9
|
-
|
|
7
|
+
f(i.next(n));
|
|
8
|
+
} catch (p) {
|
|
9
|
+
r(p);
|
|
10
10
|
}
|
|
11
|
-
},
|
|
11
|
+
}, u = (n) => {
|
|
12
12
|
try {
|
|
13
|
-
|
|
14
|
-
} catch (
|
|
15
|
-
|
|
13
|
+
f(i.throw(n));
|
|
14
|
+
} catch (p) {
|
|
15
|
+
r(p);
|
|
16
16
|
}
|
|
17
|
-
},
|
|
18
|
-
|
|
17
|
+
}, f = (n) => n.done ? s(n.value) : Promise.resolve(n.value).then(o, u);
|
|
18
|
+
f((i = i.apply(k, e)).next());
|
|
19
19
|
});
|
|
20
20
|
import * as t from "three";
|
|
21
|
-
import { DigitalStateMachine as
|
|
22
|
-
import { Trace as
|
|
23
|
-
const
|
|
21
|
+
import { DigitalStateMachine as B } from "./DigitalStateMachine.js";
|
|
22
|
+
import { Trace as S } from "./Trace.js";
|
|
23
|
+
const F = 300;
|
|
24
24
|
class O {
|
|
25
25
|
constructor(e, i) {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
26
|
+
h(this, "model");
|
|
27
|
+
h(this, "keyframesManager");
|
|
28
|
+
h(this, "keyframes");
|
|
29
|
+
h(this, "items");
|
|
30
|
+
h(this, "effects");
|
|
31
|
+
h(this, "digitalPlayground");
|
|
32
|
+
h(this, "state");
|
|
33
|
+
h(this, "animationFrameId");
|
|
34
|
+
h(this, "curveLine");
|
|
35
|
+
h(this, "effectsGroup");
|
|
36
|
+
h(this, "effectObjects");
|
|
37
|
+
h(this, "container");
|
|
38
|
+
/**
|
|
39
|
+
* 运动轨迹线(curveLine)开关。默认关闭、不绘制、不显示。
|
|
40
|
+
* 仅 debug / 特殊需求时由业务经插件显式开启(见 setTraceVisible)。
|
|
41
|
+
*/
|
|
42
|
+
h(this, "showTrace", !1);
|
|
43
|
+
h(this, "mixer");
|
|
44
|
+
h(this, "action");
|
|
45
|
+
h(this, "itemMatrixMap");
|
|
46
|
+
h(this, "trace");
|
|
42
47
|
// 用于跟踪已处理的needRender keyframeIndex
|
|
43
|
-
|
|
48
|
+
h(this, "processedNeedRenderKeyframeIndices", /* @__PURE__ */ new Set());
|
|
44
49
|
// 跟踪已绑定到骨骼的 keyframe 道具(key: itemKey, value: item object)
|
|
45
|
-
|
|
50
|
+
h(this, "attachedItems", /* @__PURE__ */ new Map());
|
|
46
51
|
// 缓存 RightHand 骨骼
|
|
47
|
-
|
|
52
|
+
h(this, "rightHandBone", null);
|
|
48
53
|
// 加法式新增:供外部统一时钟(DigitalPerformanceV2Plugin)驱动时使用的特效贴图缓存。
|
|
49
54
|
// 不影响既有 play() 路径(play 使用其内部局部 textures 变量)。
|
|
50
|
-
|
|
51
|
-
this.model = e, this.model.visible = !1, this.model.mixer = null, this.mixer = new t.AnimationMixer(this.model), this.action = null, this.keyframesManager = new
|
|
55
|
+
h(this, "externalTextures", /* @__PURE__ */ new Map());
|
|
56
|
+
this.model = e, this.model.visible = !1, this.model.mixer = null, this.mixer = new t.AnimationMixer(this.model), this.action = null, this.keyframesManager = new B(), this.keyframes = [], this.items = [], this.effects = [], this.digitalPlayground = i, this.state = {
|
|
52
57
|
currentTime: 0,
|
|
53
58
|
currentAnimation: null,
|
|
54
59
|
currentAnimationRepeat: !1,
|
|
55
60
|
playing: !1
|
|
56
|
-
}, this.animationFrameId = null, this.itemMatrixMap = /* @__PURE__ */ new Map(), this.trace = new
|
|
61
|
+
}, this.animationFrameId = null, this.itemMatrixMap = /* @__PURE__ */ new Map(), this.trace = new S(), this.curveLine = new t.Line(), this.curveLine.material = new t.LineBasicMaterial({ color: 14467195, linewidth: 5 }), this.curveLine.visible = !1, this.effectsGroup = new t.Group(), this.effectObjects = /* @__PURE__ */ new Map(), this.container = new t.Group(), this.container.add(this.model), this.container.add(this.curveLine), this.container.add(this.effectsGroup);
|
|
57
62
|
}
|
|
58
63
|
playAnimation({ animation: e, repeat: i, switchDuration: s }) {
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}, s), this.action =
|
|
64
|
+
const r = this.action, o = this.mixer.clipAction(e);
|
|
65
|
+
o.reset(), i ? (o.setLoop(t.LoopRepeat, 1 / 0), o.clampWhenFinished = !1) : (o.setLoop(t.LoopOnce, 1), o.clampWhenFinished = !0), r && (o.enabled = !0, o.setEffectiveTimeScale(1), o.crossFadeFrom(r, s / 1e3, !0)), o.play(), r && r !== o && setTimeout(() => {
|
|
66
|
+
r !== this.action && r.stop();
|
|
67
|
+
}, s), this.action = o;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* seek/预览专用:立即「硬切」到目标动画(无 crossfade)。
|
|
71
|
+
*
|
|
72
|
+
* 背景:`playAnimation` 走 `crossFadeFrom(oldAction, switchDuration, true)` 做平滑过渡,依赖后续帧以
|
|
73
|
+
* 正的 delta 推进权重淡入淡出。但 seek/定格帧(delta===0)只做一次 `mixer.update(0)`,零时长的
|
|
74
|
+
* crossfade 不会推进——新动作权重可能仍≈0、旧动作权重仍≈1,且旧动作的 `stop()` 被 `setTimeout(…,0)`
|
|
75
|
+
* 推迟到本帧渲染之后执行。结果:跨动画 seek(如章节末「躺」姿回到起始帧「跑」)时旧姿态残留,
|
|
76
|
+
* 而位置/旋转因是直接拷贝关键帧的、已正确。
|
|
77
|
+
*
|
|
78
|
+
* 这里同步停旧动作、把新动作权重直接置 1,保证随后的 `mixer.update(0)` 立即定格到目标姿态。
|
|
79
|
+
*/
|
|
80
|
+
switchAnimationImmediately(e, i) {
|
|
81
|
+
const s = this.action;
|
|
82
|
+
s && s.getClip() !== e && s.stop();
|
|
83
|
+
const r = this.mixer.clipAction(e);
|
|
84
|
+
r.reset(), i ? (r.setLoop(t.LoopRepeat, 1 / 0), r.clampWhenFinished = !1) : (r.setLoop(t.LoopOnce, 1), r.clampWhenFinished = !0), r.enabled = !0, r.setEffectiveTimeScale(1), r.setEffectiveWeight(1), r.play(), this.action = r;
|
|
63
85
|
}
|
|
64
86
|
pauseAnimation() {
|
|
65
87
|
this.action && (this.action.paused = !0), this.animationFrameId && (cancelAnimationFrame(this.animationFrameId), this.animationFrameId = null), this.state.playing = !1;
|
|
@@ -79,78 +101,81 @@ class O {
|
|
|
79
101
|
this.state.currentTime = 0, this.keyframes && this.keyframes.length > 0 && (this.model.position.copy(new t.Vector3().fromArray(this.keyframes[0].position)), this.model.quaternion.copy(new t.Quaternion().fromArray(this.keyframes[0].quaternion))), this.model.visible = !1, this.container.visible = !1, this.animationFrameId && cancelAnimationFrame(this.animationFrameId), this.stopAnimation(), this.clearTrace(), this.detachAllKeyframeItems(), this.state.playing = !1;
|
|
80
102
|
}
|
|
81
103
|
play(e) {
|
|
82
|
-
return
|
|
104
|
+
return v(this, null, function* () {
|
|
83
105
|
this.clearProcessedNeedRenderKeyframeIndices();
|
|
84
|
-
const { keyframes: i, items: s, effects:
|
|
85
|
-
return this.keyframes = i || this.keyframes, this.items = s || this.items, this.effects =
|
|
106
|
+
const { keyframes: i, items: s, effects: r } = e || {};
|
|
107
|
+
return this.keyframes = i || this.keyframes, this.items = s || this.items, this.effects = r || this.effects, this.state.currentAnimation = null, this.state.currentAnimationRepeat = !1, this.state.playing = !0, new Promise((o) => {
|
|
86
108
|
this.state.currentTime || this.init();
|
|
87
|
-
let
|
|
88
|
-
for (const
|
|
89
|
-
const
|
|
90
|
-
if (
|
|
109
|
+
let u = null;
|
|
110
|
+
for (const d of this.items) {
|
|
111
|
+
const l = this.digitalPlayground.getDigitalItem(d.model);
|
|
112
|
+
if (l) {
|
|
91
113
|
let a = null;
|
|
92
|
-
const g = this.model.children[0].children.find((
|
|
93
|
-
if (!g || !
|
|
114
|
+
const g = this.model.children[0].children.find((w) => w instanceof t.Bone), y = this.model.children[0].children.find((w) => w instanceof t.SkinnedMesh);
|
|
115
|
+
if (!g || !y)
|
|
94
116
|
throw new Error("模型骨骼缺失");
|
|
95
|
-
if (this.model.children[0].children[2].traverse((
|
|
96
|
-
|
|
117
|
+
if (this.model.children[0].children[2].traverse((w) => {
|
|
118
|
+
w instanceof t.Bone && w.name === "RightHand" && (a = w);
|
|
97
119
|
}), !a)
|
|
98
120
|
throw new Error("没有找到绑定的骨骼");
|
|
99
|
-
a.add(
|
|
100
|
-
const
|
|
101
|
-
new t.Matrix4().fromArray(
|
|
121
|
+
a.add(l);
|
|
122
|
+
const m = new t.Vector3(), c = new t.Quaternion(), A = new t.Vector3();
|
|
123
|
+
new t.Matrix4().fromArray(d.initialMatrix).decompose(m, c, A), l.position.copy(m), l.quaternion.copy(c), l.scale.copy(A), l.updateMatrixWorld(!0);
|
|
102
124
|
}
|
|
103
125
|
}
|
|
104
|
-
const
|
|
105
|
-
for (const
|
|
106
|
-
if (
|
|
107
|
-
const
|
|
108
|
-
for (const a of
|
|
126
|
+
const f = /* @__PURE__ */ new Map(), n = new t.TextureLoader();
|
|
127
|
+
for (const d of this.effects)
|
|
128
|
+
if (d.type === "frameSequence") {
|
|
129
|
+
const l = d.keyframes;
|
|
130
|
+
for (const a of l)
|
|
109
131
|
n.load(a.image, (g) => {
|
|
110
|
-
g.name = a.image,
|
|
132
|
+
g.name = a.image, f.set(a.image, g);
|
|
111
133
|
});
|
|
112
134
|
}
|
|
113
|
-
const
|
|
114
|
-
var
|
|
115
|
-
|
|
116
|
-
const
|
|
117
|
-
|
|
135
|
+
const p = (d) => {
|
|
136
|
+
var g, y;
|
|
137
|
+
u === null && (u = d);
|
|
138
|
+
const l = d - u;
|
|
139
|
+
u = d, this.state.currentTime += l;
|
|
118
140
|
const a = this.keyframesManager.getStateByTime(this.state.currentTime, this.keyframes, "model");
|
|
119
|
-
this.
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
this.
|
|
141
|
+
if (this.showTrace) {
|
|
142
|
+
this.trace.addPoint(a.translation);
|
|
143
|
+
const m = new t.BufferGeometry().setFromPoints(this.trace.tracePoints);
|
|
144
|
+
this.curveLine.geometry = m;
|
|
145
|
+
}
|
|
146
|
+
if (this.model.position.copy(a.translation), this.model.quaternion.copy(a.quaternion), this.model.scale.copy(a.scale), this.model.visible = a.visible, a.isFinal) {
|
|
147
|
+
this.model.visible = !1, this.container.visible = !1, this.stopAnimation(), this.model.needsRender = !0, o(!0), this.animationFrameId !== null && (cancelAnimationFrame(this.animationFrameId), this.animationFrameId = null);
|
|
123
148
|
return;
|
|
124
149
|
} else if (a.animation) {
|
|
125
|
-
const
|
|
126
|
-
(
|
|
127
|
-
animation:
|
|
150
|
+
const m = this.digitalPlayground.getAnimation(a.animation.url), c = a.animation.needRender, A = a.animation.repeat !== this.state.currentAnimationRepeat;
|
|
151
|
+
(m !== this.state.currentAnimation || A || c && !this.hasProcessedNeedRenderForTimestamp(a.keyframeIndex)) && (c && m === this.state.currentAnimation && this.markNeedRenderProcessedForTimestamp(a.keyframeIndex), this.state.currentAnimation = m, this.state.currentAnimationRepeat = a.animation.repeat, this.playAnimation({
|
|
152
|
+
animation: m,
|
|
128
153
|
repeat: a.animation.repeat,
|
|
129
|
-
switchDuration: (
|
|
130
|
-
})), this.mixer.update(
|
|
154
|
+
switchDuration: (g = a.animation.switchDuration) != null ? g : F
|
|
155
|
+
})), this.mixer.update(l / 1e3), a.animation.isOver === !0 && (this.action.paused = !0, this.action.time = this.state.currentAnimation.duration, this.mixer.update(0));
|
|
131
156
|
}
|
|
132
|
-
this.updateKeyframeItems((
|
|
133
|
-
for (const
|
|
134
|
-
const
|
|
135
|
-
|
|
157
|
+
this.updateKeyframeItems((y = a.animation) == null ? void 0 : y.item);
|
|
158
|
+
for (const m of this.items) {
|
|
159
|
+
const c = this.digitalPlayground.getDigitalItem(m.model);
|
|
160
|
+
c && (this.keyframesManager.getStateByTime(this.state.currentTime, m.keyframes, "item").visible === !0 ? c.visible = !0 : c.visible = !1);
|
|
136
161
|
}
|
|
137
|
-
for (let
|
|
138
|
-
const
|
|
139
|
-
if (
|
|
140
|
-
const
|
|
141
|
-
if (!this.effectObjects.has(
|
|
142
|
-
const
|
|
162
|
+
for (let m = 0; m < this.effects.length; m++) {
|
|
163
|
+
const c = this.effects[m];
|
|
164
|
+
if (c.type === "frameSequence") {
|
|
165
|
+
const A = c.type + m;
|
|
166
|
+
if (!this.effectObjects.has(A)) {
|
|
167
|
+
const M = new t.PlaneGeometry(1, 1), P = new t.MeshBasicMaterial({
|
|
143
168
|
transparent: !0
|
|
144
|
-
}),
|
|
145
|
-
|
|
169
|
+
}), T = new t.Mesh(M, P);
|
|
170
|
+
T.rotateX(-Math.PI / 2), T.position.copy(new t.Vector3().fromArray(c.position)), this.effectObjects.set(A, T), this.effectsGroup.add(T);
|
|
146
171
|
}
|
|
147
|
-
const
|
|
148
|
-
|
|
172
|
+
const I = this.effectObjects.get(A), w = this.keyframesManager.getStateByTime(this.state.currentTime, this.effects[m].keyframes, "effect"), x = f.get(w.image);
|
|
173
|
+
I.material.map = x, I.visible = w.visible;
|
|
149
174
|
}
|
|
150
175
|
}
|
|
151
|
-
this.model.needsRender = !0, this.animationFrameId = requestAnimationFrame(
|
|
176
|
+
this.model.needsRender = !0, this.animationFrameId = requestAnimationFrame(p);
|
|
152
177
|
};
|
|
153
|
-
this.animationFrameId && (cancelAnimationFrame(this.animationFrameId), this.animationFrameId = null), this.animationFrameId = requestAnimationFrame(
|
|
178
|
+
this.animationFrameId && (cancelAnimationFrame(this.animationFrameId), this.animationFrameId = null), this.animationFrameId = requestAnimationFrame(p);
|
|
154
179
|
});
|
|
155
180
|
});
|
|
156
181
|
}
|
|
@@ -161,30 +186,30 @@ class O {
|
|
|
161
186
|
*/
|
|
162
187
|
prepareExternalDrive(e) {
|
|
163
188
|
this.clearProcessedNeedRenderKeyframeIndices();
|
|
164
|
-
const { keyframes: i, items: s, effects:
|
|
165
|
-
this.keyframes = i || this.keyframes, this.items = s || this.items, this.effects =
|
|
166
|
-
for (const
|
|
167
|
-
const
|
|
168
|
-
if (
|
|
189
|
+
const { keyframes: i, items: s, effects: r } = e || {};
|
|
190
|
+
this.keyframes = i || this.keyframes, this.items = s || this.items, this.effects = r || this.effects, this.state.currentAnimation = null, this.state.currentAnimationRepeat = !1, this.state.playing = !0, this.keyframes.length > 0 && !this.state.currentTime && this.init();
|
|
191
|
+
for (const u of this.items) {
|
|
192
|
+
const f = this.digitalPlayground.getDigitalItem(u.model);
|
|
193
|
+
if (f) {
|
|
169
194
|
let n = null;
|
|
170
|
-
const
|
|
171
|
-
if (!
|
|
195
|
+
const p = this.model.children[0].children.find((y) => y instanceof t.Bone), d = this.model.children[0].children.find((y) => y instanceof t.SkinnedMesh);
|
|
196
|
+
if (!p || !d)
|
|
172
197
|
throw new Error("模型骨骼缺失");
|
|
173
|
-
if (this.model.children[0].children[2].traverse((
|
|
174
|
-
|
|
198
|
+
if (this.model.children[0].children[2].traverse((y) => {
|
|
199
|
+
y instanceof t.Bone && y.name === "RightHand" && (n = y);
|
|
175
200
|
}), !n)
|
|
176
201
|
throw new Error("没有找到绑定的骨骼");
|
|
177
|
-
n.add(
|
|
178
|
-
const
|
|
179
|
-
new t.Matrix4().fromArray(
|
|
202
|
+
n.add(f);
|
|
203
|
+
const l = new t.Vector3(), a = new t.Quaternion(), g = new t.Vector3();
|
|
204
|
+
new t.Matrix4().fromArray(u.initialMatrix).decompose(l, a, g), f.position.copy(l), f.quaternion.copy(a), f.scale.copy(g), f.updateMatrixWorld(!0);
|
|
180
205
|
}
|
|
181
206
|
}
|
|
182
|
-
const
|
|
183
|
-
for (const
|
|
184
|
-
if (
|
|
185
|
-
for (const
|
|
186
|
-
|
|
187
|
-
n.name =
|
|
207
|
+
const o = new t.TextureLoader();
|
|
208
|
+
for (const u of this.effects)
|
|
209
|
+
if (u.type === "frameSequence")
|
|
210
|
+
for (const f of u.keyframes)
|
|
211
|
+
f.image && o.load(f.image, (n) => {
|
|
212
|
+
n.name = f.image, this.externalTextures.set(f.image, n);
|
|
188
213
|
});
|
|
189
214
|
}
|
|
190
215
|
/**
|
|
@@ -194,51 +219,58 @@ class O {
|
|
|
194
219
|
* @param delta 距上一帧的时间增量(ms),用于推进骨骼动画 mixer
|
|
195
220
|
*/
|
|
196
221
|
renderAtTime(e, i) {
|
|
197
|
-
var
|
|
222
|
+
var r, o, u, f;
|
|
198
223
|
this.state.currentTime = e;
|
|
199
224
|
const s = this.keyframesManager.getStateByTime(e, this.keyframes, "model");
|
|
200
|
-
if (this.trace.addPoint(s.translation), this.curveLine.geometry = new t.BufferGeometry().setFromPoints(this.trace.tracePoints), this.model.position.copy(s.translation), this.model.quaternion.copy(s.quaternion), this.model.scale.copy(s.scale), s.isFinal) {
|
|
225
|
+
if (this.showTrace && (this.trace.addPoint(s.translation), this.curveLine.geometry = new t.BufferGeometry().setFromPoints(this.trace.tracePoints)), this.model.position.copy(s.translation), this.model.quaternion.copy(s.quaternion), this.model.scale.copy(s.scale), s.isFinal) {
|
|
201
226
|
this.model.visible = !1, this.container.visible = !1, this.model.needsRender = !0;
|
|
202
227
|
return;
|
|
203
228
|
}
|
|
204
229
|
if (this.container.visible = !0, this.model.visible = s.visible, s.animation) {
|
|
205
|
-
const n = this.digitalPlayground.getAnimation(s.animation.url),
|
|
206
|
-
if ((n !== this.state.currentAnimation ||
|
|
230
|
+
const n = this.digitalPlayground.getAnimation(s.animation.url), p = s.animation.needRender, d = s.animation.repeat !== this.state.currentAnimationRepeat, l = i === 0;
|
|
231
|
+
if ((n !== this.state.currentAnimation || d || p && !this.hasProcessedNeedRenderForTimestamp(s.keyframeIndex)) && (p && n === this.state.currentAnimation && this.markNeedRenderProcessedForTimestamp(s.keyframeIndex), this.state.currentAnimation = n, this.state.currentAnimationRepeat = s.animation.repeat, l ? this.switchAnimationImmediately(n, s.animation.repeat) : this.playAnimation({
|
|
207
232
|
animation: n,
|
|
208
233
|
repeat: s.animation.repeat,
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
})), h) {
|
|
234
|
+
switchDuration: (r = s.animation.switchDuration) != null ? r : F
|
|
235
|
+
})), l) {
|
|
212
236
|
const g = this.state.currentAnimation;
|
|
213
237
|
if (this.action && g) {
|
|
214
|
-
const
|
|
215
|
-
this.action.paused = !1, this.action.time =
|
|
238
|
+
const y = (u = (o = this.keyframes[s.keyframeIndex]) == null ? void 0 : o.timeStamp) != null ? u : 0, m = Math.max(0, (e - y) / 1e3), c = g.duration || 0, A = s.animation.repeat && c > 0 ? m % c : Math.min(m, c);
|
|
239
|
+
this.action.paused = !1, this.action.time = A, this.mixer.update(0), this.action.paused = !0;
|
|
216
240
|
}
|
|
217
241
|
} else
|
|
218
242
|
this.action && (this.action.paused = !1), this.mixer.update(i / 1e3), s.animation.isOver === !0 && (this.action.paused = !0, this.action.time = this.state.currentAnimation.duration, this.mixer.update(0));
|
|
219
243
|
}
|
|
220
|
-
this.updateKeyframeItems((
|
|
244
|
+
this.updateKeyframeItems((f = s.animation) == null ? void 0 : f.item);
|
|
221
245
|
for (const n of this.items) {
|
|
222
|
-
const
|
|
223
|
-
if (
|
|
224
|
-
const
|
|
225
|
-
|
|
246
|
+
const p = this.digitalPlayground.getDigitalItem(n.model);
|
|
247
|
+
if (p) {
|
|
248
|
+
const d = this.keyframesManager.getStateByTime(e, n.keyframes, "item");
|
|
249
|
+
p.visible = d.visible === !0;
|
|
226
250
|
}
|
|
227
251
|
}
|
|
228
252
|
for (let n = 0; n < this.effects.length; n++) {
|
|
229
|
-
const
|
|
230
|
-
if (
|
|
231
|
-
const
|
|
232
|
-
if (!this.effectObjects.has(
|
|
233
|
-
const
|
|
234
|
-
|
|
253
|
+
const p = this.effects[n];
|
|
254
|
+
if (p.type === "frameSequence") {
|
|
255
|
+
const d = p.type + n;
|
|
256
|
+
if (!this.effectObjects.has(d)) {
|
|
257
|
+
const y = new t.PlaneGeometry(1, 1), m = new t.MeshBasicMaterial({ transparent: !0 }), c = new t.Mesh(y, m);
|
|
258
|
+
c.rotateX(-Math.PI / 2), c.position.copy(new t.Vector3().fromArray(p.position)), this.effectObjects.set(d, c), this.effectsGroup.add(c);
|
|
235
259
|
}
|
|
236
|
-
const
|
|
237
|
-
|
|
260
|
+
const l = this.effectObjects.get(d), a = this.keyframesManager.getStateByTime(e, this.effects[n].keyframes, "effect"), g = this.externalTextures.get(a.image);
|
|
261
|
+
l.material.map = g, l.visible = a.visible;
|
|
238
262
|
}
|
|
239
263
|
}
|
|
240
264
|
this.model.needsRender = !0;
|
|
241
265
|
}
|
|
266
|
+
/**
|
|
267
|
+
* 运动轨迹线开关(默认关闭、不显示)。仅 debug / 特殊需求由业务显式开启。
|
|
268
|
+
* - 开启:显示 curveLine,并回填当前时间点之前的轨迹(此后每帧继续累积)。
|
|
269
|
+
* - 关闭:隐藏并清空轨迹几何。
|
|
270
|
+
*/
|
|
271
|
+
setTraceVisible(e) {
|
|
272
|
+
this.showTrace = e, this.curveLine.visible = e, e ? this.traceUpDate() : this.clearTrace();
|
|
273
|
+
}
|
|
242
274
|
// 用于分段时 更新轨迹
|
|
243
275
|
traceUpDate() {
|
|
244
276
|
this.trace.clear();
|
|
@@ -276,16 +308,16 @@ class O {
|
|
|
276
308
|
}
|
|
277
309
|
// 根据当前帧的 items 动态绑定/解绑道具
|
|
278
310
|
updateKeyframeItems(e) {
|
|
279
|
-
var
|
|
311
|
+
var r;
|
|
280
312
|
const i = (e == null ? void 0 : e.url) || null;
|
|
281
|
-
for (const [
|
|
282
|
-
i !==
|
|
313
|
+
for (const [o, u] of this.attachedItems)
|
|
314
|
+
i !== o && ((r = u.parent) == null || r.remove(u), this.attachedItems.delete(o));
|
|
283
315
|
if (!i)
|
|
284
316
|
return;
|
|
285
317
|
const s = this.getRightHandBone();
|
|
286
318
|
if (s && !this.attachedItems.has(i)) {
|
|
287
|
-
const
|
|
288
|
-
|
|
319
|
+
const o = this.digitalPlayground.getDigitalItem(i);
|
|
320
|
+
o && (s.add(o), this.attachedItems.set(i, o));
|
|
289
321
|
}
|
|
290
322
|
}
|
|
291
323
|
// 解绑所有 keyframe 道具
|
|
@@ -10,6 +10,8 @@ export declare class DigitalPlayground {
|
|
|
10
10
|
private digitalItemMap;
|
|
11
11
|
private skeletalAnimationMap;
|
|
12
12
|
private debugMode;
|
|
13
|
+
/** 运动轨迹线开关(默认关闭)。应用到已加载及后续加载的所有 DigitalHuman。 */
|
|
14
|
+
private showTrace;
|
|
13
15
|
constructor(debugMode?: boolean);
|
|
14
16
|
setScript(script: DigitalScript): void;
|
|
15
17
|
loadModel(url: string, id?: string): Promise<DigitalHuman>;
|
|
@@ -32,6 +34,11 @@ export declare class DigitalPlayground {
|
|
|
32
34
|
continue(): void;
|
|
33
35
|
reset(): void;
|
|
34
36
|
setTimelineTo(time: number): void;
|
|
37
|
+
/**
|
|
38
|
+
* 运动轨迹线开关(默认关闭)。作用于当前所有 DigitalHuman,并记忆给后续加载的模型。
|
|
39
|
+
* 仅 debug / 特殊需求由业务经插件显式开启。
|
|
40
|
+
*/
|
|
41
|
+
setTraceVisible(visible: boolean): void;
|
|
35
42
|
/**
|
|
36
43
|
* 销毁 playground
|
|
37
44
|
*/
|