bodoni / svg

Composer and parser for SVG
Other
302 stars 44 forks source link

Implement getBBox #44

Closed nicholascioli closed 3 years ago

nicholascioli commented 3 years ago

I'd like to programmatically generate layouts using this library and need to be able to get the size of elements in order to resize backgrounds based on their contents.

This is defined as getBBox in the standard.

If this seems like something that is outside the scope of this project then I could try hacking together the algorithm using the standard as reference.

IvanUkhov commented 3 years ago

Thank you for the note! Well, if I was planning to implement it anyway, I’d open a pull request here to see how it fits into the package. If it does, it will be merged. Otherwise, one would have a working code to be placed elsewhere.