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()
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()
npm i svg-center
1
1.0.0
MIT
3.19 kB
4