Skip to content
/ svg-model Public

Transform SVG files into a simpler JSON representation for rendering/transformation

Notifications You must be signed in to change notification settings

Lona/svg-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Transform SVG files into a simpler JSON representation for rendering/transformation

Resources

Stars

Watchers

Forks

Packages

No packages published