jonobr1 / two.js

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

[Bug] getBoundingClientRect should account for masked / clipped objects #541

Open jonobr1 opened 3 years ago

jonobr1 commented 3 years ago

Describe the bug When calculating getBoundingClientRect the masked or clipped content calculates the full dimensions without being clipped resulting in unintended behavior.

Environment (please select one):

Desktop (please complete the following information):