Skip to content

Commit 5eb3e73

Browse files
committed
use one pixel const
1 parent 2edefe8 commit 5eb3e73

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/lib/svg_text_utils.js

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

758+
var onePx = '1px ';
759+
758760
exports.makeTextShadow = function(color) {
759-
var x = '1px ';
760-
var y = '1px ';
761-
var b = '1px ';
761+
var x = onePx;
762+
var y = onePx;
763+
var b = onePx;
762764
return x + y + b + color + ', ' +
763765
'-' + x + '-' + y + b + color + ', ' +
764766
x + '-' + y + b + color + ', ' +

0 commit comments

Comments
 (0)