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 {uid} from '@luma.gl/core'; |
|
UNCOV
2
|
import {TruncatedConeGeometry} from './truncated-cone-geometry'; |
× |
UNCOV
3
|
|
× |
UNCOV
4
|
export type ConeGeometryProps = {
|
× |
UNCOV
5
|
id?: string;
|
× |
UNCOV
6
|
radius?: number; |
× |
UNCOV
7
|
cap?: boolean; |
× |
UNCOV
8
|
}; |
× |
UNCOV
9
|
|
× |
UNCOV
10
|
export class ConeGeometry extends TruncatedConeGeometry { |
× |
UNCOV
11
|
constructor(props: ConeGeometryProps = {}) { |
× |
UNCOV
12
|
const {id = uid('cone-geometry'), radius = 1, cap = true} = props; |
× |
UNCOV
13
|
super({ |
× |
UNCOV
14
|
...props, |
× |
UNCOV
15
|
id, |
× |
UNCOV
16
|
topRadius: 0,
|
× |
UNCOV
17
|
topCap: Boolean(cap), |
× |
UNCOV
18
|
bottomCap: Boolean(cap), |
× |
UNCOV
19
|
bottomRadius: radius |
× |
UNCOV
20
|
}); |
× |
UNCOV
21
|
} |
× |
UNCOV
22
|
} |
× |