fix(android): fix radial gradient vertical center offset scaling

This commit is contained in:
Mikael Sand
2020-01-04 06:06:11 +02:00
parent 36c20b3763
commit d5bddd5e2d
@@ -204,7 +204,7 @@ class Brush {
double ratio = ry / rx;
double cx = getVal(mPoints[4], width, scale, textSize) + offsetX;
double cy = getVal(mPoints[5], height, scale, textSize) + offsetY / ratio;
double cy = getVal(mPoints[5], height / ratio, scale, textSize) + offsetY / ratio;
// TODO: support focus point.
//double fx = PropHelper.fromRelative(mPoints[0], width, offsetX, scale);