fix(studio): a slider commits the value it was moved to, and the paint render test uses a real shape

- The opacity and paint sliders remember the value they were last moved to and commit that when let go, instead of reading the controlled input, which still shows the old value until the parent renders.
- The render test's old-fade shape is star-5; star is not a shape, so the whole fixture failed to parse.
This commit is contained in:
Maurice
2026-10-23 21:07:04 +02:00
parent e7a5316990
commit 473132fc07
3 changed files with 28 additions and 9 deletions
@@ -65,7 +65,7 @@ const painted = (): BookSpread => ({
shape('g1', { paint: linear }),
shape('h1', { shape: 'heart', paint: dots, stroke: '#000000', strokeWidth: 1 }),
shape('r1', { shape: 'rect', radius: 4, paint: dots }),
shape('old', { fill: '#336699', gradient: 'down', shape: 'star' }),
shape('old', { fill: '#336699', gradient: 'down', shape: 'star-5' }),
bookPhotoElementSchema.parse({ id: 'p1', kind: 'photo', frame, photoId: 3, mask: 'heart' }) as BookElement,
],
parked: [],