import type { Direction } from "~/shared/canvas.util"; export interface CanvasContent { nodes?: CanvasNode[]; edges?: CanvasEdge[]; groups?: CanvasGroup[]; } export type CanvasColor = { class?: string; } & { hex?: string; } export interface CanvasNode { type: 'group' | 'text'; id: string; x: number; y: number; width: number; height: number; color?: CanvasColor; label?: string; text?: any; }; export interface CanvasEdge { id: string; fromNode: string; fromSide: Direction; toNode: string; toSide: Direction; color?: CanvasColor; label?: string; }; export interface CanvasGroup { name: string; nodes: string[]; }