Commit ab56018b authored by jgould's avatar jgould

png snapshot on retina

parent 382e0a7a
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -2937,15 +2937,11 @@ morpheus.HeatMap.prototype = { ...@@ -2937,15 +2937,11 @@ morpheus.HeatMap.prototype = {
saveAs(blob, file, true); saveAs(blob, file, true);
} else { } else {
var canvas = $('<canvas></canvas>')[0]; var canvas = $('<canvas></canvas>')[0];
var backingScale = morpheus.CanvasUtil.BACKING_SCALE; var height = bounds.height;
var height = bounds.height * backingScale; var width = bounds.width;
var width = bounds.width * backingScale;
canvas.height = height; canvas.height = height;
canvas.style.height = bounds.height + 'px';
canvas.width = width; canvas.width = width;
canvas.style.width = bounds.width + 'px';
var context = canvas.getContext('2d'); var context = canvas.getContext('2d');
morpheus.Util.resetTransform(context);
this.snapshot(context); this.snapshot(context);
canvas.toBlob(function (blob) { canvas.toBlob(function (blob) {
if (blob.size === 0) { if (blob.size === 0) {
......
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