@davi-ai/react-bodyengine-three 1.0.0 → 1.0.6
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 +3 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +73441 -70252
- package/dist/models/types.d.ts +5 -2
- package/package.json +4 -5
- package/dist/components/Controllers/AnimationController.d.ts +0 -6
- package/dist/components/Controllers/BmlController.d.ts +0 -1
- package/dist/contexts/postProcessStore.d.ts +0 -8
package/dist/models/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Vector3 } from 'three';
|
|
1
|
+
import { ToneMapping, Vector3 } from 'three';
|
|
2
2
|
import { CreationTool, AnimationWeight } from '../../node_modules/@davi-ai/bodyengine-three/dist';
|
|
3
3
|
import { Positions, Rotations, Distances, Emotions } from './enums';
|
|
4
4
|
interface SpeechSynthesisCredentials {
|
|
@@ -27,6 +27,8 @@ interface CharacterProps extends SpeechSynthesisOptions {
|
|
|
27
27
|
animationWeights?: AnimationWeight;
|
|
28
28
|
license?: string;
|
|
29
29
|
detectGpuData?: any;
|
|
30
|
+
environmentPreset?: EnvironmentPreset;
|
|
31
|
+
tonemapping?: ToneMapping;
|
|
30
32
|
}
|
|
31
33
|
interface Position2D {
|
|
32
34
|
x: number;
|
|
@@ -69,4 +71,5 @@ interface EmotionData {
|
|
|
69
71
|
emotion: Emotions;
|
|
70
72
|
value: number;
|
|
71
73
|
}
|
|
72
|
-
|
|
74
|
+
type EnvironmentPreset = 'apartment' | 'city' | 'dawn' | 'forest' | 'lobby' | 'night' | 'park' | 'studio' | 'sunset' | 'warehouse';
|
|
75
|
+
export type { CharacterProps, SpeechSynthesisCredentials, Position2D, DefaultPositions, DefaultDistances, CameraPositionData, EmotionData, EnvironmentPreset };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@davi-ai/react-bodyengine-three",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Reactjs layer to use animations in a threejs environment",
|
|
5
5
|
"author": "DAVI",
|
|
6
6
|
"licence": "MIT",
|
|
@@ -24,11 +24,10 @@
|
|
|
24
24
|
"build-storybook": "storybook build"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@davi-ai/bodyengine-three": "
|
|
28
|
-
"@davi-ai/web-speech-cognitive-services-davi": "2.0.
|
|
27
|
+
"@davi-ai/bodyengine-three": "^1.0.3",
|
|
28
|
+
"@davi-ai/web-speech-cognitive-services-davi": "^2.0.10",
|
|
29
29
|
"@react-three/drei": "9.112.0",
|
|
30
|
-
"@react-three/fiber": "8.17.9",
|
|
31
|
-
"@react-three/postprocessing": "2.16.3",
|
|
30
|
+
"@react-three/fiber": "^8.17.9",
|
|
32
31
|
"@types/three": "0.174.0",
|
|
33
32
|
"react": "18.3.1",
|
|
34
33
|
"react-dom": "18.3.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare const testString = "<bml id=\"bml1\" characterId=\"Sara\">\n<speech id=\"speech1\" start=\"0\">\n <text>Hello, my name is Sara.</text>\n</speech>\n\n<gesture id=\"gesture1\" start=\"0\"/>\n\n<gaze id=\"gaze1\" target=\"Cube\" start=\"4.5\" end=\"6\"/>\n<gaze id=\"gaze2\" target=\"Sphere\" start=\"gaze1:end+1\" end=\"gaze1:end+2.3\"/>\t\t\n<gaze id=\"gaze3\" target=\"Capsule\" start=\"gaze2:end+1\" end=\"gaze2:end+4\"/>\t\t\n\n<speech id=\"speech2\" start=\"gaze1:start+1\">\n <text>I can look at at cube</text>\n</speech>\n\n<posture id=\"posture1\" start=\"speech1:end\" end=\"speech2:end\">\n <stance type=\"\" />\n <pose part=\"\" lexeme=\"\" />\n</posture>\n\n<speech id=\"speech3\" start=\"gaze2:start+1\">\n <text>sphere</text>\n</speech>\n\n<speech id=\"speech4\" start=\"gaze3:start+1\">\n <text>or a capsule</text>\n</speech>\n</bml>";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as THREE from "three";
|
|
2
|
-
interface PostProcessStore {
|
|
3
|
-
lut: THREE.Texture | THREE.Data3DTexture | null | undefined;
|
|
4
|
-
}
|
|
5
|
-
export declare const usePostProcessStore: import('zustand').UseBoundStore<import('zustand').StoreApi<PostProcessStore>>;
|
|
6
|
-
export declare const setLut: (value: string | undefined | null) => void;
|
|
7
|
-
export declare const resetPostProcessStore: () => void;
|
|
8
|
-
export {};
|