strokeDash => strokeDasharray

This commit is contained in:
Horcrux
2016-04-23 15:28:32 +08:00
parent b144bd23fc
commit 70a9473b5f
6 changed files with 17 additions and 18 deletions
+1 -2
View File
@@ -38,13 +38,12 @@ function strokeFilter(props, dimensions) {
}
// TODO: dashoffset
// TODO: propTypes check
return {
stroke: patterns(stroke, +props.strokeOpacity, dimensions, props.svgId),
strokeLinecap: caps[props.strokeLinecap] || 0,
strokeLinejoin: joins[props.strokeLinejoin] || 0,
strokeDash: strokeDasharray || null,
strokeDasharray: strokeDasharray || null,
strokeWidth: strokeWidth || 1,
strokeDashoffset: strokeDasharray ? (+props.strokeDashoffset || 0) : null
};