@davi-ai/react-bodyengine-three 1.0.12 → 1.0.14
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/components/Character.d.ts +2 -1
- package/dist/components/Controllers/CharacterController.d.ts +1 -1
- package/dist/components/Scene.d.ts +2 -1
- package/dist/contexts/characterStore.d.ts +4 -1
- package/dist/contexts/emotionStore.d.ts +1 -1
- package/dist/contexts/headStore.d.ts +1 -1
- package/dist/contexts/speechStore.d.ts +13 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +7756 -15187
- package/dist/models/enums.d.ts +0 -1
- package/dist/models/types.d.ts +8 -2
- package/dist/stats.html +1 -1
- package/package.json +10 -10
package/dist/models/enums.d.ts
CHANGED
package/dist/models/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ToneMapping, Vector3, Object3D } from 'three/webgpu';
|
|
2
|
-
import { CreationTool, AnimationWeight } from '
|
|
2
|
+
import { CreationTool, AnimationWeight } from '@davi-ai/bodyengine-three';
|
|
3
3
|
import { Positions, Rotations, Distances, Emotions } from './enums';
|
|
4
4
|
interface SpeechSynthesisCredentials {
|
|
5
5
|
region?: string;
|
|
@@ -30,6 +30,8 @@ interface CharacterProps extends SpeechSynthesisOptions {
|
|
|
30
30
|
environmentPreset?: EnvironmentPreset;
|
|
31
31
|
tonemapping?: ToneMapping;
|
|
32
32
|
targets?: Object3D[];
|
|
33
|
+
/** When true, BlendshapeManager drives lip animation instead of LipSyncManager. Default: false. */
|
|
34
|
+
useBlendshapeManager?: boolean;
|
|
33
35
|
}
|
|
34
36
|
interface Position2D {
|
|
35
37
|
x: number;
|
|
@@ -73,4 +75,8 @@ interface EmotionData {
|
|
|
73
75
|
value: number;
|
|
74
76
|
}
|
|
75
77
|
type EnvironmentPreset = 'apartment' | 'city' | 'dawn' | 'forest' | 'lobby' | 'night' | 'park' | 'studio' | 'sunset' | 'warehouse';
|
|
76
|
-
|
|
78
|
+
interface BlendShapesData {
|
|
79
|
+
timestamp_ms: number;
|
|
80
|
+
blendshapes: Record<string, number>;
|
|
81
|
+
}
|
|
82
|
+
export type { CharacterProps, SpeechSynthesisCredentials, Position2D, DefaultPositions, DefaultDistances, CameraPositionData, EmotionData, EnvironmentPreset, BlendShapesData };
|