Canvas CSS update

This commit is contained in:
2024-08-29 17:45:43 +02:00
parent c694d28982
commit 2a8abb4796
11 changed files with 108 additions and 69 deletions

9
types/canvas.d.ts vendored
View File

@@ -3,6 +3,11 @@ export interface CanvasContent {
edges: CanvasEdge[];
groups: CanvasGroup[];
}
export type CanvasColor = {
class?: string;
} & {
hex?: string;
}
export interface CanvasNode {
type: 'group' | 'text';
id: string;
@@ -10,7 +15,7 @@ export interface CanvasNode {
y: number;
width: number;
height: number;
color?: string;
color?: CanvasColor;
label?: string;
text?: any;
};
@@ -20,7 +25,7 @@ export interface CanvasEdge {
fromSide: 'bottom' | 'top' | 'left' | 'right';
toNode: string;
toSide: 'bottom' | 'top' | 'left' | 'right';
color?: string;
color?: CanvasColor;
label?: string;
};
export interface CanvasGroup {