jonobr1 / two.js

A renderer agnostic two-dimensional drawing api for the web.
https://two.js.org
MIT License
8.27k stars 454 forks source link

Resolves Issue 697 Imprecise Bounding Box Calculations on Rotated Shapes #700

Closed jonobr1 closed 1 year ago

jonobr1 commented 1 year ago

As demonstrated in this codepen: https://codepen.io/jonobr1/pen/YzJGNOq

this PR correctly handles getting bounding box rectangles on matrices with rotation applied. Both manual and auto-calculated veresions.