@forgeax/engine-skinning 0.1.4 → 0.1.6
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forgeax/engine-skinning",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"LICENSE"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@forgeax/engine-ecs": "0.1.
|
|
26
|
-
"@forgeax/engine-plugin": "0.1.
|
|
25
|
+
"@forgeax/engine-ecs": "0.1.6",
|
|
26
|
+
"@forgeax/engine-plugin": "0.1.6"
|
|
27
27
|
},
|
|
28
28
|
"forgeax": {
|
|
29
29
|
"metrics": {
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import { componentSchema } from '@forgeax/engine-ecs/internal';
|
|
2
2
|
import { resolveSkinJoints, Skin, SkinJointPathUnresolvedError } from '@forgeax/engine-skinning';
|
|
3
3
|
import { describe, expect, it } from 'vitest';
|
|
4
|
-
import { skinContribution } from '../assets/skin-decoder';
|
|
5
4
|
|
|
6
5
|
describe('skinning binding contract', () => {
|
|
7
|
-
it('exposes the skin owner contribution for the shared decoder map', () => {
|
|
8
|
-
expect(skinContribution.kind.kind).toBe('skin');
|
|
9
|
-
expect(skinContribution.consumer).toBe('resolveSkinJoints');
|
|
10
|
-
});
|
|
11
6
|
it('exposes Skin as the optional binding component', () => {
|
|
12
7
|
expect(Skin.name).toBe('Skin');
|
|
13
8
|
expect(componentSchema(Skin).skeleton).toBe('shared<SkeletonAsset>');
|
|
@@ -35,10 +30,4 @@ describe('skinning binding contract', () => {
|
|
|
35
30
|
const retry = resolveSkinJoints(jointPaths, names, 7 as never);
|
|
36
31
|
expect(retry).toEqual({ ok: true, value: new Uint32Array([4, 6, 8]) });
|
|
37
32
|
});
|
|
38
|
-
|
|
39
|
-
it('returns a concrete joint payload for the render consumer', () => {
|
|
40
|
-
const result = resolveSkinJoints(['Root/Arm'], new Map([['Arm', 4 as never]]), 7 as never);
|
|
41
|
-
|
|
42
|
-
expect(result).toEqual({ ok: true, value: new Uint32Array([4]) });
|
|
43
|
-
});
|
|
44
33
|
});
|