@tomorrowevening/hermes 0.0.126 → 0.0.128
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/hermes.cjs.js +12 -12
- package/dist/hermes.es.js +2 -1
- package/package.json +1 -1
- package/types/utils/three.d.ts +2 -1
package/dist/hermes.es.js
CHANGED
@@ -339,13 +339,14 @@ function Uo(s) {
|
|
339
339
|
const n = new Xn(i);
|
340
340
|
if (s.animations.length > 0) {
|
341
341
|
const a = s.animations.map((c) => $n.parse(c));
|
342
|
-
n.clipAction(a[0]).play();
|
342
|
+
n.clipAction(a[0]).play(), n.getRoot().animations = s.animations, n.getRoot().mixer = n;
|
343
343
|
}
|
344
344
|
const r = [];
|
345
345
|
s.cameras && s.cameras.length > 0 && s.cameras.forEach((a) => {
|
346
346
|
const o = t.parse(a);
|
347
347
|
r.push(o);
|
348
348
|
}), e({
|
349
|
+
animations: s.animations,
|
349
350
|
model: i,
|
350
351
|
mixer: n,
|
351
352
|
cameras: r
|
package/package.json
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
"module": "./dist/hermes.esm.js",
|
8
8
|
"types": "./types/index.d.ts",
|
9
9
|
"type": "module",
|
10
|
-
"version": "0.0.
|
10
|
+
"version": "0.0.128",
|
11
11
|
"homepage": "https://github.com/tomorrowevening/hermes#readme",
|
12
12
|
"bugs": {
|
13
13
|
"url": "https://github.com/tomorrowevening/hermes/issues"
|
package/types/utils/three.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { AnimationMixer, Material, Object3D, Object3DEventMap, Texture, WebGLRenderer } from 'three';
|
1
|
+
import { AnimationClip, AnimationMixer, Material, Object3D, Object3DEventMap, Texture, WebGLRenderer } from 'three';
|
2
2
|
import { ModelLite } from '../webworkers/types';
|
3
3
|
export declare const disposeTexture: (texture?: Texture) => void;
|
4
4
|
export declare const disposeMaterial: (material?: Material | Material[]) => void;
|
@@ -21,6 +21,7 @@ export declare class ExportTexture {
|
|
21
21
|
private static renderToCanvas;
|
22
22
|
}
|
23
23
|
export type ParsedModel = {
|
24
|
+
animations: AnimationClip[];
|
24
25
|
cameras: Object3D[];
|
25
26
|
model: Object3D<Object3DEventMap>;
|
26
27
|
mixer: AnimationMixer;
|