File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2174,7 +2174,7 @@ Other Style Guides
21742174 // bad
21752175 const leds = stage.selectAll('.led').data(data).enter().append('svg:svg').classed('led', true)
21762176 .attr('width', (radius + margin) * 2).append('svg:g')
2177- .attr('transform', ' translate(' + ( radius + margin) + ',' + ( radius + margin) + ')' )
2177+ .attr('transform', ` translate (${ radius + margin},${ radius + margin}) ` )
21782178 .call(tron.led);
21792179
21802180 // good
@@ -2184,7 +2184,7 @@ Other Style Guides
21842184 .classed('led', true)
21852185 .attr('width', (radius + margin) * 2)
21862186 .append('svg:g')
2187- .attr('transform', ' translate(' + ( radius + margin) + ',' + ( radius + margin) + ')' )
2187+ .attr('transform', ` translate (${ radius + margin},${ radius + margin}) ` )
21882188 .call(tron.led);
21892189
21902190 // good
You can’t perform that action at this time.
0 commit comments