Commit f3122169 authored by Joshua Gould's avatar Joshua Gould

save image retina

parent d6b420e1
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2876,7 +2876,9 @@ morpheus.HeatMap.prototype = {
canvas.style.height = bounds.height + 'px';
canvas.width = width;
canvas.style.width = bounds.width + 'px';
this.snapshot(canvas.getContext('2d'));
var context = canvas.getContext('2d');
morpheus.Util.resetTransform(context);
this.snapshot(context);
canvas.toBlob(function (blob) {
if (blob.size === 0) {
throw 'Image is too large.';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment