@lona/svg-model
TypeScript icon, indicating that this package has built-in type declarations

3.0.0-alpha.10 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @lona/svg-model

Weekly Downloads

111

Version

3.0.0-alpha.10

License

MIT

Unpacked Size

91.4 kB

Total Files

32

Last publish

Collaborators

  • dabbott
  • mathieudutour