mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-03 08:57:54 +00:00
2.6 — canvas drag snapping. A shared useNodeDrag hook snaps a dragged node's near/center/far edges to nearby nodes (and the grid as a fallback) and draws live alignment guides; a magnet toggle in the canvas toolbar turns it on/off. Pure computeSnap helper, unit-tested. 2.7 — richer link cards. Show the site's own favicon (client-side, no proxy; graceful link-glyph fallback) plus a domain line, in both the grid card and the inspector. 2.8 — drag a library/gallery image onto the board. The grid gains a drop listener mirroring the canvas's; both consume one event dispatched by dispatchGalleryMoodboardDrop, which each app wires to gallery-modal's onImageDrop. Bounds-checked against the mounted board surface.