From 9fb847aab40438e16a1f6ffa0ce31434cb76c0ea Mon Sep 17 00:00:00 2001 From: Maximilian Giller <m.giller@tu-bs.de> Date: Thu, 1 Sep 2022 11:54:02 +0200 Subject: [PATCH] Basic graph content interface --- src/common/graph.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/common/graph.ts b/src/common/graph.ts index 3052e64..f846315 100644 --- a/src/common/graph.ts +++ b/src/common/graph.ts @@ -46,10 +46,16 @@ export interface Coordinate { z: number; } +export interface GraphContent { + nodes: Node[]; + links: Link[]; + objectGroups: GraphObjectType[]; +} + /** * Basic graph data structure. */ -export default class Graph { +export default class Graph implements GraphContent { public nodes: Node[]; public links: Link[]; public objectGroups: GraphObjectType[]; -- GitLab