Skip to content

Commit

Permalink
Merge 28d1511 into e19ae46
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Lee committed Sep 24, 2019
2 parents e19ae46 + 28d1511 commit 5fb3bc4
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/util/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const createSvg = (selector, height, width) =>
.append('svg')
.attr('height', height)
.attr('width', width)
// .style('padding', '25px')
// .style('padding', '25px')

export const createSimulation = data =>
d3
Expand Down Expand Up @@ -60,9 +60,7 @@ export const createLinks = (svg, data, height, width) =>
.attr(
'x1',
({ source }) =>
width / 2 +
svg.select(`#${source}`).data()[0].location.x * width +
radius
width / 2 + svg.select(`#${source}`).data()[0].location.x * width
)
.attr(
'y1',
Expand All @@ -72,9 +70,7 @@ export const createLinks = (svg, data, height, width) =>
.attr(
'x2',
({ target }) =>
width / 2 +
svg.select(`#${target}`).data()[0].location.x * width -
radius
width / 2 + svg.select(`#${target}`).data()[0].location.x * width
)
.attr(
'y2',
Expand Down

0 comments on commit 5fb3bc4

Please sign in to comment.