Remove path data usage in clipPath

Remove path data usage in clipPath.
Use clipPath in SVG way
This commit is contained in:
Horcrux
2017-01-07 23:17:10 +08:00
parent 609226d732
commit 152e839126
9 changed files with 67 additions and 84 deletions
+2 -2
View File
@@ -15,9 +15,9 @@ export default function (props) {
let matched = clipPath.match(clipReg);
if (matched) {
clippingProps.clipPathRef = matched[1];
clippingProps.clipPath = matched[1];
} else {
clippingProps.clipPath = clipPath;
console.warn('Invalid `clipPath` prop, expected a clipPath like `"#id"`, but got: "' + clipPath + '"');
}
}