mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
I already fixed this but a special case for no elements was added in getCommonBounds to return 0 and reintroduce this bug. I'm not exactly sure where to put this check tbh. Fixing it here so that I'm not annoyed anymore at least. I checked some of the callsites, some of them related to selection will never pass an empty array, some to export will break if we remove the 0, 0, 0, 0 fix. |
||
---|---|---|
.. | ||
comparisons.ts | ||
export.ts | ||
index.ts | ||
Scene.ts | ||
scroll.ts | ||
scrollbars.ts | ||
selection.ts | ||
types.ts | ||
zoom.ts |