INNER CODE UNIT · JavaScript

y

lh3/gfatools · js/gfa-plot.js:175

		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);
			var k = sub.a[sub.v[i].off + j].i;
			ctx.lineTo(pos[k].cx_st, pos[k].cy);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…