app/src/types/graph-shape.ts
2025-07-11 13:21:49 +00:00

22 lines
582 B
TypeScript

import { TLShapeId } from '@tldraw/tldraw';
export type ShapeState = {
parentId: TLShapeId | null;
isPageChild: boolean;
hasChildren: boolean | null;
bindings: Record<string, unknown> | null;
};
export type NodeData = {
title: string;
w: number;
h: number;
state: ShapeState | null;
headerColor: string;
backgroundColor: string;
isLocked: boolean;
__primarylabel__: string;
unique_id: string;
tldraw_snapshot: string;
[key: string]: string | number | boolean | null | ShapeState | Record<string, unknown> | undefined;
}