From 96ff4f1a4a748a536d02147a0fd78f361fe25d70 Mon Sep 17 00:00:00 2001 From: Taylor Obyen <162023405+taylorobyen@users.noreply.github.com> Date: Fri, 20 Sep 2024 06:48:44 -0400 Subject: [PATCH] Fix occlusion rounding bug (#3400) * Fix occlusion rounding bug * Fix contributors --- CONTRIBUTORS | 2 +- ts/routes/image-occlusion/tools/lib.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index bc66279ee..4a8debe67 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -191,7 +191,7 @@ Ben Nguyen <105088397+bpnguyen107@users.noreply.github.com> Themis Demetriades Luke Bartholomew Gregory Abrasaldo -Taylor Obyen +Taylor Obyen ******************** diff --git a/ts/routes/image-occlusion/tools/lib.ts b/ts/routes/image-occlusion/tools/lib.ts index 3f7483949..fd3609bd3 100644 --- a/ts/routes/image-occlusion/tools/lib.ts +++ b/ts/routes/image-occlusion/tools/lib.ts @@ -320,5 +320,5 @@ export const isPointerInBoundingBox = (pointer): boolean => { export const getBoundingBox = () => { const canvas = globalThis.canvas; - return canvas.getObjects().find((obj) => obj.fill === "transparent"); + return canvas.getObjects().find((obj) => obj.fill === "transparent").getBoundingRect(true); };