mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-29 21:25:00 +00:00
Merge remote-tracking branch 'max/touches-group-use'
This commit is contained in:
@@ -73,6 +73,24 @@ class UseShadowNode extends RenderableShadowNode {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hitTest(float[] src) {
|
||||
if (!mInvertible) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
float[] dst = new float[2];
|
||||
mInvMatrix.mapPoints(dst, src);
|
||||
|
||||
VirtualNode template = getSvgShadowNode().getDefinedTemplate(mHref);
|
||||
int hitChild = template.hitTest(dst);
|
||||
if (hitChild != -1) {
|
||||
return (template.isResponsible() || hitChild != template.getReactTag()) ? hitChild : getReactTag();
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Path getPath(Canvas canvas, Paint paint) {
|
||||
// todo:
|
||||
|
||||
Reference in New Issue
Block a user