github
1903 of 2546 branches covered (74.74%)
Branch coverage included in aggregate %.
775 of 823 new or added lines in 10 files covered. (94.17%)
17884 existing lines in 262 files now uncovered.37927 of 62547 relevant lines covered (60.64%)
158.97 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✔ |