Skip to content

Commit

Permalink
Fix _findLargestStrokeWidth to avoid regression
Browse files Browse the repository at this point in the history
  • Loading branch information
adroitwhiz committed Feb 14, 2020
1 parent 6782995 commit 6f81e0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/svg-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ class SvgRenderer {
let largestStrokeWidth = 0;
const collectStrokeWidths = domElement => {
if (domElement.getAttribute) {
if (domElement.getAttribute('stroke')) {
if (domElement.getAttribute('stroke') && domElement.getAttribute('stroke') !== 'none') {
largestStrokeWidth = Math.max(largestStrokeWidth, 1);
}
if (domElement.getAttribute('stroke-width')) {
Expand Down

0 comments on commit 6f81e0d

Please sign in to comment.