From f47cf4ca6997d21181815244682836e0c1e8f0c3 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Fri, 28 Jan 2022 15:21:30 -0500 Subject: [PATCH] fix: double definition bug --- lib/labeledGraph.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/labeledGraph.js b/lib/labeledGraph.js index a0b9aea..ec42813 100644 --- a/lib/labeledGraph.js +++ b/lib/labeledGraph.js @@ -19,9 +19,8 @@ function drawGraphInner({ nodes, links }) { console.log(positionById) // Calculate the dimensions - let margin = { top: 0, right: 30, bottom: 20, left: 30 }; - let width = 900 - margin.left - margin.right; - + // let margin = { top: 0, right: 30, bottom: 20, left: 30 }; + // let width = 900 - margin.left - margin.right; let initialWindowWidth = window.innerWidth let margin = { top: 0, right: 10, bottom: 30, left: 10 };