mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-04 15:44:24 +00:00
add dashoffset support
This commit is contained in:
@@ -45,12 +45,14 @@ function strokeFilter(props, dimensions) {
|
||||
strokeLinecap: caps[props.strokeLinecap] || 0,
|
||||
strokeLinejoin: joins[props.strokeLinejoin] || 0,
|
||||
strokeDash: strokeDasharray || null,
|
||||
strokeWidth: strokeWidth || 1
|
||||
strokeWidth: strokeWidth || 1,
|
||||
strokeDashoffset: strokeDasharray ? (+props.strokeDashoffset || 0) : null
|
||||
};
|
||||
}
|
||||
|
||||
export default function(props, dimensions) {
|
||||
let strokeProps = strokeFilter(props, dimensions);
|
||||
|
||||
return strokeProps ? {
|
||||
...strokeProps,
|
||||
stroke: extractBrush(strokeProps.stroke, props)
|
||||
|
||||
Reference in New Issue
Block a user