app/src/types/graph-shape.ts
2025-11-14 14:47:26 +00:00

22 lines
586 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;
uuid_string: string;
node_storage_path: string;
[key: string]: string | number | boolean | null | ShapeState | Record<string, unknown> | undefined;
}