diff --git a/webapp/src/types/graphs.ts b/webapp/src/types/graphs.ts index 3880d45..27a6be2 100644 --- a/webapp/src/types/graphs.ts +++ b/webapp/src/types/graphs.ts @@ -1,16 +1,12 @@ export type Point = [number, number]; +export type BBox = [Point, Point]; export interface Node { loc: Point; text: string; color: 'red' | 'blue' | 'green'; } -export interface Edge { - from: string; - to: string; - direction: '1->2' | '1<->2' | '1<-2'; -} -export type EdgeDirection = Edge['direction']; -export interface DAG { - nodes: Record; - edges: Array; +export type EdgeDirection = '1->2' | '1<->2' | '1<-2'; +export interface BoundedObj { + elm: J; + bbox: BBox; }