From 1b32f71c91046f0fefe990b346e4ed6e36fffce0 Mon Sep 17 00:00:00 2001 From: Ty Balascio Date: Fri, 25 Sep 2026 09:35:43 -0700 Subject: [PATCH] fix(fe): axis preview reactive now depends on approvedMask The axis-preview draw reactive only depended on the image being complete, so it fired before approvedMask was populated (canvas stayed at the default 300x150 and nothing drew). Add cap.approvedMask to the reactive deps so the sheet-removed photo + tape line render once the frozen mask is present. --- frontend/src/capture/SessionCapture.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/capture/SessionCapture.svelte b/frontend/src/capture/SessionCapture.svelte index 9e9a661..67eb056 100644 --- a/frontend/src/capture/SessionCapture.svelte +++ b/frontend/src/capture/SessionCapture.svelte @@ -79,7 +79,7 @@ axisObjUrl = URL.createObjectURL(cap.source.blob); } - $: if (kind === 'axis' && axisImg?.complete && axisImg.naturalWidth > 0) { + $: if (kind === 'axis' && cap.approvedMask && axisImg?.complete && axisImg.naturalWidth > 0) { drawAxisPreview(); }