circleToMobject method

VMobject circleToMobject(
  1. Element circleElement,
  2. SVGElementStyle style
)

Implementation

VMobject circleToMobject(Element circleElement, SVGElementStyle style) {
  var x = attributeToDouble(circleElement.attributes['cx']);
  var y = attributeToDouble(circleElement.attributes['cy']);
  var r = attributeToDouble(circleElement.attributes['r']);

  var mob = Circle(radius: r)..shift(RIGHT * x + DOWN * y);
  return applyStyle(style.update(getElementStyle(circleElement)), mob);
}