Fix memory issue with ClipPath

Fix memory issue with ClipPath.
This commit is contained in:
Horcrux
2016-11-11 13:25:16 +08:00
parent aae482236d
commit 0434cddc8b
15 changed files with 77 additions and 80 deletions
+1 -4
View File
@@ -46,10 +46,7 @@ const NodeAttributes = {
},
opacity: true,
clipRule: true,
clipPathRef: true,
clipPath: {
diff: arrayDiffer
},
clipPath: true,
propList: {
diff: arrayDiffer
},
+1 -3
View File
@@ -16,9 +16,7 @@ export default function (props) {
let matched = clipPath.match(clipReg);
if (matched) {
clippingProps.clipPathRef = matched[1];
} else {
clippingProps.clipPath = new SerializablePath(clipPath).toJSON();
clippingProps.clipPath = matched[1];
}
}