Ensure strokeWidth is string

This commit is contained in:
Mikael Sand
2017-07-25 22:37:13 +03:00
parent 54efe3ad1e
commit a8fdf64828
+1 -1
View File
@@ -49,7 +49,7 @@ export default function(props, styleProperties) {
strokeLinecap: caps[props.strokeLinecap] || 0,
strokeLinejoin: joins[props.strokeLinejoin] || 0,
strokeDasharray: strokeDasharray,
strokeWidth: strokeWidth || '1',
strokeWidth: `${strokeWidth || 1}`,
strokeDashoffset: strokeDasharray ? (+props.strokeDashoffset || 0) : null,
strokeMiterlimit: props.strokeMiterlimit || 4
};