mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-06 16:32:24 +00:00
clipPathId => clipPathRef
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user