PluginProbe
E2Pdf – Export Pdf Tool for WordPress / 1.32.55
E2Pdf – Export Pdf Tool for WordPress v1.32.55
1.32.55 1.32.56 1.32.53 1.32.51 1.32.49 1.32.48 1.32.43 1.32.40 1.32.34 1.32.32 1.32.31 1.32.26 1.32.22 1.32.23 1.32.18 1.32.17 1.32.15 trunk 1.00.00 1.00.13 1.01.01 1.02.02 1.03.07 1.04.07 1.05.03 All 76 releases
e2pdf / vendors / svggraph / templates / texttt.txt

texttt.txt in E2Pdf – Export Pdf Tool for WordPress 1.32.55, at vendors/svggraph/templates/texttt.txt

29 lines 834 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 function texttt(e,tt,on,t){
2 var ttt = getE('tooltiptext'), lines, i, ts, xpos;
3 if(on) {
4 lines = t.split('\\n');
5 xpos = '{$number:padding}px';
6 if(!ttt) {
7 ttt = newel('g', {
8 id: 'tooltiptext',
9 fill: '{$string:colour}',
10 'font-size': '{$number:font_size}px',
11 'font-family': '{$string:font}',
12 'font-weight': '{$string:font_weight}',
13 'text-anchor': '{$string:anchor}'
14 });
15 tt.appendChild(ttt);
16 }
17 while(ttt.childNodes.length > 0)
18 ttt.removeChild(ttt.childNodes[0]);
19 for(i = 0; i < lines.length; ++i) {
20 ts = newel('text', { y: {$number:ttoffset} + ({$number:tty} * i) + 'px' });
21 ts.appendChild(newtext(lines[i]));
22 ts.innerHTML = ts.textContent;
23 ttt.appendChild(ts);
24 }
25 }
26 ttt && showhide(ttt,on);
27 return ttt;
28 }
29