@realsee/dnalogel 3.77.4-alpha.0 → 3.77.4-alpha.2
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/CHANGELOG.md +837 -846
- package/dist/DigitalPerformancePlugin/controller/index.d.ts +224 -0
- package/dist/DigitalPerformancePlugin/core/DigitalHuman.d.ts +54 -0
- package/dist/DigitalPerformancePlugin/core/DigitalPlayground.d.ts +40 -0
- package/dist/DigitalPerformancePlugin/core/DigitalStateMachine.d.ts +150 -0
- package/dist/DigitalPerformancePlugin/core/Trace.d.ts +9 -0
- package/dist/DigitalPerformancePlugin/index.d.ts +11 -0
- package/dist/DigitalPerformancePlugin/mock.d.ts +76 -0
- package/dist/DigitalPerformancePlugin/typings/index.d.ts +79 -0
- package/dist/GuideLinePlugin/Controller.d.ts +2 -34
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +2 -7
- package/dist/index.cjs.js +86 -73
- package/dist/index.d.ts +1 -0
- package/dist/index.js +12911 -11239
- package/dist/index.umd.js +87 -74
- package/libs/DigitalPerformancePlugin/controller/index.d.ts +2 -2
- package/libs/DigitalPerformancePlugin/controller/index.js +164 -173
- package/libs/DigitalPerformancePlugin/core/DigitalHuman.d.ts +15 -6
- package/libs/DigitalPerformancePlugin/core/DigitalHuman.js +125 -98
- package/libs/DigitalPerformancePlugin/core/DigitalPlayground.d.ts +11 -5
- package/libs/DigitalPerformancePlugin/core/DigitalPlayground.js +84 -74
- package/libs/DigitalPerformancePlugin/core/DigitalStateMachine.d.ts +7 -0
- package/libs/DigitalPerformancePlugin/mock.d.ts +6 -0
- package/libs/DigitalPerformancePlugin/mock.js +270 -273
- package/libs/GuideLinePlugin/Components/Tag.js +163 -151
- package/libs/GuideLinePlugin/Controller.d.ts +2 -34
- package/libs/GuideLinePlugin/Controller.js +22 -56
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +69 -76
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +2 -7
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.d.ts +1 -0
- package/libs/index.js +161 -150
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +2 -2
- package/docs/.nojekyll +0 -1
- package/docs/assets/custom.css +0 -0
- package/docs/assets/highlight.css +0 -127
- package/docs/assets/icons.js +0 -18
- package/docs/assets/icons.svg +0 -1
- package/docs/assets/main.js +0 -60
- package/docs/assets/navigation.js +0 -1
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1493
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +0 -59
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +0 -71
- package/docs/classes/CSS3DRender.html +0 -100
- package/docs/classes/GuideLineItem.GuideLineItem.html +0 -21
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -72
- package/docs/classes/ModelMakerPluginInstance.html +0 -116
- package/docs/classes/ModelMakerPluginType.ModelMakerBoxItem.html +0 -52
- package/docs/classes/ModelMakerPluginType.ModelMakerPolygonItem.html +0 -52
- package/docs/classes/ModelMakerPluginType.ModelMakerPrismItem.html +0 -53
- package/docs/classes/ModelRoomLabelController.html +0 -19
- package/docs/classes/MoveController.html +0 -45
- package/docs/classes/Object3DHelperController.html +0 -45
- package/docs/classes/PaintBrush.html +0 -15
- package/docs/classes/PanoMeasurePluginLine.html +0 -24
- package/docs/classes/PanoMeasurePluginModel.html +0 -23
- package/docs/classes/PanoMeasurePluginPoint.html +0 -7
- package/docs/classes/PanoMeasurePluginPolyline.html +0 -27
- package/docs/classes/PanoTagPluginController.html +0 -111
- package/docs/classes/Sculpt.html +0 -77
- package/docs/classes/Util.BetterTween.html +0 -6
- package/docs/classes/Util.FiveDomEvents.html +0 -13
- package/docs/classes/Util.FivePuppet.html +0 -20
- package/docs/classes/Util.Interval.html +0 -11
- package/docs/classes/Util.LegacyPointHelper.html +0 -7
- package/docs/classes/Util.LightTag.html +0 -47
- package/docs/classes/Util.LineSegments.html +0 -4
- package/docs/classes/Util.Magnifier.html +0 -26
- package/docs/classes/Util.Object3D.html +0 -8
- package/docs/classes/Util.PointDomHelper.html +0 -8
- package/docs/classes/Util.PointHelper.html +0 -10
- package/docs/classes/Util.PointSelector.html +0 -66
- package/docs/classes/Util.PointSelectorHelper.html +0 -14
- package/docs/classes/Util.Rectangle.html +0 -12
- package/docs/classes/Util.sculpt.BaseEditor.html +0 -17
- package/docs/classes/Util.sculpt.BoxMesh.html +0 -48
- package/docs/classes/Util.sculpt.BoxMeshEditor.html +0 -18
- package/docs/classes/Util.sculpt.CircleMesh.html +0 -26
- package/docs/classes/Util.sculpt.CircleMeshEditor.html +0 -18
- package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +0 -26
- package/docs/classes/Util.sculpt.CylinderMesh.html +0 -25
- package/docs/classes/Util.sculpt.CylinderMeshEditor.html +0 -18
- package/docs/classes/Util.sculpt.LineMesh.html +0 -34
- package/docs/classes/Util.sculpt.PointMesh.html +0 -24
- package/docs/classes/Util.sculpt.PolygonMesh.html +0 -40
- package/docs/classes/Util.sculpt.PrismMesh.html +0 -48
- package/docs/classes/Util.sculpt.PrismMeshEditor.html +0 -18
- package/docs/classes/Util.sculpt.RectangleMesh.html +0 -41
- package/docs/classes/Util.sculpt.RectangleMeshEditor.html +0 -18
- package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +0 -44
- package/docs/classes/WalkController.html +0 -42
- package/docs/enums/CameraMovementEffect.html +0 -4
- package/docs/enums/ContentType.html +0 -34
- package/docs/enums/DIRECTION.html +0 -5
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +0 -5
- package/docs/enums/DimensionType.html +0 -4
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +0 -4
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +0 -5
- package/docs/enums/PaintBrushTypeEnum.html +0 -4
- package/docs/enums/PointType.html +0 -4
- package/docs/enums/Rotation.html +0 -5
- package/docs/functions/AreaMakerPlugin.html +0 -1
- package/docs/functions/CSS3DRenderPlugin.html +0 -1
- package/docs/functions/CameraMovementPlugin.html +0 -2
- package/docs/functions/CruisePlugin.html +0 -1
- package/docs/functions/CurrentPanoImagePlugin.html +0 -1
- package/docs/functions/FloorplanGuidePlugin.html +0 -1
- package/docs/functions/GuideLinePlugin.html +0 -1
- package/docs/functions/ItemLabelPlugin.html +0 -1
- package/docs/functions/MapviewFloorplanPlugin.html +0 -1
- package/docs/functions/MeasurePlugin.html +0 -1
- package/docs/functions/ModelChassisCompassPlugin.html +0 -2
- package/docs/functions/ModelEntryDoorGuidePlugin.html +0 -2
- package/docs/functions/ModelFloorplanPlugin.html +0 -1
- package/docs/functions/ModelItemLabelPlugin.html +0 -1
- package/docs/functions/ModelMakerPlugin.html +0 -1
- package/docs/functions/ModelRoomLabelPlugin.html +0 -1
- package/docs/functions/ModelTVVideoPlugin.html +0 -1
- package/docs/functions/ModelViewPlugin.html +0 -2
- package/docs/functions/MovePlugin.html +0 -1
- package/docs/functions/Object3DHelperPlugin.html +0 -1
- package/docs/functions/PanoCompassPlugin.html +0 -1
- package/docs/functions/PanoCursorRaycasterPlugin.html +0 -2
- package/docs/functions/PanoDoorLabelPlugin.html +0 -1
- package/docs/functions/PanoFloorplanRadarPlugin.html +0 -1
- package/docs/functions/PanoMeasurePlugin.html +0 -1
- package/docs/functions/PanoRulerPlugin.html +0 -2
- package/docs/functions/PanoRulerProPlugin.html +0 -2
- package/docs/functions/PanoSpatialTagPlugin.html +0 -2
- package/docs/functions/PanoTagPlugin.html +0 -1
- package/docs/functions/PanoVideoPlugin.html +0 -10
- package/docs/functions/PipelinePlugin.html +0 -1
- package/docs/functions/SculptPlugin.html +0 -2
- package/docs/functions/SculptPluginForFive.html +0 -2
- package/docs/functions/TopviewFloorplanPlugin.html +0 -1
- package/docs/functions/Util.awaitNextFrame.html +0 -1
- package/docs/functions/Util.blink.html +0 -13
- package/docs/functions/Util.blinkWithPreset.html +0 -6
- package/docs/functions/Util.bounding.html +0 -1
- package/docs/functions/Util.boundingBox.html +0 -1
- package/docs/functions/Util.boundingSphere.html +0 -1
- package/docs/functions/Util.boxVertex.html +0 -7
- package/docs/functions/Util.boxVertexes.html +0 -1
- package/docs/functions/Util.checkFiveModelLoaded.html +0 -2
- package/docs/functions/Util.cleanup.html +0 -3
- package/docs/functions/Util.convexHull.html +0 -2
- package/docs/functions/Util.equal.html +0 -5
- package/docs/functions/Util.fiveModelIsLoaded.html +0 -2
- package/docs/functions/Util.generatePolygonGeometry.html +0 -2
- package/docs/functions/Util.getCoordsFromClient.html +0 -1
- package/docs/functions/Util.getCoordsFromElement.html +0 -1
- package/docs/functions/Util.getFrameTime.html +0 -3
- package/docs/functions/Util.getGeometryArea.html +0 -1
- package/docs/functions/Util.getGeometryInfo.html +0 -1
- package/docs/functions/Util.getIntersectFromRelativePosition.html +0 -1
- package/docs/functions/Util.getRaycasterFromFivePointer.html +0 -1
- package/docs/functions/Util.initialCSS3DRender.html +0 -1
- package/docs/functions/Util.inside.html +0 -1
- package/docs/functions/Util.isModelLike.html +0 -1
- package/docs/functions/Util.isNil.html +0 -2
- package/docs/functions/Util.isPanoramaLike.html +0 -1
- package/docs/functions/Util.lookObject.html +0 -7
- package/docs/functions/Util.lookPoint.html +0 -5
- package/docs/functions/Util.nextFrame.html +0 -1
- package/docs/functions/Util.notNil.html +0 -2
- package/docs/functions/Util.reblink.html +0 -13
- package/docs/functions/Util.replaceStaticPrefix.html +0 -8
- package/docs/functions/Util.requestAnimationFrameInterval.html +0 -5
- package/docs/functions/Util.sculpt.createBox.html +0 -1
- package/docs/functions/Util.sculpt.createCircle.html +0 -1
- package/docs/functions/Util.sculpt.createCylinder.html +0 -1
- package/docs/functions/Util.sculpt.createLine.html +0 -2
- package/docs/functions/Util.sculpt.createPoint.html +0 -1
- package/docs/functions/Util.sculpt.createPolygon.html +0 -1
- package/docs/functions/Util.sculpt.createPrism.html +0 -1
- package/docs/functions/Util.sculpt.createRectangle.html +0 -2
- package/docs/functions/Util.sculpt.transformUnit.html +0 -1
- package/docs/functions/Util.sculpt.transformUnitSquare.html +0 -1
- package/docs/functions/Util.tag.html +0 -1
- package/docs/functions/Util.triangleArea.html +0 -2
- package/docs/functions/Util.triangleCenter.html +0 -2
- package/docs/functions/Util.tweenProgress.html +0 -1
- package/docs/functions/Util.uuid.html +0 -2
- package/docs/functions/Util.waitFiveModelLoaded.html +0 -2
- package/docs/functions/Util.worldBounding.html +0 -1
- package/docs/functions/Util.worldBoundingBox.html +0 -1
- package/docs/functions/Util.worldBoundingSphere.html +0 -1
- package/docs/functions/createPolyline.html +0 -2
- package/docs/functions/pluginFlag.html +0 -1
- package/docs/functions/validatePolygon.html +0 -1
- package/docs/hierarchy.html +0 -1
- package/docs/index.html +0 -70
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +0 -4
- package/docs/interfaces/AreaMakerPluginType.Config.html +0 -8
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +0 -25
- package/docs/interfaces/AreaMakerPluginType.Params.html +0 -4
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +0 -20
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +0 -13
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +0 -9
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +0 -3
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +0 -3
- package/docs/interfaces/AreaMakerPluginType.State.html +0 -8
- package/docs/interfaces/BoxAnimationConfig.html +0 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +0 -9
- package/docs/interfaces/CSS3DRenderPluginState.html +0 -7
- package/docs/interfaces/CameraMovementPluginExportType.html +0 -11
- package/docs/interfaces/ContentTypeMapInterface.html +0 -73
- package/docs/interfaces/CruisePluginTypes.Config.html +0 -7
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +0 -8
- package/docs/interfaces/CruisePluginTypes.EventMap.html +0 -33
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +0 -6
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +0 -16
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +0 -19
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +0 -20
- package/docs/interfaces/CruisePluginTypes.PluginData.html +0 -8
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +0 -2
- package/docs/interfaces/CruisePluginTypes.PluginState.html +0 -15
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +0 -13
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +0 -15
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +0 -4
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +0 -3
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +0 -7
- package/docs/interfaces/FloorplanBounding.html +0 -9
- package/docs/interfaces/FloorplanData.html +0 -7
- package/docs/interfaces/FloorplanEntrance.html +0 -14
- package/docs/interfaces/FloorplanExtraObject.html +0 -9
- package/docs/interfaces/FloorplanExtraObject3D.html +0 -5
- package/docs/interfaces/FloorplanFloorData.html +0 -9
- package/docs/interfaces/FloorplanImagePosition.html +0 -4
- package/docs/interfaces/FloorplanObserver.html +0 -8
- package/docs/interfaces/FloorplanOutlineItem.html +0 -6
- package/docs/interfaces/FloorplanPosition.html +0 -4
- package/docs/interfaces/FloorplanRoomItem.html +0 -24
- package/docs/interfaces/FloorplanRoomLabelItem.html +0 -6
- package/docs/interfaces/FloorplanServerBounding.html +0 -9
- package/docs/interfaces/FloorplanServerComputedData.html +0 -6
- package/docs/interfaces/FloorplanServerData.html +0 -4
- package/docs/interfaces/FloorplanServerDoorItem.html +0 -6
- package/docs/interfaces/FloorplanServerDoorPosition.html +0 -4
- package/docs/interfaces/FloorplanServerEntrance.html +0 -14
- package/docs/interfaces/FloorplanServerFloorData.html +0 -8
- package/docs/interfaces/FloorplanServerImagePosition.html +0 -4
- package/docs/interfaces/FloorplanServerObserver.html +0 -8
- package/docs/interfaces/FloorplanServerOutlineItem.html +0 -6
- package/docs/interfaces/FloorplanServerPosition.html +0 -4
- package/docs/interfaces/FloorplanServerRoomItem.html +0 -27
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +0 -6
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +0 -4
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -7
- package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -13
- package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +0 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -8
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -32
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +0 -4
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -5
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +0 -42
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +0 -3
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +0 -57
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -1
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -2
- package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -7
- package/docs/interfaces/GuideLinePluginType.Route.html +0 -13
- package/docs/interfaces/HelperOffset.html +0 -4
- package/docs/interfaces/ImagePlaneGroup.html +0 -3
- package/docs/interfaces/ItemLabelPluginData.html +0 -2
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +0 -7
- package/docs/interfaces/ItemLabelPluginParametersType.html +0 -5
- package/docs/interfaces/MinMax.html +0 -3
- package/docs/interfaces/ModelChassisCompassPluginData.html +0 -3
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +0 -4
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +0 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +0 -4
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +0 -4
- package/docs/interfaces/ModelItemLabelPluginData.html +0 -2
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +0 -7
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +0 -3
- package/docs/interfaces/ModelMakerPluginType.BoxItemObjectData.html +0 -17
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +0 -18
- package/docs/interfaces/ModelMakerPluginType.PrismItemObjectData.html +0 -23
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +0 -11
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +0 -10
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +0 -3
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +0 -10
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +0 -10
- package/docs/interfaces/ModelMakerPluginType.State.html +0 -8
- package/docs/interfaces/ModelMakerPluginType.TrianglesItemObjectData.html +0 -11
- package/docs/interfaces/ModelRoomLabelPluginData.html +0 -2
- package/docs/interfaces/ModelTVVideoPluginData.html +0 -5
- package/docs/interfaces/ModelTVVideoPluginExportType.html +0 -4
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +0 -2
- package/docs/interfaces/ModelViewPluginExportType.html +0 -8
- package/docs/interfaces/Object3DHelperState.html +0 -4
- package/docs/interfaces/ObjectHelperControllers.html +0 -5
- package/docs/interfaces/PaintBrushAction.html +0 -14
- package/docs/interfaces/PaintBrushConfigs.html +0 -8
- package/docs/interfaces/PaintBrushState.html +0 -6
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +0 -16
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +0 -1
- package/docs/interfaces/PanoMeasureParameterType.html +0 -20
- package/docs/interfaces/PanoMeasurePluginLineJson.html +0 -4
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +0 -4
- package/docs/interfaces/PanoMeasurePluginPointJson.html +0 -3
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +0 -7
- package/docs/interfaces/PanoRulerPluginExportType.html +0 -6
- package/docs/interfaces/PanoRulerPluginOptions.html +0 -3
- package/docs/interfaces/PanoRulerPluginParameterType.html +0 -4
- package/docs/interfaces/PanoRulerProPluginExportType.html +0 -5
- package/docs/interfaces/PanoRulerProPluginOptions.html +0 -3
- package/docs/interfaces/PanoRulerProPluginParameterType.html +0 -3
- package/docs/interfaces/PanoRulerProPluginState.html +0 -4
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +0 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +0 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +0 -7
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +0 -6
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +0 -9
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +0 -6
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +0 -9
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +0 -7
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +0 -6
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +0 -3
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +0 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +0 -2
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +0 -15
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +0 -2
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +0 -14
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +0 -13
- package/docs/interfaces/PluginEventMap.html +0 -16
- package/docs/interfaces/Point.html +0 -4
- package/docs/interfaces/Room.html +0 -5
- package/docs/interfaces/RoomInfo.html +0 -3
- package/docs/interfaces/RoomLabel.html +0 -16
- package/docs/interfaces/RoomRules.html +0 -1
- package/docs/interfaces/Rooms.html +0 -1
- package/docs/interfaces/Scissor.html +0 -13
- package/docs/interfaces/SculptConfig.html +0 -19
- package/docs/interfaces/State.html +0 -7
- package/docs/interfaces/TagCacheInterface.html +0 -9
- package/docs/interfaces/TagConfig.html +0 -174
- package/docs/interfaces/TagGLTFObjectGroup.html +0 -3
- package/docs/interfaces/TagIconAnimationConfig.html +0 -7
- package/docs/interfaces/TagIconUrl.html +0 -22
- package/docs/interfaces/TagObjectGroup.html +0 -3
- package/docs/interfaces/TagState.html +0 -3
- package/docs/interfaces/TagStyle.html +0 -5
- package/docs/interfaces/Tags.html +0 -8
- package/docs/interfaces/TemporaryState.html +0 -2
- package/docs/interfaces/Util.AnimeInstance.html +0 -14
- package/docs/interfaces/Util.BlinkAnimeOptions.html +0 -21
- package/docs/interfaces/Util.EventHandlerConfig.html +0 -21
- package/docs/interfaces/Util.FiveDomEvent.html +0 -7
- package/docs/interfaces/Util.FiveDomEventMap.html +0 -20
- package/docs/interfaces/Util.LegacyMouseGroupParameter.html +0 -4
- package/docs/interfaces/Util.MagnifierParameter.html +0 -13
- package/docs/interfaces/Util.MouseGroupParameter.html +0 -4
- package/docs/interfaces/Util.ObjectInitialState.html +0 -9
- package/docs/interfaces/Util.PointIntersection.html +0 -21
- package/docs/interfaces/Util.PointSelectorHelperConfig.html +0 -6
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +0 -27
- package/docs/modules/AreaMakerPluginType.html +0 -17
- package/docs/modules/CruisePluginTypes.html +0 -14
- package/docs/modules/CurrentPanoImagePluginType.html +0 -6
- package/docs/modules/GuideLineItem.html +0 -2
- package/docs/modules/GuideLineModeItem.html +0 -3
- package/docs/modules/GuideLinePluginType.html +0 -25
- package/docs/modules/ModelMakerPluginType.html +0 -19
- package/docs/modules/PanoVideoPluginType.html +0 -8
- package/docs/modules/SculptData.html +0 -9
- package/docs/modules/SculptType.html +0 -2
- package/docs/modules/Util.html +0 -91
- package/docs/modules/Util.sculpt.html +0 -27
- package/docs/modules.html +0 -281
- package/docs/types/AddObject3DHelperConfig.html +0 -19
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +0 -7
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +0 -1
- package/docs/types/AreaMakerPluginType.PluginData.html +0 -2
- package/docs/types/AreaMakerPluginType.ServerData.html +0 -2
- package/docs/types/ArrayPosition.html +0 -1
- package/docs/types/AudioAppearance.html +0 -1
- package/docs/types/CSS3DRenderExportType.html +0 -1
- package/docs/types/CSS3DRenderPluginExportType.html +0 -1
- package/docs/types/CSS3DRenderPluginParameterType.html +0 -1
- package/docs/types/ClassFunctionParameters.html +0 -1
- package/docs/types/Color.html +0 -1
- package/docs/types/ContentTypeConfigKey.html +0 -1
- package/docs/types/ContentTypeConfigKeySplit.html +0 -1
- package/docs/types/ContentTypeMap.html +0 -1
- package/docs/types/Create3DDomContainerReturnType.html +0 -1
- package/docs/types/Create3DElementReturnType.html +0 -1
- package/docs/types/CruisePluginExportType.html +0 -1
- package/docs/types/CruisePluginTypes.CruiseData.html +0 -6
- package/docs/types/CruisePluginTypes.MoveEffect.html +0 -1
- package/docs/types/CurrentPanoImagePluginExportType.html +0 -1
- package/docs/types/DeprecatedMediaPlaneProperty.html +0 -3
- package/docs/types/DeprecatedTagProperty.html +0 -3
- package/docs/types/Direction-1.html +0 -1
- package/docs/types/Direction4.html +0 -1
- package/docs/types/ElementRenderer.html +0 -2
- package/docs/types/FloorplanGuidePluginParameterType.html +0 -1
- package/docs/types/FloorplanGuidePluginReturnType.html +0 -1
- package/docs/types/FloorplanRuleLabels.html +0 -2
- package/docs/types/FloorplanServerRuleLabels.html +0 -1
- package/docs/types/GuideLinePluginExportType.html +0 -1
- package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -2
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +0 -1
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -1
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -2
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +0 -2
- package/docs/types/GuideLinePluginType.PathItem.html +0 -2
- package/docs/types/GuideLinePluginType.PluginData.html +0 -2
- package/docs/types/GuideLinePluginType.RouteConfig.html +0 -4
- package/docs/types/HelperEventMap.html +0 -1
- package/docs/types/InternalHelperEventMap.html +0 -1
- package/docs/types/MapviewFloorplanPluginParameterType.html +0 -1
- package/docs/types/MapviewFloorplanPluginReturnType.html +0 -1
- package/docs/types/MeasureEndReason.html +0 -1
- package/docs/types/MeasurePluginConfig.html +0 -5
- package/docs/types/MeasurePluginEventMap.html +0 -1
- package/docs/types/MediaData.html +0 -2
- package/docs/types/MediaStore.html +0 -1
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +0 -1
- package/docs/types/ModelFloorplanPluginParameterType.html +0 -1
- package/docs/types/ModelFloorplanPluginReturnType.html +0 -1
- package/docs/types/ModelId.html +0 -1
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +0 -1
- package/docs/types/ModelMakerPluginType.ItemType.html +0 -2
- package/docs/types/ModelMakerPluginType.MarkerItem.html +0 -1
- package/docs/types/ModelMakerPluginType.ServerItem.html +0 -2
- package/docs/types/ModelRoomLabelPluginParameters.html +0 -1
- package/docs/types/ModelRoomLabelPluginReturnType.html +0 -1
- package/docs/types/MoveArgs.html +0 -2
- package/docs/types/MoveOpts.html +0 -2
- package/docs/types/Object3DHelperEventMap.html +0 -1
- package/docs/types/ObjectFit.html +0 -1
- package/docs/types/PaintBrushEventMap.html +0 -1
- package/docs/types/PanoCompassPluginData.html +0 -1
- package/docs/types/PanoCompassPluginExportType.html +0 -1
- package/docs/types/PanoCompassPluginParameterType.html +0 -1
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +0 -1
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +0 -1
- package/docs/types/PanoIndex.html +0 -1
- package/docs/types/PanoMeasurePluginEvent.html +0 -1
- package/docs/types/PanoMeasureReturnType.html +0 -1
- package/docs/types/PanoSpatialTagPluginId.html +0 -1
- package/docs/types/PanoTagPluginExportInterface.html +0 -1
- package/docs/types/PanoTagPluginParamsInterface.html +0 -1
- package/docs/types/PanoVideoPluginParameterType.html +0 -1
- package/docs/types/PanoVideoPluginReturnType.html +0 -1
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +0 -2
- package/docs/types/PipelinePluginParameterType.html +0 -1
- package/docs/types/PipelinePluginReturnType.html +0 -1
- package/docs/types/PlaneTag.html +0 -2
- package/docs/types/Point2DTag.html +0 -2
- package/docs/types/Point3DTag.html +0 -2
- package/docs/types/PointTagInstance.html +0 -1
- package/docs/types/Position.html +0 -1
- package/docs/types/PositionFrom.html +0 -1
- package/docs/types/RotateArgs.html +0 -2
- package/docs/types/RotateOpts.html +0 -2
- package/docs/types/RuleLabelsKey.html +0 -1
- package/docs/types/RuleLabelsValue.html +0 -1
- package/docs/types/ScaleCallback.html +0 -1
- package/docs/types/ScalePosition.html +0 -3
- package/docs/types/SculptData.BoxData.html +0 -1
- package/docs/types/SculptData.CircleData.html +0 -1
- package/docs/types/SculptData.CylinderData.html +0 -1
- package/docs/types/SculptData.PointData.html +0 -1
- package/docs/types/SculptData.PolygonData.html +0 -1
- package/docs/types/SculptData.PolylineData.html +0 -1
- package/docs/types/SculptData.PrismData.html +0 -1
- package/docs/types/SculptData.RectangleData.html +0 -1
- package/docs/types/SculptType.Theme.html +0 -10
- package/docs/types/StickType.html +0 -1
- package/docs/types/Tag.html +0 -17
- package/docs/types/Tag2D.html +0 -2
- package/docs/types/Tag3D.html +0 -2
- package/docs/types/TagClickParams.html +0 -1
- package/docs/types/TagConfigByKey.html +0 -1
- package/docs/types/TagContentType.html +0 -1
- package/docs/types/TagContentTypeMapping.html +0 -1
- package/docs/types/TagDimensionType.html +0 -1
- package/docs/types/TagElement.html +0 -2
- package/docs/types/TagEvents.html +0 -1
- package/docs/types/TagGLTFObject.html +0 -1
- package/docs/types/TagHooks.html +0 -1
- package/docs/types/TagId.html +0 -1
- package/docs/types/TagInstance.html +0 -1
- package/docs/types/TagPlacement.html +0 -5
- package/docs/types/TagPointType.html +0 -2
- package/docs/types/TagRendererMap.html +0 -1
- package/docs/types/TopviewFloorplanPluginParameterType.html +0 -1
- package/docs/types/TopviewFloorplanPluginReturnType.html +0 -1
- package/docs/types/Util.ActionIfNoIntersection.html +0 -1
- package/docs/types/Util.AdherePoint.html +0 -2
- package/docs/types/Util.PointSelectorConfig.html +0 -1
- package/docs/types/Util.SupportedTarget.html +0 -2
- package/docs/types/Util.Target.html +0 -2
- package/docs/types/Util.ThreeObject.html +0 -2
- package/docs/types/WorkCode.html +0 -1
- package/docs/variables/FLOOR_TYPE_MAP.html +0 -2
- package/docs/variables/PLUGIN.html +0 -1
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +0 -2
- package/docs/variables/ROOM_TYPE_MAP.html +0 -2
- package/docs/variables/Util.ANIME_PRESETS.html +0 -2
- package/docs/variables/Util.CURRENT_PANO_IMAGE_DEFAULT_IMAGE.html +0 -2
- package/docs/variables/Util.DEFAULT_ANIME_CONFIG.html +0 -2
- package/docs/variables/Util.DEFAULT_STATIC_PREFIX.html +0 -2
- package/docs/variables/Util.DNALOGEL_DEFAULT_ASSETS.html +0 -2
- package/docs/variables/Util.ENTRY_DOOR_DEFAULT_IMAGE.html +0 -2
- package/docs/variables/Util.FLOORPLAN_DEFAULT_IMAGE.html +0 -2
- package/docs/variables/Util.GUIDELINE_DEFAULT_ARROW_TEXTURE.html +0 -2
- package/docs/variables/Util.GUIDELINE_WHITE_ARROW_TEXTURE.html +0 -2
- package/docs/variables/Util.MODEL_CHASSIS_COMPASS_DEFAULT_MODEL.html +0 -2
- package/docs/variables/Util.MODEL_ENTRY_DOOR_GUIDE_PLUGIN_DEFAULT_MODEL.html +0 -2
- package/docs/variables/Util.PANO_COMPASS_DEFAULT_IMAGE.html +0 -2
- package/docs/variables/Util.PANO_SPATIAL_TAG_BLUR_IMAGE.html +0 -2
- package/docs/variables/Util.PANO_TAG_DEFAULT_LINK_ICON.html +0 -2
- package/docs/variables/defaultGlobalConfig.html +0 -1
- package/docs/variables/itemLabelPluginServerParams.html +0 -1
- package/docs/variables/modelItemLabelPluginServerParams.html +0 -1
- package/docs/variables/modelRoomLabelPluginServerParams.html +0 -1
|
@@ -1,373 +1,370 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as _ from "three";
|
|
2
|
+
function G(t) {
|
|
3
|
+
const m = [t[12], t[13], t[14]], r = t[0], o = t[4], l = t[8], p = t[1], x = t[5], h = t[9], e = t[2], u = t[6], b = t[10], v = Math.sqrt(r * r + p * p + e * e), q = Math.sqrt(o * o + x * x + u * u), F = Math.sqrt(l * l + h * h + b * b), E = [v, q, F], N = [r / v, o / q, l / F, p / v, x / q, h / F, e / v, u / q, b / F], S = nt(N);
|
|
4
|
+
return { position: m, quaternion: S, scale: E };
|
|
5
|
+
}
|
|
6
|
+
function nt(t) {
|
|
7
|
+
const m = t[0] + t[4] + t[8];
|
|
8
|
+
let r, o = [0, 0, 0, 0];
|
|
9
|
+
return m > 0 ? (r = Math.sqrt(m + 1) * 2, o[3] = 0.25 * r, o[0] = (t[7] - t[5]) / r, o[1] = (t[2] - t[6]) / r, o[2] = (t[3] - t[1]) / r) : t[0] > t[4] && t[0] > t[8] ? (r = Math.sqrt(1 + t[0] - t[4] - t[8]) * 2, o[3] = (t[7] - t[5]) / r, o[0] = 0.25 * r, o[1] = (t[1] + t[3]) / r, o[2] = (t[2] + t[6]) / r) : t[4] > t[8] ? (r = Math.sqrt(1 + t[4] - t[0] - t[8]) * 2, o[3] = (t[2] - t[6]) / r, o[0] = (t[1] + t[3]) / r, o[1] = 0.25 * r, o[2] = (t[5] + t[7]) / r) : (r = Math.sqrt(1 + t[8] - t[0] - t[4]) * 2, o[3] = (t[3] - t[1]) / r, o[0] = (t[2] + t[6]) / r, o[1] = (t[5] + t[7]) / r, o[2] = 0.25 * r), o;
|
|
10
|
+
}
|
|
11
|
+
function it({ x: t, y: m, z: r, order: o = "XYZ" }) {
|
|
12
|
+
const l = Math.cos(t / 2), p = Math.cos(m / 2), x = Math.cos(r / 2), h = Math.sin(t / 2), e = Math.sin(m / 2), u = Math.sin(r / 2);
|
|
13
|
+
let b, v, q, F;
|
|
14
|
+
switch (o) {
|
|
15
|
+
case "XYZ":
|
|
16
|
+
b = h * p * x + l * e * u, v = l * e * x - h * p * u, q = l * p * u + h * e * x, F = l * p * x - h * e * u;
|
|
17
|
+
break;
|
|
18
|
+
default:
|
|
19
|
+
b = h * p * x + l * e * u, v = l * e * x - h * p * u, q = l * p * u + h * e * x, F = l * p * x - h * e * u;
|
|
20
|
+
}
|
|
21
|
+
return [b, v, q, F];
|
|
22
|
+
}
|
|
23
|
+
function J(t) {
|
|
24
|
+
if (typeof t == "string" && !isNaN(Number(t)))
|
|
25
|
+
return [0, -(Number(t) * Math.PI) / 180, 0];
|
|
26
|
+
if (Array.isArray(t) && t.length === 3)
|
|
27
|
+
return [t[0], -t[1], t[2]];
|
|
28
|
+
}
|
|
29
|
+
function W(t, m) {
|
|
30
|
+
if (!m)
|
|
31
|
+
return t;
|
|
32
|
+
const r = it({ x: m[0], y: m[1], z: m[2] }), [o, l, p, x] = r, [h, e, u, b] = t;
|
|
33
|
+
return [
|
|
34
|
+
x * h + o * b + l * u - p * e,
|
|
35
|
+
x * e - o * u + l * b + p * h,
|
|
36
|
+
x * u + o * e - l * h + p * b,
|
|
37
|
+
x * b - o * h - l * e - p * u
|
|
38
|
+
];
|
|
39
|
+
}
|
|
40
|
+
function ot(t, m) {
|
|
41
|
+
const r = new _.Vector3(m.x - t.x, m.y - t.y, m.z - t.z).normalize(), o = new _.Vector3(0, 0, 1), l = new _.Quaternion();
|
|
42
|
+
return l.setFromUnitVectors(o, r), [l.x, l.y, l.z, l.w];
|
|
43
|
+
}
|
|
44
|
+
function et(t, m = 0, r = 300) {
|
|
45
|
+
var H, L, O;
|
|
46
|
+
if (!((H = t.track) != null && H.path) || t.track.path.length === 0) {
|
|
47
|
+
const i = G(t.matrix), n = [
|
|
6
48
|
{
|
|
7
49
|
visible: !0,
|
|
8
|
-
timeStamp: 0 +
|
|
9
|
-
position:
|
|
10
|
-
quaternion:
|
|
11
|
-
scale:
|
|
50
|
+
timeStamp: 0 + m,
|
|
51
|
+
position: i.position,
|
|
52
|
+
quaternion: i.quaternion,
|
|
53
|
+
scale: i.scale
|
|
12
54
|
}
|
|
13
55
|
];
|
|
14
56
|
return {
|
|
15
|
-
name:
|
|
57
|
+
name: t.name || "默认角色",
|
|
16
58
|
type: "model",
|
|
17
|
-
model:
|
|
59
|
+
model: t.modelUrl,
|
|
18
60
|
keyframes: n
|
|
19
61
|
};
|
|
20
62
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
function H(t) {
|
|
26
|
-
const n = t[0] + t[4] + t[8];
|
|
27
|
-
let i, e = [0, 0, 0, 0];
|
|
28
|
-
return n > 0 ? (i = Math.sqrt(n + 1) * 2, e[3] = 0.25 * i, e[0] = (t[7] - t[5]) / i, e[1] = (t[2] - t[6]) / i, e[2] = (t[3] - t[1]) / i) : t[0] > t[4] && t[0] > t[8] ? (i = Math.sqrt(1 + t[0] - t[4] - t[8]) * 2, e[3] = (t[7] - t[5]) / i, e[0] = 0.25 * i, e[1] = (t[1] + t[3]) / i, e[2] = (t[2] + t[6]) / i) : t[4] > t[8] ? (i = Math.sqrt(1 + t[4] - t[0] - t[8]) * 2, e[3] = (t[2] - t[6]) / i, e[0] = (t[1] + t[3]) / i, e[1] = 0.25 * i, e[2] = (t[5] + t[7]) / i) : (i = Math.sqrt(1 + t[8] - t[0] - t[4]) * 2, e[3] = (t[3] - t[1]) / i, e[0] = (t[2] + t[6]) / i, e[1] = (t[5] + t[7]) / i, e[2] = 0.25 * i), e;
|
|
29
|
-
}
|
|
30
|
-
function L(t, n, i, e = "XYZ") {
|
|
31
|
-
const a = Math.cos(t / 2), c = Math.cos(n / 2), l = Math.cos(i / 2), p = Math.sin(t / 2), o = Math.sin(n / 2), f = Math.sin(i / 2);
|
|
32
|
-
let r, u, x, m;
|
|
33
|
-
switch (e) {
|
|
34
|
-
case "XYZ":
|
|
35
|
-
r = p * c * l + a * o * f, u = a * o * l - p * c * f, x = a * c * f + p * o * l, m = a * c * l - p * o * f;
|
|
36
|
-
break;
|
|
37
|
-
default:
|
|
38
|
-
r = p * c * l + a * o * f, u = a * o * l - p * c * f, x = a * c * f + p * o * l, m = a * c * l - p * o * f;
|
|
39
|
-
}
|
|
40
|
-
return [r, u, x, m];
|
|
41
|
-
}
|
|
42
|
-
function G(t, n) {
|
|
43
|
-
const i = new F.Vector3(
|
|
44
|
-
n.x - t.x,
|
|
45
|
-
n.y - t.y,
|
|
46
|
-
n.z - t.z
|
|
47
|
-
).normalize(), e = new F.Vector3(0, 0, 1), a = new F.Quaternion();
|
|
48
|
-
return a.setFromUnitVectors(e, i), [a.x, a.y, a.z, a.w];
|
|
49
|
-
}
|
|
50
|
-
function N(t) {
|
|
51
|
-
if (typeof t == "string" && !isNaN(Number(t)))
|
|
52
|
-
return [0, -(Number(t) * Math.PI) / 180, 0];
|
|
53
|
-
if (Array.isArray(t) && t.length === 3)
|
|
54
|
-
return [t[0], -t[1], t[2]];
|
|
55
|
-
}
|
|
56
|
-
function j(t, n) {
|
|
57
|
-
if (!n)
|
|
58
|
-
return t;
|
|
59
|
-
const i = L(n[0], n[1], n[2]), [e, a, c, l] = i, [p, o, f, r] = t;
|
|
60
|
-
return [
|
|
61
|
-
l * p + e * r + a * f - c * o,
|
|
62
|
-
l * o - e * f + a * r + c * p,
|
|
63
|
-
l * f + e * o - a * p + c * r,
|
|
64
|
-
l * r - e * p - a * o - c * f
|
|
65
|
-
];
|
|
66
|
-
}
|
|
67
|
-
const h = I(s.matrix);
|
|
68
|
-
let $ = h.quaternion.slice();
|
|
69
|
-
const S = s.track.points.find(
|
|
70
|
-
(t) => Math.abs(t.point.x - h.position[0]) < 1e-3 && Math.abs(t.point.y - h.position[1]) < 1e-3 && Math.abs(t.point.z - h.position[2]) < 1e-3
|
|
63
|
+
const o = G(t.matrix);
|
|
64
|
+
let l = o.quaternion.slice();
|
|
65
|
+
const p = t.track.points.find(
|
|
66
|
+
(i) => Math.abs(i.point.x - o.position[0]) < 1e-3 && Math.abs(i.point.y - o.position[1]) < 1e-3 && Math.abs(i.point.z - o.position[2]) < 1e-3
|
|
71
67
|
);
|
|
72
|
-
let
|
|
73
|
-
const
|
|
74
|
-
if (
|
|
75
|
-
let
|
|
76
|
-
for (const n of
|
|
68
|
+
let x = t.animationUrl, h = t.repeat === "loop";
|
|
69
|
+
const e = [];
|
|
70
|
+
if (p) {
|
|
71
|
+
let i = 0;
|
|
72
|
+
for (const n of p.actions)
|
|
77
73
|
if (n.duration > 0) {
|
|
78
|
-
const
|
|
79
|
-
|
|
74
|
+
const a = typeof n.animationUrl == "string" && n.animationUrl && n.animationUrl.trim() && n.animationUrl !== "none" && n.animationUrl !== "x_turn";
|
|
75
|
+
u({
|
|
80
76
|
visible: !0,
|
|
81
|
-
timeStamp:
|
|
82
|
-
position:
|
|
83
|
-
quaternion:
|
|
84
|
-
scale:
|
|
77
|
+
timeStamp: i,
|
|
78
|
+
position: o.position,
|
|
79
|
+
quaternion: l,
|
|
80
|
+
scale: o.scale,
|
|
85
81
|
animation: {
|
|
86
|
-
url:
|
|
87
|
-
repeat: !
|
|
88
|
-
needRender:
|
|
82
|
+
url: a ? n.animationUrl : t.animationUrl,
|
|
83
|
+
repeat: !a && (n == null ? void 0 : n.repeat),
|
|
84
|
+
needRender: a
|
|
89
85
|
}
|
|
90
|
-
}),
|
|
86
|
+
}), i += n.duration * 1e3;
|
|
91
87
|
}
|
|
92
|
-
if (!
|
|
93
|
-
const n =
|
|
94
|
-
|
|
95
|
-
);
|
|
96
|
-
n ? (P = n.animationUrl, B = !1, console.log(`初始位置与action point重合,使用动作动画: ${P}`)) : console.log("初始位置与action point重合,但没有有效动作,使用默认动画");
|
|
88
|
+
if (!p.actions.some((n) => n.duration > 0)) {
|
|
89
|
+
const n = p.actions.find((a) => a.duration > 0 && a.animationUrl !== "none");
|
|
90
|
+
n ? (x = n.animationUrl, h = !1, console.log(`初始位置与action point重合,使用动作动画: ${x}`)) : console.log("初始位置与action point重合,但没有有效动作,使用默认动画");
|
|
97
91
|
}
|
|
98
92
|
} else
|
|
99
93
|
console.log("初始位置独立,使用默认移动动画");
|
|
100
|
-
function
|
|
101
|
-
var
|
|
102
|
-
|
|
103
|
-
const n =
|
|
104
|
-
n !== -1 ? ((
|
|
94
|
+
function u(i) {
|
|
95
|
+
var a, y, f;
|
|
96
|
+
i.timeStamp += m, i.animation.url === "none" && delete i.animation;
|
|
97
|
+
const n = e.findIndex(($) => $.timeStamp === i.timeStamp);
|
|
98
|
+
n !== -1 ? ((a = e[n].animation) == null ? void 0 : a.url) !== ((y = i.animation) == null ? void 0 : y.url) && i.animation && ((f = i.animation) == null ? void 0 : f.url) !== t.animationUrl && (e[n] = i) : e.push(i);
|
|
105
99
|
}
|
|
106
|
-
|
|
100
|
+
u({
|
|
107
101
|
visible: !0,
|
|
108
102
|
timeStamp: 0,
|
|
109
|
-
position:
|
|
110
|
-
quaternion:
|
|
111
|
-
scale:
|
|
103
|
+
position: o.position,
|
|
104
|
+
quaternion: l,
|
|
105
|
+
scale: o.scale,
|
|
112
106
|
animation: {
|
|
113
|
-
url:
|
|
114
|
-
repeat:
|
|
107
|
+
url: x,
|
|
108
|
+
repeat: h
|
|
115
109
|
}
|
|
116
110
|
});
|
|
117
|
-
let
|
|
118
|
-
if (
|
|
119
|
-
let
|
|
120
|
-
for (const n of
|
|
111
|
+
let b = 0;
|
|
112
|
+
if (p) {
|
|
113
|
+
let i = 0;
|
|
114
|
+
for (const n of p.actions)
|
|
121
115
|
if (n.duration > 0 || n.animationUrl === "x_turn") {
|
|
122
116
|
if (n.animationUrl === "x_turn") {
|
|
123
117
|
n.duration = 1;
|
|
124
|
-
const
|
|
125
|
-
|
|
118
|
+
const a = J(n.rotation);
|
|
119
|
+
a && (l = W(l, a));
|
|
126
120
|
}
|
|
127
|
-
|
|
121
|
+
i += n.duration * 1e3, b += n.duration * 1e3, u({
|
|
128
122
|
visible: !0,
|
|
129
|
-
timeStamp:
|
|
130
|
-
position:
|
|
131
|
-
quaternion:
|
|
132
|
-
scale:
|
|
123
|
+
timeStamp: i,
|
|
124
|
+
position: o.position,
|
|
125
|
+
quaternion: l,
|
|
126
|
+
scale: o.scale,
|
|
133
127
|
animation: {
|
|
134
|
-
url:
|
|
128
|
+
url: t.animationUrl,
|
|
135
129
|
// 恢复默认移动动画
|
|
136
|
-
repeat:
|
|
130
|
+
repeat: t.repeat === "loop"
|
|
137
131
|
}
|
|
138
132
|
});
|
|
139
133
|
}
|
|
140
|
-
console.log(`初始action point处理完成,总延迟: ${
|
|
134
|
+
console.log(`初始action point处理完成,总延迟: ${b}ms`);
|
|
141
135
|
}
|
|
142
|
-
function
|
|
143
|
-
return Math.sqrt(
|
|
144
|
-
Math.pow(n.x - t.x, 2) + Math.pow(n.y - t.y, 2) + Math.pow(n.z - t.z, 2)
|
|
145
|
-
);
|
|
136
|
+
function v(i, n) {
|
|
137
|
+
return Math.sqrt(Math.pow(n.x - i.x, 2) + Math.pow(n.y - i.y, 2) + Math.pow(n.z - i.z, 2));
|
|
146
138
|
}
|
|
147
|
-
let
|
|
148
|
-
const
|
|
149
|
-
for (let
|
|
150
|
-
const n =
|
|
151
|
-
|
|
139
|
+
let q = 0;
|
|
140
|
+
const F = [];
|
|
141
|
+
for (let i = 0; i < t.track.path.length - 1; i++) {
|
|
142
|
+
const n = v(t.track.path[i], t.track.path[i + 1]);
|
|
143
|
+
F.push(n), q += n;
|
|
152
144
|
}
|
|
153
|
-
const
|
|
145
|
+
const E = q / t.track.duration;
|
|
154
146
|
console.log(`路径分析:
|
|
155
|
-
- 总距离: ${
|
|
156
|
-
- 移动时间: ${
|
|
157
|
-
- 移动速度: ${
|
|
158
|
-
- 路径段距离: [${
|
|
159
|
-
|
|
147
|
+
- 总距离: ${q.toFixed(2)}
|
|
148
|
+
- 移动时间: ${t.track.duration}s
|
|
149
|
+
- 移动速度: ${E.toFixed(2)} 单位/秒
|
|
150
|
+
- 路径段距离: [${F.map((i) => i.toFixed(2)).join(", ")}]`);
|
|
151
|
+
const N = /* @__PURE__ */ new Map();
|
|
152
|
+
for (const i of t.track.points) {
|
|
153
|
+
const n = `${i.point.x.toFixed(3)}_${i.point.y.toFixed(3)}_${i.point.z.toFixed(3)}`;
|
|
154
|
+
let a = 1 / 0, y = 0;
|
|
155
|
+
for (let f = 0; f < t.track.path.length - 1; f++) {
|
|
156
|
+
const $ = D(i.point, t.track.path[f], t.track.path[f + 1]);
|
|
157
|
+
$ < a && (a = $, y = f);
|
|
158
|
+
}
|
|
159
|
+
N.set(n, y);
|
|
160
|
+
}
|
|
161
|
+
let S = b, j = 0;
|
|
160
162
|
const C = /* @__PURE__ */ new Set();
|
|
161
|
-
for (let
|
|
162
|
-
const n =
|
|
163
|
-
|
|
164
|
-
const
|
|
163
|
+
for (let i = 0; i < t.track.path.length - 1; i++) {
|
|
164
|
+
const n = t.track.path[i], a = t.track.path[i + 1], y = F[i], f = j / q * t.track.duration * 1e3;
|
|
165
|
+
j += y;
|
|
166
|
+
const $ = j / q * t.track.duration * 1e3, U = f + S, g = $ + S;
|
|
165
167
|
console.log(
|
|
166
|
-
`路径段${
|
|
167
|
-
|
|
168
|
+
`路径段${i}: 距离${y.toFixed(2)}, 基础时间${f.toFixed(0)}-${$.toFixed(
|
|
169
|
+
0
|
|
170
|
+
)}ms, 实际时间${U.toFixed(0)}-${g.toFixed(0)}ms`
|
|
171
|
+
), u({
|
|
168
172
|
visible: !0,
|
|
169
|
-
timeStamp:
|
|
173
|
+
timeStamp: U,
|
|
170
174
|
position: [n.x, n.y, n.z],
|
|
171
|
-
quaternion:
|
|
172
|
-
scale:
|
|
175
|
+
quaternion: l,
|
|
176
|
+
scale: o.scale,
|
|
173
177
|
animation: {
|
|
174
|
-
url:
|
|
178
|
+
url: t.animationUrl,
|
|
175
179
|
// 默认移动动画
|
|
176
|
-
repeat:
|
|
180
|
+
repeat: t.repeat === "loop"
|
|
177
181
|
}
|
|
178
182
|
});
|
|
179
|
-
for (const
|
|
180
|
-
if (
|
|
183
|
+
for (const s of t.track.points) {
|
|
184
|
+
if (p && s === p && i === 0) {
|
|
181
185
|
console.log("跳过初始action point,已在初始关键帧中处理");
|
|
182
186
|
continue;
|
|
183
187
|
}
|
|
184
|
-
const
|
|
185
|
-
if (C.has(
|
|
186
|
-
console.log(
|
|
187
|
-
`跳过已处理的点位: [${o.point.x.toFixed(2)}, ${o.point.y.toFixed(2)}, ${o.point.z.toFixed(2)}]`
|
|
188
|
-
);
|
|
188
|
+
const T = `${s.point.x.toFixed(3)}_${s.point.y.toFixed(3)}_${s.point.z.toFixed(3)}`;
|
|
189
|
+
if (C.has(T)) {
|
|
190
|
+
console.log(`跳过已处理的点位: [${s.point.x.toFixed(2)}, ${s.point.y.toFixed(2)}, ${s.point.z.toFixed(2)}]`);
|
|
189
191
|
continue;
|
|
190
192
|
}
|
|
191
|
-
if (
|
|
192
|
-
const
|
|
193
|
+
if (N.get(T) === i) {
|
|
194
|
+
const d = k(s.point, n, a), M = j - y + y * d, R = M / q * t.track.duration * 1e3 + S;
|
|
193
195
|
console.log(
|
|
194
|
-
`Action点: 位置[${
|
|
196
|
+
`Action点: 位置[${s.point.x.toFixed(2)}, ${s.point.y.toFixed(2)}, ${s.point.z.toFixed(
|
|
197
|
+
2
|
|
198
|
+
)}], 距离${M.toFixed(2)}, 到达时间${R.toFixed(0)}ms`
|
|
195
199
|
);
|
|
196
|
-
let
|
|
197
|
-
const
|
|
198
|
-
|
|
199
|
-
);
|
|
200
|
-
q ? (z = q.animationUrl, q.duration > 2, console.log(`到达动作点,使用该点的动画: ${z}`)) : console.log("动作点没有有效动作,使用默认移动动画"), T({
|
|
200
|
+
let I = t.animationUrl;
|
|
201
|
+
const z = s.actions.find((c) => c.duration > 0 && c.animationUrl !== "none"), A = z == null ? void 0 : z.subAction;
|
|
202
|
+
z ? (I = z.animationUrl, z.duration > 2, console.log(`到达动作点,使用该点的动画: ${I}`)) : console.log("动作点没有有效动作,使用默认移动动画"), u({
|
|
201
203
|
visible: !0,
|
|
202
|
-
timeStamp:
|
|
203
|
-
position: [
|
|
204
|
-
quaternion:
|
|
205
|
-
scale:
|
|
204
|
+
timeStamp: R,
|
|
205
|
+
position: [s.point.x, s.point.y, s.point.z],
|
|
206
|
+
quaternion: l,
|
|
207
|
+
scale: o.scale,
|
|
206
208
|
animation: {
|
|
207
|
-
url:
|
|
208
|
-
|
|
209
|
+
url: I,
|
|
210
|
+
item: A != null && A.url ? A : void 0,
|
|
211
|
+
repeat: z == null ? void 0 : z.repeat,
|
|
212
|
+
duration: z == null ? void 0 : z.duration
|
|
209
213
|
}
|
|
210
214
|
});
|
|
211
|
-
let
|
|
212
|
-
for (const
|
|
213
|
-
if (
|
|
214
|
-
if (
|
|
215
|
-
|
|
216
|
-
const
|
|
217
|
-
|
|
215
|
+
let P = R, K = 0;
|
|
216
|
+
for (const c of s.actions)
|
|
217
|
+
if (c.duration > 0 || c.animationUrl === "x_turn") {
|
|
218
|
+
if (c.animationUrl === "x_turn") {
|
|
219
|
+
c.duration = 1;
|
|
220
|
+
const V = J(c.rotation);
|
|
221
|
+
V && (l = W(l, V));
|
|
218
222
|
}
|
|
219
|
-
const
|
|
220
|
-
|
|
223
|
+
const B = c.animationUrl !== "none" && c.animationUrl !== "x_turn";
|
|
224
|
+
u({
|
|
221
225
|
visible: !0,
|
|
222
|
-
timeStamp:
|
|
223
|
-
position: [
|
|
224
|
-
quaternion:
|
|
225
|
-
scale:
|
|
226
|
+
timeStamp: P,
|
|
227
|
+
position: [s.point.x, s.point.y, s.point.z],
|
|
228
|
+
quaternion: l,
|
|
229
|
+
scale: o.scale,
|
|
226
230
|
animation: {
|
|
227
|
-
url:
|
|
228
|
-
repeat: !
|
|
229
|
-
needRender:
|
|
231
|
+
url: B ? c.animationUrl : t.animationUrl,
|
|
232
|
+
repeat: !B || (c == null ? void 0 : c.repeat),
|
|
233
|
+
needRender: B,
|
|
234
|
+
item: (L = c.subAction) != null && L.url ? c.subAction : void 0,
|
|
235
|
+
duration: c == null ? void 0 : c.duration
|
|
230
236
|
}
|
|
231
|
-
}),
|
|
237
|
+
}), P += c.duration * 1e3, K += c.duration * 1e3, u({
|
|
232
238
|
visible: !0,
|
|
233
|
-
timeStamp:
|
|
234
|
-
position: [
|
|
235
|
-
quaternion:
|
|
236
|
-
scale:
|
|
239
|
+
timeStamp: P,
|
|
240
|
+
position: [s.point.x, s.point.y, s.point.z],
|
|
241
|
+
quaternion: l,
|
|
242
|
+
scale: o.scale,
|
|
237
243
|
animation: {
|
|
238
|
-
url:
|
|
239
|
-
repeat:
|
|
244
|
+
url: t.animationUrl,
|
|
245
|
+
repeat: t.repeat === "loop",
|
|
246
|
+
item: (O = c.subAction) != null && O.url ? c.subAction : void 0
|
|
240
247
|
}
|
|
241
248
|
});
|
|
242
249
|
}
|
|
243
|
-
|
|
244
|
-
`点位处理完成,已标记为已处理: [${
|
|
250
|
+
S += K, C.add(T), console.log(
|
|
251
|
+
`点位处理完成,已标记为已处理: [${s.point.x.toFixed(2)}, ${s.point.y.toFixed(2)}, ${s.point.z.toFixed(
|
|
252
|
+
2
|
|
253
|
+
)}]`
|
|
245
254
|
);
|
|
246
255
|
}
|
|
247
256
|
}
|
|
248
|
-
if (
|
|
249
|
-
const
|
|
250
|
-
|
|
257
|
+
if (i === t.track.path.length - 2) {
|
|
258
|
+
const s = $ + S;
|
|
259
|
+
u({
|
|
251
260
|
visible: !0,
|
|
252
|
-
timeStamp:
|
|
253
|
-
position: [
|
|
254
|
-
quaternion:
|
|
255
|
-
scale:
|
|
261
|
+
timeStamp: s,
|
|
262
|
+
position: [a.x, a.y, a.z],
|
|
263
|
+
quaternion: l,
|
|
264
|
+
scale: o.scale,
|
|
256
265
|
animation: {
|
|
257
|
-
url:
|
|
258
|
-
repeat:
|
|
266
|
+
url: t.animationUrl,
|
|
267
|
+
repeat: t.repeat === "loop"
|
|
259
268
|
}
|
|
260
269
|
});
|
|
261
270
|
}
|
|
262
271
|
}
|
|
263
|
-
function
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
u < 0 ? u = 0 : u > 1 && (u = 1);
|
|
272
|
-
const x = n.x + u * l, m = n.y + u * p, z = n.z + u * o, q = t.x - x, b = t.y - m, w = t.z - z;
|
|
273
|
-
return Math.sqrt(q * q + b * b + w * w);
|
|
272
|
+
function D(i, n, a) {
|
|
273
|
+
const y = i.x - n.x, f = i.y - n.y, $ = i.z - n.z, U = a.x - n.x, g = a.y - n.y, s = a.z - n.z, T = y * U + f * g + $ * s, d = U * U + g * g + s * s;
|
|
274
|
+
if (d === 0)
|
|
275
|
+
return Math.sqrt(y * y + f * f + $ * $);
|
|
276
|
+
let M = T / d;
|
|
277
|
+
M < 0 ? M = 0 : M > 1 && (M = 1);
|
|
278
|
+
const w = n.x + M * U, R = n.y + M * g, I = n.z + M * s, z = i.x - w, A = i.y - R, P = i.z - I;
|
|
279
|
+
return Math.sqrt(z * z + A * A + P * P);
|
|
274
280
|
}
|
|
275
|
-
function k(
|
|
276
|
-
const
|
|
277
|
-
if (
|
|
281
|
+
function k(i, n, a) {
|
|
282
|
+
const y = a.x - n.x, f = a.y - n.y, $ = a.z - n.z, U = y * y + f * f + $ * $;
|
|
283
|
+
if (U === 0)
|
|
278
284
|
return 0;
|
|
279
|
-
const
|
|
280
|
-
return Math.max(0, Math.min(1,
|
|
285
|
+
const g = i.x - n.x, s = i.y - n.y, T = i.z - n.z, d = g * y + s * f + T * $;
|
|
286
|
+
return Math.max(0, Math.min(1, d / U));
|
|
281
287
|
}
|
|
282
|
-
|
|
283
|
-
const
|
|
284
|
-
for (let
|
|
285
|
-
const n =
|
|
286
|
-
if (Math.abs(n.position[0] -
|
|
287
|
-
console.log(`找到连续的不同位置关键帧: ${
|
|
288
|
-
const
|
|
289
|
-
n.position[0],
|
|
290
|
-
n.position[1],
|
|
291
|
-
n.position[2]
|
|
292
|
-
),
|
|
293
|
-
|
|
294
|
-
i.position[1] - n.position[1],
|
|
295
|
-
i.position[2] - n.position[2]
|
|
296
|
-
).normalize(), p = c.clone().add(l.multiplyScalar(a));
|
|
297
|
-
let o = G(
|
|
288
|
+
e.sort((i, n) => i.timeStamp - n.timeStamp);
|
|
289
|
+
const X = [];
|
|
290
|
+
for (let i = 0; i < e.length - 1; i++) {
|
|
291
|
+
const n = e[i], a = e[i + 1];
|
|
292
|
+
if (Math.abs(n.position[0] - a.position[0]) + Math.abs(n.position[1] - a.position[1]) + Math.abs(n.position[2] - a.position[2]) > 1e-3) {
|
|
293
|
+
console.log(`找到连续的不同位置关键帧: ${i} -> ${i + 1}`);
|
|
294
|
+
const f = E * (r / 1e3), $ = new _.Vector3(n.position[0], n.position[1], n.position[2]), U = new _.Vector3(
|
|
295
|
+
a.position[0] - n.position[0],
|
|
296
|
+
a.position[1] - n.position[1],
|
|
297
|
+
a.position[2] - n.position[2]
|
|
298
|
+
).normalize(), g = $.clone().add(U.multiplyScalar(f));
|
|
299
|
+
let s = ot(
|
|
298
300
|
{ x: n.position[0], y: n.position[1], z: n.position[2] },
|
|
299
|
-
{ x:
|
|
301
|
+
{ x: a.position[0], y: a.position[1], z: a.position[2] }
|
|
300
302
|
);
|
|
301
|
-
const
|
|
303
|
+
const T = {
|
|
302
304
|
visible: !0,
|
|
303
|
-
timeStamp: n.timeStamp +
|
|
305
|
+
timeStamp: n.timeStamp + r,
|
|
304
306
|
// 加上旋转走路的时间
|
|
305
|
-
position: [
|
|
307
|
+
position: [g.x, g.y, g.z],
|
|
306
308
|
// 使用计算后的位置
|
|
307
|
-
quaternion:
|
|
309
|
+
quaternion: s,
|
|
308
310
|
// 使用路径方向的quaternion
|
|
309
|
-
scale:
|
|
311
|
+
scale: o.scale
|
|
310
312
|
};
|
|
311
|
-
|
|
312
|
-
url:
|
|
313
|
-
repeat:
|
|
314
|
-
}),
|
|
315
|
-
for (let
|
|
316
|
-
if (d
|
|
317
|
-
if (Math.abs(d
|
|
318
|
-
if (
|
|
319
|
-
const
|
|
320
|
-
if (Math.abs(
|
|
321
|
-
d
|
|
313
|
+
t.animationUrl !== "none" && (T.animation = {
|
|
314
|
+
url: t.animationUrl,
|
|
315
|
+
repeat: t.repeat === "loop"
|
|
316
|
+
}), X.push(T);
|
|
317
|
+
for (let d = 0; d < e.length; d++)
|
|
318
|
+
if (e[d].timeStamp > n.timeStamp + r)
|
|
319
|
+
if (Math.abs(e[d].position[0] - a.position[0]) < 1e-3 && Math.abs(e[d].position[1] - a.position[1]) < 1e-3 && Math.abs(e[d].position[2] - a.position[2]) < 1e-3)
|
|
320
|
+
if (d < e.length - 1) {
|
|
321
|
+
const M = e[d].quaternion, w = e[d + 1].quaternion;
|
|
322
|
+
if (Math.abs(M[0] - w[0]) + Math.abs(M[1] - w[1]) + Math.abs(M[2] - w[2]) + Math.abs(M[3] - w[3]) < 1e-3)
|
|
323
|
+
e[d].quaternion = s.slice(), console.log(`关键帧${d}没有旋转,设置为路径方向`);
|
|
322
324
|
else {
|
|
323
|
-
const
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
),
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
o[1],
|
|
338
|
-
o[2],
|
|
339
|
-
o[3]
|
|
340
|
-
).clone().multiply(z);
|
|
341
|
-
d[r + 1].quaternion = [M.x, M.y, M.z, M.w], o = [M.x, M.y, M.z, M.w], console.log(`关键帧${r}发生旋转,当前帧设置为路径方向,下一帧设置为路径方向+旋转角度,更新路径方向`), r++;
|
|
325
|
+
const I = new _.Quaternion(), z = new _.Quaternion(
|
|
326
|
+
M[0],
|
|
327
|
+
M[1],
|
|
328
|
+
M[2],
|
|
329
|
+
M[3]
|
|
330
|
+
), A = new _.Quaternion(w[0], w[1], w[2], w[3]), P = z.clone();
|
|
331
|
+
P.conjugate(), I.copy(A).multiply(P), e[d].quaternion = s.slice();
|
|
332
|
+
const c = new _.Quaternion(
|
|
333
|
+
s[0],
|
|
334
|
+
s[1],
|
|
335
|
+
s[2],
|
|
336
|
+
s[3]
|
|
337
|
+
).clone().multiply(I);
|
|
338
|
+
e[d + 1].quaternion = [c.x, c.y, c.z, c.w], s = [c.x, c.y, c.z, c.w], console.log(`关键帧${d}发生旋转,当前帧设置为路径方向,下一帧设置为路径方向+旋转角度,更新路径方向`), d++;
|
|
342
339
|
}
|
|
343
340
|
} else
|
|
344
|
-
d
|
|
341
|
+
e[d].quaternion = s.slice(), console.log(`最后一个关键帧${d}设置为路径方向`);
|
|
345
342
|
else
|
|
346
343
|
break;
|
|
347
|
-
console.log(`添加旋转动作帧,时间戳: ${n.timeStamp +
|
|
344
|
+
console.log(`添加旋转动作帧,时间戳: ${n.timeStamp + r}ms`);
|
|
348
345
|
}
|
|
349
346
|
}
|
|
350
|
-
|
|
351
|
-
const
|
|
352
|
-
(
|
|
347
|
+
e.push(...X), e.sort((i, n) => i.timeStamp - n.timeStamp);
|
|
348
|
+
const Y = t.track.duration * 1e3, Z = Y + S, Q = e[e.length - 1], tt = e.filter(
|
|
349
|
+
(i) => i.timeStamp === 0 && Math.abs(i.position[0] - o.position[0]) < 1e-3 && Math.abs(i.position[1] - o.position[1]) < 1e-3 && Math.abs(i.position[2] - o.position[2]) < 1e-3
|
|
353
350
|
);
|
|
354
351
|
return console.log(`动画转换完成:
|
|
355
|
-
- 路径总距离: ${
|
|
356
|
-
- 基础移动时间: ${
|
|
357
|
-
- 移动速度: ${
|
|
358
|
-
- 动作延迟时间: ${
|
|
359
|
-
- 计算总时间: ${
|
|
360
|
-
- 实际最后时间戳: ${
|
|
361
|
-
- 关键帧数量: ${
|
|
352
|
+
- 路径总距离: ${q.toFixed(2)} 单位
|
|
353
|
+
- 基础移动时间: ${Y}ms (${t.track.duration}s)
|
|
354
|
+
- 移动速度: ${E.toFixed(2)} 单位/秒
|
|
355
|
+
- 动作延迟时间: ${S}ms (${(S / 1e3).toFixed(2)}s)
|
|
356
|
+
- 计算总时间: ${Z}ms (${(Z / 1e3).toFixed(2)}s)
|
|
357
|
+
- 实际最后时间戳: ${Q == null ? void 0 : Q.timeStamp}ms (${((Q == null ? void 0 : Q.timeStamp) / 1e3).toFixed(2)}s)
|
|
358
|
+
- 关键帧数量: ${e.length}
|
|
362
359
|
- 初始位置关键帧数量: ${tt.length}
|
|
363
|
-
- 速度一致性: ${(((
|
|
364
|
-
id:
|
|
365
|
-
name:
|
|
360
|
+
- 速度一致性: ${(((Q == null ? void 0 : Q.timeStamp) - S) / 1e3 / t.track.duration * 100).toFixed(1)}% (100%为完全一致)`), {
|
|
361
|
+
id: t.id,
|
|
362
|
+
name: t.name || "默认角色",
|
|
366
363
|
type: "model",
|
|
367
|
-
model:
|
|
368
|
-
keyframes:
|
|
364
|
+
model: t.modelUrl,
|
|
365
|
+
keyframes: e
|
|
369
366
|
};
|
|
370
367
|
}
|
|
371
368
|
export {
|
|
372
|
-
|
|
369
|
+
et as convertMockToPlayer
|
|
373
370
|
};
|