mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-14 03:10:59 +00:00
add transform matrix to render method, reset image width and height
This commit is contained in:
parent
90d7f7acf3
commit
2a22e1dba6
1 changed files with 5 additions and 0 deletions
|
|
@ -131,6 +131,11 @@
|
|||
*/
|
||||
render: function(ctx, noTransform) {
|
||||
ctx.save();
|
||||
var m = this.transformMatrix;
|
||||
this._resetWidthHeight();
|
||||
if (m) {
|
||||
ctx.transform(m[0], m[1], m[2], m[3], m[4], m[5]);
|
||||
}
|
||||
if (!noTransform) {
|
||||
this.transform(ctx);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue