fix: double definition bug

This commit is contained in:
NunoSempere 2022-01-28 15:21:30 -05:00
parent 216f704232
commit f47cf4ca69

View File

@ -19,9 +19,8 @@ function drawGraphInner({ nodes, links }) {
console.log(positionById) console.log(positionById)
// Calculate the dimensions // Calculate the dimensions
let margin = { top: 0, right: 30, bottom: 20, left: 30 }; // let margin = { top: 0, right: 30, bottom: 20, left: 30 };
let width = 900 - margin.left - margin.right; // let width = 900 - margin.left - margin.right;
let initialWindowWidth = window.innerWidth let initialWindowWidth = window.innerWidth
let margin = { top: 0, right: 10, bottom: 30, left: 10 }; let margin = { top: 0, right: 10, bottom: 30, left: 10 };