add ClipPath element support

This commit is contained in:
Horcrux
2016-04-21 17:55:18 +08:00
parent 7859813eac
commit 7d3ef84163
14 changed files with 197 additions and 60 deletions
+7 -1
View File
@@ -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}
/>