@woosh/meep-engine 2.92.5 → 2.92.7
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/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecd_bind_animation_curve.d.ts","sourceRoot":"","sources":["../../../../../src/engine/animation/curve/ecd_bind_animation_curve.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ecd_bind_animation_curve.d.ts","sourceRoot":"","sources":["../../../../../src/engine/animation/curve/ecd_bind_animation_curve.js"],"names":[],"mappings":"AAuSA;;;;GAIG;AACH,mGAaC;wCAnTuC,8BAA8B"}
|
|
@@ -7,6 +7,21 @@ import { AnimationCurve } from "./AnimationCurve.js";
|
|
|
7
7
|
import { EntityNodeAnimationClip } from "./EntityNodeAnimationClip.js";
|
|
8
8
|
import { Keyframe } from "./Keyframe.js";
|
|
9
9
|
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @param {EntityNode} node
|
|
14
|
+
* @returns {String}
|
|
15
|
+
*/
|
|
16
|
+
function get_node_name(node) {
|
|
17
|
+
/**
|
|
18
|
+
* @type {Name}
|
|
19
|
+
*/
|
|
20
|
+
const name = node.entity.getComponentSafe(Name);
|
|
21
|
+
|
|
22
|
+
return name.getValue();
|
|
23
|
+
}
|
|
24
|
+
|
|
10
25
|
/**
|
|
11
26
|
*
|
|
12
27
|
* @param {EntityNode} root
|
|
@@ -31,15 +46,15 @@ function entity_node_resolve_path(root, path_parts) {
|
|
|
31
46
|
*/
|
|
32
47
|
const child = children[j];
|
|
33
48
|
|
|
34
|
-
const name = child
|
|
49
|
+
const name = get_node_name(child);
|
|
35
50
|
|
|
36
|
-
if (name
|
|
51
|
+
if (name === part) {
|
|
37
52
|
node = child;
|
|
38
53
|
continue main;
|
|
39
54
|
}
|
|
40
55
|
}
|
|
41
56
|
|
|
42
|
-
throw new Error(`Child '${part}' not found, at index ${i} of [${path_parts.join(', ')}]`);
|
|
57
|
+
throw new Error(`Child '${part}' not found, at index ${i} of [${path_parts.join(', ')}]. Valid names at this level: [${children.map(get_node_name)}]`);
|
|
43
58
|
}
|
|
44
59
|
|
|
45
60
|
return node;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ConcurrentExecutor from "../../core/process/executor/ConcurrentExecutor";
|
|
2
2
|
import {Asset} from "./Asset";
|
|
3
|
-
import {CrossOriginConfig} from "./CORS/CrossOriginConfig";
|
|
4
3
|
import {AssetTransformer} from "./AssetTransformer";
|
|
5
|
-
import
|
|
4
|
+
import {CrossOriginConfig} from "./CORS/CrossOriginConfig";
|
|
5
|
+
import {AssetLoader} from "./loaders/AssetLoader";
|
|
6
6
|
|
|
7
7
|
interface PromiseOptions {
|
|
8
8
|
skip_queue: boolean
|
|
@@ -16,9 +16,9 @@ interface AssetManagerOptions<CTX> {
|
|
|
16
16
|
interface GetOptions<T> {
|
|
17
17
|
type: string
|
|
18
18
|
path: string
|
|
19
|
-
callback
|
|
20
|
-
failure
|
|
21
|
-
progress
|
|
19
|
+
callback?: (asset: Asset<T>) => any
|
|
20
|
+
failure?: (reason: any) => any
|
|
21
|
+
progress?: (current: number, total: number) => any
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
export declare class AssetManager<CTX> {
|