@davi-ai/react-bodyengine-three 1.0.23 → 1.0.24
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 +3 -3
- package/dist/stats.html +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -788,7 +788,7 @@ const Le = (e, t, s, r) => new us(pt(e), t, s, r), ms = () => {
|
|
|
788
788
|
console.warn("Retorik React-Bodyengine-Three > GPU tier too low, no rendering available"), t(!1);
|
|
789
789
|
break;
|
|
790
790
|
case "medium":
|
|
791
|
-
y([0.
|
|
791
|
+
y([0.9, 1]), console.log(`Retorik React-Bodyengine-Three > GPU tier detected : ${p}`), t(!0);
|
|
792
792
|
break;
|
|
793
793
|
case "high":
|
|
794
794
|
y([1, 2]), console.log(`Retorik React-Bodyengine-Three > GPU tier detected : ${p}`), t(!0);
|
|
@@ -815,7 +815,7 @@ const Le = (e, t, s, r) => new us(pt(e), t, s, r), ms = () => {
|
|
|
815
815
|
}, [b, o]);
|
|
816
816
|
return l ? /* @__PURE__ */ v.createElement(Pt, { gl: _, dpr: l, ref: d, shadows: !0 }, /* @__PURE__ */ v.createElement(fs, { tonemapping: r, processedTier: p }), /* @__PURE__ */ v.createElement(ht, null), /* @__PURE__ */ v.createElement(ms, null), /* @__PURE__ */ v.createElement(dt, { ref: c, makeDefault: !0, fov: 28 }), /* @__PURE__ */ v.createElement(ut, { ref: a }), x && B.length && /* @__PURE__ */ v.createElement(ps, { points: B, color: "red" }), /* @__PURE__ */ v.createElement(Xe, { fallback: null }, s)) : /* @__PURE__ */ v.createElement(v.Fragment, null);
|
|
817
817
|
}, fs = ({ tonemapping: e, processedTier: t }) => {
|
|
818
|
-
const { gl: s, scene: r, camera: o, size: n } = Nt(), [f] = D(new T.Vector3(-3, 2, 2)), [b] = D(new T.Vector3(0, 1, 0)), [x] = D(2), [h] = D(-
|
|
818
|
+
const { gl: s, scene: r, camera: o, size: n } = Nt(), [f] = D(new T.Vector3(-3, 2, 2)), [b] = D(new T.Vector3(0, 1, 0)), [x] = D(2), [h] = D(-3e-3), [p] = D(0.6), g = re(null), w = re(null);
|
|
819
819
|
return N(() => {
|
|
820
820
|
s && (s.shadowMap.type = T.PCFSoftShadowMap, s.toneMapping = e, t !== "low" ? r.environmentIntensity = p : r.environmentIntensity = 1);
|
|
821
821
|
}, [s, e]), N(() => {
|
|
@@ -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":
|
|
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": 512, "shadow-mapSize-height": 512, "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":"e0711bed-1","name":"vanilla.mjs"},{"uid":"e0711bed-3","name":"react.mjs"}]},{"name":"src","children":[{"name":"contexts","children":[{"uid":"e0711bed-5","name":"characterStore.ts"},{"uid":"e0711bed-7","name":"cameraStore.ts"},{"uid":"e0711bed-9","name":"headStore.ts"},{"uid":"e0711bed-11","name":"animationStore.ts"},{"uid":"e0711bed-17","name":"speechStore.ts"},{"uid":"e0711bed-33","name":"emotionStore.ts"}]},{"name":"models","children":[{"uid":"e0711bed-13","name":"enums.ts"},{"uid":"e0711bed-15","name":"constants.ts"}]},{"name":"utils/getCameraPositionVector.ts","uid":"e0711bed-19"},{"name":"components","children":[{"name":"PostProcessing/PMJTAANode.js","uid":"e0711bed-21"},{"uid":"e0711bed-23","name":"SpeechManager.tsx"},{"uid":"e0711bed-25","name":"HorizontalLine.tsx"},{"uid":"e0711bed-27","name":"Scene.tsx"},{"name":"Controllers/CharacterController.ts","uid":"e0711bed-29"},{"uid":"e0711bed-31","name":"Character.tsx"}]},{"uid":"e0711bed-35","name":"index.ts"}]}]}]}],"isRoot":true},"nodeParts":{"e0711bed-1":{"renderedLength":975,"gzipLength":394,"brotliLength":353,"metaUid":"e0711bed-0"},"e0711bed-3":{"renderedLength":593,"gzipLength":285,"brotliLength":235,"metaUid":"e0711bed-2"},"e0711bed-5":{"renderedLength":2066,"gzipLength":439,"brotliLength":380,"metaUid":"e0711bed-4"},"e0711bed-7":{"renderedLength":1028,"gzipLength":293,"brotliLength":249,"metaUid":"e0711bed-6"},"e0711bed-9":{"renderedLength":1484,"gzipLength":395,"brotliLength":345,"metaUid":"e0711bed-8"},"e0711bed-11":{"renderedLength":854,"gzipLength":308,"brotliLength":274,"metaUid":"e0711bed-10"},"e0711bed-13":{"renderedLength":2645,"gzipLength":700,"brotliLength":620,"metaUid":"e0711bed-12"},"e0711bed-15":{"renderedLength":2774,"gzipLength":852,"brotliLength":740,"metaUid":"e0711bed-14"},"e0711bed-17":{"renderedLength":2675,"gzipLength":668,"brotliLength":633,"metaUid":"e0711bed-16"},"e0711bed-19":{"renderedLength":2356,"gzipLength":571,"brotliLength":491,"metaUid":"e0711bed-18"},"e0711bed-21":{"renderedLength":25597,"gzipLength":6558,"brotliLength":5784,"metaUid":"e0711bed-20"},"e0711bed-23":{"renderedLength":5139,"gzipLength":1153,"brotliLength":1063,"metaUid":"e0711bed-22"},"e0711bed-25":{"renderedLength":383,"gzipLength":251,"brotliLength":209,"metaUid":"e0711bed-24"},"e0711bed-27":{"renderedLength":8855,"gzipLength":2395,"brotliLength":2130,"metaUid":"e0711bed-26"},"e0711bed-29":{"renderedLength":1366,"gzipLength":442,"brotliLength":408,"metaUid":"e0711bed-28"},"e0711bed-31":{"renderedLength":7048,"gzipLength":1843,"brotliLength":1639,"metaUid":"e0711bed-30"},"e0711bed-33":{"renderedLength":949,"gzipLength":361,"brotliLength":320,"metaUid":"e0711bed-32"},"e0711bed-35":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"e0711bed-34"}},"nodeMetas":{"e0711bed-0":{"id":"D:/a/1/s/packages/reactjs/node_modules/zustand/esm/vanilla.mjs","moduleParts":{"index.js":"e0711bed-1"},"imported":[],"importedBy":[{"uid":"e0711bed-40"},{"uid":"e0711bed-2"}]},"e0711bed-2":{"id":"D:/a/1/s/packages/reactjs/node_modules/zustand/esm/react.mjs","moduleParts":{"index.js":"e0711bed-3"},"imported":[{"uid":"e0711bed-38"},{"uid":"e0711bed-0"}],"importedBy":[{"uid":"e0711bed-40"}]},"e0711bed-4":{"id":"D:/a/1/s/packages/reactjs/src/contexts/characterStore.ts","moduleParts":{"index.js":"e0711bed-5"},"imported":[{"uid":"e0711bed-40"},{"uid":"e0711bed-36"}],"importedBy":[{"uid":"e0711bed-34"},{"uid":"e0711bed-30"},{"uid":"e0711bed-16"},{"uid":"e0711bed-8"},{"uid":"e0711bed-32"},{"uid":"e0711bed-10"},{"uid":"e0711bed-28"},{"uid":"e0711bed-22"}]},"e0711bed-6":{"id":"D:/a/1/s/packages/reactjs/src/contexts/cameraStore.ts","moduleParts":{"index.js":"e0711bed-7"},"imported":[{"uid":"e0711bed-40"},{"uid":"e0711bed-37"}],"importedBy":[{"uid":"e0711bed-34"},{"uid":"e0711bed-30"},{"uid":"e0711bed-8"},{"uid":"e0711bed-26"},{"uid":"e0711bed-28"}]},"e0711bed-8":{"id":"D:/a/1/s/packages/reactjs/src/contexts/headStore.ts","moduleParts":{"index.js":"e0711bed-9"},"imported":[{"uid":"e0711bed-40"},{"uid":"e0711bed-4"},{"uid":"e0711bed-6"}],"importedBy":[{"uid":"e0711bed-34"},{"uid":"e0711bed-30"},{"uid":"e0711bed-26"},{"uid":"e0711bed-28"}]},"e0711bed-10":{"id":"D:/a/1/s/packages/reactjs/src/contexts/animationStore.ts","moduleParts":{"index.js":"e0711bed-11"},"imported":[{"uid":"e0711bed-40"},{"uid":"e0711bed-4"}],"importedBy":[{"uid":"e0711bed-34"},{"uid":"e0711bed-30"}]},"e0711bed-12":{"id":"D:/a/1/s/packages/reactjs/src/models/enums.ts","moduleParts":{"index.js":"e0711bed-13"},"imported":[],"importedBy":[{"uid":"e0711bed-34"},{"uid":"e0711bed-30"},{"uid":"e0711bed-32"},{"uid":"e0711bed-14"},{"uid":"e0711bed-18"}]},"e0711bed-14":{"id":"D:/a/1/s/packages/reactjs/src/models/constants.ts","moduleParts":{"index.js":"e0711bed-15"},"imported":[{"uid":"e0711bed-12"}],"importedBy":[{"uid":"e0711bed-34"},{"uid":"e0711bed-16"},{"uid":"e0711bed-22"}]},"e0711bed-16":{"id":"D:/a/1/s/packages/reactjs/src/contexts/speechStore.ts","moduleParts":{"index.js":"e0711bed-17"},"imported":[{"uid":"e0711bed-40"},{"uid":"e0711bed-4"},{"uid":"e0711bed-14"}],"importedBy":[{"uid":"e0711bed-34"},{"uid":"e0711bed-30"},{"uid":"e0711bed-22"}]},"e0711bed-18":{"id":"D:/a/1/s/packages/reactjs/src/utils/getCameraPositionVector.ts","moduleParts":{"index.js":"e0711bed-19"},"imported":[{"uid":"e0711bed-37"},{"uid":"e0711bed-12"}],"importedBy":[{"uid":"e0711bed-30"}]},"e0711bed-20":{"id":"D:/a/1/s/packages/reactjs/src/components/PostProcessing/PMJTAANode.js","moduleParts":{"index.js":"e0711bed-21"},"imported":[{"uid":"e0711bed-37"},{"uid":"e0711bed-41"}],"importedBy":[{"uid":"e0711bed-26"}]},"e0711bed-22":{"id":"D:/a/1/s/packages/reactjs/src/components/SpeechManager.tsx","moduleParts":{"index.js":"e0711bed-23"},"imported":[{"uid":"e0711bed-38"},{"uid":"e0711bed-16"},{"uid":"e0711bed-4"},{"uid":"e0711bed-44"},{"uid":"e0711bed-14"},{"uid":"e0711bed-36"}],"importedBy":[{"uid":"e0711bed-26"}]},"e0711bed-24":{"id":"D:/a/1/s/packages/reactjs/src/components/HorizontalLine.tsx","moduleParts":{"index.js":"e0711bed-25"},"imported":[{"uid":"e0711bed-38"},{"uid":"e0711bed-37"}],"importedBy":[{"uid":"e0711bed-26"}]},"e0711bed-26":{"id":"D:/a/1/s/packages/reactjs/src/components/Scene.tsx","moduleParts":{"index.js":"e0711bed-27"},"imported":[{"uid":"e0711bed-38"},{"uid":"e0711bed-37"},{"uid":"e0711bed-41"},{"uid":"e0711bed-20"},{"uid":"e0711bed-42"},{"uid":"e0711bed-39"},{"uid":"e0711bed-43"},{"uid":"e0711bed-6"},{"uid":"e0711bed-8"},{"uid":"e0711bed-22"},{"uid":"e0711bed-24"}],"importedBy":[{"uid":"e0711bed-30"}]},"e0711bed-28":{"id":"D:/a/1/s/packages/reactjs/src/components/Controllers/CharacterController.ts","moduleParts":{"index.js":"e0711bed-29"},"imported":[{"uid":"e0711bed-38"},{"uid":"e0711bed-4"},{"uid":"e0711bed-36"},{"uid":"e0711bed-43"},{"uid":"e0711bed-8"},{"uid":"e0711bed-6"}],"importedBy":[{"uid":"e0711bed-30"}]},"e0711bed-30":{"id":"D:/a/1/s/packages/reactjs/src/components/Character.tsx","moduleParts":{"index.js":"e0711bed-31"},"imported":[{"uid":"e0711bed-38"},{"uid":"e0711bed-37"},{"uid":"e0711bed-36"},{"uid":"e0711bed-39"},{"uid":"e0711bed-8"},{"uid":"e0711bed-4"},{"uid":"e0711bed-10"},{"uid":"e0711bed-6"},{"uid":"e0711bed-16"},{"uid":"e0711bed-12"},{"uid":"e0711bed-18"},{"uid":"e0711bed-26"},{"uid":"e0711bed-28"}],"importedBy":[{"uid":"e0711bed-34"}]},"e0711bed-32":{"id":"D:/a/1/s/packages/reactjs/src/contexts/emotionStore.ts","moduleParts":{"index.js":"e0711bed-33"},"imported":[{"uid":"e0711bed-40"},{"uid":"e0711bed-12"},{"uid":"e0711bed-4"}],"importedBy":[{"uid":"e0711bed-34"}]},"e0711bed-34":{"id":"D:/a/1/s/packages/reactjs/src/index.ts","moduleParts":{"index.js":"e0711bed-35"},"imported":[{"uid":"e0711bed-30"},{"uid":"e0711bed-4"},{"uid":"e0711bed-16"},{"uid":"e0711bed-6"},{"uid":"e0711bed-8"},{"uid":"e0711bed-32"},{"uid":"e0711bed-10"},{"uid":"e0711bed-36"},{"uid":"e0711bed-12"},{"uid":"e0711bed-14"},{"uid":"e0711bed-37"}],"importedBy":[],"isEntry":true},"e0711bed-36":{"id":"@davi-ai/bodyengine-three","moduleParts":{},"imported":[],"importedBy":[{"uid":"e0711bed-34"},{"uid":"e0711bed-30"},{"uid":"e0711bed-4"},{"uid":"e0711bed-28"},{"uid":"e0711bed-22"}],"isExternal":true},"e0711bed-37":{"id":"three/webgpu","moduleParts":{},"imported":[],"importedBy":[{"uid":"e0711bed-34"},{"uid":"e0711bed-30"},{"uid":"e0711bed-6"},{"uid":"e0711bed-18"},{"uid":"e0711bed-26"},{"uid":"e0711bed-20"},{"uid":"e0711bed-24"}],"isExternal":true},"e0711bed-38":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"e0711bed-30"},{"uid":"e0711bed-26"},{"uid":"e0711bed-28"},{"uid":"e0711bed-22"},{"uid":"e0711bed-24"},{"uid":"e0711bed-2"}],"isExternal":true},"e0711bed-39":{"id":"@react-three/drei","moduleParts":{},"imported":[],"importedBy":[{"uid":"e0711bed-30"},{"uid":"e0711bed-26"}],"isExternal":true},"e0711bed-40":{"id":"D:/a/1/s/packages/reactjs/node_modules/zustand/esm/index.mjs","moduleParts":{},"imported":[{"uid":"e0711bed-0"},{"uid":"e0711bed-2"}],"importedBy":[{"uid":"e0711bed-4"},{"uid":"e0711bed-16"},{"uid":"e0711bed-6"},{"uid":"e0711bed-8"},{"uid":"e0711bed-32"},{"uid":"e0711bed-10"}]},"e0711bed-41":{"id":"three/tsl","moduleParts":{},"imported":[],"importedBy":[{"uid":"e0711bed-26"},{"uid":"e0711bed-20"}],"isExternal":true},"e0711bed-42":{"id":"three/addons/tsl/display/SSGINode.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"e0711bed-26"}],"isExternal":true},"e0711bed-43":{"id":"@react-three/fiber","moduleParts":{},"imported":[],"importedBy":[{"uid":"e0711bed-26"},{"uid":"e0711bed-28"}],"isExternal":true},"e0711bed-44":{"id":"@davi-ai/web-speech-cognitive-services-davi","moduleParts":{},"imported":[],"importedBy":[{"uid":"e0711bed-22"}],"isExternal":true}},"env":{"rollup":"4.61.1"},"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.24",
|
|
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.16",
|
|
26
26
|
"@react-three/drei": "^10.0.0",
|
|
27
27
|
"@react-three/fiber": "^9.0.0",
|
|
28
28
|
"@types/three": "^0.184.0",
|