blob: 3110ca1d83d81f59a1f902fbe3382ca450b4d0dc [file] [log] [blame]
package com.airbnb.lottie;
import org.json.JSONException;
import org.json.JSONObject;
class CircleShape {
private final IAnimatablePathValue position;
private final AnimatablePointValue size;
CircleShape(JSONObject json, int frameRate, LottieComposition composition) {
try {
position = AnimatablePathValue.createAnimatablePathOrSplitDimensionPath(json.getJSONObject("p"), composition);
size = new AnimatablePointValue(json.getJSONObject("s"), frameRate, composition);
} catch (JSONException e) {
throw new IllegalArgumentException("Unable to parse circle " + json, e);
}
}
public IAnimatablePathValue getPosition() {
return position;
}
public AnimatablePointValue getSize() {
return size;
}
}