meerk40t / svgelements

SVG Parsing for Elements, Paths, and other SVG Objects.
MIT License
133 stars 29 forks source link

Add Group.bbox and Matrix Multiply of Groups. #93

Closed tatarize closed 3 years ago

abey79 commented 3 years ago

Yay black! 🥳

tatarize commented 3 years ago

Mostly it's about the ability to actually calculate the bbox() of the svg directly. The svg can be sized much larger than the sum of all the objects in it. And I used that a lot with the other code. I was going to tell you about this when I worked up some test coverage and got that svg *= "scale(2) to not crash and actually multiply correctly.