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:
steve
2016-08-04 15:02:24 +01:00
parent 5482a667ca
commit 5bc6744634
@@ -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);