mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-07 16:54:52 +00:00
fixes #104 by resetting the matrix at each draw to prevent applying the transforms on top of the previous transforms
This commit is contained in:
@@ -159,6 +159,7 @@ public class RNSVGViewBoxShadowNode extends RNSVGGroupShadowNode {
|
||||
|
||||
}
|
||||
|
||||
mMatrix.reset();
|
||||
mMatrix.postScale(scaleX, scaleY);
|
||||
mMatrix.postTranslate(-translateX * (mFromSymbol ? scaleX : 1), -translateY * (mFromSymbol ? scaleY : 1));
|
||||
super.draw(canvas, paint, opacity);
|
||||
|
||||
Reference in New Issue
Block a user