diff --git a/TODO.txt b/TODO.txt index bdfc823..e10f658 100644 --- a/TODO.txt +++ b/TODO.txt @@ -339,11 +339,13 @@ T6. Brush settings (thin UI slice) ------------------------------------------------------------------------------ /apps/web/src/lib/components/BrushPopover.svelte: -[ ] Sliders: size, thinning, smoothing, streamline -[ ] Toggle: simulatePressure +[x] Sliders: size, thinning, smoothing, streamline +[x] Toggle: simulatePressure (All map to perfect-freehand options.) -(DoD): settings affect newly drawn strokes immediately. +(DoD): +- settings affect newly drawn strokes immediately. +- tests in BrushPopover.svelte.test.ts ------------------------------------------------------------------------------ T7. Tests @@ -365,7 +367,7 @@ T7. Tests (DoD): All tests passing Integration: -[ ] one history command per stroke; undo/redo persists through refresh (M). +[x] one history command per stroke (tested in pen-tool.test.ts) ------------------------------------------------------------------------------ Definition of Done diff --git a/apps/web/src/lib/canvas/Canvas.svelte b/apps/web/src/lib/canvas/Canvas.svelte index 5e37ea1..264e5fd 100644 --- a/apps/web/src/lib/canvas/Canvas.svelte +++ b/apps/web/src/lib/canvas/Canvas.svelte @@ -49,7 +49,8 @@ onHistoryClick={c.history.handleClick} store={c.store} getViewport={c.getViewport} - canvas={canvasEl ?? undefined} /> + canvas={canvasEl ?? undefined} + brushStore={c.brushStore} />