Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 378 Bytes

README.md

File metadata and controls

9 lines (5 loc) · 378 Bytes

SVG Model

A simplified model to represent SVGs for drawing on a 2D canvas. This is useful when building an SVG renderer.

How it works

All SVG elements are converted to a flat list of paths. Group attributes (e.g. styles, transforms) are already applied to each path. Paths are simplified to the minimal set of commands needed for accurate drawing.