First version

This commit is contained in:
2024-01-08 01:00:37 +01:00
commit e70ab97b8b
88 changed files with 35689 additions and 0 deletions

20
types/canvas.ts Normal file
View File

@@ -0,0 +1,20 @@
export interface CanvasNode {
type: 'group' | 'text';
id: string;
x: number;
y: number;
width: number;
height: number;
color?: string;
label?: string;
text?: any;
};
export interface CanvasEdge {
id: string;
fromNode: string;
fromSide: 'bottom' | 'top' | 'left' | 'right';
toNode: string;
toSide: 'bottom' | 'top' | 'left' | 'right';
color?: string;
label?: string;
};