svg-center

1.0.0 • Public • Published

svg-center

Lets shrink our svg just to the elements being shown within it.

center = require('svg-center')


// shrink a single svg
center.shrink(document.getElementById('svg1'))

// or 

// shrink all svgs
center.shrinkall()

Package Sidebar

Install

npm i svg-center

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

3.19 kB

Total Files

4

Last publish

Collaborators

  • wolfiex