import value from svg

This commit is contained in:
Andrea Bogazzi 2019-02-17 22:26:16 +01:00
parent 1eb8067741
commit ad33bf38d0

View file

@ -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;