@flighthq/picking 0.5.1-next.904.b545d9c → 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 +8 -8
- package/src/pickScene3D.test.ts +7 -1
package/README.md
CHANGED
|
@@ -13,5 +13,5 @@ Import the supported application-facing API from `@flighthq/picking`. The `@flig
|
|
|
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/picking@0.5.1-next.
|
|
17
|
-
- [License](https://github.com/flighthq/flight/blob/
|
|
16
|
+
- [Source for @flighthq/picking@0.5.1-next.905.5fbf787](https://github.com/flighthq/flight/tree/5fbf7874064c384307542d68b4dcb6a895ff0dcf/packages/picking)
|
|
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/picking",
|
|
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,13 +38,13 @@
|
|
|
38
38
|
"clean:dist": "tsx ../../scripts/clean-package-dist.ts"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@flighthq/camera": "0.5.1-next.
|
|
42
|
-
"@flighthq/entity": "0.5.1-next.
|
|
43
|
-
"@flighthq/geometry": "0.5.1-next.
|
|
44
|
-
"@flighthq/mesh": "0.5.1-next.
|
|
45
|
-
"@flighthq/node": "0.5.1-next.
|
|
46
|
-
"@flighthq/scene3d": "0.5.1-next.
|
|
47
|
-
"@flighthq/types": "0.5.1-next.
|
|
41
|
+
"@flighthq/camera": "0.5.1-next.905.5fbf787",
|
|
42
|
+
"@flighthq/entity": "0.5.1-next.905.5fbf787",
|
|
43
|
+
"@flighthq/geometry": "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/scene3d": "0.5.1-next.905.5fbf787",
|
|
47
|
+
"@flighthq/types": "0.5.1-next.905.5fbf787"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "^5.3.0"
|
package/src/pickScene3D.test.ts
CHANGED
|
@@ -23,6 +23,7 @@ import { EntityRuntimeKey } from '@flighthq/types/contract';
|
|
|
23
23
|
|
|
24
24
|
import {
|
|
25
25
|
createScene3DHit,
|
|
26
|
+
initializeScene3DHit,
|
|
26
27
|
pickScene3D,
|
|
27
28
|
pickScene3DAll,
|
|
28
29
|
pickScene3DAllWithRay3D,
|
|
@@ -91,6 +92,12 @@ describe('createScene3DHit', () => {
|
|
|
91
92
|
});
|
|
92
93
|
});
|
|
93
94
|
|
|
95
|
+
describe('initializeScene3DHit', () => {
|
|
96
|
+
it('is the construction initializer of createScene3DHit', () => {
|
|
97
|
+
expect(typeof initializeScene3DHit).toBe('function');
|
|
98
|
+
});
|
|
99
|
+
});
|
|
100
|
+
|
|
94
101
|
describe('pickScene3D', () => {
|
|
95
102
|
it('fills barycentric weights that sum to one', () => {
|
|
96
103
|
const camera = makeCamera();
|
|
@@ -353,7 +360,6 @@ describe('pickScene3DAllWithRay3D', () => {
|
|
|
353
360
|
}
|
|
354
361
|
});
|
|
355
362
|
});
|
|
356
|
-
|
|
357
363
|
describe('pickScene3DWithRay3D', () => {
|
|
358
364
|
it('resolves the nearest hit for a world-space ray', () => {
|
|
359
365
|
const { scene, mesh } = sceneWithCenteredBox();
|