Skip to content

Commit 03a28ae

Browse files
committed
wip: round 12
1 parent fbb40e4 commit 03a28ae

File tree

7 files changed

+442
-400
lines changed

7 files changed

+442
-400
lines changed

src/animated/AnimatedValueArray.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import AnimatedValue from './AnimatedValue'
66

77
export default class AnimatedValueArray extends AnimatedArray<AnimatedValue>
88
implements SpringValue {
9-
constructor(values: (string | number)[]) {
9+
constructor(values: AnimatedValue[]) {
1010
super()
11-
this.payload = values.map(n => new AnimatedValue(n))
11+
this.payload = values
1212
}
1313

1414
public setValue(value: (string | number)[] | string | number, flush = true) {
@@ -29,6 +29,6 @@ export default class AnimatedValueArray extends AnimatedArray<AnimatedValue>
2929
range: number[] | InterpolationConfig | ((...args: any[]) => any),
3030
output?: (number | string)[]
3131
): AnimatedInterpolation {
32-
return new AnimatedInterpolation(this, range as number[], output!)
32+
return new AnimatedInterpolation(this, range as number[], output)
3333
}
3434
}

0 commit comments

Comments
 (0)