mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-01-23 16:28:18 -05:00
- Keep track of whether the bbox needs to be recalculated (e.g. had lines/points added) - Keep track of whether the bbox has eraser strokes - if yes, we need to do the full pixel-perfect bbox calculation, otherwise we can use the faster getClientRect - Use comparison rather than Math.min/max in bbox calculation (slightly faster) - Return `null` if no pixel data at all in bbox