parseSvgDocument function

SvgDocument parseSvgDocument(
  1. String source
)

Parses an <svg> document into drawable geometry and its coordinate space.

Throws a StrokeMorphError on a transform attribute (see the file header) or on markup this scanner cannot make sense of.

Implementation

SvgDocument parseSvgDocument(String source) => _SvgScanner(source).run();