INNER CODE UNIT · JavaScript
x
lh3/gfatools · js/gfa-plot.js:173
var x = pos[i].cx_en + conf.xskip;
max_w = max_w > x? max_w : x;
var y = pos[i].cy + conf.yskip;
max_h = max_h > y? max_h : y;
}
gfa_canvas_hi_res(canvas, max_w, max_h);
ctx = canvas.getContext("2d");
ctx.translate(0.5, 0.5);
var r2c = gfa_plot_rank2color(g);
// draw edges
ctx.globalAlpha = 0.8;
for (var i = 0; i < pos.length; ++i) {
for (var j = 0; j < sub.v[i].n; ++j) {
ctx.beginPath();
ctx.moveTo(pos[i].cx_en, pos[i].cy);