mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-12 07:43:11 +00:00
Transform matrix and isInPathGroup fix for images
This commit is contained in:
parent
d8c944e593
commit
ce786cc3ad
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue