blob: f8c281e5eb2249fa5b9ba9b1b520563bb7d5098a [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 {
private Factory() {
}
static CircleShape newInstance(JSONObject json, LottieComposition composition) {
return new CircleShape(
AnimatablePathValue
.createAnimatablePathOrSplitDimensionPath(json.optJSONObject("p"), composition),
AnimatablePointValue.Factory.newInstance(json.optJSONObject("s"), composition));
}
}
public IAnimatablePathValue getPosition() {
return position;
}
public AnimatablePointValue getSize() {
return size;
}
}