mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-20 14:05:09 +00:00
support stroke in pattern.
support stroke="url(#pattern)"
This commit is contained in:
@@ -14,16 +14,18 @@ export default function(props, options = {stroke: true, join: true, transform: t
|
||||
opacity: +props.opacity || 1
|
||||
};
|
||||
|
||||
let dimensions = this.getBoundingBox ? this.getBoundingBox() : null;
|
||||
|
||||
if (props.clipPath) {
|
||||
_.assign(extractedProps, extractClipping(props));
|
||||
}
|
||||
|
||||
if (options.stroke) {
|
||||
_.assign(extractedProps, extractStroke(props));
|
||||
_.assign(extractedProps, extractStroke(props, dimensions));
|
||||
}
|
||||
|
||||
if (options.fill) {
|
||||
_.assign(extractedProps, extractFill.call(this, props));
|
||||
_.assign(extractedProps, extractFill(props, dimensions));
|
||||
}
|
||||
|
||||
if (options.transform) {
|
||||
|
||||
Reference in New Issue
Block a user