refactor(graphview): use one hook

This commit is contained in:
moklick
2021-10-13 13:52:45 +02:00
parent ee0d29029a
commit 3f8c252096
5 changed files with 53 additions and 19 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ type ElementsCollection = {
export function getElements(xElements: number = 10, yElements: number = 10): ElementsCollection {
const initialNodes = [];
const initialEdges = [];
const initialEdges: Edge[] = [];
let nodeId = 1;
let recentNodeId = null;