Update packages. Add quadtree (still need update for ID handling instead of index).

This commit is contained in:
2025-01-23 14:05:18 +01:00
parent f32c51ca38
commit 685bd47fc4
9 changed files with 3132 additions and 22 deletions

6
types/canvas.d.ts vendored
View File

@@ -1,3 +1,5 @@
import type { Direction } from "~/shared/canvas.util";
export interface CanvasContent {
nodes?: CanvasNode[];
edges?: CanvasEdge[];
@@ -22,9 +24,9 @@ export interface CanvasNode {
export interface CanvasEdge {
id: string;
fromNode: string;
fromSide: 'bottom' | 'top' | 'left' | 'right';
fromSide: Direction;
toNode: string;
toSide: 'bottom' | 'top' | 'left' | 'right';
toSide: Direction;
color?: CanvasColor;
label?: string;
};