mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-04 03:44:45 +00:00
removed with dims (#4453)
This commit is contained in:
parent
61c415be26
commit
d65b5dd5a1
1 changed files with 10 additions and 1 deletions
|
|
@ -990,7 +990,7 @@
|
|||
this.drawCacheOnCanvas(ctx);
|
||||
}
|
||||
else {
|
||||
this._cacheCanvas = null;
|
||||
this._removeCacheCanvas();
|
||||
this.dirty = false;
|
||||
this.drawObject(ctx);
|
||||
if (this.objectCaching && this.statefullCache) {
|
||||
|
|
@ -1001,6 +1001,15 @@
|
|||
ctx.restore();
|
||||
},
|
||||
|
||||
/**
|
||||
* Remove cacheCanvas and its dimensions from the objects
|
||||
*/
|
||||
_removeCacheCanvas: function() {
|
||||
this._cacheCanvas = null;
|
||||
this.cacheWidth = 0;
|
||||
this.cacheHeight = 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* When set to `true`, force the object to have its own cache, even if it is inside a group
|
||||
* it may be needed when your object behave in a particular way on the cache and always needs
|
||||
|
|
|
|||
Loading…
Reference in a new issue