mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-05 20:34:45 +00:00
toDataURL via StaticCanvas
Fix for `toDataURL` not working without interaction module (issue #1891)
This commit is contained in:
parent
2a32992f02
commit
0a52d59239
1 changed files with 1 additions and 1 deletions
|
|
@ -1200,7 +1200,7 @@
|
|||
el.height = boundingRect.height;
|
||||
|
||||
fabric.util.wrapElement(el, 'div');
|
||||
var canvas = new fabric.Canvas(el);
|
||||
var canvas = new fabric.StaticCanvas(el);
|
||||
|
||||
// to avoid common confusion https://github.com/kangax/fabric.js/issues/806
|
||||
if (options.format === 'jpg') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue