Reduce link arrow sizes.

This commit is contained in:
Sergio Martínez Portela 2022-08-19 19:37:53 +02:00
parent f5e8fb25f7
commit 768065165f

View File

@ -86,15 +86,15 @@ function ForceGraph({
// Add arrowheads // Add arrowheads
svg.append('defs').append('marker') svg.append('defs').append('marker')
.attr('id', 'arrowhead') .attr('id', 'arrowhead')
.attr('viewBox', '-0 -5 10 10') .attr('viewBox', '-0 -2.5 5 5')
.attr('refX', 13) .attr('refX', 10)
.attr('refY', 0) .attr('refY', 0)
.attr('orient', 'auto') .attr('orient', 'auto')
.attr('markerWidth', 13) .attr('markerWidth', 7)
.attr('markerHeight', 13) .attr('markerHeight', 7)
.attr('xoverflow', 'visible') .attr('xoverflow', 'visible')
.append('svg:path') .append('svg:path')
.attr('d', 'M 0,-5 L 10 ,0 L 0,5') .attr('d', 'M 0,-2.5 L 5 ,0 L 0,2.5')
.attr('fill', '#999') .attr('fill', '#999')
.style('stroke','none'); .style('stroke','none');