Skip to content

Commit

Permalink
Revert "feat: make RenderableView.hitTest public to create a cross-…
Browse files Browse the repository at this point in the history
…library interface (#2555)"

This reverts commit 01db444.
  • Loading branch information
latekvo committed Dec 19, 2024
1 parent 45d8a9e commit 86de2c1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion android/src/main/java/com/horcrux/svg/ClipPathView.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ boolean isResponsible() {
}

@Override
public int hitTest(float[] src) {
int hitTest(float[] src) {
return -1;
}

Expand Down
2 changes: 1 addition & 1 deletion android/src/main/java/com/horcrux/svg/GroupView.java
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ Path getPath(final Canvas canvas, final Paint paint, final Region.Op op) {
}

@Override
public int hitTest(final float[] src) {
int hitTest(final float[] src) {
if (!mInvertible) {
return -1;
}
Expand Down
2 changes: 1 addition & 1 deletion android/src/main/java/com/horcrux/svg/RenderableView.java
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ private void setupPaint(Paint paint, float opacity, ReadableArray colors) {
abstract Path getPath(Canvas canvas, Paint paint);

@Override
public int hitTest(final float[] src) {
int hitTest(final float[] src) {
if (mPath == null || !mInvertible) {
return -1;
}
Expand Down
2 changes: 1 addition & 1 deletion android/src/main/java/com/horcrux/svg/TSpanView.java
Original file line number Diff line number Diff line change
Expand Up @@ -1208,7 +1208,7 @@ private void setupTextPath() {
}

@Override
public int hitTest(final float[] src) {
int hitTest(final float[] src) {
if (mContent == null) {
return super.hitTest(src);
}
Expand Down
2 changes: 1 addition & 1 deletion android/src/main/java/com/horcrux/svg/UseView.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ void draw(Canvas canvas, Paint paint, float opacity) {
}

@Override
public int hitTest(float[] src) {
int hitTest(float[] src) {
if (!mInvertible) {
return -1;
}
Expand Down

0 comments on commit 86de2c1

Please sign in to comment.