INNER CODE UNIT · JavaScript
gfa_canvas_hi_res
lh3/gfatools · js/gfa-plot.js:16
function gfa_canvas_hi_res(canvas, width, height)
{
ratio = window.devicePixelRatio;
canvas.width = width * ratio;
canvas.height = height * ratio;
canvas.style.width = width + "px";
canvas.style.height = height + "px";
canvas.getContext("2d").scale(ratio, ratio);
}
var gfa_conf = gfa_plot_conf();
var gfa_obj = null;
function gfa_plot_arrow(ctx, x, y, len, w, rev, text, fs, color_stroke, color_fill)
{
ctx.font = fs? fs + "px monospace" : "9px monospace";
var reg = new Path2D();
reg.moveTo(x, y);