Transform matrix and isInPathGroup fix for images

This commit is contained in:
Grzegorz Godlewski 2014-04-28 21:37:52 +02:00
parent d8c944e593
commit ce786cc3ad

View file

@ -128,7 +128,7 @@
// this._resetWidthHeight();
if (isInPathGroup) {
ctx.translate(-this.group.width/2 + this.width/2, -this.group.height/2 + this.height/2);
ctx.translate(-this.group.width/2, -this.group.height/2);
}
if (m) {
ctx.transform(m[0], m[1], m[2], m[3], m[4], m[5]);
@ -136,6 +136,9 @@
if (!noTransform) {
this.transform(ctx);
}
if (isInPathGroup) {
ctx.translate(this.width/2, this.height/2);
}
ctx.save();
this._setShadow(ctx);