@flighthq/skeleton3d 0.5.1-next.903.f434bc2 → 0.5.1-next.905.5fbf787
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/README.md +2 -2
- package/package.json +7 -7
- package/src/skeleton3d.test.ts +7 -1
package/README.md
CHANGED
|
@@ -13,5 +13,5 @@ Import the supported application-facing API from `@flighthq/skeleton3d`. The `@f
|
|
|
13
13
|
This package is part of the locked-version Flight SDK graph. Applications may instead install and import `@flighthq/sdk` when package-level tree shaking is sufficient.
|
|
14
14
|
|
|
15
15
|
- [Flight project](https://github.com/flighthq/flight)
|
|
16
|
-
- [Source for @flighthq/skeleton3d@0.5.1-next.
|
|
17
|
-
- [License](https://github.com/flighthq/flight/blob/
|
|
16
|
+
- [Source for @flighthq/skeleton3d@0.5.1-next.905.5fbf787](https://github.com/flighthq/flight/tree/5fbf7874064c384307542d68b4dcb6a895ff0dcf/packages/skeleton3d)
|
|
17
|
+
- [License](https://github.com/flighthq/flight/blob/5fbf7874064c384307542d68b4dcb6a895ff0dcf/LICENSE.md)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flighthq/skeleton3d",
|
|
3
|
-
"version": "0.5.1-next.
|
|
3
|
+
"version": "0.5.1-next.905.5fbf787",
|
|
4
4
|
"author": "Joshua Granick and other contributors",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"clean:dist": "tsx ../../scripts/clean-package-dist.ts"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@flighthq/entity": "0.5.1-next.
|
|
42
|
-
"@flighthq/geometry": "0.5.1-next.
|
|
43
|
-
"@flighthq/log": "0.5.1-next.
|
|
44
|
-
"@flighthq/mesh": "0.5.1-next.
|
|
45
|
-
"@flighthq/node": "0.5.1-next.
|
|
46
|
-
"@flighthq/types": "0.5.1-next.
|
|
41
|
+
"@flighthq/entity": "0.5.1-next.905.5fbf787",
|
|
42
|
+
"@flighthq/geometry": "0.5.1-next.905.5fbf787",
|
|
43
|
+
"@flighthq/log": "0.5.1-next.905.5fbf787",
|
|
44
|
+
"@flighthq/mesh": "0.5.1-next.905.5fbf787",
|
|
45
|
+
"@flighthq/node": "0.5.1-next.905.5fbf787",
|
|
46
|
+
"@flighthq/types": "0.5.1-next.905.5fbf787"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@flighthq/scene3d": "*",
|
package/src/skeleton3d.test.ts
CHANGED
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
getSkeleton3DJointIndexByName,
|
|
14
14
|
getSkeleton3DJointWorldMatrix,
|
|
15
15
|
getSkeleton3DJointWorldMatrixByName,
|
|
16
|
+
initializeSkeleton3D,
|
|
16
17
|
setSkeleton3DBindPose,
|
|
17
18
|
setSkeleton3DBindPoseGuard,
|
|
18
19
|
validateSkeleton3D,
|
|
@@ -284,6 +285,12 @@ describe('getSkeleton3DJointWorldMatrixByName', () => {
|
|
|
284
285
|
});
|
|
285
286
|
});
|
|
286
287
|
|
|
288
|
+
describe('initializeSkeleton3D', () => {
|
|
289
|
+
it('is the construction initializer of createSkeleton3D', () => {
|
|
290
|
+
expect(typeof initializeSkeleton3D).toBe('function');
|
|
291
|
+
});
|
|
292
|
+
});
|
|
293
|
+
|
|
287
294
|
describe('setSkeleton3DBindPose', () => {
|
|
288
295
|
// A zero-scale joint makes its world matrix singular. Writing the failed inverse puts NaN in the
|
|
289
296
|
// palette, which reaches the skinned vertices silently; identity costs that one joint its bind pose
|
|
@@ -339,7 +346,6 @@ describe('setSkeleton3DBindPoseGuard', () => {
|
|
|
339
346
|
}
|
|
340
347
|
});
|
|
341
348
|
});
|
|
342
|
-
|
|
343
349
|
describe('validateSkeleton3D', () => {
|
|
344
350
|
it('returns null for a well-formed skeleton', () => {
|
|
345
351
|
expect(validateSkeleton3D(createSkeleton3D([createNode3D(), createNode3D()]))).toBeNull();
|