github
13 of 238 branches covered (5.46%)
Branch coverage included in aggregate %.
0 of 472 new or added lines in 41 files covered. (0.0%)
19728 existing lines in 193 files now uncovered.91 of 28170 relevant lines covered (0.32%)
0.02 hits per line
UNCOV
1
|
import {Device} from '@luma.gl/core'; |
|
UNCOV
2
|
import {GroupNode} from '@luma.gl/engine'; |
× |
UNCOV
3
|
import {GLTFInstantiator, GLTFInstantiatorOptions} from './gltf-instantiator'; |
× |
UNCOV
4
|
import {GLTFAnimator} from './gltf-animator'; |
× |
UNCOV
5
|
|
× |
UNCOV
6
|
export function createScenegraphsFromGLTF(
|
× |
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
|
} |
× |