snowkit/differ

Unexpected behaviour when using Shape.scaleX and Shape.scaleY properties.

Closed this issue · 2 comments

When using the scaleX and scaleY properties, polygons seems to be incorrectly transformed. When examining transformed vertices of a polygon, it appears that scale transformation is applied for both X and Y, even when only one of the scaleX/Y properties are used.
So, when using myPolygon.scaleX = 0.5; scale is set to {0.5, 1}.
When using myPolygon.scaleY = 0.5; scale is actually set to {0.5, 0.5} but applied to the transformation matrix twice.

Will look into it, thanks for the report. If you find any breadcrumbs or have ideas let us know :)

Fixed in 6d70178