shapeBoundingBox static method

PdfRect shapeBoundingBox(
  1. String d
)

Calculates the bounding box of an SVG path

Implementation

static PdfRect shapeBoundingBox(String d) {
  final proxy = _PathBBProxy();
  writeSvgPathDataToPath(d, proxy);
  return proxy.box;
}