@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
|
@@ -1,62 +1,65 @@
|
|
|
1
1
|
var b = Object.defineProperty;
|
|
2
|
-
var B = (
|
|
3
|
-
var
|
|
4
|
-
var T = (
|
|
5
|
-
var
|
|
2
|
+
var B = (w, e, i) => e in w ? b(w, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : w[e] = i;
|
|
3
|
+
var c = (w, e, i) => (B(w, typeof e != "symbol" ? e + "" : e, i), i);
|
|
4
|
+
var T = (w, e, i) => new Promise((s, f) => {
|
|
5
|
+
var r = (n) => {
|
|
6
6
|
try {
|
|
7
|
-
|
|
8
|
-
} catch (
|
|
9
|
-
|
|
7
|
+
m(i.next(n));
|
|
8
|
+
} catch (u) {
|
|
9
|
+
f(u);
|
|
10
10
|
}
|
|
11
|
-
},
|
|
11
|
+
}, d = (n) => {
|
|
12
12
|
try {
|
|
13
|
-
|
|
14
|
-
} catch (
|
|
15
|
-
|
|
13
|
+
m(i.throw(n));
|
|
14
|
+
} catch (u) {
|
|
15
|
+
f(u);
|
|
16
16
|
}
|
|
17
|
-
},
|
|
18
|
-
|
|
17
|
+
}, m = (n) => n.done ? s(n.value) : Promise.resolve(n.value).then(r, d);
|
|
18
|
+
m((i = i.apply(w, e)).next());
|
|
19
19
|
});
|
|
20
|
-
import * as
|
|
21
|
-
import { DigitalStateMachine as
|
|
20
|
+
import * as t from "three";
|
|
21
|
+
import { DigitalStateMachine as S } from "./DigitalStateMachine.js";
|
|
22
22
|
import { Trace as L } from "./Trace.js";
|
|
23
|
-
const
|
|
24
|
-
class
|
|
25
|
-
constructor(e,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
23
|
+
const v = 300;
|
|
24
|
+
class O {
|
|
25
|
+
constructor(e, i) {
|
|
26
|
+
c(this, "model");
|
|
27
|
+
c(this, "keyframesManager");
|
|
28
|
+
c(this, "keyframes");
|
|
29
|
+
c(this, "items");
|
|
30
|
+
c(this, "effects");
|
|
31
|
+
c(this, "digitalPlayground");
|
|
32
|
+
c(this, "state");
|
|
33
|
+
c(this, "animationFrameId");
|
|
34
|
+
c(this, "curveLine");
|
|
35
|
+
c(this, "effectsGroup");
|
|
36
|
+
c(this, "effectObjects");
|
|
37
|
+
c(this, "container");
|
|
38
|
+
c(this, "mixer");
|
|
39
|
+
c(this, "action");
|
|
40
|
+
c(this, "itemMatrixMap");
|
|
41
|
+
c(this, "trace");
|
|
42
42
|
// 用于跟踪已处理的needRender keyframeIndex
|
|
43
|
-
|
|
43
|
+
c(this, "processedNeedRenderKeyframeIndices", /* @__PURE__ */ new Set());
|
|
44
44
|
// 跟踪已绑定到骨骼的 keyframe 道具(key: itemKey, value: item object)
|
|
45
|
-
|
|
45
|
+
c(this, "attachedItems", /* @__PURE__ */ new Map());
|
|
46
46
|
// 缓存 RightHand 骨骼
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
c(this, "rightHandBone", null);
|
|
48
|
+
// 加法式新增:供外部统一时钟(DigitalPerformanceV2Plugin)驱动时使用的特效贴图缓存。
|
|
49
|
+
// 不影响既有 play() 路径(play 使用其内部局部 textures 变量)。
|
|
50
|
+
c(this, "externalTextures", /* @__PURE__ */ new Map());
|
|
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 S(), this.keyframes = [], this.items = [], this.effects = [], this.digitalPlayground = i, this.state = {
|
|
49
52
|
currentTime: 0,
|
|
50
53
|
currentAnimation: null,
|
|
51
54
|
currentAnimationRepeat: !1,
|
|
52
55
|
playing: !1
|
|
53
|
-
}, this.animationFrameId = null, this.itemMatrixMap = /* @__PURE__ */ new Map(), this.trace = new L(), this.curveLine = new
|
|
56
|
+
}, this.animationFrameId = null, this.itemMatrixMap = /* @__PURE__ */ new Map(), this.trace = new L(), this.curveLine = new t.Line(), this.curveLine.material = new t.LineBasicMaterial({ color: 14467195, linewidth: 5 }), 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);
|
|
54
57
|
}
|
|
55
|
-
playAnimation({ animation: e, repeat:
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
},
|
|
58
|
+
playAnimation({ animation: e, repeat: i, switchDuration: s }) {
|
|
59
|
+
const f = this.action, r = this.mixer.clipAction(e);
|
|
60
|
+
r.reset(), i ? (r.setLoop(t.LoopRepeat, 1 / 0), r.clampWhenFinished = !1) : (r.setLoop(t.LoopOnce, 1), r.clampWhenFinished = !0), f && (r.enabled = !0, r.setEffectiveTimeScale(1), r.crossFadeFrom(f, s / 1e3, !0)), r.play(), f && f !== r && setTimeout(() => {
|
|
61
|
+
f !== this.action && f.stop();
|
|
62
|
+
}, s), this.action = r;
|
|
60
63
|
}
|
|
61
64
|
pauseAnimation() {
|
|
62
65
|
this.action && (this.action.paused = !0), this.animationFrameId && (cancelAnimationFrame(this.animationFrameId), this.animationFrameId = null), this.state.playing = !1;
|
|
@@ -70,101 +73,186 @@ class G {
|
|
|
70
73
|
attachItem() {
|
|
71
74
|
}
|
|
72
75
|
init() {
|
|
73
|
-
this.state.currentTime = 0, this.model.position.copy(new
|
|
76
|
+
this.state.currentTime = 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 = this.keyframes[0].visible;
|
|
74
77
|
}
|
|
75
78
|
reset() {
|
|
76
|
-
this.state.currentTime = 0, this.keyframes && this.keyframes.length > 0 && (this.model.position.copy(new
|
|
79
|
+
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;
|
|
77
80
|
}
|
|
78
81
|
play(e) {
|
|
79
82
|
return T(this, null, function* () {
|
|
80
83
|
this.clearProcessedNeedRenderKeyframeIndices();
|
|
81
|
-
const { keyframes:
|
|
82
|
-
return this.keyframes =
|
|
84
|
+
const { keyframes: i, items: s, effects: f } = e || {};
|
|
85
|
+
return this.keyframes = i || this.keyframes, this.items = s || this.items, this.effects = f || this.effects, this.state.currentAnimation = null, this.state.currentAnimationRepeat = !1, this.state.playing = !0, new Promise((r) => {
|
|
83
86
|
this.state.currentTime || this.init();
|
|
84
|
-
let
|
|
85
|
-
for (const
|
|
86
|
-
const h = this.digitalPlayground.getDigitalItem(
|
|
87
|
+
let d = null;
|
|
88
|
+
for (const l of this.items) {
|
|
89
|
+
const h = this.digitalPlayground.getDigitalItem(l.model);
|
|
87
90
|
if (h) {
|
|
88
91
|
let a = null;
|
|
89
|
-
const
|
|
90
|
-
if (!
|
|
92
|
+
const g = this.model.children[0].children.find((A) => A instanceof t.Bone), p = this.model.children[0].children.find((A) => A instanceof t.SkinnedMesh);
|
|
93
|
+
if (!g || !p)
|
|
91
94
|
throw new Error("模型骨骼缺失");
|
|
92
|
-
if (this.model.children[0].children[2].traverse((
|
|
93
|
-
|
|
95
|
+
if (this.model.children[0].children[2].traverse((A) => {
|
|
96
|
+
A instanceof t.Bone && A.name === "RightHand" && (a = A);
|
|
94
97
|
}), !a)
|
|
95
98
|
throw new Error("没有找到绑定的骨骼");
|
|
96
99
|
a.add(h);
|
|
97
|
-
const
|
|
98
|
-
new
|
|
100
|
+
const k = new t.Vector3(), o = new t.Quaternion(), y = new t.Vector3();
|
|
101
|
+
new t.Matrix4().fromArray(l.initialMatrix).decompose(k, o, y), h.position.copy(k), h.quaternion.copy(o), h.scale.copy(y), h.updateMatrixWorld(!0);
|
|
99
102
|
}
|
|
100
103
|
}
|
|
101
|
-
const
|
|
102
|
-
for (const
|
|
103
|
-
if (
|
|
104
|
-
const h =
|
|
104
|
+
const m = /* @__PURE__ */ new Map(), n = new t.TextureLoader();
|
|
105
|
+
for (const l of this.effects)
|
|
106
|
+
if (l.type === "frameSequence") {
|
|
107
|
+
const h = l.keyframes;
|
|
105
108
|
for (const a of h)
|
|
106
|
-
|
|
107
|
-
|
|
109
|
+
n.load(a.image, (g) => {
|
|
110
|
+
g.name = a.image, m.set(a.image, g);
|
|
108
111
|
});
|
|
109
112
|
}
|
|
110
|
-
const
|
|
111
|
-
var
|
|
112
|
-
|
|
113
|
-
const h =
|
|
114
|
-
|
|
113
|
+
const u = (l) => {
|
|
114
|
+
var p, k;
|
|
115
|
+
d === null && (d = l);
|
|
116
|
+
const h = l - d;
|
|
117
|
+
d = l, this.state.currentTime += h;
|
|
115
118
|
const a = this.keyframesManager.getStateByTime(this.state.currentTime, this.keyframes, "model");
|
|
116
119
|
this.trace.addPoint(a.translation);
|
|
117
|
-
const
|
|
118
|
-
if (this.curveLine.geometry =
|
|
119
|
-
this.model.visible = !1, this.container.visible = !1, this.stopAnimation(), this.model.needsRender = !0,
|
|
120
|
+
const g = new t.BufferGeometry().setFromPoints(this.trace.tracePoints);
|
|
121
|
+
if (this.curveLine.geometry = g, 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) {
|
|
122
|
+
this.model.visible = !1, this.container.visible = !1, this.stopAnimation(), this.model.needsRender = !0, r(!0), this.animationFrameId !== null && (cancelAnimationFrame(this.animationFrameId), this.animationFrameId = null);
|
|
120
123
|
return;
|
|
121
124
|
} else if (a.animation) {
|
|
122
|
-
const
|
|
123
|
-
(
|
|
124
|
-
animation:
|
|
125
|
+
const o = this.digitalPlayground.getAnimation(a.animation.url), y = a.animation.needRender, I = a.animation.repeat !== this.state.currentAnimationRepeat;
|
|
126
|
+
(o !== this.state.currentAnimation || I || y && !this.hasProcessedNeedRenderForTimestamp(a.keyframeIndex)) && (y && o === this.state.currentAnimation && this.markNeedRenderProcessedForTimestamp(a.keyframeIndex), this.state.currentAnimation = o, this.state.currentAnimationRepeat = a.animation.repeat, this.playAnimation({
|
|
127
|
+
animation: o,
|
|
125
128
|
repeat: a.animation.repeat,
|
|
126
|
-
switchDuration: (
|
|
129
|
+
switchDuration: (p = a.animation.switchDuration) != null ? p : v
|
|
127
130
|
})), this.mixer.update(h / 1e3), a.animation.isOver === !0 && (this.action.paused = !0, this.action.time = this.state.currentAnimation.duration, this.mixer.update(0));
|
|
128
131
|
}
|
|
129
|
-
this.updateKeyframeItems((
|
|
130
|
-
for (const
|
|
131
|
-
const
|
|
132
|
-
|
|
132
|
+
this.updateKeyframeItems((k = a.animation) == null ? void 0 : k.item);
|
|
133
|
+
for (const o of this.items) {
|
|
134
|
+
const y = this.digitalPlayground.getDigitalItem(o.model);
|
|
135
|
+
y && (this.keyframesManager.getStateByTime(this.state.currentTime, o.keyframes, "item").visible === !0 ? y.visible = !0 : y.visible = !1);
|
|
133
136
|
}
|
|
134
|
-
for (let
|
|
135
|
-
const
|
|
136
|
-
if (
|
|
137
|
-
const
|
|
138
|
-
if (!this.effectObjects.has(
|
|
139
|
-
const P = new
|
|
137
|
+
for (let o = 0; o < this.effects.length; o++) {
|
|
138
|
+
const y = this.effects[o];
|
|
139
|
+
if (y.type === "frameSequence") {
|
|
140
|
+
const I = y.type + o;
|
|
141
|
+
if (!this.effectObjects.has(I)) {
|
|
142
|
+
const P = new t.PlaneGeometry(1, 1), R = new t.MeshBasicMaterial({
|
|
140
143
|
transparent: !0
|
|
141
|
-
}),
|
|
142
|
-
|
|
144
|
+
}), F = new t.Mesh(P, R);
|
|
145
|
+
F.rotateX(-Math.PI / 2), F.position.copy(new t.Vector3().fromArray(y.position)), this.effectObjects.set(I, F), this.effectsGroup.add(F);
|
|
143
146
|
}
|
|
144
|
-
const
|
|
145
|
-
|
|
147
|
+
const A = this.effectObjects.get(I), M = this.keyframesManager.getStateByTime(this.state.currentTime, this.effects[o].keyframes, "effect"), x = m.get(M.image);
|
|
148
|
+
A.material.map = x, A.visible = M.visible;
|
|
146
149
|
}
|
|
147
150
|
}
|
|
148
|
-
this.model.needsRender = !0, this.animationFrameId = requestAnimationFrame(
|
|
151
|
+
this.model.needsRender = !0, this.animationFrameId = requestAnimationFrame(u);
|
|
149
152
|
};
|
|
150
|
-
this.animationFrameId && (cancelAnimationFrame(this.animationFrameId), this.animationFrameId = null), this.animationFrameId = requestAnimationFrame(
|
|
153
|
+
this.animationFrameId && (cancelAnimationFrame(this.animationFrameId), this.animationFrameId = null), this.animationFrameId = requestAnimationFrame(u);
|
|
151
154
|
});
|
|
152
155
|
});
|
|
153
156
|
}
|
|
157
|
+
/**
|
|
158
|
+
* 加法式新增:为「外部统一时钟驱动」做一次性准备(不启动 rAF、不累加时间)。
|
|
159
|
+
* 设置 keyframes/items/effects,绑定道具骨骼,预加载特效贴图到 externalTextures。
|
|
160
|
+
* 与既有 play() 互不影响:play() 仍走其内部自驱 rAF 路径。
|
|
161
|
+
*/
|
|
162
|
+
prepareExternalDrive(e) {
|
|
163
|
+
this.clearProcessedNeedRenderKeyframeIndices();
|
|
164
|
+
const { keyframes: i, items: s, effects: f } = e || {};
|
|
165
|
+
this.keyframes = i || this.keyframes, this.items = s || this.items, this.effects = f || this.effects, this.state.currentAnimation = null, this.state.currentAnimationRepeat = !1, this.state.playing = !0, this.keyframes.length > 0 && !this.state.currentTime && this.init();
|
|
166
|
+
for (const d of this.items) {
|
|
167
|
+
const m = this.digitalPlayground.getDigitalItem(d.model);
|
|
168
|
+
if (m) {
|
|
169
|
+
let n = null;
|
|
170
|
+
const u = this.model.children[0].children.find((p) => p instanceof t.Bone), l = this.model.children[0].children.find((p) => p instanceof t.SkinnedMesh);
|
|
171
|
+
if (!u || !l)
|
|
172
|
+
throw new Error("模型骨骼缺失");
|
|
173
|
+
if (this.model.children[0].children[2].traverse((p) => {
|
|
174
|
+
p instanceof t.Bone && p.name === "RightHand" && (n = p);
|
|
175
|
+
}), !n)
|
|
176
|
+
throw new Error("没有找到绑定的骨骼");
|
|
177
|
+
n.add(m);
|
|
178
|
+
const h = new t.Vector3(), a = new t.Quaternion(), g = new t.Vector3();
|
|
179
|
+
new t.Matrix4().fromArray(d.initialMatrix).decompose(h, a, g), m.position.copy(h), m.quaternion.copy(a), m.scale.copy(g), m.updateMatrixWorld(!0);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
const r = new t.TextureLoader();
|
|
183
|
+
for (const d of this.effects)
|
|
184
|
+
if (d.type === "frameSequence")
|
|
185
|
+
for (const m of d.keyframes)
|
|
186
|
+
m.image && r.load(m.image, (n) => {
|
|
187
|
+
n.name = m.image, this.externalTextures.set(m.image, n);
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* 加法式新增:按外部给定的全局时间渲染当前帧(供 DigitalPerformanceV2Plugin 的统一时钟驱动)。
|
|
192
|
+
* 不持有 requestAnimationFrame、不累加自身时间、不 resolve;调用前请先 prepareExternalDrive。
|
|
193
|
+
* @param time 章节内全局时间(ms)
|
|
194
|
+
* @param delta 距上一帧的时间增量(ms),用于推进骨骼动画 mixer
|
|
195
|
+
*/
|
|
196
|
+
renderAtTime(e, i) {
|
|
197
|
+
var f, r, d, m;
|
|
198
|
+
this.state.currentTime = e;
|
|
199
|
+
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) {
|
|
201
|
+
this.model.visible = !1, this.container.visible = !1, this.model.needsRender = !0;
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
if (this.container.visible = !0, this.model.visible = s.visible, s.animation) {
|
|
205
|
+
const n = this.digitalPlayground.getAnimation(s.animation.url), u = s.animation.needRender, l = s.animation.repeat !== this.state.currentAnimationRepeat, h = i === 0;
|
|
206
|
+
if ((n !== this.state.currentAnimation || l || u && !this.hasProcessedNeedRenderForTimestamp(s.keyframeIndex)) && (u && n === this.state.currentAnimation && this.markNeedRenderProcessedForTimestamp(s.keyframeIndex), this.state.currentAnimation = n, this.state.currentAnimationRepeat = s.animation.repeat, this.playAnimation({
|
|
207
|
+
animation: n,
|
|
208
|
+
repeat: s.animation.repeat,
|
|
209
|
+
// seek 时不做淡入淡出(淡入靠 delta 推进,seek 下不会进展,会得到错误姿态)
|
|
210
|
+
switchDuration: h ? 0 : (f = s.animation.switchDuration) != null ? f : v
|
|
211
|
+
})), h) {
|
|
212
|
+
const g = this.state.currentAnimation;
|
|
213
|
+
if (this.action && g) {
|
|
214
|
+
const p = (d = (r = this.keyframes[s.keyframeIndex]) == null ? void 0 : r.timeStamp) != null ? d : 0, k = Math.max(0, (e - p) / 1e3), o = g.duration || 0, y = s.animation.repeat && o > 0 ? k % o : Math.min(k, o);
|
|
215
|
+
this.action.paused = !1, this.action.time = y, this.mixer.update(0), this.action.paused = !0;
|
|
216
|
+
}
|
|
217
|
+
} else
|
|
218
|
+
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
|
+
}
|
|
220
|
+
this.updateKeyframeItems((m = s.animation) == null ? void 0 : m.item);
|
|
221
|
+
for (const n of this.items) {
|
|
222
|
+
const u = this.digitalPlayground.getDigitalItem(n.model);
|
|
223
|
+
if (u) {
|
|
224
|
+
const l = this.keyframesManager.getStateByTime(e, n.keyframes, "item");
|
|
225
|
+
u.visible = l.visible === !0;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
for (let n = 0; n < this.effects.length; n++) {
|
|
229
|
+
const u = this.effects[n];
|
|
230
|
+
if (u.type === "frameSequence") {
|
|
231
|
+
const l = u.type + n;
|
|
232
|
+
if (!this.effectObjects.has(l)) {
|
|
233
|
+
const p = new t.PlaneGeometry(1, 1), k = new t.MeshBasicMaterial({ transparent: !0 }), o = new t.Mesh(p, k);
|
|
234
|
+
o.rotateX(-Math.PI / 2), o.position.copy(new t.Vector3().fromArray(u.position)), this.effectObjects.set(l, o), this.effectsGroup.add(o);
|
|
235
|
+
}
|
|
236
|
+
const h = this.effectObjects.get(l), a = this.keyframesManager.getStateByTime(e, this.effects[n].keyframes, "effect"), g = this.externalTextures.get(a.image);
|
|
237
|
+
h.material.map = g, h.visible = a.visible;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
this.model.needsRender = !0;
|
|
241
|
+
}
|
|
154
242
|
// 用于分段时 更新轨迹
|
|
155
243
|
traceUpDate() {
|
|
156
244
|
this.trace.clear();
|
|
157
245
|
for (let e = 0; e <= this.state.currentTime; e += 100) {
|
|
158
|
-
const
|
|
159
|
-
this.trace.addPoint(
|
|
160
|
-
const
|
|
161
|
-
this.curveLine.geometry =
|
|
246
|
+
const i = this.keyframesManager.getStateByTime(e, this.keyframes, "model");
|
|
247
|
+
this.trace.addPoint(i.translation);
|
|
248
|
+
const s = new t.BufferGeometry().setFromPoints(this.trace.tracePoints);
|
|
249
|
+
this.curveLine.geometry = s;
|
|
162
250
|
}
|
|
163
251
|
}
|
|
164
252
|
// 清楚轨迹
|
|
165
253
|
clearTrace() {
|
|
166
254
|
this.trace.clear();
|
|
167
|
-
const e = new
|
|
255
|
+
const e = new t.BufferGeometry().setFromPoints(this.trace.tracePoints);
|
|
168
256
|
this.curveLine.geometry = e;
|
|
169
257
|
}
|
|
170
258
|
// 清理已处理的keyframeIndex记录(可选,在适当的时候调用)
|
|
@@ -182,32 +270,32 @@ class G {
|
|
|
182
270
|
// 获取并缓存 RightHand 骨骼
|
|
183
271
|
getRightHandBone() {
|
|
184
272
|
var e;
|
|
185
|
-
return this.rightHandBone ? this.rightHandBone : ((e = this.model.children[0].children.find((
|
|
186
|
-
|
|
273
|
+
return this.rightHandBone ? this.rightHandBone : ((e = this.model.children[0].children.find((i) => i instanceof t.Bone)) == null || e.traverse((i) => {
|
|
274
|
+
i instanceof t.Bone && i.name === "RightHand" && (this.rightHandBone = i);
|
|
187
275
|
}), this.rightHandBone);
|
|
188
276
|
}
|
|
189
277
|
// 根据当前帧的 items 动态绑定/解绑道具
|
|
190
278
|
updateKeyframeItems(e) {
|
|
191
|
-
var
|
|
192
|
-
const
|
|
193
|
-
for (const [
|
|
194
|
-
|
|
195
|
-
if (!
|
|
279
|
+
var f;
|
|
280
|
+
const i = (e == null ? void 0 : e.url) || null;
|
|
281
|
+
for (const [r, d] of this.attachedItems)
|
|
282
|
+
i !== r && ((f = d.parent) == null || f.remove(d), this.attachedItems.delete(r));
|
|
283
|
+
if (!i)
|
|
196
284
|
return;
|
|
197
|
-
const
|
|
198
|
-
if (
|
|
199
|
-
const
|
|
200
|
-
|
|
285
|
+
const s = this.getRightHandBone();
|
|
286
|
+
if (s && !this.attachedItems.has(i)) {
|
|
287
|
+
const r = this.digitalPlayground.getDigitalItem(i);
|
|
288
|
+
r && (s.add(r), this.attachedItems.set(i, r));
|
|
201
289
|
}
|
|
202
290
|
}
|
|
203
291
|
// 解绑所有 keyframe 道具
|
|
204
292
|
detachAllKeyframeItems() {
|
|
205
293
|
var e;
|
|
206
|
-
for (const [,
|
|
207
|
-
(e =
|
|
294
|
+
for (const [, i] of this.attachedItems)
|
|
295
|
+
(e = i.parent) == null || e.remove(i);
|
|
208
296
|
this.attachedItems.clear();
|
|
209
297
|
}
|
|
210
298
|
}
|
|
211
299
|
export {
|
|
212
|
-
|
|
300
|
+
O as DigitalHuman
|
|
213
301
|
};
|