Re: Export to HTML5 plug-in
Code: Select all
var canvas = document.getElementById("viewerCanvas");
if (windowWidth < windowHeight * widthByHeightRatio) {
canvas.width = 0.9 * windowWidth;
canvas.height = 0.9 * windowWidth / widthByHeightRatio;
} else {
canvas.height = 0.9 * windowHeight;
canvas.width = 0.9 * windowHeight * widthByHeightRatio;
}
Code: Select all
var canvas = document.getElementById("viewerCanvas");
canvas.width = pageWidth;
canvas.height = pageHeight;