github
946 of 1273 branches covered (74.31%)
Branch coverage included in aggregate %.
117 of 146 new or added lines in 9 files covered. (80.14%)
24638 existing lines in 277 files now uncovered.31680 of 63169 relevant lines covered (50.15%)
2.0 hits per line
1 |
import {lerp} from '@math.gl/core'; |
|
2 |
import Transition from './transition'; |
1✔ |
3 |
|
1✔ |
4 |
export default class CPUInterpolationTransition extends Transition { |
1✔ |
5 |
_value; |
1✔ |
6 |
|
1✔ |
7 |
get value() { |
1✔ |
UNCOV
8
|
return this._value; |
× |
UNCOV
9
|
} |
× |
10 |
|
1✔ |
11 |
_onUpdate() { |
1✔ |
UNCOV
12
|
const {
|
× |
UNCOV
13
|
time, |
× |
UNCOV
14
|
settings: {fromValue, toValue, duration, easing} |
× |
UNCOV
15
|
} = this;
|
× |
UNCOV
16
|
const t = easing(time / duration);
|
× |
UNCOV
17
|
this._value = lerp(fromValue, toValue, t);
|
× |
UNCOV
18
|
} |
× |
19 |
} |
1✔ |