@davi-ai/react-bodyengine-three 1.0.19 → 1.0.20
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/index.js +1 -1
- package/dist/stats.html +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -850,7 +850,7 @@ const Le = (e, t, s, r) => new us(pt(e), t, s, r), ms = () => {
|
|
|
850
850
|
!s || !n || s.setSize(n.width, n.height);
|
|
851
851
|
}, [n]), He(({ gl: i, scene: l, camera: y }) => {
|
|
852
852
|
w.current && w.current.render();
|
|
853
|
-
}, 1), /* @__PURE__ */ v.createElement(v.Fragment, null, t !== "low" && s && /* @__PURE__ */ v.createElement(v.Fragment, null, /* @__PURE__ */ v.createElement("directionalLight", { ref: g, color: "white", position: f.toArray(), "target-position": b.toArray(), intensity: x, castShadow: !0, "shadow-mapSize-width": 1024, "shadow-mapSize-height": 1024, "shadow-bias": h, "shadow-intensity": 0.7, "shadow-radius":
|
|
853
|
+
}, 1), /* @__PURE__ */ v.createElement(v.Fragment, null, t !== "low" && s && /* @__PURE__ */ v.createElement(v.Fragment, null, /* @__PURE__ */ v.createElement("directionalLight", { ref: g, color: "white", position: f.toArray(), "target-position": b.toArray(), intensity: x, castShadow: !0, "shadow-mapSize-width": 1024, "shadow-mapSize-height": 1024, "shadow-bias": h, "shadow-intensity": 0.7, "shadow-radius": 1.5 }, /* @__PURE__ */ v.createElement("orthographicCamera", { attach: "shadow-camera", args: [-1, 1, 2, -0.5, 2, 8] })), /* @__PURE__ */ v.createElement("directionalLight", { name: "DirectionalLight2", color: "white", position: [0, 1, -1], intensity: 0.5 })));
|
|
854
854
|
}, ys = ({ character: e, autoLookAt: t }) => {
|
|
855
855
|
const s = A((h) => h.characterState), r = E((h) => h.currentAUs), o = E((h) => h.currentGaze), n = E((h) => h.currentHeadPose), f = E((h) => h.lookAtCamera), b = z((h) => h.cameraPosition), x = E((h) => h.targets);
|
|
856
856
|
return He((h, p) => {
|
package/dist/stats.html
CHANGED
|
@@ -4929,7 +4929,7 @@ var drawChart = (function (exports) {
|
|
|
4929
4929
|
</script>
|
|
4930
4930
|
<script>
|
|
4931
4931
|
/*<!--*/
|
|
4932
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"D:/a/1/s/packages/reactjs","children":[{"name":"node_modules/zustand/esm","children":[{"uid":"
|
|
4932
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"D:/a/1/s/packages/reactjs","children":[{"name":"node_modules/zustand/esm","children":[{"uid":"08137501-1","name":"vanilla.mjs"},{"uid":"08137501-3","name":"react.mjs"}]},{"name":"src","children":[{"name":"contexts","children":[{"uid":"08137501-5","name":"characterStore.ts"},{"uid":"08137501-7","name":"cameraStore.ts"},{"uid":"08137501-9","name":"headStore.ts"},{"uid":"08137501-11","name":"animationStore.ts"},{"uid":"08137501-17","name":"speechStore.ts"},{"uid":"08137501-33","name":"emotionStore.ts"}]},{"name":"models","children":[{"uid":"08137501-13","name":"enums.ts"},{"uid":"08137501-15","name":"constants.ts"}]},{"name":"utils/getCameraPositionVector.ts","uid":"08137501-19"},{"name":"components","children":[{"name":"PostProcessing/PMJTAANode.js","uid":"08137501-21"},{"uid":"08137501-23","name":"SpeechManager.tsx"},{"uid":"08137501-25","name":"HorizontalLine.tsx"},{"uid":"08137501-27","name":"Scene.tsx"},{"name":"Controllers/CharacterController.ts","uid":"08137501-29"},{"uid":"08137501-31","name":"Character.tsx"}]},{"uid":"08137501-35","name":"index.ts"}]}]}]}],"isRoot":true},"nodeParts":{"08137501-1":{"renderedLength":975,"gzipLength":394,"brotliLength":353,"metaUid":"08137501-0"},"08137501-3":{"renderedLength":593,"gzipLength":285,"brotliLength":235,"metaUid":"08137501-2"},"08137501-5":{"renderedLength":2066,"gzipLength":439,"brotliLength":380,"metaUid":"08137501-4"},"08137501-7":{"renderedLength":1028,"gzipLength":293,"brotliLength":249,"metaUid":"08137501-6"},"08137501-9":{"renderedLength":1484,"gzipLength":395,"brotliLength":345,"metaUid":"08137501-8"},"08137501-11":{"renderedLength":854,"gzipLength":308,"brotliLength":274,"metaUid":"08137501-10"},"08137501-13":{"renderedLength":2645,"gzipLength":700,"brotliLength":620,"metaUid":"08137501-12"},"08137501-15":{"renderedLength":2774,"gzipLength":852,"brotliLength":740,"metaUid":"08137501-14"},"08137501-17":{"renderedLength":2675,"gzipLength":668,"brotliLength":633,"metaUid":"08137501-16"},"08137501-19":{"renderedLength":2356,"gzipLength":571,"brotliLength":491,"metaUid":"08137501-18"},"08137501-21":{"renderedLength":25597,"gzipLength":6558,"brotliLength":5784,"metaUid":"08137501-20"},"08137501-23":{"renderedLength":5139,"gzipLength":1153,"brotliLength":1063,"metaUid":"08137501-22"},"08137501-25":{"renderedLength":383,"gzipLength":251,"brotliLength":209,"metaUid":"08137501-24"},"08137501-27":{"renderedLength":8924,"gzipLength":2407,"brotliLength":2138,"metaUid":"08137501-26"},"08137501-29":{"renderedLength":1366,"gzipLength":442,"brotliLength":408,"metaUid":"08137501-28"},"08137501-31":{"renderedLength":7048,"gzipLength":1843,"brotliLength":1639,"metaUid":"08137501-30"},"08137501-33":{"renderedLength":949,"gzipLength":361,"brotliLength":320,"metaUid":"08137501-32"},"08137501-35":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"08137501-34"}},"nodeMetas":{"08137501-0":{"id":"D:/a/1/s/packages/reactjs/node_modules/zustand/esm/vanilla.mjs","moduleParts":{"index.js":"08137501-1"},"imported":[],"importedBy":[{"uid":"08137501-40"},{"uid":"08137501-2"}]},"08137501-2":{"id":"D:/a/1/s/packages/reactjs/node_modules/zustand/esm/react.mjs","moduleParts":{"index.js":"08137501-3"},"imported":[{"uid":"08137501-38"},{"uid":"08137501-0"}],"importedBy":[{"uid":"08137501-40"}]},"08137501-4":{"id":"D:/a/1/s/packages/reactjs/src/contexts/characterStore.ts","moduleParts":{"index.js":"08137501-5"},"imported":[{"uid":"08137501-40"},{"uid":"08137501-36"}],"importedBy":[{"uid":"08137501-34"},{"uid":"08137501-30"},{"uid":"08137501-16"},{"uid":"08137501-8"},{"uid":"08137501-32"},{"uid":"08137501-10"},{"uid":"08137501-28"},{"uid":"08137501-22"}]},"08137501-6":{"id":"D:/a/1/s/packages/reactjs/src/contexts/cameraStore.ts","moduleParts":{"index.js":"08137501-7"},"imported":[{"uid":"08137501-40"},{"uid":"08137501-37"}],"importedBy":[{"uid":"08137501-34"},{"uid":"08137501-30"},{"uid":"08137501-8"},{"uid":"08137501-26"},{"uid":"08137501-28"}]},"08137501-8":{"id":"D:/a/1/s/packages/reactjs/src/contexts/headStore.ts","moduleParts":{"index.js":"08137501-9"},"imported":[{"uid":"08137501-40"},{"uid":"08137501-4"},{"uid":"08137501-6"}],"importedBy":[{"uid":"08137501-34"},{"uid":"08137501-30"},{"uid":"08137501-26"},{"uid":"08137501-28"}]},"08137501-10":{"id":"D:/a/1/s/packages/reactjs/src/contexts/animationStore.ts","moduleParts":{"index.js":"08137501-11"},"imported":[{"uid":"08137501-40"},{"uid":"08137501-4"}],"importedBy":[{"uid":"08137501-34"},{"uid":"08137501-30"}]},"08137501-12":{"id":"D:/a/1/s/packages/reactjs/src/models/enums.ts","moduleParts":{"index.js":"08137501-13"},"imported":[],"importedBy":[{"uid":"08137501-34"},{"uid":"08137501-30"},{"uid":"08137501-32"},{"uid":"08137501-14"},{"uid":"08137501-18"}]},"08137501-14":{"id":"D:/a/1/s/packages/reactjs/src/models/constants.ts","moduleParts":{"index.js":"08137501-15"},"imported":[{"uid":"08137501-12"}],"importedBy":[{"uid":"08137501-34"},{"uid":"08137501-16"},{"uid":"08137501-22"}]},"08137501-16":{"id":"D:/a/1/s/packages/reactjs/src/contexts/speechStore.ts","moduleParts":{"index.js":"08137501-17"},"imported":[{"uid":"08137501-40"},{"uid":"08137501-4"},{"uid":"08137501-14"}],"importedBy":[{"uid":"08137501-34"},{"uid":"08137501-30"},{"uid":"08137501-22"}]},"08137501-18":{"id":"D:/a/1/s/packages/reactjs/src/utils/getCameraPositionVector.ts","moduleParts":{"index.js":"08137501-19"},"imported":[{"uid":"08137501-37"},{"uid":"08137501-12"}],"importedBy":[{"uid":"08137501-30"}]},"08137501-20":{"id":"D:/a/1/s/packages/reactjs/src/components/PostProcessing/PMJTAANode.js","moduleParts":{"index.js":"08137501-21"},"imported":[{"uid":"08137501-37"},{"uid":"08137501-41"}],"importedBy":[{"uid":"08137501-26"}]},"08137501-22":{"id":"D:/a/1/s/packages/reactjs/src/components/SpeechManager.tsx","moduleParts":{"index.js":"08137501-23"},"imported":[{"uid":"08137501-38"},{"uid":"08137501-16"},{"uid":"08137501-4"},{"uid":"08137501-44"},{"uid":"08137501-14"},{"uid":"08137501-36"}],"importedBy":[{"uid":"08137501-26"}]},"08137501-24":{"id":"D:/a/1/s/packages/reactjs/src/components/HorizontalLine.tsx","moduleParts":{"index.js":"08137501-25"},"imported":[{"uid":"08137501-38"},{"uid":"08137501-37"}],"importedBy":[{"uid":"08137501-26"}]},"08137501-26":{"id":"D:/a/1/s/packages/reactjs/src/components/Scene.tsx","moduleParts":{"index.js":"08137501-27"},"imported":[{"uid":"08137501-38"},{"uid":"08137501-37"},{"uid":"08137501-41"},{"uid":"08137501-20"},{"uid":"08137501-42"},{"uid":"08137501-39"},{"uid":"08137501-43"},{"uid":"08137501-6"},{"uid":"08137501-8"},{"uid":"08137501-22"},{"uid":"08137501-24"}],"importedBy":[{"uid":"08137501-30"}]},"08137501-28":{"id":"D:/a/1/s/packages/reactjs/src/components/Controllers/CharacterController.ts","moduleParts":{"index.js":"08137501-29"},"imported":[{"uid":"08137501-38"},{"uid":"08137501-4"},{"uid":"08137501-36"},{"uid":"08137501-43"},{"uid":"08137501-8"},{"uid":"08137501-6"}],"importedBy":[{"uid":"08137501-30"}]},"08137501-30":{"id":"D:/a/1/s/packages/reactjs/src/components/Character.tsx","moduleParts":{"index.js":"08137501-31"},"imported":[{"uid":"08137501-38"},{"uid":"08137501-37"},{"uid":"08137501-36"},{"uid":"08137501-39"},{"uid":"08137501-8"},{"uid":"08137501-4"},{"uid":"08137501-10"},{"uid":"08137501-6"},{"uid":"08137501-16"},{"uid":"08137501-12"},{"uid":"08137501-18"},{"uid":"08137501-26"},{"uid":"08137501-28"}],"importedBy":[{"uid":"08137501-34"}]},"08137501-32":{"id":"D:/a/1/s/packages/reactjs/src/contexts/emotionStore.ts","moduleParts":{"index.js":"08137501-33"},"imported":[{"uid":"08137501-40"},{"uid":"08137501-12"},{"uid":"08137501-4"}],"importedBy":[{"uid":"08137501-34"}]},"08137501-34":{"id":"D:/a/1/s/packages/reactjs/src/index.ts","moduleParts":{"index.js":"08137501-35"},"imported":[{"uid":"08137501-30"},{"uid":"08137501-4"},{"uid":"08137501-16"},{"uid":"08137501-6"},{"uid":"08137501-8"},{"uid":"08137501-32"},{"uid":"08137501-10"},{"uid":"08137501-36"},{"uid":"08137501-12"},{"uid":"08137501-14"},{"uid":"08137501-37"}],"importedBy":[],"isEntry":true},"08137501-36":{"id":"@davi-ai/bodyengine-three","moduleParts":{},"imported":[],"importedBy":[{"uid":"08137501-34"},{"uid":"08137501-30"},{"uid":"08137501-4"},{"uid":"08137501-28"},{"uid":"08137501-22"}],"isExternal":true},"08137501-37":{"id":"three/webgpu","moduleParts":{},"imported":[],"importedBy":[{"uid":"08137501-34"},{"uid":"08137501-30"},{"uid":"08137501-6"},{"uid":"08137501-18"},{"uid":"08137501-26"},{"uid":"08137501-20"},{"uid":"08137501-24"}],"isExternal":true},"08137501-38":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"08137501-30"},{"uid":"08137501-26"},{"uid":"08137501-28"},{"uid":"08137501-22"},{"uid":"08137501-24"},{"uid":"08137501-2"}],"isExternal":true},"08137501-39":{"id":"@react-three/drei","moduleParts":{},"imported":[],"importedBy":[{"uid":"08137501-30"},{"uid":"08137501-26"}],"isExternal":true},"08137501-40":{"id":"D:/a/1/s/packages/reactjs/node_modules/zustand/esm/index.mjs","moduleParts":{},"imported":[{"uid":"08137501-0"},{"uid":"08137501-2"}],"importedBy":[{"uid":"08137501-4"},{"uid":"08137501-16"},{"uid":"08137501-6"},{"uid":"08137501-8"},{"uid":"08137501-32"},{"uid":"08137501-10"}]},"08137501-41":{"id":"three/tsl","moduleParts":{},"imported":[],"importedBy":[{"uid":"08137501-26"},{"uid":"08137501-20"}],"isExternal":true},"08137501-42":{"id":"three/addons/tsl/display/SSGINode.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"08137501-26"}],"isExternal":true},"08137501-43":{"id":"@react-three/fiber","moduleParts":{},"imported":[],"importedBy":[{"uid":"08137501-26"},{"uid":"08137501-28"}],"isExternal":true},"08137501-44":{"id":"@davi-ai/web-speech-cognitive-services-davi","moduleParts":{},"imported":[],"importedBy":[{"uid":"08137501-22"}],"isExternal":true}},"env":{"rollup":"4.61.0"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
|
|
4933
4933
|
|
|
4934
4934
|
const run = () => {
|
|
4935
4935
|
const width = window.innerWidth;
|
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.20",
|
|
4
4
|
"description": "Reactjs layer to use animations in a threejs environment",
|
|
5
5
|
"author": "DAVI",
|
|
6
6
|
"licence": "MIT",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"build": "vite build"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@davi-ai/bodyengine-three": "1.0.
|
|
25
|
+
"@davi-ai/bodyengine-three": "1.0.15",
|
|
26
26
|
"@react-three/drei": "^10.0.0",
|
|
27
27
|
"@react-three/fiber": "^9.0.0",
|
|
28
28
|
"@types/three": "^0.184.0",
|