UNPKG

sandai-react

Version:

React components and utilities for the Sandai 3D AI Characters.

34 lines 1.04 kB
import { VRM } from "@pixiv/three-vrm"; export interface MouthExpression<T = any> { duration?: number; aa?: number; ee?: number; ih?: number; oh?: number; ou?: number; metadata?: T; } export declare class MouthExpressionManager { private _vrm; private _currentExpressionIndex; private _expressionsQueue; private _elapsedTime; private _isActive; private _vrmUrl; private _startExpression; private _endExpression; private _frameOverride; smoothing: number | undefined; constructor(vrm: VRM, vrmUrl: string); private _applyCoarticulation; private _addNaturalVariation; private _createNaturalResetSequence; applyExpressions(expressions: MouthExpression[]): void; frameOverride(onFrame: (() => MouthExpression) | null): void; private _prepareNextTransition; processExpressions(delta: number): void; private _getSmoothedValue; private _interpolateExpressions; destroy(): void; } //# sourceMappingURL=MouthExpressionManager.d.ts.map