nano-svg2js
A little module for conversion of SVG to JS object for embedding to web applications
Last updated 4 years ago by holixus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install nano-svg2js 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 1.0.9                                ...           latest (4 years ago)

10 Versions

  • 1.0.9                                ...           4 years ago
  • 1.0.8                                ...           4 years ago
  • 1.0.7                                ...           4 years ago
  • 1.0.6                                ...           4 years ago
  • 1.0.5                                ...           4 years ago
  • 1.0.4                                ...           4 years ago
  • 1.0.3                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 10
Dependencies (3)
Dev Dependencies (6)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |