blob: 7d659afe35c77e1eb6d01f0f23b2de15193c4e06 [file] [log] [blame]
package com.airbnb.lottie;
import org.json.JSONObject;
class CircleShape {
private final IAnimatablePathValue position;
private final AnimatablePointValue size;
private CircleShape(IAnimatablePathValue position, AnimatablePointValue size) {
this.position = position;
this.size = size;
}
static class Factory {
static CircleShape newInstance(JSONObject json, LottieComposition composition) {
return new CircleShape(
AnimatablePathValue
.createAnimatablePathOrSplitDimensionPath(json.optJSONObject("p"), composition),
new AnimatablePointValue(json.optJSONObject("s"), composition));
}
}
public IAnimatablePathValue getPosition() {
return position;
}
public AnimatablePointValue getSize() {
return size;
}
}