Skip to content

Commit

Permalink
fix(android): default cap, join and handling of null matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
msand committed Mar 7, 2020
1 parent 0e17501 commit df4ff9c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions android/src/main/java/com/horcrux/svg/RenderableView.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ abstract public class RenderableView extends VirtualView {
public float strokeMiterlimit = 4;
public float strokeDashoffset = 0;

public Paint.Cap strokeLinecap = Paint.Cap.ROUND;
public Paint.Join strokeLinejoin = Paint.Join.ROUND;
public Paint.Cap strokeLinecap = Paint.Cap.BUTT;
public Paint.Join strokeLinejoin = Paint.Join.MITER;

public @Nullable ReadableArray fill;
public float fillOpacity = 1;
Expand Down
6 changes: 3 additions & 3 deletions android/src/main/java/com/horcrux/svg/VirtualView.java
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,9 @@ public void setMatrix(Dynamic matrixArray) {
FLog.w(ReactConstants.TAG, "RNSVG: Transform matrices must be of size 6");
}
} else {
mMatrix = null;
mInvMatrix = null;
mInvertible = false;
mMatrix.reset();
mInvMatrix.reset();
mInvertible = true;
}

super.invalidate();
Expand Down

0 comments on commit df4ff9c

Please sign in to comment.