mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-16 17:51:07 +00:00
Clear top context in toDataURL* methods. Closes #399
This commit is contained in:
parent
90b383246f
commit
268dbb2114
1 changed files with 3 additions and 0 deletions
|
|
@ -688,6 +688,8 @@
|
|||
var data = (fabric.StaticCanvas.supports('toDataURLWithQuality'))
|
||||
? canvasEl.toDataURL('image/' + format, quality)
|
||||
: canvasEl.toDataURL('image/' + format);
|
||||
|
||||
this.contextTop && this.clearContext(this.contextTop);
|
||||
this.renderAll();
|
||||
return data;
|
||||
},
|
||||
|
|
@ -741,6 +743,7 @@
|
|||
this.setActiveObject(activeObject);
|
||||
}
|
||||
|
||||
this.contextTop && this.clearContext(this.contextTop);
|
||||
this.renderAll();
|
||||
|
||||
return dataURL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue