@davi-ai/react-bodyengine-three 1.0.8 → 1.0.9
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 +1 -1
- package/dist/components/Scene.d.ts +1 -1
- package/dist/contexts/animationStore.d.ts +1 -1
- package/dist/contexts/cameraStore.d.ts +4 -2
- package/dist/contexts/characterStore.d.ts +1 -0
- package/dist/contexts/headStore.d.ts +4 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +14817 -81687
- package/dist/models/types.d.ts +2 -1
- package/dist/stats.html +4949 -0
- package/dist/utils/getCameraPositionVector.d.ts +1 -1
- package/package.json +5 -7
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { CharacterProps } from '../models/types';
|
|
2
|
-
declare const Character: ({ url, type, animationsUrl, gender, speechSynthesis, camera, onLoadingCompleted, autoLookAt, breathing, disableAnimations, debug, enableBml, animationWeights, license, detectGpuData, environmentPreset, tonemapping }: CharacterProps) => JSX.Element;
|
|
2
|
+
declare const Character: ({ url, type, animationsUrl, gender, speechSynthesis, camera, onLoadingCompleted, autoLookAt, breathing, disableAnimations, debug, enableBml, animationWeights, license, detectGpuData, environmentPreset, tonemapping, targets }: CharacterProps) => JSX.Element;
|
|
3
3
|
export default Character;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DefaultDistances, DefaultPositions } from '../models/types';
|
|
2
|
-
import { Vector3 } from 'three';
|
|
3
|
-
import * as THREE from "three";
|
|
2
|
+
import { Vector3 } from 'three/webgpu';
|
|
3
|
+
import * as THREE from "three/webgpu";
|
|
4
4
|
/**
|
|
5
5
|
* Default data for a medium-shot character :
|
|
6
6
|
* - camera position : head
|
|
@@ -20,9 +20,11 @@ interface CameraStore {
|
|
|
20
20
|
export declare const useCameraStore: import('zustand').UseBoundStore<import('zustand').StoreApi<CameraStore>>;
|
|
21
21
|
export declare const setCameraRef: (value: THREE.Camera | null) => void;
|
|
22
22
|
export declare const setCameraPosition: (value: Vector3) => void;
|
|
23
|
+
export declare const getCameraPosition: () => THREE.Vector3;
|
|
23
24
|
export declare const setBodyCenter: (value: Vector3 | null) => void;
|
|
24
25
|
export declare const setDefaultPositions: (value: DefaultPositions | null) => void;
|
|
25
26
|
export declare const setDefaultDistances: (value: DefaultDistances | null) => void;
|
|
26
27
|
export declare const setLookAt: (value: Vector3 | null) => void;
|
|
28
|
+
export declare const getLookAt: () => Vector3 | null;
|
|
27
29
|
export declare const setMovable: (value: boolean) => void;
|
|
28
30
|
export {};
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { ActionUnitData, GazeData, HeadPoseData } from '../../node_modules/@davi-ai/bodyengine-three/dist';
|
|
2
|
-
import * as THREE from "three";
|
|
2
|
+
import * as THREE from "three/webgpu";
|
|
3
3
|
interface HeadStore {
|
|
4
4
|
currentAUs: Array<ActionUnitData> | null;
|
|
5
5
|
currentGaze: GazeData | null;
|
|
6
6
|
currentHeadPose: HeadPoseData | null;
|
|
7
7
|
lookAtCamera: boolean;
|
|
8
|
+
targets: THREE.Object3D[];
|
|
8
9
|
}
|
|
9
10
|
export declare const useHeadStore: import('zustand').UseBoundStore<import('zustand').StoreApi<HeadStore>>;
|
|
11
|
+
export declare const setTargets: (targets: THREE.Object3D[]) => void;
|
|
12
|
+
export declare const addTarget: (target: THREE.Object3D) => void;
|
|
10
13
|
export declare const setCurrentAUs: (value: Array<ActionUnitData> | null) => void;
|
|
11
14
|
export declare const setCurrentGaze: (value: GazeData | null) => void;
|
|
12
15
|
export declare const setCurrentHeadPose: (value: HeadPoseData | null) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { default as Character } from './components/Character';
|
|
2
|
-
export { useCharacterStore, setCharacterState } from './contexts/characterStore';
|
|
2
|
+
export { useCharacterStore, setCharacterState, getCharacterHeight } from './contexts/characterStore';
|
|
3
3
|
export { setTextToSpeak, setCurrentUtterance, setVisemes, addViseme, addSPPASViseme, flushLipSyncData, setVoice, getVoices, setVisemeIntensity } from './contexts/speechStore';
|
|
4
|
-
export { setCameraPosition, setMovable } from './contexts/cameraStore';
|
|
4
|
+
export { getCameraPosition, getLookAt, setCameraPosition, setMovable } from './contexts/cameraStore';
|
|
5
5
|
export { setCurrentAUs, setCurrentGaze, setCurrentHeadPose, setLookAtCamera, lookAtAndKeep, releaseLookAt, } from './contexts/headStore';
|
|
6
6
|
export { setEmotions, setUseTopEmotionOnly, setAutoDecay, playFacialAnimation } from './contexts/emotionStore';
|
|
7
7
|
export { setAutoPlay, getAnimationsMap, playAnimationByName } from './contexts/animationStore';
|
|
@@ -10,3 +10,4 @@ export type { FacialAnimationData } from '../node_modules/@davi-ai/bodyengine-th
|
|
|
10
10
|
export { Positions, Distances, Rotations } from './models/enums';
|
|
11
11
|
export { presets } from './models/constants';
|
|
12
12
|
export type { EnvironmentPreset } from './models/types';
|
|
13
|
+
export { Object3D } from 'three/webgpu';
|