Skip to content

Commit 2edefe8

Browse files
committed
remove unused argument
1 parent ed52205 commit 2edefe8

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/lib/svg_text_utils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -755,9 +755,9 @@ function alignHTMLWith(_base, container, options) {
755755
};
756756
}
757757

758-
exports.makeTextShadow = function(offset, color) {
759-
var x = offset + 'px ';
760-
var y = offset + 'px ';
758+
exports.makeTextShadow = function(color) {
759+
var x = '1px ';
760+
var y = '1px ';
761761
var b = '1px ';
762762
return x + y + b + color + ', ' +
763763
'-' + x + '-' + y + b + color + ', ' +

src/traces/parcats/parcats.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ function performPlot(parcatsModels, graphDiv, layout, svg) {
238238
})
239239
.attr('alignment-baseline', 'middle')
240240

241-
.style('text-shadow', svgTextUtils.makeTextShadow(1, paperColor))
241+
.style('text-shadow', svgTextUtils.makeTextShadow(paperColor))
242242
.style('fill', 'rgb(0, 0, 0)')
243243
.attr('x',
244244
function(d) {

src/traces/parcoords/parcoords.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ module.exports = function parcoords(gd, cdModule, layout, callbacks) {
649649
.attr('stroke-width', '1px');
650650

651651
axis.selectAll('text')
652-
.style('text-shadow', svgTextUtils.makeTextShadow(1, paperColor))
652+
.style('text-shadow', svgTextUtils.makeTextShadow(paperColor))
653653
.style('cursor', 'default');
654654

655655
var axisHeading = axisOverlays.selectAll('.' + c.cn.axisHeading)

src/traces/sankey/render.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,7 @@ module.exports = function(gd, svg, calcData, layout, callbacks) {
10251025

10261026
nodeLabel
10271027
.style('text-shadow', function(d) {
1028-
return d.horizontal ? svgTextUtils.makeTextShadow(1, '#fff') : 'none';
1028+
return d.horizontal ? svgTextUtils.makeTextShadow('#fff') : 'none';
10291029
})
10301030
.each(function(d) {Drawing.font(nodeLabel, d.textFont);});
10311031

0 commit comments

Comments
 (0)