mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-31 13:52:58 +00:00
fix(android): default cap, join and handling of null matrix
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user