toDataURL via StaticCanvas

Fix for `toDataURL` not working without interaction module (issue #1891)
This commit is contained in:
Shaw 2014-12-12 13:10:59 -06:00
parent 2a32992f02
commit 0a52d59239

View file

@ -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') {