@davi-ai/react-bodyengine-three 1.0.20 → 1.0.22
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 +1 -1
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([1, 1
|
|
791
|
+
y([1, 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);
|
|
@@ -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
|
);
|
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":"829c35d1-1","name":"vanilla.mjs"},{"uid":"829c35d1-3","name":"react.mjs"}]},{"name":"src","children":[{"name":"contexts","children":[{"uid":"829c35d1-5","name":"characterStore.ts"},{"uid":"829c35d1-7","name":"cameraStore.ts"},{"uid":"829c35d1-9","name":"headStore.ts"},{"uid":"829c35d1-11","name":"animationStore.ts"},{"uid":"829c35d1-17","name":"speechStore.ts"},{"uid":"829c35d1-33","name":"emotionStore.ts"}]},{"name":"models","children":[{"uid":"829c35d1-13","name":"enums.ts"},{"uid":"829c35d1-15","name":"constants.ts"}]},{"name":"utils/getCameraPositionVector.ts","uid":"829c35d1-19"},{"name":"components","children":[{"name":"PostProcessing/PMJTAANode.js","uid":"829c35d1-21"},{"uid":"829c35d1-23","name":"SpeechManager.tsx"},{"uid":"829c35d1-25","name":"HorizontalLine.tsx"},{"uid":"829c35d1-27","name":"Scene.tsx"},{"name":"Controllers/CharacterController.ts","uid":"829c35d1-29"},{"uid":"829c35d1-31","name":"Character.tsx"}]},{"uid":"829c35d1-35","name":"index.ts"}]}]}]}],"isRoot":true},"nodeParts":{"829c35d1-1":{"renderedLength":975,"gzipLength":394,"brotliLength":353,"metaUid":"829c35d1-0"},"829c35d1-3":{"renderedLength":593,"gzipLength":285,"brotliLength":235,"metaUid":"829c35d1-2"},"829c35d1-5":{"renderedLength":2066,"gzipLength":439,"brotliLength":380,"metaUid":"829c35d1-4"},"829c35d1-7":{"renderedLength":1028,"gzipLength":293,"brotliLength":249,"metaUid":"829c35d1-6"},"829c35d1-9":{"renderedLength":1484,"gzipLength":395,"brotliLength":345,"metaUid":"829c35d1-8"},"829c35d1-11":{"renderedLength":854,"gzipLength":308,"brotliLength":274,"metaUid":"829c35d1-10"},"829c35d1-13":{"renderedLength":2645,"gzipLength":700,"brotliLength":620,"metaUid":"829c35d1-12"},"829c35d1-15":{"renderedLength":2774,"gzipLength":852,"brotliLength":740,"metaUid":"829c35d1-14"},"829c35d1-17":{"renderedLength":2675,"gzipLength":668,"brotliLength":633,"metaUid":"829c35d1-16"},"829c35d1-19":{"renderedLength":2356,"gzipLength":571,"brotliLength":491,"metaUid":"829c35d1-18"},"829c35d1-21":{"renderedLength":25597,"gzipLength":6558,"brotliLength":5784,"metaUid":"829c35d1-20"},"829c35d1-23":{"renderedLength":5139,"gzipLength":1153,"brotliLength":1063,"metaUid":"829c35d1-22"},"829c35d1-25":{"renderedLength":383,"gzipLength":251,"brotliLength":209,"metaUid":"829c35d1-24"},"829c35d1-27":{"renderedLength":8855,"gzipLength":2391,"brotliLength":2123,"metaUid":"829c35d1-26"},"829c35d1-29":{"renderedLength":1366,"gzipLength":442,"brotliLength":408,"metaUid":"829c35d1-28"},"829c35d1-31":{"renderedLength":7048,"gzipLength":1843,"brotliLength":1639,"metaUid":"829c35d1-30"},"829c35d1-33":{"renderedLength":949,"gzipLength":361,"brotliLength":320,"metaUid":"829c35d1-32"},"829c35d1-35":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"829c35d1-34"}},"nodeMetas":{"829c35d1-0":{"id":"D:/a/1/s/packages/reactjs/node_modules/zustand/esm/vanilla.mjs","moduleParts":{"index.js":"829c35d1-1"},"imported":[],"importedBy":[{"uid":"829c35d1-40"},{"uid":"829c35d1-2"}]},"829c35d1-2":{"id":"D:/a/1/s/packages/reactjs/node_modules/zustand/esm/react.mjs","moduleParts":{"index.js":"829c35d1-3"},"imported":[{"uid":"829c35d1-38"},{"uid":"829c35d1-0"}],"importedBy":[{"uid":"829c35d1-40"}]},"829c35d1-4":{"id":"D:/a/1/s/packages/reactjs/src/contexts/characterStore.ts","moduleParts":{"index.js":"829c35d1-5"},"imported":[{"uid":"829c35d1-40"},{"uid":"829c35d1-36"}],"importedBy":[{"uid":"829c35d1-34"},{"uid":"829c35d1-30"},{"uid":"829c35d1-16"},{"uid":"829c35d1-8"},{"uid":"829c35d1-32"},{"uid":"829c35d1-10"},{"uid":"829c35d1-28"},{"uid":"829c35d1-22"}]},"829c35d1-6":{"id":"D:/a/1/s/packages/reactjs/src/contexts/cameraStore.ts","moduleParts":{"index.js":"829c35d1-7"},"imported":[{"uid":"829c35d1-40"},{"uid":"829c35d1-37"}],"importedBy":[{"uid":"829c35d1-34"},{"uid":"829c35d1-30"},{"uid":"829c35d1-8"},{"uid":"829c35d1-26"},{"uid":"829c35d1-28"}]},"829c35d1-8":{"id":"D:/a/1/s/packages/reactjs/src/contexts/headStore.ts","moduleParts":{"index.js":"829c35d1-9"},"imported":[{"uid":"829c35d1-40"},{"uid":"829c35d1-4"},{"uid":"829c35d1-6"}],"importedBy":[{"uid":"829c35d1-34"},{"uid":"829c35d1-30"},{"uid":"829c35d1-26"},{"uid":"829c35d1-28"}]},"829c35d1-10":{"id":"D:/a/1/s/packages/reactjs/src/contexts/animationStore.ts","moduleParts":{"index.js":"829c35d1-11"},"imported":[{"uid":"829c35d1-40"},{"uid":"829c35d1-4"}],"importedBy":[{"uid":"829c35d1-34"},{"uid":"829c35d1-30"}]},"829c35d1-12":{"id":"D:/a/1/s/packages/reactjs/src/models/enums.ts","moduleParts":{"index.js":"829c35d1-13"},"imported":[],"importedBy":[{"uid":"829c35d1-34"},{"uid":"829c35d1-30"},{"uid":"829c35d1-32"},{"uid":"829c35d1-14"},{"uid":"829c35d1-18"}]},"829c35d1-14":{"id":"D:/a/1/s/packages/reactjs/src/models/constants.ts","moduleParts":{"index.js":"829c35d1-15"},"imported":[{"uid":"829c35d1-12"}],"importedBy":[{"uid":"829c35d1-34"},{"uid":"829c35d1-16"},{"uid":"829c35d1-22"}]},"829c35d1-16":{"id":"D:/a/1/s/packages/reactjs/src/contexts/speechStore.ts","moduleParts":{"index.js":"829c35d1-17"},"imported":[{"uid":"829c35d1-40"},{"uid":"829c35d1-4"},{"uid":"829c35d1-14"}],"importedBy":[{"uid":"829c35d1-34"},{"uid":"829c35d1-30"},{"uid":"829c35d1-22"}]},"829c35d1-18":{"id":"D:/a/1/s/packages/reactjs/src/utils/getCameraPositionVector.ts","moduleParts":{"index.js":"829c35d1-19"},"imported":[{"uid":"829c35d1-37"},{"uid":"829c35d1-12"}],"importedBy":[{"uid":"829c35d1-30"}]},"829c35d1-20":{"id":"D:/a/1/s/packages/reactjs/src/components/PostProcessing/PMJTAANode.js","moduleParts":{"index.js":"829c35d1-21"},"imported":[{"uid":"829c35d1-37"},{"uid":"829c35d1-41"}],"importedBy":[{"uid":"829c35d1-26"}]},"829c35d1-22":{"id":"D:/a/1/s/packages/reactjs/src/components/SpeechManager.tsx","moduleParts":{"index.js":"829c35d1-23"},"imported":[{"uid":"829c35d1-38"},{"uid":"829c35d1-16"},{"uid":"829c35d1-4"},{"uid":"829c35d1-44"},{"uid":"829c35d1-14"},{"uid":"829c35d1-36"}],"importedBy":[{"uid":"829c35d1-26"}]},"829c35d1-24":{"id":"D:/a/1/s/packages/reactjs/src/components/HorizontalLine.tsx","moduleParts":{"index.js":"829c35d1-25"},"imported":[{"uid":"829c35d1-38"},{"uid":"829c35d1-37"}],"importedBy":[{"uid":"829c35d1-26"}]},"829c35d1-26":{"id":"D:/a/1/s/packages/reactjs/src/components/Scene.tsx","moduleParts":{"index.js":"829c35d1-27"},"imported":[{"uid":"829c35d1-38"},{"uid":"829c35d1-37"},{"uid":"829c35d1-41"},{"uid":"829c35d1-20"},{"uid":"829c35d1-42"},{"uid":"829c35d1-39"},{"uid":"829c35d1-43"},{"uid":"829c35d1-6"},{"uid":"829c35d1-8"},{"uid":"829c35d1-22"},{"uid":"829c35d1-24"}],"importedBy":[{"uid":"829c35d1-30"}]},"829c35d1-28":{"id":"D:/a/1/s/packages/reactjs/src/components/Controllers/CharacterController.ts","moduleParts":{"index.js":"829c35d1-29"},"imported":[{"uid":"829c35d1-38"},{"uid":"829c35d1-4"},{"uid":"829c35d1-36"},{"uid":"829c35d1-43"},{"uid":"829c35d1-8"},{"uid":"829c35d1-6"}],"importedBy":[{"uid":"829c35d1-30"}]},"829c35d1-30":{"id":"D:/a/1/s/packages/reactjs/src/components/Character.tsx","moduleParts":{"index.js":"829c35d1-31"},"imported":[{"uid":"829c35d1-38"},{"uid":"829c35d1-37"},{"uid":"829c35d1-36"},{"uid":"829c35d1-39"},{"uid":"829c35d1-8"},{"uid":"829c35d1-4"},{"uid":"829c35d1-10"},{"uid":"829c35d1-6"},{"uid":"829c35d1-16"},{"uid":"829c35d1-12"},{"uid":"829c35d1-18"},{"uid":"829c35d1-26"},{"uid":"829c35d1-28"}],"importedBy":[{"uid":"829c35d1-34"}]},"829c35d1-32":{"id":"D:/a/1/s/packages/reactjs/src/contexts/emotionStore.ts","moduleParts":{"index.js":"829c35d1-33"},"imported":[{"uid":"829c35d1-40"},{"uid":"829c35d1-12"},{"uid":"829c35d1-4"}],"importedBy":[{"uid":"829c35d1-34"}]},"829c35d1-34":{"id":"D:/a/1/s/packages/reactjs/src/index.ts","moduleParts":{"index.js":"829c35d1-35"},"imported":[{"uid":"829c35d1-30"},{"uid":"829c35d1-4"},{"uid":"829c35d1-16"},{"uid":"829c35d1-6"},{"uid":"829c35d1-8"},{"uid":"829c35d1-32"},{"uid":"829c35d1-10"},{"uid":"829c35d1-36"},{"uid":"829c35d1-12"},{"uid":"829c35d1-14"},{"uid":"829c35d1-37"}],"importedBy":[],"isEntry":true},"829c35d1-36":{"id":"@davi-ai/bodyengine-three","moduleParts":{},"imported":[],"importedBy":[{"uid":"829c35d1-34"},{"uid":"829c35d1-30"},{"uid":"829c35d1-4"},{"uid":"829c35d1-28"},{"uid":"829c35d1-22"}],"isExternal":true},"829c35d1-37":{"id":"three/webgpu","moduleParts":{},"imported":[],"importedBy":[{"uid":"829c35d1-34"},{"uid":"829c35d1-30"},{"uid":"829c35d1-6"},{"uid":"829c35d1-18"},{"uid":"829c35d1-26"},{"uid":"829c35d1-20"},{"uid":"829c35d1-24"}],"isExternal":true},"829c35d1-38":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"829c35d1-30"},{"uid":"829c35d1-26"},{"uid":"829c35d1-28"},{"uid":"829c35d1-22"},{"uid":"829c35d1-24"},{"uid":"829c35d1-2"}],"isExternal":true},"829c35d1-39":{"id":"@react-three/drei","moduleParts":{},"imported":[],"importedBy":[{"uid":"829c35d1-30"},{"uid":"829c35d1-26"}],"isExternal":true},"829c35d1-40":{"id":"D:/a/1/s/packages/reactjs/node_modules/zustand/esm/index.mjs","moduleParts":{},"imported":[{"uid":"829c35d1-0"},{"uid":"829c35d1-2"}],"importedBy":[{"uid":"829c35d1-4"},{"uid":"829c35d1-16"},{"uid":"829c35d1-6"},{"uid":"829c35d1-8"},{"uid":"829c35d1-32"},{"uid":"829c35d1-10"}]},"829c35d1-41":{"id":"three/tsl","moduleParts":{},"imported":[],"importedBy":[{"uid":"829c35d1-26"},{"uid":"829c35d1-20"}],"isExternal":true},"829c35d1-42":{"id":"three/addons/tsl/display/SSGINode.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"829c35d1-26"}],"isExternal":true},"829c35d1-43":{"id":"@react-three/fiber","moduleParts":{},"imported":[],"importedBy":[{"uid":"829c35d1-26"},{"uid":"829c35d1-28"}],"isExternal":true},"829c35d1-44":{"id":"@davi-ai/web-speech-cognitive-services-davi","moduleParts":{},"imported":[],"importedBy":[{"uid":"829c35d1-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;
|