github
1710 of 2234 branches covered (76.54%)
Branch coverage included in aggregate %.
94 of 141 new or added lines in 25 files covered. (66.67%)
20319 existing lines in 272 files now uncovered.35902 of 63049 relevant lines covered (56.94%)
11.42 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✔ |