34 lines
1.5 KiB
Java
34 lines
1.5 KiB
Java
|
package com.airbnb.lottie.model.animatable;
|
||
|
|
||
|
import android.graphics.PointF;
|
||
|
import com.airbnb.lottie.animation.keyframe.BaseKeyframeAnimation;
|
||
|
import com.airbnb.lottie.animation.keyframe.SplitDimensionPathKeyframeAnimation;
|
||
|
import com.airbnb.lottie.value.Keyframe;
|
||
|
import java.util.List;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public class AnimatableSplitDimensionPathValue implements AnimatableValue<PointF, PointF> {
|
||
|
private final AnimatableFloatValue animatableXDimension;
|
||
|
private final AnimatableFloatValue animatableYDimension;
|
||
|
|
||
|
public AnimatableSplitDimensionPathValue(AnimatableFloatValue animatableFloatValue, AnimatableFloatValue animatableFloatValue2) {
|
||
|
this.animatableXDimension = animatableFloatValue;
|
||
|
this.animatableYDimension = animatableFloatValue2;
|
||
|
}
|
||
|
|
||
|
@Override // com.airbnb.lottie.model.animatable.AnimatableValue
|
||
|
public List<Keyframe<PointF>> getKeyframes() {
|
||
|
throw new UnsupportedOperationException("Cannot call getKeyframes on AnimatableSplitDimensionPathValue.");
|
||
|
}
|
||
|
|
||
|
@Override // com.airbnb.lottie.model.animatable.AnimatableValue
|
||
|
public boolean isStatic() {
|
||
|
return this.animatableXDimension.isStatic() && this.animatableYDimension.isStatic();
|
||
|
}
|
||
|
|
||
|
@Override // com.airbnb.lottie.model.animatable.AnimatableValue
|
||
|
public BaseKeyframeAnimation<PointF, PointF> createAnimation() {
|
||
|
return new SplitDimensionPathKeyframeAnimation(this.animatableXDimension.createAnimation(), this.animatableYDimension.createAnimation());
|
||
|
}
|
||
|
}
|