Revert "Fix occlusion rounding bug (#3400)"

This reverts commit 96ff4f1a4a.

This change broke adding of new occlusions on desktop:

JS error /_anki/js/editor.js:100016 Uncaught TypeError: Cannot read properties of undefined (reading 'getBoundingRect')
This commit is contained in:
Damien Elmes 2024-09-25 20:04:35 +10:00
parent 221d995180
commit cf17ca2f84

View file

@ -320,5 +320,5 @@ export const isPointerInBoundingBox = (pointer): boolean => {
export const getBoundingBox = () => {
const canvas = globalThis.canvas;
return canvas.getObjects().find((obj) => obj.fill === "transparent").getBoundingRect(true);
return canvas.getObjects().find((obj) => obj.fill === "transparent");
};