1.0.7 • Published 6 years ago

svg-centre v1.0.7

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago