We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df156e0 commit a6a7771Copy full SHA for a6a7771
src/index.ts
@@ -693,15 +693,18 @@ function getFunctions(time: number = thisLayer.time) {
693
const progress = keyedAnimation.map((dimension, index) =>
694
thisLayer.linear(
695
dimension,
696
- keyOne.value[index],
697
- keyTwo.value[index],
+ // We know these are vectors, since keyedAnimation
+ // is an array
698
+ (keyOne.value as Vector)[index],
699
+ (keyTwo.value as Vector)[index],
700
0,
701
1
702
)
703
) as Vector;
704
705
return valueStart.map(
- (dimension, index) => dimension + valueDelta[index] * progress[index]
706
+ (dimension, index) =>
707
+ dimension + (valueDelta as Vector)[index] * progress[index]
708
);
709
}
710
0 commit comments