Thumbnails, fix sticking nodes & webfont

This commit is contained in:
Ruben van de Ven 2018-09-30 19:21:16 +02:00
parent a0a66bcc65
commit 8cbe780f94
2 changed files with 5 additions and 6 deletions

View File

@ -684,16 +684,14 @@ simulation.force('centerActive', function force(alpha) {
return;
}
let dx = n.x - forceCx;
let dy = n.y - forceCy;
if(!inCircle(dx, dy, currentNodePositionRadius)) {
return;
}
n.vx += dx * k*3;
n.vy += dy * k*3;
n.vx += dx * k*4;
n.vy += dy * k*4;
}
});
});
@ -786,7 +784,7 @@ node.each(function(d) {
return;
}
d3.select(this).append('svg:image')
.attr("xlink:href", d.contentUrl)
.attr("xlink:href", d.contentUrl.replace('image', 'thumb'))
.attr("width", nodeSize*2)
.attr("height", nodeSize*2)
.attr("transform","translate(-"+nodeSize+" -"+nodeSize+")")

View File

@ -3,10 +3,11 @@ $detailsWidth: 740px;
$detailSlide: -1 * ($detailsWidth);
$detailSlideMobile: -30vh;
@import url('/assets/fonts/Bright/cmun-bright.css');
body{
margin:0;overflow: hidden;
font-family: "CMU Bright", sans-serif;
font-family: "CMU Bright", "Computer Modern Bright", sans-serif;
height: 100vh;
background: black;
}