parseCircleNode method

dynamic parseCircleNode(
  1. dynamic node
)

Implementation

parseCircleNode(node) {
  var x = parseFloatWithUnits(node.getAttribute('cx'));
  var y = parseFloatWithUnits(node.getAttribute('cy'));
  var r = parseFloatWithUnits(node.getAttribute('r'));

  var subpath = Path(null);
  subpath.absarc(x, y, r, 0, Math.PI * 2, null);

  var path = ShapePath();
  path.subPaths.add(subpath);

  return path;
}