-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
Description
I'm specifically referring to this commit and line:
EaselJS/src/easeljs/geom/Matrix2D.js
Line 392 in 3ed3b89
| p.translate = function(x, y) { |
When I revert the translate method to what it was in previous versions things display correctly:
this.tx += x;
this.ty += y;
Here is the bit of code we're using, that given the same data input produces different matrix values between versions:
var ms = shape.getMatrix();
var sx = data.w / spriteBounds.width;
var sy = data.h / spriteBounds.height;
ms.scale(sx, sy);
ms.translate(-data.w / 2, -data.h / 2);
ms.rotate(data.rot * Math.PI / 180);
Any thoughts on why this might be happening?