Lines Matching +defs:n +defs:y
8 function build_grid(){var i,k,l,line,bl,bar,w,hr,x0,x,y,yl,cl,cell,lc='',path='<path class="stroke" stroke-width="1" d="M',sf='" style="font-size:'+(font.size*.72).toFixed(1)+'px'
9 function build_ch(cl,x,y,n){return'<text class="'+cl+'" x="'+
10 x.toFixed(1)+'" y="'+y.toFixed(1)+'">'+
11 cell[n]+'</text>\n'}
12 function build_cell(cell,x,y,yl,hr){var line
16 wc.toFixed(1)+' -'+hr.toFixed(1)+'"/>\n'
20 (wc/2).toFixed(1)+' '+(hr/2).toFixed(1)+'"/>\n'+
21 build_ch(cls+sf,x-wc/3,y,0)+
22 build_ch(cls+sf,x,y-hr*.32,1)}else{line+=build_ch(cls+sf,x-wc*.2,y-hr/4,0)}
26 (wc/2).toFixed(1)+' '+(hr/2).toFixed(1)+'"/>\n'+
27 build_ch(cls+sf,x,y+hr*.3,2)+
28 build_ch(cls+sf,x+wc/3,y,3)}else{line+=build_ch(cls+sf,x+wc*.2,y+hr/4,2)}}}else{line=build_ch(cls,x,y,0)}
35 y=3-font.size*.7
40 y+=hr
46 lc+=build_cell(cell,x,y,yl,hr)
48 line='<path class="stroke" d="\n'
49 y=3
50 for(i=0;i<=nr;i++){line+='M'+x0.toFixed(1)+' '+y.toFixed(1)+'h'+w.toFixed(1)+'\n'
51 y+=hr}
53 for(i=0;i<=nc;i++){line+='M'+x.toFixed(1)+' 3v'+(hr*nr).toFixed(1)+'\n'
55 line+='"/>\n'
57 y=3-font.size*.7
62 y+=hr
68 (x-5).toFixed(1)+'" y="'+y.toFixed(1)+'" style="font-weight:bold;font-size:'+
69 (font.size*1.6).toFixed(1)+'px">:</text>\n'
72 (x+5).toFixed(1)+'" y="'+y.toFixed(1)+'" style="font-weight:bold;font-size:'+
73 (font.size*1.6).toFixed(1)+'px">:</text>\n'
82 abc.add_style("\n.mid {text-anchor:middle}")
84 txt=txt.split('\n')
144 t=t.split('\n')