Lines Matching refs:scale

3354 	Editor.prototype.getMaxCanvasScale = function(w, h, scale)  argument
3358 return Math.min(scale, Math.min(max / w, max / h));
3365 ignoreSelection, scale, transparentBackground, addShadow, converter, graph, border, noCrop, grid, argument
3408 scale = (scale != null) ? scale : 1;
3412scale = (!limitHeight) ? width / w : Math.min(1, Math.min((width * 3) / (h * 4), width / w));
3415 scale = this.getMaxCanvasScale(w, h, scale);
3416 w = Math.ceil(scale * w);
3417 h = Math.ceil(scale * h);
3431 if (scale != 1)
3433 ctx.scale(scale, scale);
3457 var curViewScale = view.scale;
3458 … view.scale = 1; //Reset the scale temporary to generate unscaled grid image which is then scaled
3460 view.scale = curViewScale;
3462 var phase = graph.gridSize * view.gridSteps * scale;
3476 var x = -Math.round(phase - mxUtils.mod((tx - x0) * scale, phase));
3477 var y = -Math.round(phase - mxUtils.mod((ty - y0) * scale, phase));
3483 ctx.drawImage(background, i / scale, j / scale);
6503 Graph.prototype.getSvg = function(background, scale, border, nocrop, crisp, argument
8091 var prevViewScale = thisGraph.view.scale;
8099 thisGraph.view.scale = 1;
8109 var scale = 1 / thisGraph.pageScale;
8117 scale = Math.min((pf.height * v) / (gb.height / thisGraph.view.scale),
8118 (pf.width * h) / (gb.width / thisGraph.view.scale));
8122 scale = parseInt(zoomInput.value) / (100 * thisGraph.pageScale);
8124 if (isNaN(scale))
8135 scale *= printScale;
8151 pv = PrintDialog.createPrintPreview(thisGraph, scale, pf, border, x0, y0, autoOrigin);
8282 pv.appendGraph(thisGraph, scale, x0, y0, forcePageBreaks, true);
8318 thisGraph.view.scale = prevViewScale;