From 6f81e0df88b46faae7ac3d239bad4ea799e3aec3 Mon Sep 17 00:00:00 2001 From: adroitwhiz Date: Thu, 16 May 2019 17:41:07 -0400 Subject: [PATCH] Fix _findLargestStrokeWidth to avoid regression --- src/svg-renderer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/svg-renderer.js b/src/svg-renderer.js index b0e8ef99..ee8024ab 100644 --- a/src/svg-renderer.js +++ b/src/svg-renderer.js @@ -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')) {