feat(editor): add node, edge, palette, and loop-overlay components

This commit is contained in:
Julien Calixte
2026-06-20 09:37:42 +02:00
parent 0416581799
commit 03848ae893
9 changed files with 412 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
/** Shared contract between the Palette (drag source) and Editor (drop target). */
/** Node kinds the palette can place. Flows are drawn by connecting (F2). */
export type PlaceableKind = "stock" | "converter"
/** Custom MIME type carrying the kind across an HTML5 drag-and-drop. */
export const NODE_DND_MIME = "application/x-meadows-node"