mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-03 23:16:13 +00:00
add ClipPath element support
This commit is contained in:
+7
-1
@@ -16,10 +16,16 @@ class Circle extends Component{
|
||||
cy: 0
|
||||
};
|
||||
|
||||
static getPath = props => Ellipse.getPath({
|
||||
cx: props.cx,
|
||||
cy: props.cy,
|
||||
rx: props.r,
|
||||
ry: props.r
|
||||
});
|
||||
|
||||
render() {
|
||||
return <Ellipse
|
||||
{...this.props}
|
||||
r={null}
|
||||
rx={+this.props.r}
|
||||
ry={+this.props.r}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user