fix(android): default cap, join and handling of null matrix

This commit is contained in:
Mikael Sand
2020-03-07 18:15:28 +02:00
parent 0e17501abb
commit df4ff9caa7
2 changed files with 5 additions and 5 deletions
@@ -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;
@@ -318,9 +318,9 @@ abstract public class VirtualView extends ReactViewGroup {
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();