1.0.7 • Published 7 years ago

svg-centre v1.0.7

Weekly downloads
3
License
MIT
Repository
github
Last release
7 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

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago