clipPathId => clipPathRef

This commit is contained in:
Horcrux
2016-07-19 09:34:27 +08:00
parent efa7363b6f
commit d610729208
10 changed files with 34 additions and 34 deletions
@@ -87,16 +87,16 @@ public class RNSVGSvgViewShadowNode extends LayoutShadowNode {
return viewTag;
}
public void defineClipPath(Path clipPath, String clipPathId) {
mDefinedClipPaths.put(clipPathId, clipPath);
public void defineClipPath(Path clipPath, String clipPathRef) {
mDefinedClipPaths.put(clipPathRef, clipPath);
}
// TODO: remove unmounted clipPath
public void removeClipPath(String clipPathId) {
mDefinedClipPaths.remove(clipPathId);
public void removeClipPath(String clipPathRef) {
mDefinedClipPaths.remove(clipPathRef);
}
public Path getDefinedClipPath(String clipPathId) {
return mDefinedClipPaths.get(clipPathId);
public Path getDefinedClipPath(String clipPathRef) {
return mDefinedClipPaths.get(clipPathRef);
}
}
@@ -111,9 +111,9 @@ public abstract class RNSVGVirtualNode extends LayoutShadowNode {
markUpdated();
}
@ReactProp(name = "clipPathId")
public void setClipPathId(String clipPathId) {
mClipPathId = clipPathId;
@ReactProp(name = "clipPathRef")
public void setClipPathId(String clipPathRef) {
mClipPathId = clipPathRef;
markUpdated();
}