From ad33bf38d04e6dcf469f93bf6403c41dbbf25b79 Mon Sep 17 00:00:00 2001 From: Andrea Bogazzi Date: Sun, 17 Feb 2019 22:26:16 +0100 Subject: [PATCH] import value from svg --- src/parser.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/parser.js b/src/parser.js index 2f0b5da9..85d3b17b 100644 --- a/src/parser.js +++ b/src/parser.js @@ -49,6 +49,7 @@ opacity: 'opacity', 'clip-path': 'clipPath', 'clip-rule': 'clipRule', + 'vector-effect': 'strokeUniform' }, colorAttributes = { @@ -80,6 +81,9 @@ if ((attr === 'fill' || attr === 'stroke') && value === 'none') { value = ''; } + else if (attr === 'vector-effect') { + value = value === 'non-scaling-stroke'; + } else if (attr === 'strokeDashArray') { if (value === 'none') { value = null;