From 8e02468eab2beb17a612bd0a00ef7db253b3ec20 Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Tue, 30 Nov 2021 16:55:00 -0500 Subject: [PATCH] clean up types --- webapp/src/types/graphs.ts | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) 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; }