velxio/frontend/src/store
David Montero Crespo cb26e36b28 feat(canvas): drag-to-front — whatever you dragged last paints on top
An unseated board dropped over a component was painted underneath it
(boards z 0, components z 1) and became impossible to grab back; the
earlier blanket z bump for boards broke the opposite case, hiding LEDs
and transistors behind every board. Neither static order can win both.

The rule is now the user's own gesture: the FIRST movement of a drag
raises that item (board or part, symmetrically) to the top of a
monotonic dragged-stack, so a board dropped over an LED sits visibly on
top — and dragging the LED afterwards wins the stack right back.
Click-select alone never raises: selection must not reshuffle a scene
you arranged. Untouched items keep the static layering (components
above unseated boards, seated boards above their socket), and the rank
map is ephemeral — never saved with the project.
2026-07-31 16:02:26 +02:00
..
serialBatcher.ts
useCompileLogsStore.ts
useEditorStore.ts fix(editor): Pi kinds end in digits — test the full board id before stripping the instance suffix 2026-07-28 20:15:56 +02:00
useElectricalStore.ts feat(avr): drive inputs from real circuit, modeling the internal pull-up 2026-06-26 20:18:41 +02:00
useMessageDialogStore.ts feat(ui): replace native confirm() dialogs with reusable modal 2026-07-18 01:59:18 +02:00
useOscilloscopeStore.ts
useProjectStore.ts
useSimulatorStore.ts feat(canvas): drag-to-front — whatever you dragged last paints on top 2026-07-31 16:02:26 +02:00
useVfsStore.ts feat(pi-family): one-click run UX — autoRun + guestHome + clean serial mirror 2026-07-28 16:28:02 +02:00