@davi-ai/react-bodyengine-three 1.0.19 → 1.0.21
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 +2 -2
- package/dist/stats.html +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -823,7 +823,7 @@ const Le = (e, t, s, r) => new us(pt(e), t, s, r), ms = () => {
|
|
|
823
823
|
}, [p]), N(() => {
|
|
824
824
|
if (!s || !r || !o || !t) return;
|
|
825
825
|
r.background = null;
|
|
826
|
-
const i = t === "high"
|
|
826
|
+
const i = t === "high", l = wt(r, o);
|
|
827
827
|
l.setMRT(
|
|
828
828
|
i ? Ne({ output: Ve, diffuseColor: Mt, normal: Tt(At), velocity: fe }) : Ne({ output: Ve, velocity: fe })
|
|
829
829
|
);
|
|
@@ -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":"f38a2650-1","name":"vanilla.mjs"},{"uid":"f38a2650-3","name":"react.mjs"}]},{"name":"src","children":[{"name":"contexts","children":[{"uid":"f38a2650-5","name":"characterStore.ts"},{"uid":"f38a2650-7","name":"cameraStore.ts"},{"uid":"f38a2650-9","name":"headStore.ts"},{"uid":"f38a2650-11","name":"animationStore.ts"},{"uid":"f38a2650-17","name":"speechStore.ts"},{"uid":"f38a2650-33","name":"emotionStore.ts"}]},{"name":"models","children":[{"uid":"f38a2650-13","name":"enums.ts"},{"uid":"f38a2650-15","name":"constants.ts"}]},{"name":"utils/getCameraPositionVector.ts","uid":"f38a2650-19"},{"name":"components","children":[{"name":"PostProcessing/PMJTAANode.js","uid":"f38a2650-21"},{"uid":"f38a2650-23","name":"SpeechManager.tsx"},{"uid":"f38a2650-25","name":"HorizontalLine.tsx"},{"uid":"f38a2650-27","name":"Scene.tsx"},{"name":"Controllers/CharacterController.ts","uid":"f38a2650-29"},{"uid":"f38a2650-31","name":"Character.tsx"}]},{"uid":"f38a2650-35","name":"index.ts"}]}]}]}],"isRoot":true},"nodeParts":{"f38a2650-1":{"renderedLength":975,"gzipLength":394,"brotliLength":353,"metaUid":"f38a2650-0"},"f38a2650-3":{"renderedLength":593,"gzipLength":285,"brotliLength":235,"metaUid":"f38a2650-2"},"f38a2650-5":{"renderedLength":2066,"gzipLength":439,"brotliLength":380,"metaUid":"f38a2650-4"},"f38a2650-7":{"renderedLength":1028,"gzipLength":293,"brotliLength":249,"metaUid":"f38a2650-6"},"f38a2650-9":{"renderedLength":1484,"gzipLength":395,"brotliLength":345,"metaUid":"f38a2650-8"},"f38a2650-11":{"renderedLength":854,"gzipLength":308,"brotliLength":274,"metaUid":"f38a2650-10"},"f38a2650-13":{"renderedLength":2645,"gzipLength":700,"brotliLength":620,"metaUid":"f38a2650-12"},"f38a2650-15":{"renderedLength":2774,"gzipLength":852,"brotliLength":740,"metaUid":"f38a2650-14"},"f38a2650-17":{"renderedLength":2675,"gzipLength":668,"brotliLength":633,"metaUid":"f38a2650-16"},"f38a2650-19":{"renderedLength":2356,"gzipLength":571,"brotliLength":491,"metaUid":"f38a2650-18"},"f38a2650-21":{"renderedLength":25597,"gzipLength":6558,"brotliLength":5784,"metaUid":"f38a2650-20"},"f38a2650-23":{"renderedLength":5139,"gzipLength":1153,"brotliLength":1063,"metaUid":"f38a2650-22"},"f38a2650-25":{"renderedLength":383,"gzipLength":251,"brotliLength":209,"metaUid":"f38a2650-24"},"f38a2650-27":{"renderedLength":8857,"gzipLength":2392,"brotliLength":2125,"metaUid":"f38a2650-26"},"f38a2650-29":{"renderedLength":1366,"gzipLength":442,"brotliLength":408,"metaUid":"f38a2650-28"},"f38a2650-31":{"renderedLength":7048,"gzipLength":1843,"brotliLength":1639,"metaUid":"f38a2650-30"},"f38a2650-33":{"renderedLength":949,"gzipLength":361,"brotliLength":320,"metaUid":"f38a2650-32"},"f38a2650-35":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"f38a2650-34"}},"nodeMetas":{"f38a2650-0":{"id":"D:/a/1/s/packages/reactjs/node_modules/zustand/esm/vanilla.mjs","moduleParts":{"index.js":"f38a2650-1"},"imported":[],"importedBy":[{"uid":"f38a2650-40"},{"uid":"f38a2650-2"}]},"f38a2650-2":{"id":"D:/a/1/s/packages/reactjs/node_modules/zustand/esm/react.mjs","moduleParts":{"index.js":"f38a2650-3"},"imported":[{"uid":"f38a2650-38"},{"uid":"f38a2650-0"}],"importedBy":[{"uid":"f38a2650-40"}]},"f38a2650-4":{"id":"D:/a/1/s/packages/reactjs/src/contexts/characterStore.ts","moduleParts":{"index.js":"f38a2650-5"},"imported":[{"uid":"f38a2650-40"},{"uid":"f38a2650-36"}],"importedBy":[{"uid":"f38a2650-34"},{"uid":"f38a2650-30"},{"uid":"f38a2650-16"},{"uid":"f38a2650-8"},{"uid":"f38a2650-32"},{"uid":"f38a2650-10"},{"uid":"f38a2650-28"},{"uid":"f38a2650-22"}]},"f38a2650-6":{"id":"D:/a/1/s/packages/reactjs/src/contexts/cameraStore.ts","moduleParts":{"index.js":"f38a2650-7"},"imported":[{"uid":"f38a2650-40"},{"uid":"f38a2650-37"}],"importedBy":[{"uid":"f38a2650-34"},{"uid":"f38a2650-30"},{"uid":"f38a2650-8"},{"uid":"f38a2650-26"},{"uid":"f38a2650-28"}]},"f38a2650-8":{"id":"D:/a/1/s/packages/reactjs/src/contexts/headStore.ts","moduleParts":{"index.js":"f38a2650-9"},"imported":[{"uid":"f38a2650-40"},{"uid":"f38a2650-4"},{"uid":"f38a2650-6"}],"importedBy":[{"uid":"f38a2650-34"},{"uid":"f38a2650-30"},{"uid":"f38a2650-26"},{"uid":"f38a2650-28"}]},"f38a2650-10":{"id":"D:/a/1/s/packages/reactjs/src/contexts/animationStore.ts","moduleParts":{"index.js":"f38a2650-11"},"imported":[{"uid":"f38a2650-40"},{"uid":"f38a2650-4"}],"importedBy":[{"uid":"f38a2650-34"},{"uid":"f38a2650-30"}]},"f38a2650-12":{"id":"D:/a/1/s/packages/reactjs/src/models/enums.ts","moduleParts":{"index.js":"f38a2650-13"},"imported":[],"importedBy":[{"uid":"f38a2650-34"},{"uid":"f38a2650-30"},{"uid":"f38a2650-32"},{"uid":"f38a2650-14"},{"uid":"f38a2650-18"}]},"f38a2650-14":{"id":"D:/a/1/s/packages/reactjs/src/models/constants.ts","moduleParts":{"index.js":"f38a2650-15"},"imported":[{"uid":"f38a2650-12"}],"importedBy":[{"uid":"f38a2650-34"},{"uid":"f38a2650-16"},{"uid":"f38a2650-22"}]},"f38a2650-16":{"id":"D:/a/1/s/packages/reactjs/src/contexts/speechStore.ts","moduleParts":{"index.js":"f38a2650-17"},"imported":[{"uid":"f38a2650-40"},{"uid":"f38a2650-4"},{"uid":"f38a2650-14"}],"importedBy":[{"uid":"f38a2650-34"},{"uid":"f38a2650-30"},{"uid":"f38a2650-22"}]},"f38a2650-18":{"id":"D:/a/1/s/packages/reactjs/src/utils/getCameraPositionVector.ts","moduleParts":{"index.js":"f38a2650-19"},"imported":[{"uid":"f38a2650-37"},{"uid":"f38a2650-12"}],"importedBy":[{"uid":"f38a2650-30"}]},"f38a2650-20":{"id":"D:/a/1/s/packages/reactjs/src/components/PostProcessing/PMJTAANode.js","moduleParts":{"index.js":"f38a2650-21"},"imported":[{"uid":"f38a2650-37"},{"uid":"f38a2650-41"}],"importedBy":[{"uid":"f38a2650-26"}]},"f38a2650-22":{"id":"D:/a/1/s/packages/reactjs/src/components/SpeechManager.tsx","moduleParts":{"index.js":"f38a2650-23"},"imported":[{"uid":"f38a2650-38"},{"uid":"f38a2650-16"},{"uid":"f38a2650-4"},{"uid":"f38a2650-44"},{"uid":"f38a2650-14"},{"uid":"f38a2650-36"}],"importedBy":[{"uid":"f38a2650-26"}]},"f38a2650-24":{"id":"D:/a/1/s/packages/reactjs/src/components/HorizontalLine.tsx","moduleParts":{"index.js":"f38a2650-25"},"imported":[{"uid":"f38a2650-38"},{"uid":"f38a2650-37"}],"importedBy":[{"uid":"f38a2650-26"}]},"f38a2650-26":{"id":"D:/a/1/s/packages/reactjs/src/components/Scene.tsx","moduleParts":{"index.js":"f38a2650-27"},"imported":[{"uid":"f38a2650-38"},{"uid":"f38a2650-37"},{"uid":"f38a2650-41"},{"uid":"f38a2650-20"},{"uid":"f38a2650-42"},{"uid":"f38a2650-39"},{"uid":"f38a2650-43"},{"uid":"f38a2650-6"},{"uid":"f38a2650-8"},{"uid":"f38a2650-22"},{"uid":"f38a2650-24"}],"importedBy":[{"uid":"f38a2650-30"}]},"f38a2650-28":{"id":"D:/a/1/s/packages/reactjs/src/components/Controllers/CharacterController.ts","moduleParts":{"index.js":"f38a2650-29"},"imported":[{"uid":"f38a2650-38"},{"uid":"f38a2650-4"},{"uid":"f38a2650-36"},{"uid":"f38a2650-43"},{"uid":"f38a2650-8"},{"uid":"f38a2650-6"}],"importedBy":[{"uid":"f38a2650-30"}]},"f38a2650-30":{"id":"D:/a/1/s/packages/reactjs/src/components/Character.tsx","moduleParts":{"index.js":"f38a2650-31"},"imported":[{"uid":"f38a2650-38"},{"uid":"f38a2650-37"},{"uid":"f38a2650-36"},{"uid":"f38a2650-39"},{"uid":"f38a2650-8"},{"uid":"f38a2650-4"},{"uid":"f38a2650-10"},{"uid":"f38a2650-6"},{"uid":"f38a2650-16"},{"uid":"f38a2650-12"},{"uid":"f38a2650-18"},{"uid":"f38a2650-26"},{"uid":"f38a2650-28"}],"importedBy":[{"uid":"f38a2650-34"}]},"f38a2650-32":{"id":"D:/a/1/s/packages/reactjs/src/contexts/emotionStore.ts","moduleParts":{"index.js":"f38a2650-33"},"imported":[{"uid":"f38a2650-40"},{"uid":"f38a2650-12"},{"uid":"f38a2650-4"}],"importedBy":[{"uid":"f38a2650-34"}]},"f38a2650-34":{"id":"D:/a/1/s/packages/reactjs/src/index.ts","moduleParts":{"index.js":"f38a2650-35"},"imported":[{"uid":"f38a2650-30"},{"uid":"f38a2650-4"},{"uid":"f38a2650-16"},{"uid":"f38a2650-6"},{"uid":"f38a2650-8"},{"uid":"f38a2650-32"},{"uid":"f38a2650-10"},{"uid":"f38a2650-36"},{"uid":"f38a2650-12"},{"uid":"f38a2650-14"},{"uid":"f38a2650-37"}],"importedBy":[],"isEntry":true},"f38a2650-36":{"id":"@davi-ai/bodyengine-three","moduleParts":{},"imported":[],"importedBy":[{"uid":"f38a2650-34"},{"uid":"f38a2650-30"},{"uid":"f38a2650-4"},{"uid":"f38a2650-28"},{"uid":"f38a2650-22"}],"isExternal":true},"f38a2650-37":{"id":"three/webgpu","moduleParts":{},"imported":[],"importedBy":[{"uid":"f38a2650-34"},{"uid":"f38a2650-30"},{"uid":"f38a2650-6"},{"uid":"f38a2650-18"},{"uid":"f38a2650-26"},{"uid":"f38a2650-20"},{"uid":"f38a2650-24"}],"isExternal":true},"f38a2650-38":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"f38a2650-30"},{"uid":"f38a2650-26"},{"uid":"f38a2650-28"},{"uid":"f38a2650-22"},{"uid":"f38a2650-24"},{"uid":"f38a2650-2"}],"isExternal":true},"f38a2650-39":{"id":"@react-three/drei","moduleParts":{},"imported":[],"importedBy":[{"uid":"f38a2650-30"},{"uid":"f38a2650-26"}],"isExternal":true},"f38a2650-40":{"id":"D:/a/1/s/packages/reactjs/node_modules/zustand/esm/index.mjs","moduleParts":{},"imported":[{"uid":"f38a2650-0"},{"uid":"f38a2650-2"}],"importedBy":[{"uid":"f38a2650-4"},{"uid":"f38a2650-16"},{"uid":"f38a2650-6"},{"uid":"f38a2650-8"},{"uid":"f38a2650-32"},{"uid":"f38a2650-10"}]},"f38a2650-41":{"id":"three/tsl","moduleParts":{},"imported":[],"importedBy":[{"uid":"f38a2650-26"},{"uid":"f38a2650-20"}],"isExternal":true},"f38a2650-42":{"id":"three/addons/tsl/display/SSGINode.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"f38a2650-26"}],"isExternal":true},"f38a2650-43":{"id":"@react-three/fiber","moduleParts":{},"imported":[],"importedBy":[{"uid":"f38a2650-26"},{"uid":"f38a2650-28"}],"isExternal":true},"f38a2650-44":{"id":"@davi-ai/web-speech-cognitive-services-davi","moduleParts":{},"imported":[],"importedBy":[{"uid":"f38a2650-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.21",
|
|
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",
|