From 9b922899a6aa70f4eb120d67f006a1d7df98464f Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Sat, 14 Jan 2017 22:08:47 +0530 Subject: [PATCH] Restore maki icons on vertices and areas --- modules/svg/labels.js | 6 +++--- modules/svg/vertices.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/svg/labels.js b/modules/svg/labels.js index 84b8026a7..33691ab98 100644 --- a/modules/svg/labels.js +++ b/modules/svg/labels.js @@ -193,15 +193,15 @@ export function svgLabels(projection, context) { icons = icons.enter() .append('use') .attr('class', 'icon areaicon') - .attr('width', '18px') - .attr('height', '18px') + .attr('width', '15px') + .attr('height', '15px') .merge(icons); icons .attr('transform', get(labels, 'transform')) .attr('xlink:href', function(d) { var icon = context.presets().match(d, context.graph()).icon; - return '#' + icon + (icon === 'hairdresser' ? '-24': '-18'); // workaround: maki hairdresser-18 broken? + return '#' + icon + '-15'; }); } diff --git a/modules/svg/vertices.js b/modules/svg/vertices.js index df8643786..dc0dca75a 100644 --- a/modules/svg/vertices.js +++ b/modules/svg/vertices.js @@ -121,9 +121,9 @@ export function svgVertices(projection, context) { enter.filter(function(d) { return icon(d); }) .append('use') .attr('transform', 'translate(-6, -6)') - .attr('xlink:href', function(d) { return '#' + icon(d) + '-12'; }) - .attr('width', '12px') - .attr('height', '12px') + .attr('xlink:href', function(d) { return '#' + icon(d) + '-11'; }) + .attr('width', '11px') + .attr('height', '11px') .each(setClass('icon')); // Vertices with tags get a fill.