mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
76 lines
2.2 KiB
Java
76 lines
2.2 KiB
Java
package com.airbnb.lottie.model.content;
|
|
|
|
import com.airbnb.lottie.LottieComposition;
|
|
import com.airbnb.lottie.LottieDrawable;
|
|
import com.airbnb.lottie.animation.content.Content;
|
|
import com.airbnb.lottie.animation.content.TrimPathContent;
|
|
import com.airbnb.lottie.model.animatable.AnimatableFloatValue;
|
|
import com.airbnb.lottie.model.layer.BaseLayer;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class ShapeTrimPath implements ContentModel {
|
|
private final AnimatableFloatValue end;
|
|
private final boolean hidden;
|
|
private final String name;
|
|
private final AnimatableFloatValue offset;
|
|
private final AnimatableFloatValue start;
|
|
private final Type type;
|
|
|
|
public AnimatableFloatValue getEnd() {
|
|
return this.end;
|
|
}
|
|
|
|
public String getName() {
|
|
return this.name;
|
|
}
|
|
|
|
public AnimatableFloatValue getOffset() {
|
|
return this.offset;
|
|
}
|
|
|
|
public AnimatableFloatValue getStart() {
|
|
return this.start;
|
|
}
|
|
|
|
public Type getType() {
|
|
return this.type;
|
|
}
|
|
|
|
public boolean isHidden() {
|
|
return this.hidden;
|
|
}
|
|
|
|
/* loaded from: classes2.dex */
|
|
public enum Type {
|
|
SIMULTANEOUSLY,
|
|
INDIVIDUALLY;
|
|
|
|
public static Type forId(int i) {
|
|
if (i == 1) {
|
|
return SIMULTANEOUSLY;
|
|
}
|
|
if (i == 2) {
|
|
return INDIVIDUALLY;
|
|
}
|
|
throw new IllegalArgumentException("Unknown trim path type " + i);
|
|
}
|
|
}
|
|
|
|
public ShapeTrimPath(String str, Type type, AnimatableFloatValue animatableFloatValue, AnimatableFloatValue animatableFloatValue2, AnimatableFloatValue animatableFloatValue3, boolean z) {
|
|
this.name = str;
|
|
this.type = type;
|
|
this.start = animatableFloatValue;
|
|
this.end = animatableFloatValue2;
|
|
this.offset = animatableFloatValue3;
|
|
this.hidden = z;
|
|
}
|
|
|
|
@Override // com.airbnb.lottie.model.content.ContentModel
|
|
public Content toContent(LottieDrawable lottieDrawable, LottieComposition lottieComposition, BaseLayer baseLayer) {
|
|
return new TrimPathContent(baseLayer, this);
|
|
}
|
|
|
|
public String toString() {
|
|
return "Trim Path: {start: " + this.start + ", end: " + this.end + ", offset: " + this.offset + "}";
|
|
}
|
|
}
|