INNER CODE UNIT · JavaScript
ry
hms-dbmi/scde · web/pathcl_canvas.js:242
var ry=Math.floor((my-hc.hmtop(data))/hc.hmheight(data,s.height)*data.matrix.dim[0]);
//my=hc.hmtop(data)+(ry+0.5)*hc.hmheight(data,s.height)/data.matrix.dim[0];
evctx.moveTo(hc.margins.left,my); evctx.lineTo(s.width-hc.margins.right,my);
var rx=Math.floor((mx-hc.hmleft())/hc.hmwidth(s.width)*data.matrix.dim[1]);
// update the line in the cluster panel
clusterPanel.evctx.beginPath();
clusterPanel.evctx.moveTo(mx,hc.cctop(clusterPanel.pathcldata))
clusterPanel.evctx.lineTo(mx,v.height-hc.margins.bottom)
clusterPanel.evctx.stroke();
if(mx>s.width/2) {
evctx.textAlign="end"; mx-=5;
} else {
evctx.textAlign="start"; mx+=5;
}
evctx.textBaseline="bottom";
evctx.fillText("cell: "+data.matrix.cols[rx],mx,my-3);