github
296 of 440 branches covered (67.27%)
Branch coverage included in aggregate %.
67 of 368 new or added lines in 5 files covered. (18.21%)
8912 existing lines in 125 files now uncovered.13683 of 29689 relevant lines covered (46.09%)
0.57 hits per line
1 |
import {Device} from '@luma.gl/core'; |
1✔ |
2 |
import {GroupNode} from '@luma.gl/engine'; |
1✔ |
3 |
import {GLTFInstantiator, GLTFInstantiatorOptions} from './gltf-instantiator'; |
|
4 |
import {GLTFAnimator} from './gltf-animator'; |
1✔ |
5 |
|
1✔ |
6 |
export function createScenegraphsFromGLTF(
|
1✔ |
UNCOV
7
|
device: Device, |
× |
UNCOV
8
|
gltf: any, |
× |
UNCOV
9
|
options?: GLTFInstantiatorOptions |
× |
UNCOV
10
|
): { |
× |
UNCOV
11
|
scenes: GroupNode[];
|
× |
UNCOV
12
|
animator: GLTFAnimator;
|
× |
UNCOV
13
|
} { |
× |
UNCOV
14
|
const instantiator = new GLTFInstantiator(device, options); |
× |
UNCOV
15
|
const scenes = instantiator.instantiate(gltf);
|
× |
UNCOV
16
|
const animator = instantiator.createAnimator();
|
× |
UNCOV
17
|
return {scenes, animator};
|
× |
UNCOV
18
|
} |
× |