svg-centre

1.0.7 • Public • Published

svg-centre

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

centre = require('svg-centre')


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

// or

// shrink all svgs
centre.shrinkall()


//create a montage of equally sized normalised svgs
centre.shrinkall(square='30vw')


alt text

Package Sidebar

Install

npm i svg-centre

Weekly Downloads

1

Version

1.0.7

License

MIT

Unpacked Size

86.6 kB

Total Files

5

Last publish

Collaborators

  • wolfiex