Skip to content

Holixus/nano-svg2js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gitter NPM version Build status Test coverage Dependency Status License Downloads

nano-svg2js

SVG to JS.

API

parseSVG(svg_text)

Return Promise object of parsed svg.

optimizeIds(jsvg)

Returns modified(in place) jsvg tree with short ids except symbols identifiers.

optimizeJSVG(jsvg)

Returns optimized in place jsvg tree.

packJSVG(jsvg)

Returns packed JSVG tree.

About

A little module for conversion of SVG to JS object for embedding to web applications.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published