json / src /types /graph.ts
xinnni's picture
Upload 146 files
f909d7c verified
raw
history blame contribute delete
357 Bytes
import { NodeType } from "jsonc-parser";
export interface NodeData {
id: string;
text: string | [string, string][];
width: number;
height: number;
path?: string;
data: {
type: NodeType;
isParent: boolean;
isEmpty: boolean;
childrenCount: number;
};
}
export interface EdgeData {
id: string;
from: string;
to: string;
}