mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-13 00:03:10 +00:00
fixed error in image render (#3975)
This commit is contained in:
parent
6476506a3c
commit
ec2a716344
4 changed files with 6 additions and 7 deletions
3
dist/fabric.js
vendored
3
dist/fabric.js
vendored
|
|
@ -18792,7 +18792,7 @@ fabric.util.object.extend(fabric.Object.prototype, /** @lends fabric.Object.prot
|
|||
ctx.clip();
|
||||
}
|
||||
|
||||
if (this.isMoving === false && this.resizeFilters.length && this._needsResize()) {
|
||||
if (this.isMoving === false && this.resizeFilter && this._needsResize()) {
|
||||
this._lastScaleX = this.scaleX;
|
||||
this._lastScaleY = this.scaleY;
|
||||
this.applyResizeFilters();
|
||||
|
|
@ -27393,4 +27393,3 @@ fabric.util.object.extend(fabric.IText.prototype, /** @lends fabric.IText.protot
|
|||
}
|
||||
|
||||
})();
|
||||
|
||||
|
|
|
|||
4
dist/fabric.min.js
vendored
4
dist/fabric.min.js
vendored
File diff suppressed because one or more lines are too long
4
dist/fabric.require.js
vendored
4
dist/fabric.require.js
vendored
|
|
@ -9032,7 +9032,7 @@ fabric.util.object.extend(fabric.Object.prototype, {
|
|||
ctx.rect(x, y, this.width, this.height);
|
||||
ctx.clip();
|
||||
}
|
||||
if (this.isMoving === false && this.resizeFilters.length && this._needsResize()) {
|
||||
if (this.isMoving === false && this.resizeFilter && this._needsResize()) {
|
||||
this._lastScaleX = this.scaleX;
|
||||
this._lastScaleY = this.scaleY;
|
||||
this.applyResizeFilters();
|
||||
|
|
@ -13077,4 +13077,4 @@ if (typeof define === "function" && define.amd) {
|
|||
define([], function() {
|
||||
return fabric;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -473,7 +473,7 @@
|
|||
ctx.clip();
|
||||
}
|
||||
|
||||
if (this.isMoving === false && this.resizeFilters.length && this._needsResize()) {
|
||||
if (this.isMoving === false && this.resizeFilter && this._needsResize()) {
|
||||
this._lastScaleX = this.scaleX;
|
||||
this._lastScaleY = this.scaleY;
|
||||
this.applyResizeFilters();
|
||||
|
|
|
|||
Loading…
Reference in a new issue