annotate test-data/centrifuge_test/test4_tsv.html @ 6:d4fbfd31696c draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tools/recentrifuge commit 42b2d78b4badb653e84e15de35024368d48fce9b
author iuc
date Mon, 29 Jul 2024 07:03:15 +0000
parents 12f0968f171c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta charset="utf-8"><link rel="shortcut icon" href="data:image/x-icon;base64,AAABAAMAEBAAAAEAIABoBAAANgAAABgYAAABACAAiAkAAJ4EAAAgIAAAAQAgAKgQAAAmDgAAKAAAABAAAAAgAAAAAQAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///wCAgIAC////AP///wC0tKJHlZWSqI6OmuRxcXn9koaK9J2Ym8uNm5V73PPoFv///wAAAAAD////AP///wCAgIAC////AP//7xCHh4OodHSi/2xqw/9nZ9H/XVuU/9eFqv/njb7/yYiq/5GAiOifqKJV////AAAAAAL///8A////AO3t2w56eoHPdHLH/3Vz3vx4dtz7dXTb/mVimv/XhKn/8ZPG/fSVx/vvlcT/kG+E/32Himb///8AAAAAA////wB0dHageHbO/3585fl5d9r/dnTX/3V02/5mYpz80X2i/eaIuv/ukcD/wXak/I6Maf+OkXD9iIKjL////wCEhFo+c3Kv/4F+6P18etz/e3nd/3l33P57eeT/aWag/9F5oP/sib3+tmuZ/3uEXf/P1YX7zdKG/3x9dbX///8Ac3J9nYKA4f+CgOb7fnzf/3174P58et//bm2v8Vtgc7SdbIHNqWmM/4aLZP/L0YT/0dWH/tfdiP+go3P6YlyWJ3BvmduGg+n/g4Hk/oF+4/6AfuX/bm2k7pCUUUX///8Ajv/jCVBmXqPBxoH/1NmI/c7Uhf/b4Yn9wMWB/2BdcGBraqX6iYbs/4SB5P+Eguj7hYPm/2Vlcov///8AACRtB////wAAAIAWrLB29uHojv/X3on+3eSK+9PYh/9XWVN7bWum+ouI7/+Gg+f/hoTq+4iF6f9lZXKL////ACQAbQf///8AAABoFoF+Xva0snL/y818/uDmiPvZ34n/WVlTe3Jxm9uMiu//iofr/oiG6f6Jhu3/cnGo7oyQQ0X///8A/znjCXF8dKNotpL/Za2O/WuVe/+FkGv9mJ5w/2pqaGBzc3+djYrr/42K8fuKh+v/i4js/oqH6/93dbfxYmJztGaTec1yxJr/gOGu/4nptf+K6Lf+i+q8/2eXhfqDNG8ngIBKPnt6uP+Rjvf9jInr/4yJ7f+Miu3+jor0/25xoP920pz/gOGw/oHerv+H4rL/kPC9+5Ttvf98ioC1////AP///wB0dHSgioff/5SR+/mOi+7/jYvt/4+L8P5scJ78etKe/YXis/+H47P/kO+8/JLxv/92m4f9nXKNL////wD///8A7e3bDnt7hM+Ihdv/ko/4/JSS+PuUkPb+bnKg/4Lapv+Q7739kfO/+43puf9/qJH/mYeUZv///wAAAAADgICAAv///wD//+8QhoaBqIB/sf+Iht7/jYjw/2tvnf+D3Kf/ieS1/4bIpP+AkYfoqJOfVf///wAAAAAC////AP///wCAgIAC////AP///wCwsJdHlZWQqJORn+RzdHv9hZOK9Jecmcuej5l7/+jzFv///wAAAAAD////AP///wD4PwAA4A8AAMAHAACAAwAAgAEAAAABAAADgQAAA8EAAAPBAAADgQAAAAEAAIABAACAAwAAwAcAAOAPAAD4PwAAKAAAABgAAAAwAAAAAQAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///wD///8A////AP///wEAAAAB////AP///wi6urdDubmxj6ennsuQkIzvc3Nz/YSIh/WWoZzWrrezoLe6t1X///8T////AP///wCAgIAC////AP///wD///8A////AP///wD///8A////Af///wD///8Ax8fDQJeYkLV4eH39WlmM/19dpP9dX6b/WFRr/611j/+/fJ//om2I/4N3ff+Jko7Ntri2Xv///wD///8AgICAAv///wD///8A////AP///wD///8B////AP///wOfn5t9c3N29GRjn/9oZ8P/c3LU/XVy3P9rbdH/YVt8/9eIrv/5mcz/75bE/t+Mt/67epz/fnN5/4uTkKP///8W////AAAAAAL///8A////AP///wH///8A////A5iYkZJoaH3/bWvB/3h23Px4dt3+dHPX/3Rx1v9sbcv/YFp6/82ApP/rj8D/65DA//KVxv/1mcn83424/5t1iP98gX7A////F////wCAgIAC////AAAAAAL///8AkJCHdWZlf/9zcs7/fHrj/Hh32/92ddn/dXTX/3Zz2P9vcM//YFt7/8t9of/pi73/54u7/+eNvf/vk8P/7ZbE/pxsh/xLVU7/iomJqP///wD///8A////Af///wCfn5Y4ZmV07XZ0zv9+fOX8enjc/3p43P94dtv/dnXZ/3d12f9xcdD/YFp6/8h5nf/mh7r/44e3/+qMvf/ljrv/jV59/3F+V/68wH3/gYNp/4uIlWf///8AAAAAAv///wJ3d22pc3G6/4KA5/t9e9//fHre/3t53f96eNz/eHbZ/3l23P50dNb9Ylx+/ch2m/3jg7b+44W2/+CItv+NXXz/bnpW/8XIgv/Y3Yv8ur57/3Fxbtni4uIa////AHl5XTdoZ4b4f3zb/4F+5P5+fN//fXvf/3x63v96edz/ennf/nt54P9xccb/Xlxy/7Rvj//gf7P/3IKw/olZeP9te1b/xsqD/9DVh//P1IX/09iG/pWYcf9nZ3Nt////AISEb35ycLb/hYPr/YB+4f9/feH/fnzh/3173/99e+L+enjX/2dmmfhlZXiwYGBiknJkaqGVZ37pg11x/3eBXP7GyoP/0NWH/87Uhf/R1ob/2eCK+8HFff9tbXWv////BG9vdb16eMn/hYPq/4F/4/+BfuP/gH7i/4B94v59e93/Y2KO+ISEbX7y8uQT////AP///weAjo5aT1tP5L7Cf//T2Ij+ztOF/9HWhv/S14b/2d+K/s3Sgv+BgnLcg4OSI11deeaBf9r/hYPo/4OB5P+DgeX/gX/i/4OB6v10c77/cXFjmv///wL///8A////AP///wD///8AeHN9apuecP/U2Yf/0teG/tPZhv/V24f/2uCJ/tTahv+KjGj6AABINV9egfuGg+P/hoTp/4WC5v+EgeX/goDk/4WD6/1wbq//WFgAQ////wAzMzMFAAAAAVVVVQP///8AAABjEoiLZ/Df5Y7/2d+J/dfch//W3If/2d+H/9vhif6ZnW3/AAA5P19egvuHheX/iIXq/4eE6P+Gg+f/hILl/4eE7P1xb7D/WFgAQ////wAzMzMFAAAAAVVVVQP///8AAABVEnd1WvDEx37/y9GD/dnfif/g54z/4OeL/97kiv6anWz/AAA1P15eeuaFg93/ioft/4iF6f+Hhen/hoPn/4mG7/14d8L/cXFimv///wP///8A////AP///wD///8AenV3a1dyZf9QY1//bGVW/pORY/+trnD/xch7/tTZhP+Pkmn6AABINXBwdb1/fc7/jYry/4mH6v+Jhur/iIbp/4iG6/6Gg+X/Z2aT+IKEaX7y8uQT////AP///wiXgY9bXndp5HXLnv95z6P+dsif/2Wrjv9RcWv/Z3Rk/nyBYv9xcWbbfHyDI4SEa354d73/kI31/YuI6/+LiOz/iofr/4mG6v+Lh+3+hoPi/21soPhnZ3qwYGBikmNza6JhinXpcsWa/3vdq/6C4a//iOi1/4zpt/+O6Lf/kOu8+3O1l/9jVmKv////BHl5WDdraor4iofn/4+M8v6Miez/i4nt/4uI7P+LiOv/i4jt/ouJ8P9+e83/XGBt/223jv952aj/e9uq/n3aqv+D36//huKy/4rntv+Q7r3/lvTC/nupj/9zYmxt////AP///wJ3d2qpfXvF/5KP9vyNiu7/jYru/4yJ7f+Miu7/i4jr/46L8P6FgN79XmZ5/XTMm/1+3q7+f9ys/4Lgr/+G5LP/iue2/4zot/+V9cL8iNWs/3BxcNni4uIa////AP///wCfn5I4aGd17YeE3v+Ukfj8jovu/46L7/+Oi+//jYru/46M8f+FgNv/XmV3/3jMnf+D4rH/g+Cw/4fks/+K57b/jem4/5TywP6Q57n/bYh5/5KIjWf///8AAAAAAgAAAAL///8AkJCFdWtqhf+IheL/lZL5/JCN8P+PjO//j4zv/5GO8/+Hgt3/X2Z4/33Rof+I5rb/h+Sz/4nmtf+N6rn/lPPB/pHruvxxm4T/h3yDqP///wD///8A////Af///wH///8A////A5aWj5JtbIP/g4DW/5SR9vyVkvj+kY7y/5KP9P+Ig97/X2d4/4DUpf+N6rn/jeq4/5Lwvv+U88D8h9qu/3KVgv+Lgoe/////F////wCAgIAC////AP///wD///8B////AP///wOfn5l9dHR39HVzsf+Fg97/k4/x/ZiW/v+Nh+f/YWl7/4ngrv+W+MX/kuy8/onesP52uZb/dH54/5aOk6P///8W////AAAAAAL///8A////AP///wD///8A////Af///wD///8Ax8fDQJWVjbV5eX79amic/3h2vv93crf/WV9r/3W1kP95vZn/aZ2C/3eCfP+Ui5DNu7i7Xv///wD///8AgICAAv///wD///8A////AP///wD///8A////AP///wEAAAAB////AP///wi6urdDuLitj6WmmcuPj4rvc3Nz/YiEh/Whlp3Wt66zoLq3ulX///8T////AP///wD///8C////AP///wD///8A////AP8B/wD8AH8A+AAfAOAADwDgAAcAwAAHAIAAAwCAAAMAgAABAAB8AQAAfgEAAP4BAAD+AQAAfgEAAHwBAIAAAQCAAAMAgAADAMAABwDgAAcA4AAPAPgAHwD8AH8A/wH/ACgAAAAgAAAAQAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////KO3t7XXFxcWwqqqq25eXl/RwcHD9mJiY9Kurq9vHx8ew8PDwdf///yj///8A////AP///wD///8A////AP///wD///8A////AP///wD///8AAAAAAP///wD///8A////AP///wD///8A////AP///wD///8A9/f3TLS0tLpvb3H/UVFR/1VVWf9bW27/WVlz/1FRUf96ZG//c2Nr/1lWV/9RUVH/d3V2/7m5ubr5+flM////AP///wD///8A////AP///wD///8A////AP///wAAAAAA////AP///wD///8A////AP///wD///8A/f39HLW1tatbW13/V1de/2FgkP9rabv/cG7S/29u0/9paL7/UVFR/9GIrv/wlcX/75bE/8+Irf+ZcYb/XVhb/2FfYP+8vLyr/v7+HP///wD///8A////AP///wD///8A////AAAAAAD///8A////AP///wD///8A////AOvr60l2dnnpVVVZ/2ZlnP9ycdL/c3LW/3Jx1f9xcNT/cG/T/2ppvv9RUVH/zoSs/+yRwf/uk8L/7pPC/++UxP/pk8D/pXaP/1hVV/9/fn/p7+/vSf///wD///8A////AP///wD///8AAAAAAP///wD///8A////AP///wDg4OBWX19h/11dcv9zccr/d3XZ/3Z02P91c9f/dHLX/3Nx1v9xcNT/a2q//1FRUf/Ngqn/6o6+/+uQwP/tksH/7pPD/++Vxf/xl8b/3I64/3Jiav9lY2T/2dnZVv///wD///8A////AP///wAAAAAA////AP///wD///8A5OTkQ1tbXf9hYIH/eHfY/3l32/94dtr/d3ba/3Z12f90c9f/c3LW/3Nx1f9tbMH/UVFR/8l/pf/mirr/6Iy8/+mOvv/qj7//7JHB/++VxP/xl8b/04qx/1RUUv9ZWVj/6+vrQ////wD///8A////AAAAAAD///8A////APX19Q9mZmjfYF98/3t53P97ed3/enjc/3l32/93dtr/dnXZ/3Z02P91c9f/dXTY/25tw/9RUVH/yHyj/+WIuf/libn/54q7/+mNvf/rj7//7JHB/9WJsf9XVlX/Z2hb/3BxX/9vb23f+fn5D////wD///8AAAAAAP///wD///8AkZCSnFpaZ/97edn/fHre/3t53v97ed3/enjc/3l33P94dtv/dnXZ/3V02P92dNj/cG7D/1FRUf/FeaH/4oW2/+OGt//liLj/54q6/+mOvv/Sha3/V1VV/2doW//FyYL/xcqC/19fWf+fn5+c////AP///wAAAAAA////ANjY2DhRUVL/dXPA/3994f9+fOD/fXvf/3x63v97ed3/enjc/3l32/94dtr/eHba/3d12f9xb8T/UVFR/8J1nf/fgLH/4IOz/+KEtf/liLn/zoCq/1dVVf9naFr/w8eA/83Shf/P1Yb/q652/1JSUf/h4eE4////AAAAAAD///8Afn6ApWNigv+BfuL/gH3h/3584P99e9//fHre/3x63v97ed3/eXjc/3l32/95d9v/d3ba/3Fwxf9RUVH/wXSc/9x9r//fgbL/4YO0/8t9pv9XVVT/Z2ha/8LHgf/N0oX/ztOF/8/Uhv/S14b/c3Vh/42Ni6X///8AAAAAAOfn5xJRUVH/eXbG/4F/4/+AfuL/f33h/3584P99e+D/fHrf/3x63v97ed3/e3ne/3p43f9ycMH/Y2OR/1FRUf+NY3j/w3Sd/9x9rv/IeaL/V1VU/2doWv/DyIH/zNGF/87Thf/Q1Yb/0daG/9TZh/+ytnj/UlJS/+/v7xIAAAAAq6urYF1cav+DgeX/goDk/4F/4/+AfuL/f33h/3994f9+fOD/fXvf/3x63v95d9X/YF99/1FRUb9sbG+AZmVmgG1qa4BRUVG/fWBv/1dVVP9naFr/xMiB/83Shv/O04b/z9WG/9HWhv/S14b/1NqH/9TZhv9fYFn/t7e3YAAAAAB6enyeaGeV/4SC5v+DgeX/goDk/4F+4/+BfuP/f33h/3584P9+fOD/fHrb/1xcbv9sbG6g39/fQP///wD///8A////ANra2kBbWlugVVVT/8LHgf/O04X/ztOF/8/Uhf/Q1Yb/0teG/9PZh//V24f/2N6I/4aIZv+IiIeeAAAAAFpaXMx0crX/hYLm/4SC5v+DgeX/goDk/4KA5P+Bf+P/gH7i/3994f9oZ5v/X19hv/Hx8SD///8A////AP///wD///8A////AOfn5yBcXFq/m55w/9DVhv/R1ob/0teG/9LXhv/T2Yb/1dqH/9jdiP/Z34j/o6Zy/2VlY8wAAAAAUVFR7Hx7zP+GhOj/hYLm/4SB5f+Egub/g4Hl/4KA5P+Bf+P/gX/j/1paZP+xsbFA////AP///wD///8A////AP///wD///8A////AKampkBqa17/0teG/9LXhv/T2Yf/1dqH/9bciP/Y3oj/2N6H/9rgiP+5vXr/UlJS7AAAAABRUVH7gX7W/4eE6P+GhOj/hYPn/4WC5v+EgeX/g4Hl/4OB5f9/fNv/UVFR/9zc3AD///8A////AP///wD///8A////AP///wD///8A0NDQAFRUU//R14b/1dqH/9Xbh//W3If/192H/9jeh//a4Ij/3OKI/8PJfv9RUVH7AAAAAFFRUfuCgNj/iIbq/4eE6P+HhOj/hoPn/4WC5v+Egub/hILm/4B+3f9RUVH/3NzcAP///wD///8A////AP///wD///8A////AP///wDLy8sAUlJR/87ThP/W3Ij/192H/9nfiP/Z34j/2uCI/9vhiP/d44j/xMh+/1FRUfsAAAAAUVFR7H99zv+Jh+v/iIXq/4iF6v+Hhen/hoTo/4aD5/+Fgub/hYLm/1taZP+xsbFA////AP///wD///8A////AP///wD///8A////AJWVlUBSUlH/UlJR/25vXf+Ul2z/ur97/9jeh//c44j/3uWJ/97lif+8wXr/UVFR7AAAAABaWlzMd3W4/4qH6/+Kh+v/iYbq/4iF6f+HhOj/iIXp/4aE6P+GhOj/a2qe/19fYr/x8fEg////AP///wD///8A////AP///wDp6ekgW1xcv2SWe/9nm4D/Wm9k/1daVv9RUVH/VlZT/3p8Yf+ipnH/ys+A/6ircv9lZmPMAAAAAHp6fJ5rapf/i4js/4uJ7f+KiOz/iYbq/4mG6v+Ihur/iIbq/4eE6P+FguP/Xl5w/2xsb6Df399A////AP///wD///8A2traQGVnZqBccGX/d9Sk/3vZqf+B367/g+Gw/33No/9qk33/W2lh/1ZXVP9RUVH/U1NR/3d3dZ4AAAAAq6urYF5ea/+Ni+//jInt/4uI7P+LiOz/iofr/4mG6v+Jhur/iIXp/4iF6f+EguD/ZGSB/1FRUb9ra2+AZWdmgGpubIBRUVG/Xn1u/3TOn/9516f/ftyr/4Herf+G47L/iOa1/4vot/+Q7bz/k+++/4PHo/9SVFP/oaGhYAAAAADn5+cSUVFR/4F/z/+Niu7/jInt/4yJ7f+LiOz/i4nt/4qI7P+LiOz/iofr/4mG6v+Jhur/fnzN/2ZljP9RUVH/YpB5/2++lf921KT/edem/3vZqf+A3q3/hOGw/4bjs/+J5rX/juu6/5Dsu/+U8cD/g8Wi/1JTUv/t7e0SAAAAAP///wB+foClZ2aG/46L8P+Oi/D/jYru/4yJ7f+Mie3/i4js/4uI7P+LiOz/iofr/4qH6/+KiOz/eXjA/1FRUf9zyJz/eden/3zaqf982qn/ftys/4Hfrv+G47L/iOW0/4rntv+N6rn/ku++/5XxwP9le2//iYqKpf///wAAAAAA////ANjY2DhRUVL/gH7L/4+M8P+Oi+//jovv/42K7v+Niu7/jIru/4yK7v+Mie3/jInt/4uI7P96eMD/UVFR/3bLoP972an/ftyr/4Herv+D4K//heOy/4jmtf+L6Lf/juu5/5DtvP+V8cD/gcGf/1NUU//l5eU4////AAAAAAD///8A////AJGRkpxdXGn/jYrp/5CN8f+PjPD/j4zw/46L7/+Oi+//jYru/42K7v+Niu7/jYru/3x5wv9RUVH/ec6i/4Herv+B367/hOGw/4bjsv+I5bT/i+i3/43quf+Q7bz/k+++/4/jtv9bY17/nZ6enP///wD///8AAAAAAP///wD///8A9vb2D2Zmad9mZYL/kI3w/5CN8f+QjfH/j4zw/4+M8P+PjPD/j4zw/46L7/+Oi+//fHrD/1FRUf9/0qb/hOGw/4Xjsv+F47L/iOa1/4vot/+O67r/kO28/5Lvvf+S7b3/ZHht/3N1dN/6+voP////AP///wAAAAAA////AP///wD///8A5OTkQ1xcXv9oZ4j/kI3v/5GN8f+RjfH/kI3x/5CN8f+QjfH/kI3x/5CN8f99e8P/UVFR/3/UqP+I5bT/iOW0/4vot/+L6Lf/juu5/4/su/+S773/kem6/2Z9cf9gYmH/6+vrQ////wD///8A////AAAAAAD///8A////AP///wD///8A4ODgVl9fYf9iYnf/iojh/5KP8/+Sj/P/kY7y/5GO8v+RjvL/kY7y/358xf9RUVH/hdmt/4vot/+O67n/juu5/5Dtu/+Q7bv/ku++/4rXrv9hcGj/aGpp/+np6Vb///8A////AP///wD///8AAAAAAP///wD///8A////AP///wD///8A7OzsSXd3eelWVlr/dXOr/5CO7v+TkPT/k5D0/5KP8/+Sj/P/f33F/1FRUf+I267/kO28/5Dsu/+Q7Lv/ku+9/5Douv9zoon/U1VU/4GDgunx8fFJ////AP///wD///8A////AP///wAAAAAA////AP///wD///8A////AP///wD///8A/f39HLW1tatbW13/WVlg/3Bunv+Gg9T/k4/y/5SR9f+Bfsf/UVFR/4vfsv+S773/kOu7/4TKpf9ul4H/VlpY/19hYP/AwMCr////HP///wD///8A////AP///wD///8A////AAAAAAD///8A////AP///wD///8A////AP///wD///8A////APf390y0tLS6cG9y/1FRUf9WVlr/Y2J2/2Fgdv9RUVH/ZYBx/2N1a/9VV1b/UVFR/3R2df+/v7+6+vr6TP///wD///8A////AP///wD///8A////AP///wD///8AAAAAAP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8o7e3tdcXFxbCqqqrbl5eX9HBwcP2YmJj0q6ur28fHx7Dv7+91////KP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wAAAAAA//Af//+AA//+AAD//AAAf/gAAD/wAAAf4AAAD8AAAAfAAAAHgAAAA4AAAAOAAAADAAfAAQAP4AEAH/ABAB/wAQAf8AEAH/ABAA/gAQAHwAGAAAADgAAAA4AAAAPAAAAHwAAAB+AAAA/wAAAf+AAAP/wAAH/+AAD//4AD///wH/8="><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Ubuntu"><script id="notfound">window.onload=function(){document.body.innerHTML=""}</script><script language="javascript" type="text/javascript">{//----------------------------------------------------------------------------
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4 // PURPOSE
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6 // Krona is a flexible tool for exploring the relative proportions of
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
7 // hierarchical data, such as metagenomic classifications, using a
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
8 // radial, space-filling display. It is implemented using HTML5 and
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
9 // JavaScript, allowing charts to be explored locally or served over the
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
10 // Internet, requiring only a current version of any major web
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
11 // browser. Krona charts can be created using an Excel template or from
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
12 // common bioinformatic formats using the provided conversion scripts.
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
13 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
14 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
15 // COPYRIGHT LICENSE
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
16 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
17 // Copyright (c) 2011, Battelle National Biodefense Institute (BNBI);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
18 // all rights reserved. Authored by: Brian Ondov, Nicholas Bergman, and
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
19 // Adam Phillippy
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
20 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
21 // This Software was prepared for the Department of Homeland Security
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
22 // (DHS) by the Battelle National Biodefense Institute, LLC (BNBI) as
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
23 // part of contract HSHQDC-07-C-00020 to manage and operate the National
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
24 // Biodefense Analysis and Countermeasures Center (NBACC), a Federally
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
25 // Funded Research and Development Center.
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
26 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
27 // Redistribution and use in source and binary forms, with or without
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
28 // modification, are permitted provided that the following conditions are
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
29 // met:
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
30 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
31 // * Redistributions of source code must retain the above copyright
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
32 // notice, this list of conditions and the following disclaimer.
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
33 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
34 // * Redistributions in binary form must reproduce the above copyright
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
35 // notice, this list of conditions and the following disclaimer in the
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
36 // documentation and/or other materials provided with the distribution.
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
37 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
38 // * Neither the name of the Battelle National Biodefense Institute nor
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
39 // the names of its contributors may be used to endorse or promote
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
40 // products derived from this software without specific prior written
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
41 // permission.
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
42 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
43 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
44 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
45 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
46 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
47 // HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
48 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
49 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
50 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
51 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
52 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
53 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
54 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
55 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
56 // TRADEMARK LICENSE
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
57 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
58 // KRONA(TM) is a trademark of the Department of Homeland Security, and use
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
59 // of the trademark is subject to the following conditions:
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
60 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
61 // * Distribution of the unchanged, official code/software using the
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
62 // KRONA(TM) mark is hereby permitted by the Department of Homeland
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
63 // Security, provided that the software is distributed without charge
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
64 // and modification.
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
65 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
66 // * Distribution of altered source code/software using the KRONA(TM) mark
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
67 // is not permitted unless written permission has been granted by the
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
68 // Department of Homeland Security.
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
69 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
70 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
71 // FOR MORE INFORMATION VISIT
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
72 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
73 // https://github.com/marbl/Krona/wiki/
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
74 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
75 //----------------------------------------------------------------------------
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
76 //
4
12f0968f171c planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tools/recentrifuge commit fbb5d7bb68cbb5f497cdda3c0697b21b046a8262
iuc
parents: 1
diff changeset
77 // Copyright (C) 2017-2024 Jose Manuel Martí Martínez, for the changes in
1
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
78 // this file from the Krona Javascript 2.0 release.
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
79 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
80 // Redistribution and use in source and binary forms, with or without
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
81 // modification, are permitted provided that the above copyright notice is
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
82 // reproduced and all the above conditions are met.
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
83 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
84 // The KRONA(TM) mark has been substituted in the generated charts by
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
85 // another logo in compliance with the above-stated conditions.
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
86 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
87 // FOR MORE INFORMATION VISIT
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
88 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
89 // https://github.com/khyox/recentrifuge/wiki/
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
90 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
91 //----------------------------------------------------------------------------
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
92 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
93
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
94 ///////////////
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
95 // Variables //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
96 ///////////////
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
97
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
98 var canvas;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
99 var canvasButtons = []; // Keep trace of CanvasButton objects
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
100 var ChartEnum = Object.freeze({
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
101 TAXOMIC: 'taxonomic',
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
102 GENOMIC: 'genomic'
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
103 })
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
104 var chart = ChartEnum.TAXOMIC
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
105 var context;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
106 var svg; // for snapshot mode
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
107 var collapse = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
108 var collapseCheckBox;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
109 var collapseLast;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
110 var compress;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
111 var compressCheckBox;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
112 var maxAbsoluteDepthText;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
113 var maxAbsoluteDepthButtonDecrease;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
114 var maxAbsoluteDepthButtonIncrease;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
115 var fontSize = 12;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
116 var fontSizeText;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
117 var fontSizeButtonDecrease;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
118 var fontSizeButtonIncrease;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
119 var fontSizeLast;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
120 var bkgBright = "eeeeee";
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
121 var bkgBrightButtonDecrease;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
122 var bkgBrightButtonIncrease;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
123 var radiusButtonDecrease;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
124 var radiusButtonIncrease;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
125 var shorten;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
126 var shortenCheckBox;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
127 var maxAbsoluteDepth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
128 var backButton;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
129 var upButton;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
130 var forwardButton;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
131 var snapshotButton;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
132 var snapshotMode = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
133 var details;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
134 var detailsName;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
135 var search;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
136 var searchResults;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
137 var nSearchResults;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
138 var useHueCheckBox;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
139 var useHueDiv;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
140 var sortByScoreCheckBox;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
141 var datasetDropDown;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
142 var datasetButtonLast;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
143 var datasetButtonPrev;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
144 var datasetButtonNext;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
145 var rankDropDown;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
146 var keyControl;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
147 var showKeys = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
148 var linkButton;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
149 var linkText;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
150 var frame;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
151
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
152 // Node references. Note that the meanings of 'selected' and 'focused' are
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
153 // swapped in the docs.
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
154 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
155 var head; // the root of the entire tree
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
156 var selectedNode = 0; // the root of the current view
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
157 var focusNode = 0; // a node chosen for more info (single-click)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
158 var highlightedNode = 0; // mouse hover node
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
159 var highlightingHidden = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
160 var nodes = new Array(); // Array with all the nodes
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
161 var nodesIndex; // Index of nodes, points last using hue(score) buttons
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
162 var currentNodeID = 0; // to iterate while loading
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
163
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
164 var nodeHistory = new Array();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
165 var nodeHistoryPosition = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
166
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
167 var dataEnabled = false; // true when supplemental files are present
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
168
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
169 // store non-Krona GET variables so they can be passed on to links
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
170 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
171 var getVariables = new Array();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
172
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
173 // selectedNodeLast is separate from the history, since we need to check
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
174 // properties of the last node viewed when browsing through the history
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
175 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
176 var selectedNodeLast = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
177 var zoomOut = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
178
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
179 // temporary zoom-in while holding the mouse button on a wedge
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
180 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
181 var quickLook = false; // true when in quick look state
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
182 var mouseDown = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
183 var mouseDownTime; // to detect mouse button hold
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
184 var quickLookHoldLength = 200;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
185
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
186 var imageWidth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
187 var imageHeight;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
188 var centerX;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
189 var centerY;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
190 var gRadius;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
191 var updateViewNeeded = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
192
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
193 // Determines the angle that the pie chart starts at. 90 degrees makes the
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
194 // center label consistent with the children.
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
195 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
196 var rotationOffset = Math.PI / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
197
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
198 var buffer;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
199 var bufferFactor = .1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
200
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
201 // The maps are the small pie charts showing the current slice being viewed.
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
202 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
203 var mapBuffer = 10;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
204 var mapRadius = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
205 var maxMapRadius = 25;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
206 var mapWidth = 150;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
207 var maxLabelOverhang = Math.PI * 4.18;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
208
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
209 // Keys are the labeled boxes for slices in the highest level that are too thin
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
210 // to label.
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
211 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
212 var maxKeySizeFactor = 2; // will be multiplied by font size
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
213 var keySize;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
214 var keys;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
215 var keyBuffer = 10;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
216 var currentKey;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
217 var keyMinTextLeft;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
218 var keyMinAngle;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
219
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
220 var minRingWidthFactor = 5; // will be multiplied by font size
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
221 var maxPossibleDepth; // the theoretical max that can be displayed
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
222 var maxDisplayDepth; // the actual depth that will be displayed
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
223 var headerHeight = 0;//document.getElementById('options').clientHeight;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
224 var historySpacingFactor = 1.6; // will be multiplied by font size
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
225 var historyAlphaDelta = .25;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
226
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
227 // appearance
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
228 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
229 var lineOpacity = 0.3;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
230 var saturation = 0.5;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
231 var lightnessBase = 0.6;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
232 var lightnessMax = .8;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
233 var thinLineWidth = .3;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
234 var highlightLineWidth = 1.5;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
235 var labelBoxBuffer = 6;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
236 var labelBoxRounding = 15;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
237 var labelWidthFudge = 1.05; // The width of unshortened labels are set slightly
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
238 // longer than the name width so the animation
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
239 // finishes faster.
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
240 var fontNormal;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
241 var fontBold;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
242 var fontFamily = 'sans-serif';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
243 //var fontFaceBold = 'bold Arial';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
244 var nodeRadius;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
245 var angleFactor;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
246 var tickLength;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
247 var compressedRadii;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
248
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
249 // colors
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
250 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
251 var highlightFill = 'rgba(255, 255, 255, .3)';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
252 var colorUnclassified = 'rgb(220,220,220)';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
253
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
254 // label staggering
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
255 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
256 var labelOffsets; // will store the current offset at each depth
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
257 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
258 // This will store pointers to the last node that had a label in each offset
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
259 // (or "track") of each depth. These will be used to shorten neighboring
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
260 // labels that would overlap. The [nLabelNodes] index will store the last node
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
261 // with a radial label. labelFirstNodes is the same, but to check for going all
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
262 // the way around and overlapping the first labels.
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
263 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
264 var labelLastNodes;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
265 var labelFirstNodes;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
266 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
267 var nLabelOffsets = 3; // the number of offsets to use
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
268
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
269 var mouseX = -1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
270 var mouseY = -1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
271 var mouseXRel = -1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
272 var mouseYRel = -1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
273
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
274 // tweening
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
275 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
276 var progress = 0; // for tweening; goes from 0 to 1.
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
277 var progressLast = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
278 var tweenFactor = 0; // progress converted by a curve for a smoother effect.
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
279 var tweenLength = 850; // in ms
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
280 var tweenCurvature = 13;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
281 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
282 // tweenMax is used to scale the sigmoid function so its range is [0,1] for the
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
283 // domain [0,1]
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
284 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
285 var tweenMax = 1 / (1 + Math.exp(-tweenCurvature / 2));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
286 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
287 var tweenStartTime;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
288
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
289 // for framerate debug
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
290 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
291 var tweenFrames = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
292 var fpsDisplay = document.getElementById('frameRate');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
293
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
294 // Arrays to translate xml attribute names into displayable attribute names
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
295 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
296 var attributes = [];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
297 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
298 var magnitudeIndex; // the index of attribute arrays used for magnitude
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
299 var membersAssignedIndex;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
300 var membersSummaryIndex;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
301
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
302 // For defining gradients
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
303 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
304 var hueDisplayName;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
305 var hueStopPositions;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
306 var hueStopHues;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
307 var hueStopText;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
308
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
309 // multiple datasets
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
310 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
311 const DEFAULT_RANK = 'SUMMARY';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
312 const NO_RANK = 'NONE';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
313 var currentRank = DEFAULT_RANK;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
314 var currentDataset = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
315 var lastDataset = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
316 var datasets = 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
317 var datasetNames;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
318 const DATASET_MAX_SIZE = 20; // Max size in rows of the dataset selection list
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
319 var datasetsVisible = 1; // Number of datasets not hidden
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
320 var datasetAlpha = new Tween(0, 0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
321 var datasetWidths = [];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
322 var datasetChanged;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
323 var datasetSelectWidth = 50;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
324 var numRawSamples;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
325 var stats;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
326
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
327 window.onload = load;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
328
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
329 var image;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
330 var hiddenPattern;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
331 var loadingImage;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
332 var logoImage;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
333
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
334 // Setup CSS-like style of tooltips for attributes
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
335 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
336 var csstring = '.CellWithTooltip{ position:relative; }\n' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
337 '.Tooltip{ display:none;position:absolute;z-index:100;border:2px;' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
338 'background-color:white;border-style:solid;border-width:2px;' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
339 'border-color:red;padding:3px;color:red;top:20px;left:0px; }' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
340 '.CellWithTooltip:hover span.Tooltip{ display:block; }';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
341 var style = document.createElement('style');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
342 if (style.styleSheet) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
343 style.styleSheet.cssText = csstring;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
344 } else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
345 style.appendChild(document.createTextNode(csstring));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
346 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
347 document.getElementsByTagName('head')[0].appendChild(style);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
348
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
349 ///////////////
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
350 // Functions //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
351 ///////////////
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
352
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
353 function backingScale() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
354 if ('devicePixelRatio' in window) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
355 if (window.devicePixelRatio > 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
356 return window.devicePixelRatio;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
357 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
358 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
359
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
360 return 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
361 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
362
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
363 function resize() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
364 imageWidth = window.innerWidth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
365 imageHeight = window.innerHeight;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
366
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
367 if (!snapshotMode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
368 context.canvas.width = imageWidth * backingScale();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
369 context.canvas.height = imageHeight * backingScale();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
370 context.canvas.style.width = imageWidth + "px"
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
371 context.canvas.style.height = imageHeight + "px"
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
372 context.scale(backingScale(), backingScale());
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
373 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
374
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
375 if (datasetDropDown) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
376 var ratio =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
377 (datasetDropDown.offsetTop + datasetDropDown.clientHeight) * 2 /
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
378 imageHeight;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
379
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
380 if (ratio > 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
381 ratio = 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
382 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
383
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
384 ratio = Math.sqrt(ratio);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
385
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
386 datasetSelectWidth =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
387 (datasetDropDown.offsetLeft + datasetDropDown.clientWidth) * ratio;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
388 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
389 var leftMargin = datasets > 1 ? datasetSelectWidth + 30 : 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
390 var minDimension = imageWidth - mapWidth - leftMargin > imageHeight ?
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
391 imageHeight :
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
392 imageWidth - mapWidth - leftMargin;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
393
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
394 maxMapRadius = minDimension * .03;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
395 buffer = minDimension * bufferFactor;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
396 margin = minDimension * .015;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
397 centerX = (imageWidth - mapWidth - leftMargin) / 2 + leftMargin;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
398 centerY = imageHeight / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
399 gRadius = minDimension / 2 - buffer;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
400 //context.font = '11px sans-serif';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
401 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
402
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
403 function handleResize() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
404 updateViewNeeded = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
405 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
406
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
407 function Attribute() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
408 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
409
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
410 function SampleStats(sample, ictrl, sread, sclas, sfilt, scmin, scavg, scmax,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
411 lnmin, lnavg, lnmax, tclas, tfilt, tfold) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
412 // Class to store the statistics of a sample
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
413 this.sample = sample;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
414 this.is_ctrl = (ictrl === 'True');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
415 this.sread = sread;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
416 this.sclas = sclas;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
417 this.sfilt = sfilt;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
418 this.scmin = scmin;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
419 this.scavg = scavg;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
420 this.scmax = scmax;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
421 this.lnmin = lnmin;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
422 this.lnavg = lnavg;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
423 this.lnmax = lnmax;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
424 this.tclas = tclas;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
425 this.tfilt = tfilt;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
426 this.tfold = tfold;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
427 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
428
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
429 function CanvasButton(name, x, y, w, h, fill) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
430 // Constructor for a button in the canvas
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
431 this.name = name;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
432 this.x = x || 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
433 this.y = y || 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
434 this.w = w || 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
435 this.h = h || 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
436 this.fill = fill || '#000000';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
437
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
438 // Draws the button to a given context
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
439 this.draw = function (ctx) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
440 var oldAlpha = ctx.globalAlpha
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
441 ctx.globalAlpha = 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
442 ctx.strokeStyle = '#' + bkgBright;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
443 ctx.lineWidth = 3;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
444 ctx.strokeRect(this.x, this.y, this.w, this.h);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
445 ctx.fillStyle = this.fill;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
446 ctx.fillRect(this.x, this.y, this.w, this.h);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
447 ctx.strokeStyle = '#000000';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
448 ctx.lineWidth = 0.5;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
449 ctx.strokeRect(this.x, this.y, this.w, this.h);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
450 // Draws symbols in buttons
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
451 ctx.fillStyle = '#000000';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
452 ctx.globalAlpha = 0.7;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
453 switch (this.name) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
454 case 'mostScore':
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
455 ctx.beginPath();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
456 ctx.moveTo(this.x + 1 * this.w / 2, this.y + this.h / 8);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
457 ctx.lineTo(this.x + 1 * this.w / 6, this.y + this.h / 2);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
458 ctx.lineTo(this.x + 5 * this.w / 6, this.y + this.h / 2);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
459 ctx.fill();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
460 case 'moreScore':
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
461 ctx.beginPath();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
462 ctx.moveTo(this.x + 1 * this.w / 2, this.y + 1 * this.h / 4);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
463 ctx.lineTo(this.x + 1 * this.w / 6, this.y + 3 * this.h / 4);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
464 ctx.lineTo(this.x + 5 * this.w / 6, this.y + 3 * this.h / 4);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
465 ctx.fill();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
466 break;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
467 case 'lestScore':
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
468 ctx.beginPath();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
469 ctx.moveTo(this.x + 1 * this.w / 2, this.y + 7 * this.h / 8);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
470 ctx.lineTo(this.x + 1 * this.w / 6, this.y + 1 * this.h / 2);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
471 ctx.lineTo(this.x + 5 * this.w / 6, this.y + 1 * this.h / 2);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
472 ctx.fill();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
473 case 'lessScore':
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
474 ctx.beginPath();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
475 ctx.moveTo(this.x + 1 * this.w / 2, this.y + 3 * this.h / 4);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
476 ctx.lineTo(this.x + 1 * this.w / 6, this.y + 1 * this.h / 4);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
477 ctx.lineTo(this.x + 5 * this.w / 6, this.y + 1 * this.h / 4);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
478 ctx.fill();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
479 break;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
480 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
481 ctx.globalAlpha = oldAlpha
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
482 };
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
483
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
484 // Determine if a point is inside the button's bounds
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
485 this.is_inside = function (mx, my) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
486 // Check the Mouse X,Y fall in the button's area
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
487 return (this.x <= mx) && (this.x + this.w >= mx) &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
488 (this.y <= my) && (this.y + this.h >= my);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
489 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
490 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
491
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
492 function Tween(start, end) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
493 this.start = start;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
494 this.end = end;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
495 this.current = this.start;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
496
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
497 this.current = function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
498 if (progress == 1 || this.start == this.end) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
499 return this.end;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
500 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
501 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
502 return this.start + tweenFactor * (this.end - this.start);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
503 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
504 };
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
505
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
506 this.setTarget = function (target) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
507 this.start = this.current();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
508 this.end = target;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
509 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
510 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
511
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
512 function Node() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
513 this.id = currentNodeID;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
514 currentNodeID++;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
515 nodes[this.id] = this;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
516
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
517 this.angleStart = new Tween(Math.PI, 0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
518 this.angleEnd = new Tween(Math.PI, 0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
519 this.radiusInner = new Tween(1, 1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
520 this.labelRadius = new Tween(1, 1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
521 this.labelWidth = new Tween(0, 0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
522 this.scale = new Tween(1, 1); // TEMP
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
523 this.radiusOuter = new Tween(1, 1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
524
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
525 this.r = new Tween(255, 255);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
526 this.g = new Tween(255, 255);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
527 this.b = new Tween(255, 255);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
528
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
529 this.alphaLabel = new Tween(0, 1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
530 this.alphaLine = new Tween(0, 1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
531 this.alphaArc = new Tween(0, 0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
532 this.alphaWedge = new Tween(0, 1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
533 this.alphaOther = new Tween(0, 1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
534 this.alphaPattern = new Tween(0, 0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
535 this.children = Array();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
536 this.parent = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
537
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
538 this.attributes = new Array(attributes.length);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
539
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
540 this.addChild = function (child) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
541 this.children.push(child);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
542 };
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
543
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
544 this.addLabelNode = function (depth, labelOffset) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
545 if (labelHeadNodes[depth][labelOffset] == 0) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
546 // this will become the head node for this list
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
547
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
548 labelHeadNodes[depth][labelOffset] = this;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
549 this.labelPrev = this;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
550 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
551
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
552 var head = labelHeadNodes[depth][labelOffset];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
553
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
554 this.labelNext = head;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
555 this.labelPrev = head.labelPrev;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
556 head.labelPrev.labelNext = this;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
557 head.labelPrev = this;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
558 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
559
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
560 this.canDisplayDepth = function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
561 // whether this node is at a depth that can be displayed, according
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
562 // to the max absolute depth
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
563
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
564 return this.depth <= maxAbsoluteDepth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
565 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
566
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
567 this.canDisplayHistory = function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
568 var radiusInner;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
569
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
570 if (compress) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
571 radiusInner = compressedRadii[0];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
572 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
573 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
574 radiusInner = nodeRadius;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
575 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
576
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
577 return (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
578 -this.labelRadius.end * gRadius +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
579 historySpacingFactor * fontSize / 2 <
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
580 radiusInner * gRadius
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
581 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
582 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
583
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
584 this.canDisplayLabelCurrent = function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
585 return (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
586 (this.angleEnd.current() - this.angleStart.current()) *
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
587 (this.radiusInner.current() * gRadius + gRadius) >=
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
588 minWidth());
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
589 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
590
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
591 this.checkHighlight = function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
592 if (this.children.length == 0 && this == focusNode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
593 //return false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
594 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
595
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
596 if (this.hide) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
597 return false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
598 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
599
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
600 if (this.radiusInner.end == 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
601 // compressed to the outside; don't check
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
602
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
603 return false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
604 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
605
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
606 var highlighted = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
607
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
608 var angleStartCurrent = this.angleStart.current() + rotationOffset;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
609 var angleEndCurrent = this.angleEnd.current() + rotationOffset;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
610 var radiusInner = this.radiusInner.current() * gRadius;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
611
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
612 for (var i = 0; i < this.children.length; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
613 highlighted = this.children[i].checkHighlight();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
614
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
615 if (highlighted) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
616 return true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
617 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
618 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
619
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
620 if (this.radial) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
621 var angleText = (angleStartCurrent + angleEndCurrent) / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
622 var radiusText = (gRadius + radiusInner) / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
623
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
624 context.rotate(angleText);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
625 context.beginPath();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
626 context.moveTo(radiusText, -fontSize);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
627 context.lineTo(radiusText, fontSize);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
628 context.lineTo(radiusText + centerX, fontSize);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
629 context.lineTo(radiusText + centerX, -fontSize);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
630 context.closePath();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
631 context.rotate(-angleText);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
632
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
633 if (context.isPointInPath(mouseXRel, mouseYRel)) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
634 var label = String(this.getPercentage()) + '%' + ' '
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
635 + this.name;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
636
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
637 if (this.searchResultChildren()) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
638 label += searchResultString(this.searchResultChildren());
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
639 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
640
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
641 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
642 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
643 Math.sqrt((mouseXRel) * (mouseXRel)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
644 + (mouseYRel) * (mouseYRel)) / backingScale() <
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
645 radiusText + measureText(label)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
646 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
647 highlighted = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
648 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
649 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
650 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
651 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
652 for (var i = 0; i < this.hiddenLabels.length; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
653 var hiddenLabel = this.hiddenLabels[i];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
654
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
655 context.rotate(hiddenLabel.angle);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
656 context.beginPath();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
657 context.moveTo(gRadius, -fontSize);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
658 context.lineTo(gRadius, fontSize);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
659 context.lineTo(gRadius + centerX, fontSize);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
660 context.lineTo(gRadius + centerX, -fontSize);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
661 context.closePath();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
662 context.rotate(-hiddenLabel.angle);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
663
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
664 if (context.isPointInPath(mouseXRel, mouseYRel)) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
665 var label = String(hiddenLabel.value) + ' more';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
666
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
667 if (hiddenLabel.search) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
668 label += searchResultString(hiddenLabel.search);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
669 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
670
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
671 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
672 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
673 Math.sqrt((mouseXRel) * (mouseXRel)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
674 + (mouseYRel) * (mouseYRel)) / backingScale() <
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
675 gRadius + fontSize + measureText(label)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
676 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
677 highlighted = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
678 break;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
679 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
680 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
681 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
682 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
683
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
684 if (!highlighted && this != selectedNode && !this.getCollapse()) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
685 context.beginPath();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
686 context.arc(0, 0, radiusInner, angleStartCurrent, angleEndCurrent,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
687 false);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
688 context.arc(0, 0, gRadius, angleEndCurrent, angleStartCurrent,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
689 true);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
690 context.closePath();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
691
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
692 if (context.isPointInPath(mouseXRel, mouseYRel)) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
693 highlighted = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
694 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
695
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
696 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
697 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
698 !highlighted &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
699 (angleEndCurrent - angleStartCurrent) *
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
700 (radiusInner + gRadius) <
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
701 minWidth() &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
702 this.getDepth() == selectedNode.getDepth() + 1
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
703 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
704 if (showKeys && this.checkHighlightKey()) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
705 highlighted = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
706 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
707 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
708 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
709
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
710 if (highlighted) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
711 if (this != highlightedNode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
712 // document.body.style.cursor='pointer';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
713 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
714
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
715 highlightedNode = this;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
716 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
717
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
718 return highlighted;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
719 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
720
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
721 this.checkHighlightCenter = function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
722 if (!this.canDisplayHistory()) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
723 return;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
724 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
725
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
726 var cx = centerX;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
727 var cy = centerY - this.labelRadius.end * gRadius;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
728 //var dim = context.measureText(this.name);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
729
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
730 var width = this.nameWidth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
731
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
732 if (this.searchResultChildren()) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
733 var results = searchResultString(this.searchResultChildren());
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
734 var dim = context.measureText(results);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
735 width += dim.width;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
736 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
737
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
738 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
739 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
740 mouseX > cx - width / 2 &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
741 mouseX < cx + width / 2 &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
742 mouseY > cy - historySpacingFactor * fontSize / 2 &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
743 mouseY < cy + historySpacingFactor * fontSize / 2
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
744 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
745 highlightedNode = this;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
746 return;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
747 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
748
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
749 if (this.getParent()) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
750 this.getParent().checkHighlightCenter();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
751 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
752 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
753
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
754 this.checkHighlightKey = function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
755 var offset = keyOffset();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
756
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
757 var xMin = imageWidth - keySize - margin - this.keyNameWidth
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
758 - keyBuffer;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
759 var xMax = imageWidth - margin;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
760 var yMin = offset;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
761 var yMax = offset + keySize;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
762
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
763 currentKey++;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
764
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
765 return (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
766 mouseX > xMin &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
767 mouseX < xMax &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
768 mouseY > yMin &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
769 mouseY < yMax);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
770 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
771
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
772 this.checkHighlightMap = function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
773 if (this.parent) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
774 this.parent.checkHighlightMap();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
775 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
776
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
777 if (this.getCollapse() || this == focusNode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
778 return;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
779 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
780
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
781 var box = this.getMapPosition();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
782
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
783 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
784 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
785 mouseX > box.x - mapRadius &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
786 mouseX < box.x + mapRadius &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
787 mouseY > box.y - mapRadius &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
788 mouseY < box.y + mapRadius
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
789 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
790 highlightedNode = this;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
791 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
792 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
793
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
794 /* this.collapse = function()
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
795 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
796 for (var i = 0; i < this.children.length; i++ )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
797 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
798 this.children[i] = this.children[i].collapse();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
799 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
800
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
801 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
802 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
803 this.children.length == 1 &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
804 this.children[0].magnitude == this.magnitude
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
805 )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
806 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
807 this.children[0].parent = this.parent;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
808 this.children[0].getDepth() = this.parent.getDepth() + 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
809 return this.children[0];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
810 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
811 else
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
812 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
813 return this;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
814 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
815 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
816 */
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
817 this.draw = function (labelMode, selected, searchHighlighted) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
818 var depth = this.getDepth() - selectedNode.getDepth() + 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
819 // var hidden = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
820
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
821 if (selectedNode == this) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
822 selected = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
823 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
824
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
825 var angleStartCurrent = this.angleStart.current() + rotationOffset;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
826 var angleEndCurrent = this.angleEnd.current() + rotationOffset;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
827 var radiusInner = this.radiusInner.current() * gRadius;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
828 var canDisplayLabelCurrent = this.canDisplayLabelCurrent();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
829 var hiddenSearchResults = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
830
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
831 /* if ( ! this.hide )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
832 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
833 for ( var i = 0; i < this.children.length; i++ )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
834 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
835 if ( this.children[i].hide && this.children[i].searchResults )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
836 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
837 hiddenSearchResults = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
838 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
839 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
840 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
841 */
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
842 var drawChildren =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
843 (!this.hide || !this.hidePrev && progress < 1) &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
844 (!this.hideAlone || !this.hideAlonePrev && progress < 1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
845
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
846 // if ( this.alphaWedge.current() > 0 || this.alphaLabel.current() > 0 )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
847 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
848 var lastChildAngleEnd = angleStartCurrent;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
849
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
850 if (this.hasChildren())//canDisplayChildren )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
851 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
852 lastChildAngleEnd =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
853 this.children[this.children.length - 1].angleEnd.current()
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
854 + rotationOffset;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
855 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
856
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
857 if (labelMode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
858 var drawRadial =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
859 !(
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
860 this.parent &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
861 this.parent != selectedNode &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
862 angleEndCurrent == this.parent.angleEnd.current()
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
863 + rotationOffset
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
864 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
865
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
866 //if ( angleStartCurrent != angleEndCurrent )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
867 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
868 this.drawLines(angleStartCurrent, angleEndCurrent,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
869 radiusInner, drawRadial, selected);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
870 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
871
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
872 var alphaOtherCurrent = this.alphaOther.current();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
873 var childRadiusInner;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
874
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
875 if (this == selectedNode || alphaOtherCurrent) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
876 childRadiusInner =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
877 this.children.length ?
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
878 this.children[this.children.length
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
879 - 1].radiusInner.current() * gRadius
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
880 : radiusInner
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
881 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
882
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
883 if (this == selectedNode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
884 this.drawReferenceRings(childRadiusInner);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
885 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
886
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
887 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
888 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
889 selected &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
890 !searchHighlighted &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
891 this != selectedNode &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
892 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
893 this.isSearchResult ||
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
894 this.hideAlone && this.searchResultChildren() ||
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
895 false
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
896 // this.hide &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
897 // this.containsSearchResult
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
898 )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
899 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
900 context.globalAlpha = this.alphaWedge.current();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
901
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
902 drawWedge
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
903 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
904 angleStartCurrent,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
905 angleEndCurrent,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
906 radiusInner,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
907 gRadius,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
908 highlightFill,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
909 0,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
910 true
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
911 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
912
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
913 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
914 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
915 this.keyed &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
916 !showKeys &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
917 this.searchResults &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
918 !searchHighlighted &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
919 this != highlightedNode &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
920 this != focusNode
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
921 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
922 var angle = (angleEndCurrent + angleStartCurrent) / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
923 this.drawLabel(angle, true, false, true, true);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
924 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
925
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
926 //this.drawHighlight(false);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
927 searchHighlighted = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
928 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
929
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
930 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
931 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
932 this == selectedNode ||
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
933 // true
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
934 //(canDisplayLabelCurrent) &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
935 this != highlightedNode &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
936 this != focusNode
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
937 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
938 if (this.radial != this.radialPrev
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
939 && this.alphaLabel.end == 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
940 context.globalAlpha = tweenFactor;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
941 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
942 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
943 context.globalAlpha = this.alphaLabel.current();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
944 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
945
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
946 this.drawLabel
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
947 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
948 (angleStartCurrent + angleEndCurrent) / 2,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
949 this.hideAlone && this.searchResultChildren() ||
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
950 (this.isSearchResult || hiddenSearchResults) && selected,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
951 this == selectedNode && !this.radial,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
952 selected,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
953 this.radial
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
954 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
955
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
956 if (this.radial != this.radialPrev
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
957 && this.alphaLabel.start == 1 && progress < 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
958 context.globalAlpha = 1 - tweenFactor;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
959
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
960 this.drawLabel
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
961 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
962 (angleStartCurrent + angleEndCurrent) / 2,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
963 (this.isSearchResult || hiddenSearchResults)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
964 && selected,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
965 this == selectedNodeLast && !this.radialPrev,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
966 selected,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
967 this.radialPrev
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
968 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
969 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
970 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
971
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
972 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
973 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
974 alphaOtherCurrent &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
975 lastChildAngleEnd != null
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
976 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
977 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
978 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
979 (angleEndCurrent - lastChildAngleEnd) *
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
980 (childRadiusInner + gRadius) >=
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
981 minWidth()
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
982 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
983 //context.font = fontNormal;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
984 context.globalAlpha = this.alphaOther.current();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
985
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
986 drawTextPolar
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
987 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
988 this.getUnclassifiedText(),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
989 this.getUnclassifiedPercentage(),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
990 (lastChildAngleEnd + angleEndCurrent) / 2,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
991 (childRadiusInner + gRadius) / 2,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
992 true,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
993 false,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
994 false,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
995 0,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
996 0
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
997 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
998 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
999 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1000
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1001 if (this == selectedNode && this.keyUnclassified && showKeys) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1002 this.drawKey
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1003 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1004 (lastChildAngleEnd + angleEndCurrent) / 2,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1005 false,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1006 false
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1007 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1008 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1009 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1010 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1011 var alphaWedgeCurrent = this.alphaWedge.current();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1012
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1013 if (alphaWedgeCurrent || this.alphaOther.current()) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1014 var currentR = this.r.current();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1015 var currentG = this.g.current();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1016 var currentB = this.b.current();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1017
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1018 var fill = rgbText(currentR, currentG, currentB);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1019
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1020 var radiusOuter;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1021 var lastChildAngle;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1022 var truncateWedge =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1023 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1024 (this.hasChildren() || this == selectedNode) &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1025 !this.keyed &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1026 (compress || depth < maxDisplayDepth) &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1027 drawChildren
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1028 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1029
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1030 if (truncateWedge) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1031 radiusOuter = this.children.length
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1032 ? this.children[0].radiusInner.current()
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1033 * gRadius : radiusInner;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1034 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1035 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1036 radiusOuter = gRadius;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1037 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1038 /*
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1039 if ( this.hasChildren() )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1040 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1041 radiusOuter = this.children[0].getUncollapsed().radiusInner.current() * gRadius + 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1042 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1043 else
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1044 { // TEMP
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1045 radiusOuter = radiusInner + nodeRadius * gRadius;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1046
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1047 if ( radiusOuter > gRadius )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1048 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1049 radiusOuter = gRadius;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1050 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1051 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1052 */
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1053 context.globalAlpha = alphaWedgeCurrent;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1054
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1055 if (radiusInner != radiusOuter || truncateWedge) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1056 drawWedge
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1057 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1058 angleStartCurrent,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1059 angleEndCurrent,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1060 radiusInner,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1061 radiusOuter,//this.radiusOuter.current() * gRadius,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1062 //'rgba(0, 200, 0, .1)',
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1063 fill,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1064 this.alphaPattern.current()
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1065 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1066
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1067 if (truncateWedge) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1068 // fill in the extra space if the sum of our
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1069 // childrens' magnitudes is less than ours
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1070
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1071 if (lastChildAngleEnd < angleEndCurrent)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1072 //&& false) // TEMP
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1073 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1074 if (radiusOuter > 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1075 // overlap slightly to hide the seam
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1076
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1077 // radiusOuter -= 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1078 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1079
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1080 if (alphaWedgeCurrent < 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1081 context.globalAlpha
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1082 = this.alphaOther.current();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1083 drawWedge
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1084 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1085 lastChildAngleEnd,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1086 angleEndCurrent,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1087 radiusOuter,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1088 gRadius,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1089 colorUnclassified,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1090 0
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1091 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1092 context.globalAlpha = alphaWedgeCurrent;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1093 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1094
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1095 drawWedge
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1096 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1097 lastChildAngleEnd,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1098 angleEndCurrent,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1099 radiusOuter,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1100 gRadius,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1101 //this.radiusOuter.current() * gRadius,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1102 //'rgba(200, 0, 0, .1)',
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1103 fill,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1104 this.alphaPattern.current()
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1105 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1106 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1107 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1108
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1109 if (radiusOuter < gRadius) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1110 // patch up the seam
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1111 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1112 context.beginPath();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1113 context.arc(0, 0, radiusOuter,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1114 angleStartCurrent/*lastChildAngleEnd*/,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1115 angleEndCurrent, false);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1116 context.strokeStyle = fill;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1117 context.lineWidth = 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1118 context.stroke();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1119 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1120 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1121
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1122 if (this.keyed && selected && showKeys)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1123 //&& progress == 1 )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1124 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1125 this.drawKey
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1126 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1127 (angleStartCurrent + angleEndCurrent) / 2,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1128 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1129 this == highlightedNode ||
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1130 this == focusNode ||
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1131 this.searchResults
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1132 ),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1133 this == highlightedNode || this == focusNode
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1134 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1135 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1136 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1137 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1138 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1139
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1140 this.hiddenLabels = Array();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1141
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1142 if (drawChildren) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1143 // draw children
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1144 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1145 for (var i = 0; i < this.children.length; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1146 if (this.drawHiddenChildren(i, selected, labelMode,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1147 searchHighlighted)) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1148 var childHiddenEnd = this.children[i].hiddenEnd;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1149 if (childHiddenEnd > i) { // Avoid infinite loop
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1150 i = childHiddenEnd;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1151 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1152 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1153 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1154 this.children[i].draw(labelMode, selected,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1155 searchHighlighted);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1156 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1157 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1158 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1159 };
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1160
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1161 this.drawHiddenChildren = function
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1162 (firstHiddenChild,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1163 selected,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1164 labelMode,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1165 searchHighlighted) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1166 var firstChild = this.children[firstHiddenChild];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1167
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1168 if (firstChild.hiddenEnd == null
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1169 || firstChild.radiusInner.current() == 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1170 return false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1171 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1172
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1173 for (var i = firstHiddenChild; i < firstChild.hiddenEnd; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1174 if (!this.children[i].hide
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1175 || !this.children[i].hidePrev && progress < 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1176 return false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1177 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1178 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1179
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1180 var angleStart = firstChild.angleStart.current() + rotationOffset;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1181 var lastChild = this.children[firstChild.hiddenEnd];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1182 var angleEnd = lastChild.angleEnd.current() + rotationOffset;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1183 var radiusInner = gRadius * firstChild.radiusInner.current();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1184 var hiddenChildren = firstChild.hiddenEnd - firstHiddenChild + 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1185
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1186 if (labelMode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1187 var hiddenSearchResults = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1188
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1189 for (var i = firstHiddenChild; i <= firstChild.hiddenEnd; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1190 hiddenSearchResults += this.children[i].searchResults;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1191
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1192 if (this.children[i].magnitude == 0) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1193 hiddenChildren--;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1194 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1195 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1196
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1197 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1198 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1199 selected &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1200 (angleEnd - angleStart) *
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1201 (gRadius + gRadius) >=
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1202 minWidth() ||
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1203 this == highlightedNode &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1204 hiddenChildren ||
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1205 hiddenSearchResults
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1206 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1207 context.globalAlpha = this.alphaWedge.current();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1208
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1209 this.drawHiddenLabel
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1210 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1211 angleStart,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1212 angleEnd,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1213 hiddenChildren,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1214 hiddenSearchResults
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1215 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1216 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1217 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1218
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1219 var drawWedges = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1220
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1221 for (var i = firstHiddenChild; i <= firstChild.hiddenEnd; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1222 // all hidden children must be completely hidden to draw together
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1223
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1224 if (this.children[i].alphaPattern.current()
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1225 != this.children[i].alphaWedge.current()) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1226 drawWedges = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1227 break;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1228 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1229 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1230
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1231 if (labelMode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1232 if (drawWedges) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1233 var drawRadial = (angleEnd
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1234 < this.angleEnd.current() + rotationOffset);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1235 this.drawLines(angleStart, angleEnd, radiusInner, drawRadial);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1236 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1237
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1238 if (hiddenSearchResults && !searchHighlighted) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1239 drawWedge
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1240 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1241 angleStart,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1242 angleEnd,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1243 radiusInner,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1244 gRadius,//this.radiusOuter.current() * gRadius,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1245 highlightFill,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1246 0,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1247 true
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1248 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1249 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1250 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1251 else if (drawWedges) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1252 context.globalAlpha = this.alphaWedge.current();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1253
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1254 var fill = rgbText
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1255 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1256 firstChild.r.current(),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1257 firstChild.g.current(),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1258 firstChild.b.current()
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1259 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1260
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1261 drawWedge
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1262 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1263 angleStart,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1264 angleEnd,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1265 radiusInner,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1266 gRadius,//this.radiusOuter.current() * gRadius,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1267 fill,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1268 context.globalAlpha,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1269 false
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1270 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1271 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1272
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1273 return drawWedges;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1274 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1275
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1276 this.drawHiddenLabel = function (angleStart, angleEnd, value,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1277 hiddenSearchResults) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1278 var textAngle = (angleStart + angleEnd) / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1279 var labelRadius = gRadius + fontSize;//(radiusInner + radius) / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1280
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1281 var hiddenLabel = Array();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1282
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1283 hiddenLabel.value = value;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1284 hiddenLabel.angle = textAngle;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1285 hiddenLabel.search = hiddenSearchResults;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1286
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1287 this.hiddenLabels.push(hiddenLabel);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1288
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1289 drawTick(gRadius - fontSize * .75, fontSize * 1.5, textAngle);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1290 drawTextPolar
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1291 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1292 value.toString() + ' more',
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1293 0, // inner text
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1294 textAngle,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1295 labelRadius,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1296 true, // radial
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1297 hiddenSearchResults, // bubble
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1298 this == highlightedNode || this == focusNode, // bold
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1299 false,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1300 hiddenSearchResults
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1301 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1302 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1303
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1304 this.drawHighlight = function (bold) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1305 var angleStartCurrent = this.angleStart.current() + rotationOffset;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1306 var angleEndCurrent = this.angleEnd.current() + rotationOffset;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1307 var radiusInner = this.radiusInner.current() * gRadius;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1308
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1309 //this.setHighlightStyle();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1310
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1311 if (this == focusNode && this
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1312 == highlightedNode && this.hasChildren()) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1313 // context.fillStyle = "rgba(255, 255, 255, .3)";
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1314 arrow
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1315 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1316 angleStartCurrent,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1317 angleEndCurrent,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1318 radiusInner
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1319 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1320 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1321 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1322 drawWedge
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1323 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1324 angleStartCurrent,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1325 angleEndCurrent,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1326 radiusInner,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1327 gRadius,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1328 highlightFill,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1329 0,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1330 true
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1331 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1332 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1333
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1334 // check if hidden children should be highlighted
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1335 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1336 for (var i = 0; i < this.children.length; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1337 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1338 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1339 this.children[i].getDepth() - selectedNode.getDepth() + 1 <=
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1340 maxDisplayDepth &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1341 this.children[i].hiddenEnd != null
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1342 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1343 var firstChild = this.children[i];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1344 var lastChild = this.children[firstChild.hiddenEnd];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1345 var hiddenAngleStart = firstChild.angleStart.current()
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1346 + rotationOffset;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1347 var hiddenAngleEnd = lastChild.angleEnd.current()
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1348 + rotationOffset;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1349 var hiddenRadiusInner = gRadius
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1350 * firstChild.radiusInner.current();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1351
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1352 drawWedge
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1353 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1354 hiddenAngleStart,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1355 hiddenAngleEnd,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1356 hiddenRadiusInner,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1357 gRadius,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1358 'rgba(255, 255, 255, .3)',
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1359 0,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1360 true
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1361 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1362
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1363 if (false && !this.searchResults) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1364 this.drawHiddenLabel
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1365 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1366 hiddenAngleStart,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1367 hiddenAngleEnd,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1368 firstChild.hiddenEnd - i + 1
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1369 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1370 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1371
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1372 i = firstChild.hiddenEnd;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1373 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1374 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1375
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1376 // context.strokeStyle = 'black';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1377 context.fillStyle = 'black';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1378
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1379 var highlight = !(progress < 1 && zoomOut
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1380 && this == selectedNodeLast);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1381
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1382 var angle = (angleEndCurrent + angleStartCurrent) / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1383
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1384 if (!(this.keyed && showKeys)) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1385 this.drawLabel(angle, true, bold, true, this.radial);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1386 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1387 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1388
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1389 this.drawHighlightCenter = function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1390 if (!this.canDisplayHistory()) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1391 return;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1392 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1393
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1394 context.lineWidth = highlightLineWidth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1395 context.strokeStyle = 'black';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1396 context.fillStyle = "rgba(255, 255, 255, .6)";
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1397
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1398 context.fillStyle = 'black';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1399 this.drawLabel(3 * Math.PI / 2, true, true, false);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1400 context.font = fontNormal;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1401 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1402
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1403 this.drawKey = function (angle, highlight, bold) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1404 var offset = keyOffset();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1405 var color;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1406 var colorText = this.magnitude == 0 ? 'gray' : 'black';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1407 var patternAlpha = this.alphaPattern.end;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1408 var boxLeft = imageWidth - keySize - margin;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1409 var textY = offset + keySize / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1410
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1411 var label;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1412 var keyNameWidth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1413
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1414 if (this == selectedNode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1415 color = colorUnclassified;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1416 label =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1417 this.getUnclassifiedText() +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1418 ' ' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1419 this.getUnclassifiedPercentage();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1420 keyNameWidth = measureText(label, false);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1421 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1422 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1423 label = this.keyLabel;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1424 color = rgbText(this.r.end, this.g.end, this.b.end);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1425
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1426 if (highlight) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1427 if (this.searchResultChildren()) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1428 label = label
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1429 + searchResultString(this.searchResultChildren());
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1430 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1431
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1432 keyNameWidth = measureText(label, bold);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1433 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1434 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1435 keyNameWidth = this.keyNameWidth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1436 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1437 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1438
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1439 var textLeft = boxLeft - keyBuffer - keyNameWidth - fontSize / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1440 var labelLeft = textLeft;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1441
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1442 if (labelLeft > keyMinTextLeft - fontSize / 2) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1443 keyMinTextLeft -= fontSize / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1444
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1445 if (keyMinTextLeft < centerX - gRadius + fontSize / 2) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1446 keyMinTextLeft = centerX - gRadius + fontSize / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1447 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1448
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1449 labelLeft = keyMinTextLeft;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1450 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1451
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1452 var lineX = new Array();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1453 var lineY = new Array();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1454
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1455 var bendRadius;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1456 var keyAngle = Math.atan((textY - centerY) / (labelLeft - centerX));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1457 var arcAngle;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1458
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1459 if (keyAngle < 0) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1460 keyAngle += Math.PI;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1461 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1462
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1463 if (keyMinAngle == 0 || angle < keyMinAngle) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1464 keyMinAngle = angle;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1465 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1466
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1467 if (angle > Math.PI && keyMinAngle > Math.PI) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1468 // allow lines to come underneath the chart
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1469
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1470 angle -= Math.PI * 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1471 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1472
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1473 lineX.push(Math.cos(angle) * gRadius);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1474 lineY.push(Math.sin(angle) * gRadius);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1475
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1476 if (angle < keyAngle
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1477 && textY > centerY
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1478 + Math.sin(angle) * (gRadius + buffer * (currentKey - 1)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1479 / (keys + 1) / 2 + buffer / 2)) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1480 bendRadius = gRadius + buffer - buffer * currentKey
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1481 / (keys + 1) / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1482 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1483 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1484 bendRadius = gRadius + buffer * currentKey
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1485 / (keys + 1) / 2 + buffer / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1486 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1487
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1488 var outside =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1489 Math.sqrt
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1490 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1491 Math.pow(labelLeft - centerX, 2) +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1492 Math.pow(textY - centerY, 2)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1493 ) > bendRadius;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1494
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1495 if (!outside) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1496 arcAngle = Math.asin((textY - centerY) / bendRadius);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1497
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1498 keyMinTextLeft = min(keyMinTextLeft, centerX
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1499 + bendRadius * Math.cos(arcAngle) - fontSize / 2);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1500
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1501 if (labelLeft < textLeft && textLeft > centerX
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1502 + bendRadius * Math.cos(arcAngle)) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1503 lineX.push(textLeft - centerX);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1504 lineY.push(textY - centerY);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1505 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1506 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1507 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1508 keyMinTextLeft = min(keyMinTextLeft, labelLeft - fontSize / 2);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1509
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1510 if (angle < keyAngle) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1511 // flip everything over y = x
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1512 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1513 arcAngle = Math.PI / 2 - keyLineAngle
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1514 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1515 Math.PI / 2 - angle,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1516 Math.PI / 2 - keyAngle,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1517 bendRadius,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1518 textY - centerY,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1519 labelLeft - centerX,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1520 lineY,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1521 lineX
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1522 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1523
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1524 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1525 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1526 arcAngle = keyLineAngle
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1527 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1528 angle,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1529 keyAngle,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1530 bendRadius,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1531 labelLeft - centerX,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1532 textY - centerY,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1533 lineX,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1534 lineY
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1535 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1536 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1537 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1538
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1539 if (labelLeft > centerX + bendRadius * Math.cos(arcAngle) ||
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1540 textY > centerY + bendRadius * Math.sin(arcAngle) + .01)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1541 // if ( outside || )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1542 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1543 lineX.push(labelLeft - centerX);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1544 lineY.push(textY - centerY);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1545
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1546 if (textLeft != labelLeft) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1547 lineX.push(textLeft - centerX);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1548 lineY.push(textY - centerY);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1549 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1550 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1551
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1552 context.globalAlpha = this.alphaWedge.current();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1553
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1554 if (snapshotMode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1555 var labelSVG;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1556
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1557 if (this == selectedNode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1558 labelSVG =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1559 this.getUnclassifiedText() +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1560 spacer() +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1561 this.getUnclassifiedPercentage();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1562 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1563 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1564 labelSVG = this.name + spacer() + this.getPercentage() + '%';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1565 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1566
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1567 svg +=
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1568 '<rect fill="' + color + '" ' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1569 'x="' + boxLeft + '" y="' + offset +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1570 '" width="' + keySize + '" height="' + keySize + '"/>';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1571
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1572 if (patternAlpha) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1573 svg +=
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1574 '<rect fill="url(#hiddenPattern)" style="stroke:none" ' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1575 'x="' + boxLeft + '" y="' + offset +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1576 '" width="' + keySize + '" height="' + keySize + '"/>';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1577 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1578
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1579 svg +=
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1580 '<path class="line' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1581 (highlight ? ' highlight' : '') +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1582 '" d="M ' + (lineX[0] + centerX) + ',' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1583 (lineY[0] + centerY);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1584
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1585 if (angle != arcAngle) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1586 svg +=
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1587 ' L ' + (centerX + bendRadius * Math.cos(angle)) + ',' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1588 (centerY + bendRadius * Math.sin(angle)) +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1589 ' A ' + bendRadius + ',' + bendRadius + ' 0 ' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1590 '0,' + (angle > arcAngle ? '0' : '1') + ' ' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1591 (centerX + bendRadius * Math.cos(arcAngle)) + ',' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1592 (centerY + bendRadius * Math.sin(arcAngle));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1593 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1594
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1595 for (var i = 1; i < lineX.length; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1596 svg +=
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1597 ' L ' + (centerX + lineX[i]) + ',' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1598 (centerY + lineY[i]);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1599 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1600
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1601 svg += '"/>';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1602
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1603 if (highlight) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1604 if (this.searchResultChildren()) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1605 labelSVG = labelSVG
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1606 + searchResultString(this.searchResultChildren());
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1607 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1608
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1609 drawBubbleSVG
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1610 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1611 boxLeft - keyBuffer - keyNameWidth - fontSize / 2,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1612 textY - fontSize,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1613 keyNameWidth + fontSize,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1614 fontSize * 2,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1615 fontSize,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1616 0
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1617 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1618
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1619 if (this.isSearchResult) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1620 drawSearchHighlights
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1621 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1622 label,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1623 boxLeft - keyBuffer - keyNameWidth,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1624 textY,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1625 0
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1626 )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1627 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1628 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1629
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1630 svg += svgText(labelSVG, boxLeft - keyBuffer, textY, 'end', bold,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1631 colorText);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1632 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1633 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1634 context.fillStyle = color;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1635 context.translate(-centerX, -centerY);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1636 context.strokeStyle = 'black';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1637 context.globalAlpha = 1;//this.alphaWedge.current();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1638
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1639 context.fillRect(boxLeft, offset, keySize, keySize);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1640
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1641 if (patternAlpha) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1642 context.globalAlpha = patternAlpha;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1643 context.fillStyle = hiddenPattern;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1644
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1645 // make clipping box for Firefox performance
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1646 context.beginPath();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1647 context.moveTo(boxLeft, offset);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1648 context.lineTo(boxLeft + keySize, offset);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1649 context.lineTo(boxLeft + keySize, offset + keySize);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1650 context.lineTo(boxLeft, offset + keySize);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1651 context.closePath();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1652 context.save();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1653 context.clip();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1654
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1655 context.fillRect(boxLeft, offset, keySize, keySize);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1656 context.fillRect(boxLeft, offset, keySize, keySize);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1657
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1658 context.restore(); // remove clipping region
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1659 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1660
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1661 if (highlight) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1662 this.setHighlightStyle();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1663 context.fillRect(boxLeft, offset, keySize, keySize);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1664 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1665 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1666 context.lineWidth = thinLineWidth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1667 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1668
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1669 context.strokeRect(boxLeft, offset, keySize, keySize);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1670
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1671 if (lineX.length) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1672 context.beginPath();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1673 context.moveTo(lineX[0] + centerX, lineY[0] + centerY);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1674
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1675 context.arc(centerX, centerY, bendRadius, angle, arcAngle,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1676 angle > arcAngle);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1677
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1678 for (var i = 1; i < lineX.length; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1679 context.lineTo(lineX[i] + centerX, lineY[i] + centerY);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1680 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1681
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1682 context.globalAlpha = this == selectedNode ?
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1683 this.children[0].alphaWedge.current() :
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1684 this.alphaWedge.current();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1685 context.lineWidth = highlight
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1686 ? highlightLineWidth : thinLineWidth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1687 context.stroke();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1688 context.globalAlpha = 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1689 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1690
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1691 if (highlight) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1692 drawBubbleCanvas
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1693 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1694 boxLeft - keyBuffer - keyNameWidth - fontSize / 2,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1695 textY - fontSize,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1696 keyNameWidth + fontSize,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1697 fontSize * 2,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1698 fontSize,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1699 0
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1700 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1701
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1702 if (this.isSearchResult) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1703 drawSearchHighlights
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1704 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1705 label,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1706 boxLeft - keyBuffer - keyNameWidth,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1707 textY,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1708 0
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1709 )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1710 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1711 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1712
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1713 drawText(label, boxLeft - keyBuffer, offset + keySize / 2, 0,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1714 'end', bold, colorText);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1715
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1716 context.translate(centerX, centerY);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1717 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1718
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1719 currentKey++;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1720 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1721
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1722 this.drawLabel = function (angle, bubble, bold, selected, radial) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1723 if (context.globalAlpha == 0) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1724 return;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1725 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1726
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1727 var innerText;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1728 var label;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1729 var radius;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1730
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1731 if (radial) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1732 radius = (this.radiusInner.current() + 1) * gRadius / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1733 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1734 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1735 radius = this.labelRadius.current() * gRadius;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1736 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1737
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1738 if (radial && (selected || bubble)) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1739 var percentage = this.getPercentage();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1740 innerText = percentage + '%';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1741 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1742
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1743 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1744 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1745 !radial &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1746 this != selectedNode &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1747 !bubble &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1748 (!zoomOut || this != selectedNodeLast)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1749 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1750 label = this.shortenLabel();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1751 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1752 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1753 label = this.name;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1754 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1755
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1756 var flipped = drawTextPolar
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1757 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1758 label,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1759 innerText,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1760 angle,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1761 radius,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1762 radial,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1763 bubble,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1764 bold,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1765 // this.isSearchResult && this.shouldAddSearchResultsString() && (!selected || this == selectedNode || highlight),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1766 this.isSearchResult
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1767 && (!selected || this == selectedNode || bubble),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1768 (this.hideAlone || !selected || this == selectedNode)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1769 ? this.searchResultChildren() : 0
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1770 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1771
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1772 var depth = this.getDepth() - selectedNode.getDepth() + 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1773
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1774 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1775 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1776 !radial &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1777 !bubble &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1778 this != selectedNode &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1779 this.angleEnd.end != this.angleStart.end &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1780 nLabelOffsets[depth - 2] > 2 &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1781 this.labelWidth.current()
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1782 > (this.angleEnd.end - this.angleStart.end) * Math.abs(radius) &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1783 !(zoomOut && this == selectedNodeLast) &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1784 this.labelRadius.end > 0
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1785 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1786 // name extends beyond wedge; draw tick mark towards the central
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1787 // radius for easier identification
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1788
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1789 var radiusCenter = compress ?
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1790 (compressedRadii[depth - 1] + compressedRadii[depth - 2]) / 2 :
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1791 (depth - .5) * nodeRadius;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1792
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1793 if (this.labelRadius.end > radiusCenter) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1794 if (flipped) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1795 drawTick(radius - tickLength * 1.4, tickLength, angle);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1796 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1797 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1798 drawTick(radius - tickLength * 1.7, tickLength, angle);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1799 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1800 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1801 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1802 if (flipped) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1803 drawTick(radius + tickLength * .7, tickLength, angle);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1804 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1805 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1806 drawTick(radius + tickLength * .4, tickLength, angle);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1807 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1808 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1809 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1810 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1811
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1812 this.drawLines = function (angleStart, angleEnd, radiusInner, drawRadial,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1813 selected) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1814 if (snapshotMode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1815 if (this != selectedNode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1816 if (angleEnd == angleStart + Math.PI * 2) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1817 // fudge to prevent overlap, which causes arc ambiguity
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1818 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1819 angleEnd -= .1 / gRadius;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1820 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1821
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1822 var longArc = angleEnd - angleStart > Math.PI ? 1 : 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1823
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1824 var x1 = centerX + radiusInner * Math.cos(angleStart);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1825 var y1 = centerY + radiusInner * Math.sin(angleStart);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1826
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1827 var x2 = centerX + gRadius * Math.cos(angleStart);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1828 var y2 = centerY + gRadius * Math.sin(angleStart);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1829
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1830 var x3 = centerX + gRadius * Math.cos(angleEnd);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1831 var y3 = centerY + gRadius * Math.sin(angleEnd);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1832
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1833 var x4 = centerX + radiusInner * Math.cos(angleEnd);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1834 var y4 = centerY + radiusInner * Math.sin(angleEnd);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1835
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1836 if (this.alphaArc.end) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1837 var dArray =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1838 [
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1839 " M ", x4, ",", y4,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1840 " A ", radiusInner, ",", radiusInner, " 0 ",
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1841 longArc,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1842 " 0 ", x1, ",", y1
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1843 ];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1844
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1845 svg += '<path class="line" d="' + dArray.join('') + '"/>';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1846 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1847
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1848 if (drawRadial && this.alphaLine.end) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1849 svg += '<line x1="' + x3 + '" y1="' + y3 + '" x2="' + x4
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1850 + '" y2="' + y4 + '"/>';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1851 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1852 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1853 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1854 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1855 context.lineWidth = thinLineWidth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1856 context.strokeStyle = 'black';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1857 context.beginPath();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1858 context.arc(0, 0, radiusInner, angleStart, angleEnd, false);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1859 context.globalAlpha = this.alphaArc.current();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1860 context.stroke();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1861
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1862 if (drawRadial) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1863 var x1 = radiusInner * Math.cos(angleEnd);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1864 var y1 = radiusInner * Math.sin(angleEnd);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1865 var x2 = gRadius * Math.cos(angleEnd);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1866 var y2 = gRadius * Math.sin(angleEnd);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1867
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1868 context.beginPath();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1869 context.moveTo(x1, y1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1870 context.lineTo(x2, y2);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1871
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1872 // if ( this.getCollapse() )//( selected && this != selectedNode )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1873 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1874 context.globalAlpha = this.alphaLine.current();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1875 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1876
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1877 context.stroke();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1878 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1879 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1880 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1881
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1882 this.drawMap = function (child) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1883 if (this.parent) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1884 this.parent.drawMap(child);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1885 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1886
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1887 if (this.getCollapse() && this != child || this == focusNode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1888 return;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1889 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1890
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1891 var angleStart =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1892 (child.baseMagnitude - this.baseMagnitude) / this.magnitude
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1893 * Math.PI * 2 + rotationOffset;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1894 var angleEnd =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1895 (child.baseMagnitude - this.baseMagnitude + child.magnitude) /
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1896 this.magnitude * Math.PI * 2 +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1897 rotationOffset;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1898
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1899 var box = this.getMapPosition();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1900
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1901 context.save();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1902 context.fillStyle = 'black';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1903 context.textAlign = 'end';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1904 context.textBaseline = 'middle';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1905
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1906 var textX = box.x - mapRadius - mapBuffer;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1907 var percentage = getPercentage(child.magnitude / this.magnitude);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1908
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1909 var highlight = this == selectedNode || this == highlightedNode;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1910
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1911 if (highlight) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1912 context.font = fontBold;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1913 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1914 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1915 context.font = fontNormal;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1916 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1917
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1918 context.fillText(percentage + '% of', textX, box.y - mapRadius / 3);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1919 context.fillText(this.name, textX, box.y + mapRadius / 3);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1920
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1921 if (highlight) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1922 context.font = fontNormal;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1923 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1924
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1925 if (this == highlightedNode && this != selectedNode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1926 context.fillStyle = 'rgb(245, 245, 245)';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1927 // context.fillStyle = 'rgb(200, 200, 200)';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1928 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1929 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1930 context.fillStyle = 'rgb(255, 255, 255)';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1931 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1932
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1933 context.beginPath();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1934 context.arc(box.x, box.y, mapRadius, 0, Math.PI * 2, true);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1935 context.closePath();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1936 context.fill();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1937
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1938 if (this == selectedNode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1939 context.lineWidth = 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1940 context.fillStyle = 'rgb(100, 100, 100)';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1941 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1942 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1943 if (this == highlightedNode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1944 context.lineWidth = .2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1945 context.fillStyle = 'rgb(190, 190, 190)';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1946 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1947 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1948 context.lineWidth = .2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1949 context.fillStyle = 'rgb(200, 200, 200)';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1950 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1951 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1952
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1953 var maxDepth = this.getMaxDepth();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1954
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1955 if (!compress && maxDepth > maxPossibleDepth + this.getDepth() - 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1956 maxDepth = maxPossibleDepth + this.getDepth() - 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1957 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1958
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1959 if (this.getDepth() < selectedNode.getDepth()) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1960 if (child.getDepth() - 1 >= maxDepth) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1961 maxDepth = child.getDepth();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1962 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1963 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1964
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1965 var radiusInner;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1966
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1967 if (compress) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1968 radiusInner = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1969 // Math.atan(child.getDepth() - this.getDepth()) /
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1970 // Math.PI * 2 * .9;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1971 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1972 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1973 radiusInner =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1974 (child.getDepth() - this.getDepth()) /
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1975 (maxDepth - this.getDepth() + 1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1976 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1977
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1978 context.stroke();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1979 context.beginPath();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1980
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1981 if (radiusInner == 0) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1982 context.moveTo(box.x, box.y);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1983 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1984 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1985 context.arc(box.x, box.y, mapRadius * radiusInner, angleEnd,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1986 angleStart, true);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1987 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1988
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1989 context.arc(box.x, box.y, mapRadius, angleStart, angleEnd, false);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1990 context.closePath();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1991 context.fill();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1992
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1993 if (this == highlightedNode && this != selectedNode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1994 context.lineWidth = 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1995 context.stroke();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1996 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1997
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1998 context.restore();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
1999 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2000
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2001 this.drawReferenceRings = function (childRadiusInner) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2002 if (snapshotMode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2003 svg +=
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2004 '<circle cx="' + centerX + '" cy="' + centerY +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2005 '" r="' + childRadiusInner + '"/>';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2006 svg +=
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2007 '<circle cx="' + centerX + '" cy="' + centerY +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2008 '" r="' + gRadius + '"/>';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2009 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2010 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2011 context.globalAlpha = 1 - this.alphaLine.current();//this.getUncollapsed().alphaLine.current();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2012 context.beginPath();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2013 context.arc(0, 0, childRadiusInner, 0, Math.PI * 2, false);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2014 context.stroke();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2015 context.beginPath();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2016 context.arc(0, 0, gRadius, 0, Math.PI * 2, false);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2017 context.stroke();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2018 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2019 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2020
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2021 this.getCollapse = function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2022 return (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2023 collapse &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2024 this.collapse &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2025 this.depth != maxAbsoluteDepth
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2026 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2027 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2028
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2029 this.getDepth = function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2030 if (collapse) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2031 return this.depthCollapsed;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2032 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2033 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2034 return this.depth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2035 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2036 };
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2037
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2038 this.getHue = function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2039 return this.hues[currentDataset];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2040 };
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2041
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2042 this.getMagnitude = function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2043 return this.attributes[magnitudeIndex][currentDataset];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2044 };
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2045
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2046 this.getMapPosition = function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2047 return {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2048 x: (details.offsetLeft + details.clientWidth - mapRadius),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2049 y: ((focusNode.getDepth() - this.getDepth()) *
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2050 (mapBuffer + mapRadius * 2) - mapRadius) +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2051 details.clientHeight + details.offsetTop
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2052 };
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2053 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2054
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2055 this.getMaxDepth = function (limit) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2056 var max;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2057
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2058 if (collapse) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2059 return this.maxDepthCollapsed;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2060 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2061 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2062 if (this.maxDepth > maxAbsoluteDepth) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2063 return maxAbsoluteDepth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2064 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2065 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2066 return this.maxDepth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2067 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2068 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2069 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2070
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2071 this.getData = function (index, summary) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2072 var files = new Array();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2073
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2074 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2075 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2076 this.attributes[index] != null &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2077 this.attributes[index][currentDataset] != null &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2078 this.attributes[index][currentDataset] != ''
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2079 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2080 files.push
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2081 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2082 document.location +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2083 '.files/' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2084 this.attributes[index][currentDataset]
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2085 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2086 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2087
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2088 if (summary) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2089 for (var i = 0; i < this.children.length; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2090 files = files.concat(this.children[i].getData(index, true));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2091 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2092 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2093
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2094 return files;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2095 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2096
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2097 this.getList = function (index, summary) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2098 var list;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2099
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2100 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2101 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2102 this.attributes[index] != null &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2103 this.attributes[index][currentDataset] != null
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2104 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2105 list = this.attributes[index][currentDataset];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2106 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2107 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2108 list = new Array();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2109 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2110
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2111 if (summary) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2112 for (var i = 0; i < this.children.length; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2113 list = list.concat(this.children[i].getList(index, true));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2114 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2115 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2116
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2117 return list;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2118 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2119
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2120 this.getParent = function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2121 // returns parent, accounting for collapsing or 0 if doesn't exist
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2122
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2123 var parent = this.parent;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2124
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2125 while (parent != 0 && parent.getCollapse()) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2126 parent = parent.parent;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2127 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2128
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2129 return parent;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2130 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2131
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2132 this.getPercentage = function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2133 return getPercentage(this.magnitude / selectedNode.magnitude);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2134 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2135
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2136 this.getUnclassifiedPercentage = function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2137 if (this.children.length) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2138 var lastChild = this.children[this.children.length - 1];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2139
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2140 return getPercentage
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2141 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2142 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2143 this.baseMagnitude +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2144 this.magnitude -
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2145 lastChild.magnitude -
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2146 lastChild.baseMagnitude
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2147 ) / this.magnitude
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2148 ) + '%';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2149 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2150 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2151 return '100%';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2152 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2153 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2154
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2155 this.getUnclassifiedText = function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2156 return '[other ' + this.name + ']';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2157 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2158
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2159 this.getUncollapsed = function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2160 // recurse through collapsed children until uncollapsed node is found
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2161
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2162 if (this.getCollapse()) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2163 return this.children[0].getUncollapsed();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2164 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2165 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2166 return this;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2167 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2168 };
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2169
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2170 this.hasChildren = function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2171 return this.depth < maxAbsoluteDepth && this.magnitude
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2172 && this.children.length;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2173 };
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2174
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2175 this.hasParent = function (parent) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2176 if (this.parent) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2177 if (this.parent === parent) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2178 return true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2179 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2180 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2181 return this.parent.hasParent(parent);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2182 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2183 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2184 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2185 return false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2186 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2187 };
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2188
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2189 this.isLeaf = function (_recursing) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2190 // Returns true/1 for a real leave, false/0 otherwise, counting the
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2191 // non-empty leaves downstream and checking for positive counts.
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2192 // Param _recursing is an internal auxiliar variable not to be used
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2193 var leaves = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2194 if (this.children.length) { // Node has children -> recurse
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2195 for (var i = 0; i < this.children.length; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2196 leaves += this.children[i].isLeaf(true);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2197 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2198 if (_recursing) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2199 return leaves ? leaves : +!!this.magnitude;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2200 // If this has no leaves but has magnitude, this is a leaf.
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2201 // NOTE: +!!num is 0 for num=0 and is 1 otherwise
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2202 } else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2203 return !!this.magnitude && !leaves;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2204 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2205 } else { // Node has not children
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2206 if (!this.magnitude) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2207 return 0; // Fake leaf (empty)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2208 } else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2209 return 1; // This is true leaf
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2210 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2211 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2212 };
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2213
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2214 this.maxVisibleDepth = function (maxDepth) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2215 var childInnerRadius;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2216 var depth = this.getDepth() - selectedNode.getDepth() + 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2217 var currentMaxDepth = depth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2218
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2219 if (this.hasChildren() && depth < maxDepth) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2220 var lastChild = this.children[this.children.length - 1];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2221
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2222 if (lastChild.baseMagnitude + lastChild.magnitude <
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2223 this.baseMagnitude + this.magnitude) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2224 currentMaxDepth++;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2225 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2226
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2227 if (compress) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2228 childInnerRadius = compressedRadii[depth - 1];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2229 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2230 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2231 childInnerRadius = (depth) / maxDepth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2232 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2233
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2234 for (var i = 0; i < this.children.length; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2235 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2236 (//true ||
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2237 this.children[i].magnitude *
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2238 angleFactor *
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2239 (childInnerRadius + 1) *
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2240 gRadius >=
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2241 minWidth()
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2242 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2243 var childMaxDepth
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2244 = this.children[i].maxVisibleDepth(maxDepth);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2245
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2246 if (childMaxDepth > currentMaxDepth) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2247 currentMaxDepth = childMaxDepth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2248 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2249 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2250 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2251 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2252
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2253 return currentMaxDepth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2254 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2255
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2256 this.resetLabelWidth = function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2257 var nameWidthOld = this.nameWidth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2258
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2259 if (true || !this.radial)//&& fontSize != fontSizeLast )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2260 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2261 var dim = context.measureText(this.name);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2262 this.nameWidth = dim.width;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2263 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2264
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2265 if (fontSize != fontSizeLast
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2266 && this.labelWidth.end == nameWidthOld * labelWidthFudge) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2267 // font size changed; adjust start of tween to match
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2268
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2269 this.labelWidth.start = this.nameWidth * labelWidthFudge;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2270 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2271 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2272 this.labelWidth.start = this.labelWidth.current();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2273 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2274
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2275 this.labelWidth.end = this.nameWidth * labelWidthFudge;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2276 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2277
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2278 this.restrictLabelWidth = function (width) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2279 if (width < this.labelWidth.end) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2280 this.labelWidth.end = width;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2281 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2282 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2283
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2284 this.search = function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2285 this.isSearchResult = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2286 this.searchResults = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2287
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2288 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2289 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2290 !this.getCollapse() &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2291 search.value !== '' &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2292 this.name.toLowerCase().indexOf(search.value.toLowerCase()) !== -1
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2293 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2294 this.isSearchResult = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2295 this.searchResults = 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2296 nSearchResults++;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2297 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2298
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2299 for (var i = 0; i < this.children.length; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2300 this.searchResults += this.children[i].search();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2301 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2302
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2303 return this.searchResults;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2304 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2305
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2306 this.searchResultChildren = function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2307 if (this.isSearchResult) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2308 return this.searchResults - 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2309 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2310 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2311 return this.searchResults;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2312 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2313 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2314
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2315 this.setDepth = function (depth, depthCollapsed) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2316 this.depth = depth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2317 this.depthCollapsed = depthCollapsed;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2318
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2319 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2320 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2321 this.children.length === 1 &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2322 // this.magnitude > 0 &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2323 this.children[0].magnitude === this.magnitude &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2324 (head.children.length > 1 || this.children[0].children.length)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2325 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2326 this.collapse = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2327 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2328 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2329 this.collapse = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2330 depthCollapsed++;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2331 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2332
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2333 for (var i = 0; i < this.children.length; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2334 this.children[i].setDepth(depth + 1, depthCollapsed);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2335 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2336 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2337
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2338 this.setHighlightStyle = function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2339 context.lineWidth = highlightLineWidth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2340
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2341 if (this.hasChildren() || this !== focusNode
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2342 || this !== highlightedNode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2343 context.strokeStyle = 'black';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2344 context.fillStyle = "rgba(255, 255, 255, .3)";
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2345 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2346 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2347 context.strokeStyle = 'rgb(90,90,90)';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2348 context.fillStyle = "rgba(155, 155, 155, .3)";
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2349 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2350 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2351
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2352 this.setLabelWidth = function (node) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2353 if (!shorten || this.radial) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2354 return; // don't need to set width
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2355 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2356
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2357 if (node.hide) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2358 alert('wtf');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2359 return;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2360 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2361
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2362 var angle = (this.angleStart.end + this.angleEnd.end) / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2363 var a; // angle difference
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2364
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2365 if (node == selectedNode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2366 a = Math.abs(angle - node.angleOther);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2367 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2368 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2369 a = Math.abs(angle
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2370 - (node.angleStart.end + node.angleEnd.end) / 2);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2371 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2372
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2373 if (a == 0) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2374 return;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2375 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2376
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2377 if (a > Math.PI) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2378 a = 2 * Math.PI - a;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2379 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2380
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2381 if (node.radial || node == selectedNode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2382 var nodeLabelRadius;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2383
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2384 if (node == selectedNode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2385 // radial 'other' label
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2386
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2387 nodeLabelRadius = (node.children[0].radiusInner.end + 1) / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2388 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2389 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2390 nodeLabelRadius = (node.radiusInner.end + 1) / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2391 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2392
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2393 if (a < Math.PI / 2) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2394 var r = this.labelRadius.end * gRadius + .5 * fontSize
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2395 var hypotenuse = r / Math.cos(a);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2396 var opposite = r * Math.tan(a);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2397 var fontRadius = .8 * fontSize;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2398
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2399 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2400 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2401 nodeLabelRadius * gRadius < hypotenuse &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2402 this.labelWidth.end / 2 + fontRadius > opposite
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2403 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2404 this.labelWidth.end = 2 * (opposite - fontRadius);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2405 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2406 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2407 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2408 else if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2409 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2410 this.labelRadius.end == node.labelRadius.end &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2411 a < Math.PI / 4
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2412 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2413 // same radius with small angle; use circumferential approximation
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2414
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2415 var dist = a * this.labelRadius.end * gRadius - fontSize
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2416 * (1 - a * 4 / Math.PI) * 1.3;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2417
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2418 if (this.labelWidth.end < dist) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2419 node.restrictLabelWidth((dist - this.labelWidth.end / 2) * 2);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2420 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2421 else if (node.labelWidth.end < dist) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2422 this.restrictLabelWidth((dist - node.labelWidth.end / 2) * 2);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2423 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2424 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2425 // both labels reach halfway point; restrict both
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2426
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2427 this.labelWidth.end = dist;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2428 node.labelWidth.end = dist
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2429 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2430 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2431 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2432 var r1 = this.labelRadius.end * gRadius;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2433 var r2 = node.labelRadius.end * gRadius;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2434
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2435 // first adjust the radii to account for the height of the font
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2436 // by shifting them toward each other
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2437 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2438 var fontFudge = .35 * fontSize;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2439 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2440 if (this.labelRadius.end < node.labelRadius.end) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2441 r1 += fontFudge;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2442 r2 -= fontFudge;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2443 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2444 else if (this.labelRadius.end > node.labelRadius.end) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2445 r1 -= fontFudge;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2446 r2 += fontFudge;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2447 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2448 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2449 r1 -= fontFudge;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2450 r2 -= fontFudge;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2451 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2452
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2453 var r1s = r1 * r1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2454 var r2s = r2 * r2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2455
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2456 // distance between the centers of the two labels
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2457 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2458 var dist = Math.sqrt(r1s + r2s - 2 * r1 * r2 * Math.cos(a));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2459
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2460 // angle at our label center between our radius and the line to the
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2461 // other label center
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2462 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2463 var b = Math.acos((r1s + dist * dist - r2s) / (2 * r1 * dist));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2464
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2465 // distance from our label center to the intersection of the
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2466 // two tangents
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2467 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2468 var l1 = Math.sin(a + b - Math.PI / 2) * dist / Math.sin(Math.PI - a);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2469
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2470 // distance from other label center the the intersection of the
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2471 // two tangents
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2472 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2473 var l2 = Math.sin(Math.PI / 2 - b) * dist / Math.sin(Math.PI - a);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2474
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2475 l1 = Math.abs(l1) - .4 * fontSize;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2476 l2 = Math.abs(l2) - .4 * fontSize;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2477 /*
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2478 // amount to shorten the distances because of height of the font
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2479 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2480 var l3 = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2481 var fontRadius = fontSize * .55;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2482 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2483 if ( l1 < 0 || l2 < 0 )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2484 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2485 var l4 = fontRadius / Math.tan(a);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2486 l1 = Math.abs(l1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2487 l2 = Math.abs(l2);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2488
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2489 l1 -= l4;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2490 l2 -= l4;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2491 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2492 else
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2493 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2494 var c = Math.PI - a;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2495
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2496 l3 = fontRadius * Math.tan(c / 2);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2497 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2498 */
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2499 if (this.labelWidth.end / 2 > l1 && node.labelWidth.end / 2 > l2) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2500 // shorten the farthest one from the intersection
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2501
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2502 if (l1 > l2) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2503 this.restrictLabelWidth(2 * (l1));// - l3 - fontRadius));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2504 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2505 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2506 node.restrictLabelWidth(2 * (l2));// - l3 - fontRadius));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2507 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2508 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2509 /*
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2510 else if ( this.labelWidth.end / 2 > l1 + l3 && node.labelWidth.end
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2511 / 2 > l2 - l3 )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2512 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2513 node.restrictLabelWidth(2 * (l2 - l3));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2514 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2515 else if ( this.labelWidth.end / 2 > l1 - l3 && node.labelWidth.end
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2516 / 2 > l2 + l3 )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2517 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2518 this.restrictLabelWidth(2 * (l1 - l3));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2519 }*/
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2520 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2521 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2522
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2523 this.setMagnitudes = function (baseMagnitude) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2524 this.magnitude = this.getMagnitude();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2525 this.baseMagnitude = baseMagnitude;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2526
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2527 for (var i = 0; i < this.children.length; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2528 this.children[i].setMagnitudes(baseMagnitude);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2529 baseMagnitude += this.children[i].magnitude;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2530 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2531
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2532 this.maxChildMagnitude = baseMagnitude;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2533 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2534
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2535 this.setMaxDepths = function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2536 this.maxDepth = this.depth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2537 this.maxDepthCollapsed = this.depthCollapsed;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2538
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2539 for (i in this.children) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2540 var child = this.children[i];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2541
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2542 child.setMaxDepths();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2543
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2544 if (child.maxDepth > this.maxDepth) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2545 this.maxDepth = child.maxDepth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2546 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2547
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2548 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2549 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2550 child.maxDepthCollapsed > this.maxDepthCollapsed &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2551 (child.depth <= maxAbsoluteDepth || maxAbsoluteDepth == 0)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2552 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2553 this.maxDepthCollapsed = child.maxDepthCollapsed;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2554 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2555 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2556 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2557
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2558 this.setTargetLabelRadius = function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2559 var depth = this.getDepth() - selectedNode.getDepth() + 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2560 var index = depth - 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2561 var labelOffset = labelOffsets[index];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2562
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2563 if (this.radial) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2564 //this.labelRadius.setTarget((this.radiusInner.end + 1) / 2);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2565 var max =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2566 depth == maxDisplayDepth ?
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2567 1 :
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2568 compressedRadii[index + 1];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2569
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2570 this.labelRadius.setTarget((compressedRadii[index] + max) / 2);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2571 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2572 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2573 var radiusCenter;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2574 var width;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2575
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2576 if (compress) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2577 if (nLabelOffsets[index] > 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2578 this.labelRadius.setTarget
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2579 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2580 lerp
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2581 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2582 labelOffset + .75,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2583 0,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2584 nLabelOffsets[index] + .5,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2585 compressedRadii[index],
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2586 compressedRadii[index + 1]
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2587 )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2588 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2589 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2590 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2591 this.labelRadius.setTarget((compressedRadii[index]
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2592 + compressedRadii[index + 1]) / 2);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2593 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2594 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2595 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2596 radiusCenter =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2597 nodeRadius * (depth - 1) +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2598 nodeRadius / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2599 width = nodeRadius;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2600
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2601 this.labelRadius.setTarget
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2602 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2603 radiusCenter + width
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2604 * ((labelOffset + 1) / (nLabelOffsets[index] + 1) - .5)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2605 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2606 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2607 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2608
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2609 if (!this.hide && !this.keyed && nLabelOffsets[index]) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2610 // check last and first labels in each track for overlap
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2611
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2612 for (var i = 0; i < maxDisplayDepth - 1; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2613 for (var j = 0; j <= nLabelOffsets[i]; j++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2614 var last = labelLastNodes[i][j];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2615 var first = labelFirstNodes[i][j];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2616
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2617 if (last) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2618 if (j == nLabelOffsets[i]) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2619 // last is radial
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2620 this.setLabelWidth(last);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2621 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2622 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2623 last.setLabelWidth(this);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2624 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2625 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2626
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2627 if (first) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2628 if (j == nLabelOffsets[i]) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2629 this.setLabelWidth(first);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2630 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2631 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2632 first.setLabelWidth(this);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2633 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2634 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2635 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2636 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2637
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2638 if (selectedNode.canDisplayLabelOther) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2639 // in case there is an 'other' label
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2640 this.setLabelWidth(selectedNode);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2641 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2642
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2643 if (this.radial) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2644 // use the last 'track' of this depth for radial
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2645
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2646 labelLastNodes[index][nLabelOffsets[index]] = this;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2647
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2648 if (labelFirstNodes[index][nLabelOffsets[index]] == 0) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2649 labelFirstNodes[index][nLabelOffsets[index]] = this;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2650 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2651 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2652 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2653 labelLastNodes[index][labelOffset] = this;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2654
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2655 // update offset
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2656
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2657 labelOffsets[index] += 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2658
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2659 if (labelOffsets[index] > nLabelOffsets[index]) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2660 labelOffsets[index] -= nLabelOffsets[index];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2661
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2662 if (!(nLabelOffsets[index] & 1)) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2663 labelOffsets[index]--;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2664 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2665 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2666 else if (labelOffsets[index] == nLabelOffsets[index]) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2667 labelOffsets[index] -= nLabelOffsets[index];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2668
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2669 if (false && !(nLabelOffsets[index] & 1)) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2670 labelOffsets[index]++;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2671 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2672 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2673
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2674 if (labelFirstNodes[index][labelOffset] == 0) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2675 labelFirstNodes[index][labelOffset] = this;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2676 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2677 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2678 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2679 else if (this.hide) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2680 this.labelWidth.end = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2681 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2682 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2683
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2684 this.setTargets = function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2685 if (this == selectedNode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2686 this.setTargetsSelected
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2687 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2688 0,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2689 1,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2690 lightnessBase,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2691 false,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2692 false
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2693 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2694 return;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2695 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2696
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2697 var depthRelative = this.getDepth() - selectedNode.getDepth();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2698
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2699 var parentOfSelected = selectedNode.hasParent(this);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2700 /* (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2701 // ! this.getCollapse() &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2702 this.baseMagnitude <= selectedNode.baseMagnitude &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2703 this.baseMagnitude + this.magnitude >=
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2704 selectedNode.baseMagnitude + selectedNode.magnitude
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2705 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2706 */
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2707 if (parentOfSelected) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2708 this.resetLabelWidth();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2709 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2710 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2711 //context.font = fontNormal;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2712 var dim = context.measureText(this.name);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2713 this.nameWidth = dim.width;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2714 //this.labelWidth.setTarget(this.labelWidth.end);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2715 this.labelWidth.setTarget(0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2716 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2717
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2718 // set angles
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2719 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2720 if (this.baseMagnitude <= selectedNode.baseMagnitude) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2721 this.angleStart.setTarget(0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2722 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2723 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2724 this.angleStart.setTarget(Math.PI * 2);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2725 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2726 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2727 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2728 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2729 parentOfSelected ||
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2730 this.baseMagnitude + this.magnitude >=
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2731 selectedNode.baseMagnitude + selectedNode.magnitude
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2732 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2733 this.angleEnd.setTarget(Math.PI * 2);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2734 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2735 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2736 this.angleEnd.setTarget(0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2737 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2738
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2739 // children
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2740 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2741 for (var i = 0; i < this.children.length; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2742 this.children[i].setTargets();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2743 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2744
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2745 if (this.getDepth() <= selectedNode.getDepth()) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2746 // collapse in
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2747
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2748 this.radiusInner.setTarget(0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2749
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2750 if (parentOfSelected) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2751 this.labelRadius.setTarget
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2752 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2753 (depthRelative) *
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2754 historySpacingFactor * fontSize / gRadius
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2755 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2756 //this.scale.setTarget(1 - (selectedNode.getDepth()
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2757 // - this.getDepth()) / 18); // TEMP
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2758 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2759 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2760 this.labelRadius.setTarget(0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2761 //this.scale.setTarget(1); // TEMP
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2762 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2763 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2764 else if (depthRelative + 1 > maxDisplayDepth) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2765 // collapse out
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2766
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2767 this.radiusInner.setTarget(1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2768 this.labelRadius.setTarget(1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2769 //this.scale.setTarget(1); // TEMP
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2770 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2771 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2772 // don't collapse
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2773
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2774 if (compress) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2775 this.radiusInner.setTarget(compressedRadii[depthRelative - 1]);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2776 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2777 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2778 this.radiusInner.setTarget(nodeRadius * (depthRelative));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2779 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2780
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2781 //this.scale.setTarget(1); // TEMP
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2782
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2783 if (this == selectedNode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2784 this.labelRadius.setTarget(0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2785 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2786 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2787 if (compress) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2788 this.labelRadius.setTarget
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2789 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2790 (compressedRadii[depthRelative - 1]
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2791 + compressedRadii[depthRelative]) / 2
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2792 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2793 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2794 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2795 this.labelRadius.setTarget(nodeRadius * (depthRelative)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2796 + nodeRadius / 2);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2797 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2798 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2799 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2800
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2801 // this.r.start = this.r.end;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2802 // this.g.start = this.g.end;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2803 // this.b.start = this.b.end;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2804
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2805 this.r.setTarget(255);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2806 this.g.setTarget(255);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2807 this.b.setTarget(255);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2808
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2809 this.alphaLine.setTarget(0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2810 this.alphaArc.setTarget(0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2811 this.alphaWedge.setTarget(0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2812 this.alphaPattern.setTarget(0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2813 this.alphaOther.setTarget(0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2814
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2815 if (parentOfSelected && !this.getCollapse()) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2816 var alpha =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2817 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2818 1 -
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2819 (selectedNode.getDepth() - this.getDepth()) /
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2820 (Math.floor((compress ? compressedRadii[0] : nodeRadius)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2821 * gRadius / (historySpacingFactor * fontSize) - .5) + 1)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2822 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2823
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2824 if (alpha < 0) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2825 alpha = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2826 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2827
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2828 this.alphaLabel.setTarget(alpha);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2829 this.radial = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2830 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2831 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2832 this.alphaLabel.setTarget(0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2833 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2834
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2835 this.hideAlonePrev = this.hideAlone;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2836 this.hidePrev = this.hide;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2837
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2838 if (parentOfSelected) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2839 this.hideAlone = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2840 this.hide = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2841 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2842
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2843 if (this.getParent() == selectedNode.getParent()) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2844 this.hiddenEnd = null;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2845 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2846
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2847 this.radialPrev = this.radial;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2848 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2849
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2850 this.setTargetsSelected = function (hueMin, hueMax, lightness, hide,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2851 nextSiblingHidden) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2852 var collapse = this.getCollapse();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2853 var depth = this.getDepth() - selectedNode.getDepth() + 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2854 var canDisplayChildLabels = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2855 var lastChild;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2856
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2857 if (this.hasChildren())//&& ! hide )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2858 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2859 lastChild = this.children[this.children.length - 1];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2860 this.hideAlone = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2861 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2862 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2863 this.hideAlone = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2864 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2865
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2866 // set child wedges
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2867 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2868 for (var i = 0; i < this.children.length; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2869 this.children[i].setTargetWedge();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2870
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2871 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2872 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2873 !this.children[i].hide &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2874 (collapse || depth < maxDisplayDepth) &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2875 this.depth < maxAbsoluteDepth
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2876 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2877 canDisplayChildLabels = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2878 this.hideAlone = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2879 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2880 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2881
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2882 if (this == selectedNode || lastChild && lastChild.angleEnd.end
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2883 < this.angleEnd.end - .01) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2884 this.hideAlone = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2885 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2886
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2887 if (this.hideAlonePrev == undefined) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2888 this.hideAlonePrev = this.hideAlone;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2889 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2890
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2891 if (this == selectedNode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2892 var otherArc =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2893 this.children.length ?
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2894 angleFactor *
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2895 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2896 this.baseMagnitude + this.magnitude -
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2897 lastChild.baseMagnitude - lastChild.magnitude
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2898 )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2899 : this.baseMagnitude + this.magnitude;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2900 this.canDisplayLabelOther =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2901 this.children.length ?
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2902 otherArc *
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2903 (this.children[0].radiusInner.end + 1) * gRadius >=
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2904 minWidth()
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2905 : true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2906
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2907 this.keyUnclassified = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2908
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2909 if (this.canDisplayLabelOther) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2910 this.angleOther = Math.PI * 2 - otherArc / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2911 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2912 else if (otherArc > 0.0000000001) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2913 this.keyUnclassified = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2914 keys++;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2915 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2916
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2917 this.angleStart.setTarget(0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2918 this.angleEnd.setTarget(Math.PI * 2);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2919
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2920 if (this.children.length) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2921 this.radiusInner.setTarget(0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2922 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2923 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2924 this.radiusInner.setTarget(compressedRadii[0]);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2925 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2926
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2927 this.hidePrev = this.hide;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2928 this.hide = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2929 this.hideAlonePrev = this.hideAlone;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2930 this.hideAlone = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2931 this.keyed = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2932 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2933
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2934 if (hueMax - hueMin > 1 / 12) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2935 hueMax = hueMin + 1 / 12;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2936 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2937
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2938 // set lightness
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2939 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2940 if (!(hide || this.hideAlone)) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2941 if (useHue()) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2942 lightness = (lightnessBase + lightnessMax) / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2943 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2944 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2945 lightness = lightnessBase + (depth - 1) * lightnessFactor;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2946
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2947 if (lightness > lightnessMax) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2948 lightness = lightnessMax;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2949 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2950 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2951 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2952
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2953 if (hide) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2954 this.hide = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2955 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2956
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2957 if (this.hidePrev == undefined) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2958 this.hidePrev = this.hide;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2959 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2960
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2961 var hiddenStart = -1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2962 var hiddenHueNumer = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2963 var hiddenHueDenom = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2964
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2965
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2966 if (!this.hide) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2967 this.hiddenEnd = null;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2968 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2969
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2970 for (var i = 0; true; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2971 if (!this.hideAlone && !hide && (i == this.children.length
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2972 || !this.children[i].hide)) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2973 // reached a non-hidden child or the end; set targets for
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2974 // previous group of hidden children (if any) using their
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2975 // average hue
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2976
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2977 if (hiddenStart != -1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2978 var hiddenHue = hiddenHueDenom ? hiddenHueNumer
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2979 / hiddenHueDenom : hueMin;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2980
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2981 for (var j = hiddenStart; j < i; j++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2982 this.children[j].setTargetsSelected
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2983 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2984 hiddenHue,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2985 null,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2986 lightness,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2987 false,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2988 j < i - 1
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2989 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2990
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2991 this.children[j].hiddenEnd = null;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2992 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2993
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2994 this.children[hiddenStart].hiddenEnd = i - 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2995 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2996 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2997
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2998 if (i == this.children.length) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
2999 break;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3000 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3001
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3002 var child = this.children[i];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3003 var childHueMin;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3004 var childHueMax;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3005
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3006 if (this.magnitude > 0 && !this.hide && !this.hideAlone) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3007 if (useHue()) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3008 childHueMin = child.hues[currentDataset];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3009 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3010 else if (this == selectedNode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3011 var min = 0.0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3012 var max = 1.0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3013
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3014 if (this.children.length > 6) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3015 childHueMin = lerp((1 - Math.pow(
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3016 1 - i / this.children.length, 1.4)) * .95,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3017 0, 1, min, max);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3018 childHueMax = lerp((1 - Math.pow(
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3019 1 - (i + .55) / this.children.length, 1.4)) * .95,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3020 0, 1, min, max);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3021 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3022 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3023 childHueMin = lerp(i / this.children.length, 0, 1,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3024 min, max);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3025 childHueMax = lerp((i + .55) / this.children.length,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3026 0, 1, min, max);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3027 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3028 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3029 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3030 childHueMin = lerp
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3031 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3032 child.baseMagnitude,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3033 this.baseMagnitude,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3034 this.baseMagnitude + this.magnitude,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3035 hueMin,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3036 hueMax
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3037 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3038 childHueMax = lerp
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3039 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3040 child.baseMagnitude + child.magnitude * .99,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3041 this.baseMagnitude,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3042 this.baseMagnitude + this.magnitude,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3043 hueMin,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3044 hueMax
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3045 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3046 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3047 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3048 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3049 childHueMin = hueMin;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3050 childHueMax = hueMax;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3051 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3052
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3053 if (!this.hideAlone && !hide && !this.hide && child.hide) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3054 if (hiddenStart == -1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3055 hiddenStart = i;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3056 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3057
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3058 if (useHue()) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3059 hiddenHueNumer += childHueMin * child.magnitude;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3060 hiddenHueDenom += child.magnitude;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3061 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3062 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3063 hiddenHueNumer += childHueMin;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3064 hiddenHueDenom++;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3065 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3066 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3067 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3068 hiddenStart = -1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3069
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3070 this.children[i].setTargetsSelected
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3071 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3072 childHueMin,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3073 childHueMax,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3074 lightness,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3075 hide || this.keyed || this.hideAlone
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3076 || this.hide && !collapse,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3077 false
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3078 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3079 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3080 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3081
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3082 if (this.hue && this.magnitude) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3083 this.hue.setTarget(this.hues[currentDataset]);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3084
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3085 if (this.attributes[magnitudeIndex][lastDataset] == 0) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3086 this.hue.start = this.hue.end;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3087 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3088 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3089
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3090 this.radialPrev = this.radial;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3091
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3092 if (this == selectedNode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3093 this.resetLabelWidth();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3094 this.labelWidth.setTarget(this.nameWidth * labelWidthFudge);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3095 this.alphaWedge.setTarget(0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3096 this.alphaLabel.setTarget(1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3097 this.alphaOther.setTarget(1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3098 this.alphaArc.setTarget(0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3099 this.alphaLine.setTarget(0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3100 this.alphaPattern.setTarget(0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3101 this.r.setTarget(255);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3102 this.g.setTarget(255);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3103 this.b.setTarget(255);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3104 this.radial = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3105 this.labelRadius.setTarget(0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3106 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3107 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3108 var rgb = hslToRgb
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3109 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3110 hueMin,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3111 saturation,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3112 lightness
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3113 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3114
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3115 this.r.setTarget(rgb.r);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3116 this.g.setTarget(rgb.g);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3117 this.b.setTarget(rgb.b);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3118 this.alphaOther.setTarget(0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3119
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3120 this.alphaWedge.setTarget(1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3121
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3122 if (this.hide || this.hideAlone) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3123 this.alphaPattern.setTarget(1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3124 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3125 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3126 this.alphaPattern.setTarget(0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3127 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3128
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3129 // set radial
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3130 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3131 if (!(hide || this.hide))//&& ! this.keyed )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3132 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3133 if (this.hideAlone) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3134 this.radial = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3135 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3136 else if (false && canDisplayChildLabels) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3137 this.radial = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3138 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3139 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3140 this.radial = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3141
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3142 if (this.hasChildren() && depth < maxDisplayDepth) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3143 var lastChild = this.children[this.children.length - 1];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3144
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3145 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3146 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3147 lastChild.angleEnd.end == this.angleEnd.end ||
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3148 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3149 (this.angleStart.end + this.angleEnd.end) / 2 -
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3150 lastChild.angleEnd.end
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3151 ) * (this.radiusInner.end + 1) * gRadius * 2 <
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3152 minWidth()
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3153 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3154 this.radial = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3155 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3156 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3157 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3158 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3159
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3160 // set alphaLabel
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3161 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3162 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3163 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3164 collapse ||
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3165 hide ||
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3166 this.hide ||
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3167 this.keyed ||
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3168 depth > maxDisplayDepth ||
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3169 !this.canDisplayDepth()
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3170 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3171 this.alphaLabel.setTarget(0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3172 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3173 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3174 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3175 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3176 (this.radial || nLabelOffsets[depth - 2])
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3177 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3178 this.alphaLabel.setTarget(1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3179 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3180 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3181 this.alphaLabel.setTarget(0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3182
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3183 if (this.radialPrev) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3184 this.alphaLabel.start = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3185 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3186 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3187 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3188
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3189 // set alphaArc
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3190 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3191 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3192 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3193 collapse ||
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3194 hide ||
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3195 depth > maxDisplayDepth ||
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3196 !this.canDisplayDepth()
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3197 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3198 this.alphaArc.setTarget(0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3199 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3200 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3201 this.alphaArc.setTarget(1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3202 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3203
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3204 // set alphaLine
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3205 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3206 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3207 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3208 hide ||
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3209 this.hide && nextSiblingHidden ||
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3210 depth > maxDisplayDepth ||
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3211 !this.canDisplayDepth()
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3212 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3213 this.alphaLine.setTarget(0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3214 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3215 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3216 this.alphaLine.setTarget(1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3217 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3218
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3219 //if ( ! this.radial )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3220 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3221 this.resetLabelWidth();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3222 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3223
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3224 // set labelRadius target
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3225 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3226 if (collapse) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3227 this.labelRadius.setTarget(this.radiusInner.end);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3228 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3229 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3230 if (depth > maxDisplayDepth || !this.canDisplayDepth()) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3231 this.labelRadius.setTarget(1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3232 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3233 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3234 this.setTargetLabelRadius();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3235 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3236 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3237 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3238 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3239
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3240 this.setTargetWedge = function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3241 var depth = this.getDepth() - selectedNode.getDepth() + 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3242
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3243 // set angles
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3244 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3245 var baseMagnitudeRelative = this.baseMagnitude
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3246 - selectedNode.baseMagnitude;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3247 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3248 this.angleStart.setTarget(baseMagnitudeRelative * angleFactor);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3249 this.angleEnd.setTarget((baseMagnitudeRelative + this.magnitude)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3250 * angleFactor);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3251
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3252 // set radiusInner
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3253 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3254 if (depth > maxDisplayDepth || !this.canDisplayDepth()) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3255 this.radiusInner.setTarget(1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3256 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3257 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3258 if (compress) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3259 this.radiusInner.setTarget(compressedRadii[depth - 2]);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3260 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3261 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3262 this.radiusInner.setTarget(nodeRadius * (depth - 1));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3263 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3264 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3265
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3266 if (this.hide != undefined) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3267 this.hidePrev = this.hide;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3268 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3269
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3270 if (this.hideAlone != undefined) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3271 this.hideAlonePrev = this.hideAlone;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3272 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3273
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3274 // set hide
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3275 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3276 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3277 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3278 (this.angleEnd.end - this.angleStart.end) *
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3279 (this.radiusInner.end * gRadius + gRadius) <
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3280 minWidth()
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3281 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3282 if (depth == 2 && !this.getCollapse() && this.depth
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3283 <= maxAbsoluteDepth) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3284 this.keyed = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3285 keys++;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3286 this.hide = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3287
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3288 var percentage = this.getPercentage();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3289 this.keyLabel = this.name + ' ' + percentage + '%';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3290 var dim = context.measureText(this.keyLabel);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3291 this.keyNameWidth = dim.width;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3292 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3293 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3294 this.keyed = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3295 this.hide = depth > 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3296 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3297 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3298 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3299 this.keyed = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3300 this.hide = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3301 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3302 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3303
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3304 this.shortenLabel = function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3305 var label = this.name;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3306
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3307 var labelWidth = this.nameWidth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3308 var maxWidth = this.labelWidth.current();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3309 var minEndLength = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3310
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3311 if (labelWidth > maxWidth && label.length > minEndLength * 2) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3312 var endLength =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3313 Math.floor((label.length - 1) * maxWidth / labelWidth / 2);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3314
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3315 if (endLength < minEndLength) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3316 endLength = minEndLength;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3317 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3318
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3319 return (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3320 label.substring(0, endLength) +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3321 '...' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3322 label.substring(label.length - endLength));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3323 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3324 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3325 return label;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3326 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3327 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3328
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3329 /* this.shouldAddSearchResultsString = function()
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3330 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3331 if ( this.isSearchResult )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3332 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3333 return this.searchResults > 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3334 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3335 else
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3336 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3337 return this.searchResults > 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3338 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3339 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3340 */
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3341 this.sort = function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3342 this.children.sort(function (a, b) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3343 if (sortByScoreCheckBox.checked) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3344 return b.getHue() - a.getHue()
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3345 } else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3346 return b.getMagnitude() - a.getMagnitude()
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3347 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3348 });
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3349
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3350 for (var i = 0; i < this.children.length; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3351 this.children[i].sort();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3352 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3353 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3354 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3355
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3356 var options;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3357
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3358 function addOptionElement(position, innerHTML, title, padding) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3359 var div = document.createElement("div");
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3360 // div.style.position = 'absolute';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3361 // div.style.top = position + 'px';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3362 div.innerHTML = innerHTML;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3363 // div.style.display = 'block';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3364 div.style.padding = padding || '2px';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3365
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3366 if (title) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3367 div.title = title;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3368 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3369
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3370 options.appendChild(div);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3371 var height = 0;//div.clientHeight;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3372 return position + height;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3373 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3374
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3375 function addOptionElements(hueName, hueDefault) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3376 options = document.createElement('div');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3377 options.style.position = 'absolute';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3378 options.style.top = '0px';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3379 options.addEventListener('mousedown', function (e) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3380 mouseClick(e)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3381 }, false);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3382 // options.onmouseup = function(e) {mouseUp(e)}
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3383 document.body.appendChild(options);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3384
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3385 if (chart === ChartEnum.TAXOMIC) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3386 document.body.style.font = '11px Ubuntu';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3387 } else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3388 document.body.style.font = '12px Saira Semi Condensed';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3389 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3390 var position = 5;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3391
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3392 function logLoaded(fontFace) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3393 console.log(fontFace.family, 'loaded successfully.');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3394 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3395
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3396 // Loading FontFaces via JavaScript is alternative to using CSS's @font-face rule.
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3397 // var ubuntuMonoFontFace = new FontFace('Ubuntu Mono', 'url(https://fonts.gstatic.com/s/ubuntumono/v7/KFOjCneDtsqEr0keqCMhbCc6CsTYl4BO.woff2)');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3398 // document.fonts.add(ubuntuMonoFontFace);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3399 // ubuntuMonoFontFace.loaded.then(logLoaded);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3400 // var oxygenFontFace = new FontFace('Oxygen', 'url(https://fonts.gstatic.com/s/oxygen/v5/qBSyz106i5ud7wkBU-FrPevvDin1pK8aKteLpeZ5c0A.woff2)');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3401 // document.fonts.add(oxygenFontFace);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3402 // oxygenFontFace.loaded.then(logLoaded);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3403 var oxygenMonoFontFace = new FontFace('Oxygen Mono', 'url(https://fonts.gstatic.com/s/oxygenmono/v5/h0GsssGg9FxgDgCjLeAd7hjYx-6tPUUv.woff2)');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3404 document.fonts.add(oxygenMonoFontFace);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3405 oxygenMonoFontFace.loaded.then(logLoaded);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3406 var sairaCondensedFontFace = new FontFace('Saira Condensed', 'url(https://fonts.gstatic.com/s/sairacondensed/v3/EJROQgErUN8XuHNEtX81i9TmEkrvoutF2o-Srg.woff2)');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3407 document.fonts.add(sairaCondensedFontFace);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3408 sairaCondensedFontFace.loaded.then(logLoaded);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3409 var sairaSemiCondensedFontFace = new FontFace('Saira Semi Condensed', 'url(https://fonts.gstatic.com/s/sairasemicondensed/v3/U9MD6c-2-nnJkHxyCjRcnMHcWVWV1cWRRX8MaOY8q3T_.woff2)');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3410 document.fonts.add(sairaSemiCondensedFontFace);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3411 sairaSemiCondensedFontFace.loaded.then(logLoaded);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3412
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3413 // The .ready promise resolves when all fonts that have been previously requested
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3414 // are loaded and layout operations are complete.
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3415 document.fonts.ready.then(function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3416 console.log('There are', document.fonts.size, 'FontFaces loaded.\n');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3417
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3418 // document.fonts has a Set-like interface. Here, we're iterating over its values.
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3419 for (var fontFace of document.fonts.values()) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3420 console.log('FontFace:');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3421 for (var property in fontFace) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3422 console.log(' ' + property + ': ' + fontFace[property]);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3423 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3424 console.log('\n');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3425 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3426 });
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3427
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3428 details = document.createElement('div');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3429 details.style.position = 'absolute';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3430 details.style.top = '1%';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3431 details.style.right = '2%';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3432 details.style.textAlign = 'right';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3433 document.body.insertBefore(details, canvas);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3434 //<div id="details" style="position:absolute;top:1%;right:2%;text-align:right;">
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3435
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3436 details.innerHTML = '\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3437 <span id="detailsName" style="font-weight:bold"></span>&nbsp;\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3438 <input type="button" id="detailsExpand" onclick="expand(focusNode);"\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3439 value="&harr;" title="Expand this wedge to become the new focus of the chart"/><br/>\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3440 <div id="detailsInfo" style="float:right"></div>';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3441
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3442 keyControl = document.createElement('input');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3443 keyControl.type = 'button';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3444 keyControl.value = showKeys ? 'x' : '…';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3445 keyControl.style.position = '';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3446 keyControl.style.position = 'fixed';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3447 keyControl.style.visibility = 'hidden';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3448
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3449 document.body.insertBefore(keyControl, canvas);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3450
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3451 var logoElement = document.getElementById('logo');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3452
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3453 if (logoElement) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3454 logoImage = logoElement.src;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3455 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3456 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3457 logoImage = 'https://raw.githubusercontent.com/khyox/recentrifuge/master/recentrifuge/img/logo-rcf-mini.uri';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3458 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3459 var placeholderTit;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3460 if (chart === ChartEnum.GENOMIC) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3461 placeholderTit = "Complete or partial function, process, component...";
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3462 } else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3463 placeholderTit = "Taxon scientific name, complete or partial name...";
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3464 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3465 position = addOptionElement
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3466 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3467 position,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3468 '<a style="margin:2px" target="_blank" href="http://www.recentrifuge.org"><img style="vertical-align:middle;width:136px;height:32px;padding:8px 10px 6px 10px" src="' + logoImage + '"/></a><input type="button" id="back" value="&larr;" title="Go back (Shortcut: &larr;)"/>\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3469 <input type="button" id="forward" value="&rarr;" title="Go forward (Shortcut: &rarr;)"/> \
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3470 &nbsp;&nbsp;&nbsp;Search: <input type="text" placeholder="' + placeholderTit + '" size="45" id="search"/>\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3471 <input id="searchClear" type="button" value="x" onclick="clearSearch()"/> \
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3472 <span id="searchResults"></span>'
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3473 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3474
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3475 if (datasets > 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3476 var size = datasets < DATASET_MAX_SIZE ? datasets : DATASET_MAX_SIZE;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3477
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3478 var select =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3479 '<table style="border-collapse:collapse;margin-left:10px"><tr><td style="padding:0px">' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3480 '<select id="datasets" style="min-width:100px" size="' + size + '" onchange="onDatasetChange()">';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3481
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3482 for (var i = 0; i < datasetNames.length; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3483 select += '<option>' + datasetNames[i] + '</option>';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3484 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3485 select +=
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3486 '</select></td><td style="vertical-align:top;padding:2px;">' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3487 '<input style="display:block" title="Previous dataset ' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3488 '(Shortcut: &uarr;)" id="prevDataset" type="button"' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3489 ' value="&uarr;" onclick="prevDataset()" disabled="true"/>' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3490 '<input title="Next dataset (Shortcut: &darr;)" ' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3491 'id="nextDataset" type="button" value="&darr;" ' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3492 'onclick="nextDataset()"/><br/></td>' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3493 '<td style="vertical-align:top;padding:2px;">' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3494 '<input style="display:block" ' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3495 'title="Switch to the prior dataset that was viewed ' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3496 '(Shortcut: TAB)" id="lastDataset" type="button" ' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3497 'style="font:11px Ubuntu" value="prior" ' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3498 'onclick="selectLastDataset()"/>' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3499 '<select id="ranks" onchange="onRankChange()" ' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3500 'title="Filter samples by taxonomic rank">' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3501 '<option value="SUMMARY">SUMMARY</option>' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3502 '<option value="strain">strain</option>' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3503 '<option value="species">species</option>' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3504 '<option value="genus">genus</option>' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3505 '<option value="family">family</option>' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3506 '<option value="order">order</option>' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3507 '<option value="class">class</option>' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3508 '<option value="phylum">phylum</option>' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3509 '<option value="kingdom">kingdom</option>' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3510 '<option value="domain">domain</option>' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3511 '<option value="ALL">ALL</option>' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3512 '<option value="NONE">NONE</option>' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3513 '</select></td></tr></table>';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3514
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3515 position = addOptionElement(position + 5, select);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3516
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3517 datasetDropDown = document.getElementById('datasets');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3518 datasetButtonLast = document.getElementById('lastDataset');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3519 datasetButtonPrev = document.getElementById('prevDataset');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3520 datasetButtonNext = document.getElementById('nextDataset');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3521 rankDropDown = document.getElementById('ranks');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3522 if (chart === ChartEnum.GENOMIC) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3523 for (i = 1; i < 10; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3524 rankDropDown.remove(1); // Remove taxonomic ranks from options
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3525 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3526 datasetDropDown.style.color='#FFFFFF'
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3527 datasetDropDown.style.backgroundColor='#555555' // #B20DFF22'
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3528 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3529 position += datasetDropDown.clientHeight;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3530 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3531
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3532 position = addOptionElement
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3533 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3534 position + 5,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3535 '<input type="button" id="maxAbsoluteDepthDecrease" style="margin:1px 4px 0 10px" value="-"/>\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3536 <span id="maxAbsoluteDepth"></span>\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3537 &nbsp;<input type="button" id="maxAbsoluteDepthIncrease" style="margin:2px 1px 0 2px" value="+"/> Max depth',
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3538 'Maximum depth to display, counted from the top level \
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3539 and including collapsed wedges.'
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3540 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3541
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3542 position = addOptionElement
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3543 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3544 position,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3545 '<input type="button" id="fontSizeDecrease" style="margin:0 4px 0 10px" value="-"/>\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3546 <span id="fontSize"></span>\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3547 &nbsp;<input type="button" id="fontSizeIncrease" style="margin:0 2px 0 2px" value="+"/> Font size'
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3548 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3549
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3550 position = addOptionElement
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3551 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3552 position,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3553 '<input type="button" id="radiusDecrease" style="margin:0 4px 0 10px" value="-"/>\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3554 <input type="button" id="radiusIncrease" style="margin:0 2px 0 1px" value="+"/> Chart size'
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3555 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3556
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3557 position = addOptionElement
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3558 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3559 position,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3560 '<input type="button" id="bkgBrightDecrease" style="margin:0 4px 5px 10px" value="-"/>\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3561 <input type="button" id="bkgBrightIncrease" style="margin:0 2px 5px 1px" value="+"/> Bkg bright'
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3562 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3563
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3564 if (hueName) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3565 hueDisplayName = attributes[attributeIndex(hueName)].displayName;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3566
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3567 position = addOptionElement
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3568 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3569 position + 5,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3570 '<input type="checkbox" id="useHue" style="float:left; ' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3571 'margin:1px 4px 0 12px"/><div>Color by ' + hueDisplayName +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3572 '</div>'
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3573 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3574
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3575 useHueCheckBox = document.getElementById('useHue');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3576 useHueCheckBox.checked = hueDefault;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3577 useHueCheckBox.onclick = handleResize;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3578 useHueCheckBox.onmousedown = suppressEvent;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3579
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3580 position = addOptionElement
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3581 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3582 position,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3583 '<input type="checkbox" id="sortByScore"/> Use to sort',
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3584 'Activates sorting the taxa by this magnitude',
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3585 '0px 2px 2px 25px'
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3586 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3587
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3588 sortByScoreCheckBox = document.getElementById('sortByScore');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3589 sortByScoreCheckBox.onclick = onSortChange;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3590 sortByScoreCheckBox.onmousedown = suppressEvent;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3591 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3592
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3593 position = addOptionElement
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3594 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3595 position,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3596 '<input type="checkbox" id="collapse" style="margin:4px 4px 0 12px" ' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3597 'checked="checked"/>Collapse',
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3598 'Collapse wedges that are redundant (entirely composed of another ' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3599 'wedge). Also affects score navigation, restricting to lowest level.'
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3600 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3601
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3602 /*
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3603 position = addOptionElement
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3604 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3605 position,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3606 '&nbsp;<input type="checkbox" id="shorten" checked="checked" />Shorten labels</div>',
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3607 'Prevent labels from overlapping by shortening them'
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3608 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3609
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3610 position = addOptionElement
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3611 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3612 position,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3613 '&nbsp;<input type="checkbox" id="compress" checked="checked" />Compress',
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3614 'Compress wedges if needed to show the entire depth'
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3615 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3616 */
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3617
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3618 position = addOptionElement
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3619 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3620 position,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3621 '<input type="button" id="snapshot" style="margin:5px 2px 0 10px"\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3622 value="Snapshot" title="Render the current view as SVG (Scalable \
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3623 Vector Graphics), a vectorial publication-quality format that can be saved or \
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3624 printed as PDF"/> <input type="button" id="help" value="?"\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3625 onclick="window.open(\'https://github.com/khyox/recentrifuge/wiki\',\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3626 \'help\')" title="Help"/>');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3627
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3628 position = addOptionElement
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3629 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3630 position + 5,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3631 '<input type="button" id="linkButton" style="margin:5px 2px 0 10px" value="Link"/>\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3632 <input type="text" size="30" id="linkText"/>',
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3633 'Show a link to this view that can be copied for bookmarking or sharing'
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3634 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3635 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3636
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3637 function arrow(angleStart, angleEnd, radiusInner) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3638 if (context.globalAlpha == 0) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3639 return;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3640 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3641
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3642 var angleCenter = (angleStart + angleEnd) / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3643 var radiusArrowInner = radiusInner - gRadius / 10;//nodeRadius * gRadius;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3644 var radiusArrowOuter = gRadius * 1.1;//(1 + nodeRadius);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3645 var radiusArrowCenter = (radiusArrowInner + radiusArrowOuter) / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3646 var pointLength = (radiusArrowOuter - radiusArrowInner) / 5;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3647
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3648 context.fillStyle = highlightFill;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3649 context.lineWidth = highlightLineWidth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3650
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3651 // First, mask out the first half of the arrow. This will prevent the tips
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3652 // from superimposing if the arrow goes most of the way around the circle.
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3653 // Masking is done by setting the clipping region to the inverse of the
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3654 // half-arrow, which is defined by cutting the half-arrow out of a large
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3655 // rectangle
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3656 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3657 context.beginPath();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3658 context.arc(0, 0, radiusInner, angleCenter, angleEnd, false);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3659 context.lineTo
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3660 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3661 radiusArrowInner * Math.cos(angleEnd),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3662 radiusArrowInner * Math.sin(angleEnd)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3663 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3664 context.lineTo
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3665 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3666 radiusArrowCenter * Math.cos(angleEnd)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3667 - pointLength * Math.sin(angleEnd),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3668 radiusArrowCenter * Math.sin(angleEnd)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3669 + pointLength * Math.cos(angleEnd)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3670 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3671 context.lineTo
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3672 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3673 radiusArrowOuter * Math.cos(angleEnd),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3674 radiusArrowOuter * Math.sin(angleEnd)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3675 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3676 context.arc(0, 0, gRadius, angleEnd, angleCenter, true);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3677 context.closePath();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3678 context.moveTo(-imageWidth, -imageHeight);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3679 context.lineTo(imageWidth, -imageHeight);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3680 context.lineTo(imageWidth, imageHeight);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3681 context.lineTo(-imageWidth, imageHeight);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3682 context.closePath();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3683 context.save();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3684 context.clip();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3685
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3686 // Next, draw the other half-arrow with the first half masked out
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3687 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3688 context.beginPath();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3689 context.arc(0, 0, radiusInner, angleCenter, angleStart, true);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3690 context.lineTo
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3691 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3692 radiusArrowInner * Math.cos(angleStart),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3693 radiusArrowInner * Math.sin(angleStart)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3694 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3695 context.lineTo
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3696 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3697 radiusArrowCenter * Math.cos(angleStart)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3698 + pointLength * Math.sin(angleStart),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3699 radiusArrowCenter * Math.sin(angleStart)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3700 - pointLength * Math.cos(angleStart)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3701 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3702 context.lineTo
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3703 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3704 radiusArrowOuter * Math.cos(angleStart),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3705 radiusArrowOuter * Math.sin(angleStart)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3706 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3707 context.arc(0, 0, gRadius, angleStart, angleCenter, false);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3708 context.fill();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3709 context.stroke();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3710
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3711 // Finally, remove the clipping region and draw the first half-arrow. This
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3712 // half is extended slightly to fill the seam.
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3713 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3714 context.restore();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3715 context.beginPath();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3716 context.arc(0, 0, radiusInner, angleCenter
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3717 - 2 / (2 * Math.PI * radiusInner), angleEnd, false);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3718 context.lineTo
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3719 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3720 radiusArrowInner * Math.cos(angleEnd),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3721 radiusArrowInner * Math.sin(angleEnd)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3722 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3723 context.lineTo
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3724 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3725 radiusArrowCenter * Math.cos(angleEnd)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3726 - pointLength * Math.sin(angleEnd),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3727 radiusArrowCenter * Math.sin(angleEnd)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3728 + pointLength * Math.cos(angleEnd)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3729 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3730 context.lineTo
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3731 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3732 radiusArrowOuter * Math.cos(angleEnd),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3733 radiusArrowOuter * Math.sin(angleEnd)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3734 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3735 context.arc(0, 0, gRadius, angleEnd, angleCenter - 2
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3736 / (2 * Math.PI * gRadius), true);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3737 context.fill();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3738 context.stroke();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3739 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3740
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3741 function attributeIndex(aname) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3742 for (var i = 0; i < attributes.length; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3743 if (aname == attributes[i].name) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3744 return i;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3745 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3746 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3747
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3748 return null;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3749 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3750
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3751 function bkgBrightDecrease() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3752 var bkgBrightInt = parseInt(bkgBright, 16)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3753 if (bkgBrightInt > parseInt('555555', 16)) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3754 bkgBright = (bkgBrightInt - 0x111111).toString(16)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3755 document.body.style.backgroundColor = '#' + bkgBright
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3756 updateViewNeeded = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3757 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3758 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3759
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3760 function bkgBrightIncrease() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3761 var bkgBrightInt = parseInt(bkgBright, 16)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3762 if (bkgBrightInt < parseInt('ffffff', 16)) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3763 bkgBright = (bkgBrightInt + 0x111111).toString(16)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3764 document.body.style.backgroundColor = '#' + bkgBright
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3765 updateViewNeeded = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3766 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3767 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3768
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3769 function checkHighlight() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3770 var lastHighlightedNode = highlightedNode;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3771 var lastHighlightingHidden = highlightingHidden;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3772
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3773 highlightedNode = selectedNode;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3774 resetKeyOffset();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3775
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3776 if (progress == 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3777 selectedNode.checkHighlight();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3778 if (selectedNode.getParent()) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3779 selectedNode.getParent().checkHighlightCenter();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3780 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3781
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3782 focusNode.checkHighlightMap();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3783 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3784
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3785 if (highlightedNode != selectedNode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3786 if (highlightedNode == focusNode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3787 // canvas.style.display='none';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3788 // window.resizeBy(1,0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3789 // canvas.style.cursor='ew-resize';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3790 // window.resizeBy(-1,0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3791 // canvas.style.display='inline';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3792 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3793 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3794 // canvas.style.cursor='pointer';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3795 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3796 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3797 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3798 // canvas.style.cursor='auto';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3799 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3800
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3801 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3802 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3803 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3804 true ||
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3805 highlightedNode != lastHighlightedNode ||
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3806 highlightingHidden != highlightingHiddenLast
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3807 ) &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3808 progress == 1
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3809 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3810 draw(); // TODO: handle in update()
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3811 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3812 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3813
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3814 function checkSelectedCollapse() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3815 var newNode = selectedNode;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3816
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3817 while (newNode.getCollapse()) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3818 newNode = newNode.children[0];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3819 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3820
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3821 if (newNode.children.length == 0 && newNode.getParent()) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3822 newNode = newNode.getParent();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3823 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3824
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3825 if (newNode != selectedNode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3826 selectNode(newNode);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3827 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3828 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3829
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3830 function clearSearch() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3831 if (search.value != '') {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3832 search.value = '';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3833 nodesIndex = undefined;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3834 onSearchChange();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3835 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3836 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3837
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3838 function createSVG() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3839 svgNS = "http://www.w3.org/2000/svg";
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3840 var SVG = {};
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3841 SVG.xlinkns = "http://www.w3.org/1999/xlink";
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3842
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3843 var newSVG = document.createElementNS(svgNS, "svg:svg");
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3844
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3845 newSVG.setAttribute("id", "canvas");
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3846 // How big is the canvas in pixels
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3847 newSVG.setAttribute("width", '100%');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3848 newSVG.setAttribute("height", '100%');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3849 // Set the coordinates used by drawings in the canvas
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3850 // newSVG.setAttribute("viewBox", "0 0 " + imageWidth + " " + imageHeight);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3851 // Define the XLink namespace that SVG uses
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3852 newSVG.setAttributeNS
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3853 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3854 "http://www.w3.org/2000/xmlns/",
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3855 "xmlns:xlink",
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3856 SVG.xlinkns
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3857 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3858
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3859 return newSVG;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3860 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3861
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3862 function degrees(radians) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3863 return radians * 180 / Math.PI;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3864 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3865
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3866 function draw() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3867 tweenFrames++;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3868 //resize();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3869 // context.fillRect(0, 0, imageWidth, imageHeight);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3870 context.clearRect(0, 0, imageWidth, imageHeight);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3871
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3872 context.font = fontNormal;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3873 context.textBaseline = 'middle';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3874
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3875 //context.strokeStyle = 'rgba(0, 0, 0, 0.3)';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3876 context.translate(centerX, centerY);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3877
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3878 resetKeyOffset();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3879
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3880 head.draw(false, false); // draw pie slices
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3881 head.draw(true, false); // draw labels
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3882
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3883 var pathRoot = selectedNode;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3884
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3885 if (focusNode != 0 && focusNode != selectedNode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3886 context.globalAlpha = 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3887 focusNode.drawHighlight(true);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3888 pathRoot = focusNode;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3889 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3890
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3891 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3892 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3893 highlightedNode &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3894 highlightedNode.getDepth() >= selectedNode.getDepth() &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3895 highlightedNode != focusNode
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3896 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3897 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3898 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3899 progress == 1 &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3900 highlightedNode != selectedNode &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3901 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3902 highlightedNode != focusNode ||
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3903 focusNode.children.length > 0
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3904 )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3905 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3906 context.globalAlpha = 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3907 highlightedNode.drawHighlight(true);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3908 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3909
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3910 //pathRoot = highlightedNode;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3911 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3912 else if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3913 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3914 progress == 1 &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3915 highlightedNode.getDepth() < selectedNode.getDepth()
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3916 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3917 context.globalAlpha = 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3918 highlightedNode.drawHighlightCenter();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3919 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3920
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3921 if (quickLook && false) // TEMP
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3922 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3923 context.globalAlpha = 1 - progress / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3924 selectedNode.drawHighlight(true);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3925 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3926 else if (progress < 1)//&& zoomOut() )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3927 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3928 if (!zoomOut)//() )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3929 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3930 context.globalAlpha = selectedNode.alphaLine.current();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3931 selectedNode.drawHighlight(true);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3932 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3933 else if (selectedNodeLast) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3934 context.globalAlpha = 1 - 4 * Math.pow(progress - .5, 2);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3935 selectedNodeLast.drawHighlight(false);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3936 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3937 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3938
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3939 drawDatasetName();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3940
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3941 //drawHistory();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3942
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3943 context.translate(-centerX, -centerY);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3944 context.globalAlpha = 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3945
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3946 mapRadius =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3947 (imageHeight / 2 - details.clientHeight - details.offsetTop) /
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3948 (pathRoot.getDepth() - 1) * 3 / 4 / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3949
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3950 if (mapRadius > maxMapRadius) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3951 mapRadius = maxMapRadius;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3952 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3953
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3954 mapBuffer = mapRadius / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3955
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3956 //context.font = fontNormal;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3957 pathRoot.drawMap(pathRoot);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3958
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3959 if (hueDisplayName && useHue()) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3960 drawLegend();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3961 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3962 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3963
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3964 function drawBubble(angle, radius, width, radial, flip) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3965 var height = fontSize * 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3966 var x;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3967 var y;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3968
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3969 width = width + fontSize;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3970
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3971 if (radial) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3972 y = -fontSize;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3973
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3974 if (flip) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3975 x = radius - width + fontSize / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3976 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3977 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3978 x = radius - fontSize / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3979 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3980 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3981 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3982 x = -width / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3983 y = -radius - fontSize;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3984 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3985
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3986 if (snapshotMode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3987 drawBubbleSVG(x + centerX, y + centerY, width, height, fontSize, angle);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3988 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3989 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3990 drawBubbleCanvas(x, y, width, height, fontSize, angle);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3991 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3992 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3993
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3994 function drawBubbleCanvas(x, y, width, height, radius, rotation) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3995 context.strokeStyle = 'black';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3996 context.lineWidth = highlightLineWidth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3997 context.fillStyle = 'rgba(255, 255, 255, .75)';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3998 context.rotate(rotation);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
3999 roundedRectangle(x, y, width, fontSize * 2, fontSize);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4000 context.fill();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4001 context.stroke();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4002 context.rotate(-rotation);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4003 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4004
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4005 function drawBubbleSVG(x, y, width, height, radius, rotation) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4006 svg +=
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4007 '<rect x="' + x + '" y="' + y +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4008 '" width="' + width +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4009 '" height="' + height +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4010 '" rx="' + radius +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4011 '" ry="' + radius +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4012 '" fill="rgba(255, 255, 255, .75)' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4013 '" class="highlight" ' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4014 'transform="rotate(' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4015 degrees(rotation) + ',' + centerX + ',' + centerY +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4016 ')"/>';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4017 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4018
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4019 function drawDatasetName() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4020 var alpha = datasetAlpha.current();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4021
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4022 if (alpha > 0) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4023 var radius = gRadius * compressedRadii[0] / -2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4024
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4025 if (alpha > 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4026 alpha = 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4027 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4028
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4029 context.globalAlpha = alpha;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4030
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4031 drawBubble(0, -radius, datasetWidths[currentDataset], false, false);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4032 drawText(datasetNames[currentDataset], 0, radius, 0, 'center', true);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4033 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4034 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4035
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4036 function drawHistory() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4037 var alpha = 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4038 context.textAlign = 'center';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4039
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4040 for (var i = 0; i < nodeHistoryPosition && alpha > 0; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4041
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4042 context.globalAlpha = alpha - historyAlphaDelta * tweenFactor;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4043 context.fillText
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4044 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4045 nodeHistory[nodeHistoryPosition - i - 1].name,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4046 0,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4047 (i + tweenFactor) * historySpacingFactor * fontSize - 1
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4048 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4049
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4050 if (alpha > 0) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4051 alpha -= historyAlphaDelta;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4052 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4053 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4054
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4055 context.globalAlpha = 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4056 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4057
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4058 function drawLegend() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4059 var width = imageHeight * .0265;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4060 var side = width * 0.9
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4061 var left_buttons = imageWidth * .008;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4062 var left = left_buttons + side + fontSize;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4063 var height = imageHeight * .15;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4064 var top = imageHeight - fontSize * 3.5 - height;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4065 var textLeft = left + width + fontSize / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4066 var delta = (height - side) / 3;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4067
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4068 canvasButtons = [] // Delete previous buttons
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4069 var buttonMost = new CanvasButton('mostScore', left_buttons,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4070 top, side, side, '#c87cca');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4071 var buttonLest = new CanvasButton('lestScore', left_buttons,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4072 top + 3 * delta, side, side, '#d38381');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4073 canvasButtons.push(buttonMost, buttonLest);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4074 if (nodesIndex !== undefined) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4075 var buttonMore = new CanvasButton('moreScore', left_buttons,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4076 top + delta, side, side, '#81c8d3');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4077 var buttonLess = new CanvasButton('lessScore', left_buttons,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4078 top + 2 * delta, side, side, '#96d281');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4079 canvasButtons.push(buttonMore, buttonLess)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4080 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4081 canvasButtons.forEach(function (element) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4082 element.draw(context);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4083 });
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4084 context.fillStyle = 'black';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4085 context.textAlign = 'start';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4086 context.font = fontNormal;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4087 context.fillText(hueDisplayName, left_buttons, imageHeight - fontSize * 1.5);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4088
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4089 var gradient = context.createLinearGradient(0, top + height, 0, top);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4090
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4091 for (var i = 0; i < hueStopPositions.length; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4092 gradient.addColorStop(hueStopPositions[i], hueStopHsl[i]);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4093
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4094 var textY = top + (1 - hueStopPositions[i]) * height;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4095
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4096 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4097 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4098 i === 0 ||
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4099 i === hueStopPositions.length - 1 ||
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4100 textY > top + fontSize && textY < top + height - fontSize
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4101 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4102 context.fillText(hueStopText[i], textLeft, textY);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4103 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4104 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4105
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4106 context.fillStyle = gradient;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4107 context.fillRect(left, top, width, height);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4108 context.lineWidth = thinLineWidth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4109 context.strokeRect(left, top, width, height);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4110
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4111 // Sample statistics
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4112 if (currentDataset < numRawSamples) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4113 var stat = stats[currentDataset];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4114 // Define aux position variables
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4115 var statsX = textLeft + 2 * width;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4116 var statsY = top;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4117 var rad = width;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4118 context.font = "Bold 11px Ubuntu";
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4119 var statLabelText;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4120 if (chart === ChartEnum.GENOMIC) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4121 context.fillStyle = 'rgba(170, 20, 255, 1)';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4122 statLabelText = 'Functional sample statistics';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4123 } else if (stat.is_ctrl) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4124 context.fillStyle = 'rgba(50, 50, 200, 1)';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4125 statLabelText = 'Control statistics';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4126 } else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4127 context.fillStyle = 'rgba(200, 50, 50, 1)';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4128 statLabelText = 'Sample statistics';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4129 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4130 context.fillText(statLabelText, statsX + width,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4131 imageHeight - fontSize * 1.5);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4132 // Get the set of strings
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4133 var oldFont = context.font;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4134 context.font = "10.5px monospace"; // In case the next line fails
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4135 context.font = "10.5px Oxygen Mono";
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4136 var readTit;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4137 var nodeTit;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4138 if (chart === ChartEnum.GENOMIC) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4139 readTit = 'Annotations read: '
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4140 nodeTit = 'GOs'
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4141 } else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4142 readTit = 'Sequences read: '
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4143 nodeTit = 'TaxIDs'
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4144 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4145 var statsStrs = [
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4146 readTit + stat.sread,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4147 ' those classified: ' + (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4148 stat.sclas / stat.sread * 100).toPrecision(3) + '%',
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4149 ' those accepted: '
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4150 + (stat.sfilt / stat.sclas * 100).toPrecision(3) + '%',
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4151 'Score average: ' + parseFloat(stat.scavg).toFixed(1),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4152 ' min: ' + parseFloat(stat.scmin).toFixed(1) +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4153 ' max: ' + parseFloat(stat.scmax).toFixed(1),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4154 'Length average: ' + stat.lnavg,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4155 ' min: ' + stat.lnmin + ' max: ' + stat.lnmax,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4156 nodeTit + ' by classifier: ' + stat.tclas,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4157 ' those accepted: ' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4158 (stat.tfilt / stat.tclas * 100).toPrecision(3) + '%',
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4159 ' final: ' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4160 (stat.tfold / stat.tfilt * 100).toPrecision(3) + '% ['
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4161 + stat.tfold + ']'
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4162 ];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4163 var maxTextWidth = Math.max.apply(null, statsStrs.map(function (text) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4164 return context.measureText(text).width
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4165 }));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4166 // Draw the rounded rectangle
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4167 context.lineWidth = 3;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4168 if (chart === ChartEnum.GENOMIC) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4169 context.strokeStyle = '#B20DFF';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4170 context.fillStyle = 'rgba(180, 100, 255, 0.2)';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4171 } else if (stat.is_ctrl) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4172 context.strokeStyle = '#3333CC';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4173 context.fillStyle = 'rgba(0, 255, 255, 0.2)';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4174 } else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4175 context.strokeStyle = '#CC3333';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4176 context.fillStyle = 'rgba(255, 255, 0, 0.2)';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4177 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4178 var box = new roundedRectangle(
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4179 statsX, statsY, 1.2 * maxTextWidth, height, {tr: rad, bl: rad});
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4180 context.stroke();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4181 context.fill();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4182 context.fillStyle = context.strokeStyle = '#222222';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4183 // Write the stats inside
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4184 var statsNum = statsStrs.length;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4185 var statsLeft = statsX + maxTextWidth * 0.1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4186 var statsDelta = height / (statsNum + 1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4187 for (i = 0; i < statsNum; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4188 context.fillText(statsStrs[i],
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4189 statsLeft, top + i * statsDelta + fontSize);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4190 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4191 // Restore font
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4192 context.font = oldFont;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4193 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4194 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4195
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4196 function drawLegendSVG() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4197 var left = imageWidth * .01;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4198 var width = imageHeight * .0265;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4199 var height = imageHeight * .15;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4200 var top = imageHeight - fontSize * 3.5 - height;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4201 var textLeft = left + width + fontSize / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4202
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4203 var text = '';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4204
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4205 text += svgText(hueDisplayName, left, imageHeight - fontSize * 1.5);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4206
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4207 var svgtest =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4208 '<linearGradient id="gradient" x1="0%" y1="100%" x2="0%" y2="0%">';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4209
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4210 for (var i = 0; i < hueStopPositions.length; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4211 svgtest +=
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4212 '<stop offset="' + round(hueStopPositions[i] * 100) +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4213 '%" style="stop-color:' + hueStopHsl[i] + '"/>';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4214
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4215 var textY = top + (1 - hueStopPositions[i]) * height;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4216
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4217 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4218 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4219 i == 0 ||
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4220 i == hueStopPositions.length - 1 ||
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4221 textY > top + fontSize && textY < top + height - fontSize
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4222 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4223 text += svgText(hueStopText[i], textLeft, textY);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4224 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4225 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4226
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4227 svgtest += '</linearGradient>';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4228 //alert(svgtest);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4229 svg += svgtest;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4230 svg +=
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4231 '<rect style="fill:url(#gradient)" x="' + left + '" y="' + top +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4232 '" width="' + width + '" height="' + height + '"/>';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4233
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4234 svg += text;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4235 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4236
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4237 function drawSearchHighlights(label, bubbleX, bubbleY, rotation, center) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4238 var index = -1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4239 var labelLength = label.length;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4240
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4241 bubbleX -= fontSize / 4;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4242
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4243 do {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4244 index = label.toLowerCase().indexOf(search.value.toLowerCase(),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4245 index + 1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4246
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4247 if (index != -1 && index < labelLength) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4248 var dim = context.measureText(label.substr(0, index));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4249 var x = bubbleX + dim.width;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4250
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4251 dim = context.measureText(label.substr(index, search.value.length));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4252
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4253 var y = bubbleY - fontSize * 3 / 4;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4254 var width = dim.width + fontSize / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4255 var height = fontSize * 3 / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4256 var radius = fontSize / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4257
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4258 if (snapshotMode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4259 if (center) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4260 x += centerX;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4261 y += centerY;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4262 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4263
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4264 svg +=
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4265 '<rect x="' + x + '" y="' + y +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4266 '" width="' + width +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4267 '" height="' + height +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4268 '" rx="' + radius +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4269 '" ry="' + radius +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4270 '" class="searchHighlight' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4271 '" transform="rotate(' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4272 degrees(rotation) + ',' + centerX + ',' + centerY +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4273 ')"/>';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4274 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4275 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4276 context.fillStyle = 'rgb(255, 255, 100)';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4277 context.rotate(rotation);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4278 roundedRectangle(x, y, width, height, radius);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4279 context.fill();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4280 context.rotate(-rotation);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4281 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4282 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4283 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4284 while (index != -1 && index < labelLength);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4285 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4286
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4287 function drawText(text, x, y, angle, anchor, bold, color) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4288 if (color == undefined) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4289 color = 'black';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4290 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4291
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4292 if (snapshotMode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4293 svg +=
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4294 '<text x="' + (centerX + x) + '" y="' + (centerY + y) +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4295 '" text-anchor="' + anchor + '" style="font-color:' + color
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4296 + ';font-weight:' + (bold ? 'bold' : 'normal') +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4297 '" transform="rotate(' + degrees(angle) + ',' + centerX
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4298 + ',' + centerY + ')">' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4299 text + '</text>';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4300 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4301 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4302 context.fillStyle = color;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4303 context.textAlign = anchor;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4304 context.font = bold ? fontBold : fontNormal;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4305 context.rotate(angle);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4306 context.fillText(text, x, y);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4307 context.rotate(-angle);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4308 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4309 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4310
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4311 function drawTextPolar
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4312 (text,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4313 innerText,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4314 angle,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4315 radius,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4316 radial,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4317 bubble,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4318 bold,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4319 searchResult,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4320 searchResults) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4321 var anchor;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4322 var textX;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4323 var textY;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4324 var spacer;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4325 var totalText = text;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4326 var flip;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4327
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4328 if (snapshotMode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4329 spacer = '&#160;&#160;&#160;';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4330 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4331 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4332 spacer = ' ';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4333 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4334
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4335 if (radial) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4336 flip = angle < 3 * Math.PI / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4337
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4338 if (flip) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4339 angle -= Math.PI;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4340 radius = -radius;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4341 anchor = 'end';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4342
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4343 if (innerText) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4344 totalText = text + spacer + innerText;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4345 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4346 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4347 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4348 anchor = 'start';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4349
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4350 if (innerText) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4351 totalText = innerText + spacer + text;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4352 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4353 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4354
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4355 textX = radius;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4356 textY = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4357 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4358 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4359 flip = angle < Math.PI || angle > 2 * Math.PI;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4360 var label;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4361
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4362 anchor = snapshotMode ? 'middle' : 'center';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4363
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4364 if (flip) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4365 angle -= Math.PI;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4366 radius = -radius;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4367 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4368
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4369 angle += Math.PI / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4370 textX = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4371 textY = -radius;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4372 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4373
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4374 if (bubble) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4375 var textActual = totalText;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4376
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4377 if (innerText && snapshotMode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4378 if (flip) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4379 textActual = text + ' ' + innerText;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4380 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4381 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4382 textActual = innerText + ' ' + text;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4383 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4384 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4385
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4386 if (searchResults) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4387 textActual = textActual + searchResultString(searchResults);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4388 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4389
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4390 var textWidth = measureText(textActual, bold);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4391
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4392 var x = textX;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4393
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4394 if (anchor == 'end') {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4395 x -= textWidth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4396 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4397 else if (anchor != 'start') {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4398 // centered
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4399 x -= textWidth / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4400 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4401
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4402 drawBubble(angle, radius, textWidth, radial, flip);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4403
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4404 if (searchResult) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4405 drawSearchHighlights
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4406 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4407 textActual,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4408 x,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4409 textY,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4410 angle,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4411 true
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4412 )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4413 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4414 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4415
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4416 if (searchResults) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4417 totalText = totalText + searchResultString(searchResults);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4418 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4419
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4420 drawText(totalText, textX, textY, angle, anchor, bold);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4421
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4422 return flip;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4423 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4424
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4425 function drawTick(start, length, angle) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4426 if (snapshotMode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4427 svg +=
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4428 '<line x1="' + (centerX + start) +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4429 '" y1="' + centerY +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4430 '" x2="' + (centerX + start + length) +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4431 '" y2="' + centerY +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4432 '" class="tick" transform="rotate(' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4433 degrees(angle) + ',' + centerX + ',' + centerY +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4434 ')"/>';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4435 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4436 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4437 context.rotate(angle);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4438 context.beginPath();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4439 context.moveTo(start, 0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4440 context.lineTo(start + length, 0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4441 context.lineWidth = thinLineWidth * 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4442 context.stroke();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4443 context.rotate(-angle);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4444 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4445 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4446
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4447 function drawWedge
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4448 (angleStart,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4449 angleEnd,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4450 radiusInner,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4451 radiusOuter,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4452 color,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4453 patternAlpha,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4454 highlight) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4455 if (context.globalAlpha == 0) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4456 return;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4457 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4458
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4459 if (snapshotMode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4460 if (angleEnd == angleStart + Math.PI * 2) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4461 // fudge to prevent overlap, which causes arc ambiguity
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4462 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4463 angleEnd -= .1 / gRadius;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4464 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4465
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4466 var longArc = angleEnd - angleStart > Math.PI ? 1 : 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4467
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4468 var x1 = centerX + radiusInner * Math.cos(angleStart);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4469 var y1 = centerY + radiusInner * Math.sin(angleStart);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4470
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4471 var x2 = centerX + gRadius * Math.cos(angleStart);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4472 var y2 = centerY + gRadius * Math.sin(angleStart);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4473
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4474 var x3 = centerX + gRadius * Math.cos(angleEnd);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4475 var y3 = centerY + gRadius * Math.sin(angleEnd);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4476
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4477 var x4 = centerX + radiusInner * Math.cos(angleEnd);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4478 var y4 = centerY + radiusInner * Math.sin(angleEnd);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4479
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4480 var dArray =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4481 [
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4482 " M ", x1, ",", y1,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4483 " L ", x2, ",", y2,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4484 " A ", gRadius, ",", gRadius, " 0 ", longArc, ",1 ", x3
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4485 , ",", y3,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4486 " L ", x4, ",", y4,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4487 " A ", radiusInner, ",", radiusInner, " 0 ", longArc,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4488 " 0 ", x1, ",", y1,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4489 " Z "
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4490 ];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4491
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4492 svg +=
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4493 '<path class="' + (highlight ? 'highlight' : 'wedge')
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4494 + '" fill="' + color +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4495 '" d="' + dArray.join('') + '"/>';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4496
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4497 if (patternAlpha > 0) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4498 svg +=
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4499 '<path class="wedge" fill="url(#hiddenPattern)" d="' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4500 dArray.join('') + '"/>';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4501 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4502 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4503 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4504 // fudge to prevent seams during animation
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4505 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4506 angleEnd += 1 / gRadius;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4507
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4508 context.fillStyle = color;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4509 context.beginPath();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4510 context.arc(0, 0, radiusInner, angleStart, angleEnd, false);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4511 context.arc(0, 0, radiusOuter, angleEnd, angleStart, true);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4512 context.closePath();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4513 context.fill();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4514
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4515 if (patternAlpha > 0) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4516 context.save();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4517 context.clip();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4518 context.globalAlpha = patternAlpha;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4519 context.fillStyle = hiddenPattern;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4520 context.fill();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4521 context.restore();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4522 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4523
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4524 if (highlight) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4525 context.lineWidth = highlight ? highlightLineWidth : thinLineWidth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4526 context.strokeStyle = 'black';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4527 context.stroke();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4528 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4529 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4530 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4531
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4532 function expand(node) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4533 selectNode(node);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4534 updateView();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4535 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4536
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4537 function focusLost() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4538 mouseX = -1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4539 mouseY = -1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4540 checkHighlight();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4541 document.body.style.cursor = 'auto';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4542 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4543
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4544 function fontSizeDecrease() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4545 if (fontSize > 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4546 fontSize--;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4547 updateViewNeeded = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4548 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4549 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4550
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4551 function fontSizeIncrease() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4552 fontSize++;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4553 updateViewNeeded = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4554 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4555
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4556 function getGetString(name, value, bool) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4557 return name + '=' + (bool ? value ? 'true' : 'false' : value);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4558 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4559
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4560 function hideLink() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4561 hide(linkText);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4562 show(linkButton);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4563 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4564
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4565 function show(object) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4566 object.style.display = 'inline';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4567 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4568
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4569 function hide(object) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4570 object.style.display = 'none';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4571 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4572
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4573 function showLink() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4574 var urlHalves = String(document.location).split('?');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4575 var newGetVariables = new Array();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4576
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4577 newGetVariables.push
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4578 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4579 getGetString('dataset', currentDataset, false),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4580 getGetString('node', selectedNode.id, false),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4581 getGetString('collapse', collapse, true),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4582 getGetString('color', useHue(), true),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4583 getGetString('depth', maxAbsoluteDepth - 1, false),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4584 getGetString('font', fontSize, false),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4585 getGetString('key', showKeys, true)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4586 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4587
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4588 hide(linkButton);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4589 show(linkText);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4590 linkText.value = urlHalves[0] + '?'
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4591 + getVariables.concat(newGetVariables).join('&');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4592 //linkText.disabled = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4593 linkText.focus();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4594 linkText.select();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4595 //linkText.disabled = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4596 // document.location = urlHalves[0] + '?' + getVariables.join('&');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4597 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4598
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4599 function getFirstChild(element) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4600 element = element.firstChild;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4601
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4602 if (element && element.nodeType != 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4603 element = getNextSibling(element);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4604 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4605
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4606 return element;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4607 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4608
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4609 function getNextSibling(element) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4610 do {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4611 element = element.nextSibling;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4612 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4613 while (element && element.nodeType != 1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4614
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4615 return element;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4616 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4617
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4618 function getPercentage(fraction) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4619 return round(fraction * 100);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4620 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4621
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4622 function hslText(hue) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4623 if (1 || snapshotMode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4624 // Safari doesn't seem to allow hsl() in SVG
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4625
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4626 var rgb = hslToRgb(hue, saturation, (lightnessBase + lightnessMax) / 2);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4627
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4628 return rgbText(rgb.r, rgb.g, rgb.b);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4629 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4630 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4631 var hslArray =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4632 [
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4633 'hsl(',
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4634 Math.floor(hue * 360),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4635 ',',
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4636 Math.floor(saturation * 100),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4637 '%,',
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4638 Math.floor((lightnessBase + lightnessMax) * 50),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4639 '%)'
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4640 ];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4641
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4642 return hslArray.join('');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4643 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4644 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4645
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4646 function hslToRgb(h, s, l) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4647 var m1, m2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4648 var r, g, b;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4649
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4650 if (s == 0) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4651 r = g = b = Math.floor((l * 255));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4652 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4653 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4654 if (l <= 0.5) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4655 m2 = l * (s + 1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4656 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4657 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4658 m2 = l + s - l * s;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4659 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4660
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4661 m1 = l * 2 - m2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4662
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4663 r = Math.floor(hueToRgb(m1, m2, h + 1 / 3));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4664 g = Math.floor(hueToRgb(m1, m2, h));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4665 b = Math.floor(hueToRgb(m1, m2, h - 1 / 3));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4666 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4667
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4668 return {r: r, g: g, b: b};
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4669 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4670
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4671 function hueToRgb(m1, m2, hue) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4672 var v;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4673
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4674 while (hue < 0) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4675 hue += 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4676 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4677
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4678 while (hue > 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4679 hue -= 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4680 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4681
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4682 if (6 * hue < 1)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4683 v = m1 + (m2 - m1) * hue * 6;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4684 else if (2 * hue < 1)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4685 v = m2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4686 else if (3 * hue < 2)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4687 v = m1 + (m2 - m1) * (2 / 3 - hue) * 6;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4688 else
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4689 v = m1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4690
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4691 return 255 * v;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4692 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4693
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4694 function interpolateHue(hueStart, hueEnd, valueStart, valueEnd) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4695 // since the gradient will be RGB based, we need to add stops to hit all the
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4696 // colors in the hue spectrum
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4697
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4698 function selective_round(value){
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4699 // Selective round depending on the hue scale width
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4700 if(valueEnd - valueStart < 10){
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4701 return(value.toFixed(1))
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4702 } else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4703 return(round(value))
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4704 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4705 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4706
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4707 hueStopPositions = new Array();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4708 hueStopHsl = new Array();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4709 hueStopText = new Array();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4710
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4711 hueStopPositions.push(0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4712 hueStopHsl.push(hslText(hueStart));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4713 hueStopText.push(selective_round(valueStart));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4714
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4715 for
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4716 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4717 var i = (hueStart > hueEnd ? 5 / 6 : 1 / 6);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4718 (hueStart > hueEnd ? i > 0 : i < 1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4719 i += (hueStart > hueEnd ? -1 : 1) / 6
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4720 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4721 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4722 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4723 hueStart > hueEnd ?
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4724 i > hueEnd && i < hueStart :
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4725 i > hueStart && i < hueEnd
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4726 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4727 hueStopPositions.push(lerp(i, hueStart, hueEnd, 0, 1));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4728 hueStopHsl.push(hslText(i));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4729 hueStopText.push(selective_round(lerp(
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4730 i, hueStart, hueEnd, valueStart, valueEnd)));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4731 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4732 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4733
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4734 hueStopPositions.push(1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4735 hueStopHsl.push(hslText(hueEnd));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4736 hueStopText.push(selective_round(valueEnd));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4737 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4738
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4739 function keyLineAngle(angle, keyAngle, bendRadius, keyX, keyY, pointsX,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4740 pointsY) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4741 if (angle < Math.PI / 2 && keyY < bendRadius * Math.sin(angle)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4742 || angle > Math.PI / 2 && keyY < bendRadius) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4743 return Math.asin(keyY / bendRadius);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4744 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4745 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4746 // find the angle of the normal to a tangent line that goes to
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4747 // the label
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4748
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4749 var textDist = Math.sqrt
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4750 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4751 Math.pow(keyX, 2) +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4752 Math.pow(keyY, 2)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4753 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4754
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4755 var tanAngle = Math.acos(bendRadius / textDist) + keyAngle;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4756
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4757 if (angle < tanAngle || angle < Math.PI / 2)//|| labelLeft < centerX )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4758 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4759 // angle doesn't reach far enough for tangent; collapse and
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4760 // connect directly to label
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4761
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4762 if (keyY / Math.tan(angle) > 0) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4763 pointsX.push(keyY / Math.tan(angle));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4764 pointsY.push(keyY);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4765 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4766 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4767 pointsX.push(bendRadius * Math.cos(angle));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4768 pointsY.push(bendRadius * Math.sin(angle));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4769 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4770
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4771 return angle;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4772 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4773 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4774 return tanAngle;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4775 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4776 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4777 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4778
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4779 function keyOffset() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4780 return imageHeight - (keys - currentKey + 1) * (keySize + keyBuffer) +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4781 keyBuffer - margin;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4782 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4783
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4784 function lerp(value, fromStart, fromEnd, toStart, toEnd) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4785 // Rescale value from source scale [fromStart, fromEnd]
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4786 // to target scale [toStart, toEnd]
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4787 return (value - fromStart) *
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4788 (toEnd - toStart) /
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4789 (fromEnd - fromStart) +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4790 toStart;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4791 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4792
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4793 function createCanvas() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4794 canvas = document.createElement('canvas');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4795 document.body.appendChild(canvas);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4796 context = canvas.getContext('2d');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4797 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4798
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4799 function load() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4800 document.body.style.overflow = "hidden";
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4801 document.body.style.margin = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4802 document.body.style.backgroundColor = '#' + bkgBright;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4803 createCanvas();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4804
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4805 if (context == undefined) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4806 document.body.innerHTML = '\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4807 <br/>Recentrifuge: Sorry, this browser does not support HTML5 (please see \
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4808 <a href="https://github.com/khyox/recentrifuge/wiki/Browser-support">Browser support</a>).\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4809 ';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4810 return;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4811 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4812
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4813 if (typeof context.fillText != 'function') {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4814 document.body.innerHTML = '\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4815 <br/>Recentrifuge: Sorry, this browser does not support HTML5 canvas text (please see \
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4816 <a href="https://github.com/khyox/recentrifuge/wiki/Browser-support">Browser support</a>).\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4817 ';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4818 return;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4819 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4820
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4821 resize();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4822
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4823 var kronaElement = document.getElementsByTagName('krona')[0];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4824
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4825 var magnitudeName;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4826 var hueName;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4827 var hueDefault;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4828 var hueStart;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4829 var hueEnd;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4830 var valueStart;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4831 var valueEnd;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4832
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4833 if (kronaElement.getAttribute('collapse') !== undefined) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4834 collapse = kronaElement.getAttribute('collapse') === 'true';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4835 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4836
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4837 if (kronaElement.getAttribute('key') !== undefined) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4838 showKeys = kronaElement.getAttribute('key') === 'true';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4839 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4840
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4841 if (kronaElement.getAttribute('chart') !== undefined) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4842 switch (kronaElement.getAttribute('chart')) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4843 case 'TAXOMIC':
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4844 chart = ChartEnum.TAXOMIC;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4845 fontFamily = 'Ubuntu'
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4846 fontSize = 11
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4847 break;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4848 case 'GENOMIC':
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4849 chart = ChartEnum.GENOMIC;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4850 fontFamily = 'Saira Condensed'
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4851 fontSize = 12
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4852 break;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4853 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4854 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4855
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4856 for
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4857 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4858 var element = getFirstChild(kronaElement);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4859 element;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4860 element = getNextSibling(element)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4861 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4862 switch (element.tagName.toLowerCase()) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4863 case 'attributes':
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4864 magnitudeName = element.getAttribute('magnitude');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4865 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4866 for
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4867 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4868 var attributeElement = getFirstChild(element);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4869 attributeElement;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4870 attributeElement = getNextSibling(attributeElement)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4871 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4872 var tag = attributeElement.tagName.toLowerCase();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4873
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4874 if (tag == 'attribute') {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4875 var attribute = new Attribute();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4876 attribute.name =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4877 attributeElement.firstChild.nodeValue.toLowerCase();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4878 attribute.displayName =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4879 attributeElement.getAttribute('display');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4880
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4881 if (attributeElement.getAttribute('tip')) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4882 attribute.tip =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4883 attributeElement.getAttribute('tip');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4884 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4885
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4886 if (attributeElement.getAttribute('hrefBase')) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4887 attribute.hrefBase =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4888 attributeElement.getAttribute('hrefBase');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4889 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4890
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4891 if (attributeElement.getAttribute('target')) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4892 attribute.target =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4893 attributeElement.getAttribute('target');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4894 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4895
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4896 if (attribute.name === magnitudeName) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4897 magnitudeIndex = attributes.length;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4898 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4899
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4900 if (attributeElement.getAttribute('listAll')) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4901 attribute.listAll =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4902 attributeElement.getAttribute('listAll').toLowerCase();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4903 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4904 else if (attributeElement.getAttribute('listNode')) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4905 attribute.listNode =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4906 attributeElement.getAttribute('listNode').toLowerCase();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4907 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4908 else if (attributeElement.getAttribute('dataAll')) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4909 attribute.dataAll =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4910 attributeElement.getAttribute('dataAll').toLowerCase();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4911 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4912 else if (attributeElement.getAttribute('dataNode')) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4913 attribute.dataNode =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4914 attributeElement.getAttribute('dataNode').toLowerCase();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4915 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4916
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4917 if (attributeElement.getAttribute('postUrl')) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4918 attribute.postUrl =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4919 attributeElement.getAttribute('postUrl');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4920 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4921
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4922 if (attributeElement.getAttribute('postVar')) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4923 attribute.postVar =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4924 attributeElement.getAttribute('postVar');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4925 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4926
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4927 if (attributeElement.getAttribute('mono')) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4928 attribute.mono = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4929 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4930
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4931 attributes.push(attribute);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4932 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4933 else if (tag == 'list') {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4934 var attribute = new Attribute();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4935
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4936 attribute.name = attributeElement.firstChild.nodeValue;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4937 attribute.list = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4938 attributes.push(attribute);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4939 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4940 else if (tag == 'data') {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4941 var attribute = new Attribute();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4942
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4943 attribute.name = attributeElement.firstChild.nodeValue;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4944 attribute.data = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4945 attributes.push(attribute);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4946
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4947 var enableScript = document.createElement('script');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4948 var date = new Date();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4949 enableScript.src =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4950 attributeElement.getAttribute('enable') + '?' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4951 date.getTime();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4952 document.body.appendChild(enableScript);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4953 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4954 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4955 break;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4956
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4957 case 'color':
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4958 hueName = element.getAttribute('attribute');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4959 hueStart = Number(element.getAttribute('hueStart')) / 360;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4960 hueEnd = Number(element.getAttribute('hueEnd')) / 360;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4961 valueStart = Number(element.getAttribute('valueStart'));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4962 valueEnd = Number(element.getAttribute('valueEnd'));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4963 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4964 interpolateHue(hueStart, hueEnd, valueStart, valueEnd);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4965 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4966 if (element.getAttribute('default') == 'true') {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4967 hueDefault = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4968 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4969 break;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4970
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4971 case 'datasets':
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4972 datasetNames = [];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4973 stats = [];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4974 numRawSamples = element.getAttribute('rawSamples');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4975 var i = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4976 for (var j = getFirstChild(element); j; j = getNextSibling(j)) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4977 var datasetName = j.firstChild.nodeValue;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4978 datasetNames.push(datasetName);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4979 if (i < numRawSamples) { // Get stats of raw samples
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4980 var stat = new SampleStats(
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4981 datasetName,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4982 j.getAttribute('isctr'),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4983 j.getAttribute('sread'),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4984 j.getAttribute('sclas'),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4985 j.getAttribute('sfilt'),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4986 j.getAttribute('scmin'),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4987 j.getAttribute('scavg'),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4988 j.getAttribute('scmax'),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4989 j.getAttribute('lnmin'),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4990 j.getAttribute('lnavg'),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4991 j.getAttribute('lnmax'),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4992 j.getAttribute('tclas'),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4993 j.getAttribute('tfilt'),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4994 j.getAttribute('tfold')
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4995 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4996 stats.push(stat)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4997 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4998 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
4999 datasets = datasetNames.length;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5000 break;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5001
4
12f0968f171c planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tools/recentrifuge commit fbb5d7bb68cbb5f497cdda3c0697b21b046a8262
iuc
parents: 1
diff changeset
5002 case 'n':
1
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5003 case 'node':
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5004 head = loadTreeDOM
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5005 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5006 element,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5007 magnitudeName,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5008 hueName,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5009 hueStart,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5010 hueEnd,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5011 valueStart,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5012 valueEnd
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5013 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5014 break;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5015 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5016 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5017
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5018 // get GET options
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5019 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5020 var urlHalves = String(document.location).split('?');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5021 var datasetDefault = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5022 var maxDepthDefault;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5023 var nodeDefault = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5024 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5025 if (urlHalves[1]) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5026 var vars = urlHalves[1].split('&');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5027
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5028 for (i = 0; i < vars.length; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5029 var pair = vars[i].split('=');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5030
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5031 switch (pair[0]) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5032 case 'collapse':
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5033 collapse = pair[1] == 'true';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5034 break;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5035
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5036 case 'color':
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5037 hueDefault = pair[1] == 'true';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5038 break;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5039
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5040 case 'dataset':
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5041 datasetDefault = Number(pair[1]);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5042 break;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5043
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5044 case 'depth':
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5045 maxDepthDefault = Number(pair[1]) + 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5046 break;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5047
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5048 case 'key':
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5049 showKeys = pair[1] == 'true';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5050 break;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5051
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5052 case 'font':
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5053 fontSize = Number(pair[1]);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5054 break;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5055
4
12f0968f171c planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tools/recentrifuge commit fbb5d7bb68cbb5f497cdda3c0697b21b046a8262
iuc
parents: 1
diff changeset
5056 case 'n':
1
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5057 case 'node':
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5058 nodeDefault = Number(pair[1]);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5059 break;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5060
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5061 default:
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5062 getVariables.push(pair[0] + '=' + pair[1]);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5063 break;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5064 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5065 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5066 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5067
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5068 addOptionElements(hueName, hueDefault);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5069 if (datasets > 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5070 if (datasets > numRawSamples) { // Check for cross-analysis samples
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5071 selectRank(DEFAULT_RANK);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5072 } else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5073 selectRank(NO_RANK);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5074 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5075 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5076 setCallBacks();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5077
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5078 head.sort();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5079 maxAbsoluteDepth = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5080 selectDataset(datasetDefault);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5081
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5082 if (maxDepthDefault && maxDepthDefault < head.maxDepth) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5083 maxAbsoluteDepth = maxDepthDefault;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5084 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5085 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5086 maxAbsoluteDepth = head.maxDepth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5087 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5088
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5089 selectNode(nodes[nodeDefault]);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5090
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5091 setInterval(update, 20);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5092
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5093 window.onresize = handleResize;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5094 updateMaxAbsoluteDepth();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5095 updateViewNeeded = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5096 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5097
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5098 function loadTreeDOM
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5099 (domNode,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5100 magnitudeName,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5101 hueName,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5102 hueStart,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5103 hueEnd,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5104 valueStart,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5105 valueEnd) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5106 var newNode = new Node();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5107
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5108 newNode.name = domNode.getAttribute('name');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5109
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5110 if (domNode.getAttribute('href')) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5111 newNode.href = domNode.getAttribute('href');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5112 }
4
12f0968f171c planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tools/recentrifuge commit fbb5d7bb68cbb5f497cdda3c0697b21b046a8262
iuc
parents: 1
diff changeset
5113 else {
12f0968f171c planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tools/recentrifuge commit fbb5d7bb68cbb5f497cdda3c0697b21b046a8262
iuc
parents: 1
diff changeset
5114 newNode.href = 'https://www.google.com/search?q=' + newNode.name
12f0968f171c planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tools/recentrifuge commit fbb5d7bb68cbb5f497cdda3c0697b21b046a8262
iuc
parents: 1
diff changeset
5115 }
1
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5116
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5117 if (hueName) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5118 newNode.hues = new Array();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5119 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5120
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5121 for (var i = getFirstChild(domNode); i; i = getNextSibling(i)) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5122 switch (i.tagName.toLowerCase()) {
4
12f0968f171c planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tools/recentrifuge commit fbb5d7bb68cbb5f497cdda3c0697b21b046a8262
iuc
parents: 1
diff changeset
5123 case 'n':
1
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5124 case 'node':
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5125 var newChild = loadTreeDOM
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5126 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5127 i,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5128 magnitudeName,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5129 hueName,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5130 hueStart,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5131 hueEnd,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5132 valueStart,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5133 valueEnd
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5134 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5135 newChild.parent = newNode;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5136 newNode.children.push(newChild);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5137 break;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5138
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5139 default:
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5140 var attributeName = i.tagName.toLowerCase();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5141 var index = attributeIndex(attributeName);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5142 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5143 newNode.attributes[index] = new Array();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5144 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5145 for (var j = getFirstChild(i); j; j = getNextSibling(j)) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5146 if (attributes[index] == undefined) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5147 var x = 5;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5148 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5149 if (attributes[index].list) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5150 newNode.attributes[index].push(new Array());
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5151
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5152 for (var k = getFirstChild(j); k; k = getNextSibling(k)) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5153 newNode.attributes[index][
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5154 newNode.attributes[
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5155 index].length - 1].push(
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5156 k.firstChild.nodeValue);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5157 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5158 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5159 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5160 var value = j.firstChild ? j.firstChild.nodeValue : '';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5161
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5162 if (j.getAttribute('href')) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5163 var target;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5164
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5165 if (attributes[index].target) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5166 target = ' target="'
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5167 + attributes[index].target + '"';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5168 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5169
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5170 value = '<a href="' + attributes[index].hrefBase
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5171 + j.getAttribute('href') + '"'
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5172 + target + '>' + value + '</a>';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5173 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5174
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5175 newNode.attributes[index].push(value);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5176 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5177 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5178 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5179 if (attributeName == magnitudeName
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5180 || attributeName == hueName) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5181 for (j = 0; j < datasets; j++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5182 // j is the dataset index (goes from 0 to datasets-1)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5183 var value = newNode.attributes[index][j]
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5184 == undefined ? 0 : Number(newNode.attributes[index][j]);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5185
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5186 newNode.attributes[index][j] = value;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5187
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5188 if (attributeName == hueName) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5189 var hue = lerp
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5190 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5191 value,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5192 valueStart,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5193 valueEnd,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5194 hueStart,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5195 hueEnd
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5196 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5197
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5198 if (hue < hueStart == hueStart < hueEnd) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5199 hue = hueStart;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5200 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5201 else if (hue > hueEnd == hueStart < hueEnd) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5202 hue = hueEnd;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5203 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5204
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5205 newNode.hues[j] = hue;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5206 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5207 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5208
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5209 if (attributeName == hueName) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5210 newNode.hue = new Tween(newNode.hues[0],
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5211 newNode.hues[0]);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5212 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5213 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5214 break;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5215 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5216 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5217
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5218 return newNode;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5219 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5220
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5221 function maxAbsoluteDepthDecrease() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5222 if (maxAbsoluteDepth > 2) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5223 maxAbsoluteDepth--;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5224 head.setMaxDepths();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5225 handleResize();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5226 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5227 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5228
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5229 function maxAbsoluteDepthIncrease() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5230 if (maxAbsoluteDepth < head.maxDepth) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5231 maxAbsoluteDepth++;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5232 head.setMaxDepths();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5233 handleResize();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5234 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5235 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5236
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5237 function measureText(text, bold) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5238 context.font = bold ? fontBold : fontNormal;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5239 var dim = context.measureText(text);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5240 return dim.width;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5241 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5242
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5243 function min(a, b) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5244 return a < b ? a : b;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5245 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5246
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5247 function minWidth() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5248 // Min wedge width (at center) for displaying a node (or for displaying a
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5249 // label if it's at the highest level being viewed, multiplied by 2 to make
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5250 // further calculations simpler
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5251
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5252 return (fontSize * 2.3);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5253 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5254
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5255 function mouseMove(e) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5256 mouseX = e.pageX;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5257 mouseY = e.pageY - headerHeight;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5258 mouseXRel = (mouseX - centerX) * backingScale()
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5259 mouseYRel = (mouseY - centerY) * backingScale()
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5260
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5261 if (head && !quickLook) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5262 checkHighlight();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5263 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5264 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5265
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5266 function mouseClick(e) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5267 // Event listener function for mouse click on CANVAS
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5268 if (highlightedNode == focusNode && focusNode != selectedNode
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5269 || selectedNode.hasParent(highlightedNode)) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5270 if (highlightedNode.hasChildren()) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5271 expand(highlightedNode);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5272 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5273 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5274 else if (progress == 1)//( highlightedNode != selectedNode )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5275 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5276 setFocus(highlightedNode);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5277 // document.body.style.cursor='ew-resize';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5278 draw();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5279 checkHighlight();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5280 var date = new Date();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5281 mouseDownTime = date.getTime();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5282 mouseDown = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5283 var button = undefined;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5284 for (var i = 0; i < canvasButtons.length; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5285 if (canvasButtons[i].is_inside(e.pageX, e.pageY)) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5286 context.strokeStyle = '#CC0000';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5287 context.lineWidth = 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5288 button = canvasButtons[i];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5289 context.strokeRect(button.x, button.y, button.w, button.h);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5290 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5291 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5292 if (button) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5293 // Reorder the array of nodes only when needed
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5294 if (nodesIndex === undefined || !nodes.reduce(
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5295 function (acc, current, index) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5296 // Calculate deviation from id == index for every node
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5297 return acc + Math.abs(current.id - index)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5298 }, 0)) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5299 nodes.sort(function (a, b) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5300 return b.getHue() - a.getHue()
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5301 });
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5302 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5303
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5304 function lookForLeaf(testIndex, reverse) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5305 // Look for nodes without children but with counts
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5306 for (; testIndex >= 0 && testIndex <= nodes.length - 1
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5307 && !nodes[testIndex].isLeaf();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5308 reverse ? testIndex-- : testIndex++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5309 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5310 if (testIndex >= 0 && testIndex <= nodes.length - 1
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5311 && nodes[testIndex].isLeaf()) nodesIndex = testIndex;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5312 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5313
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5314 function lookForNode(testIndex, reverse) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5315 // Look for nodes with counts
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5316 for (; testIndex >= 0 && testIndex <= nodes.length - 1
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5317 && nodes[testIndex].getHue() <= 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5318 reverse ? testIndex-- : testIndex++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5319 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5320 if (testIndex >= 0 && testIndex <= nodes.length - 1
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5321 && nodes[testIndex].getHue() > 0)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5322 nodesIndex = testIndex;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5323 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5324
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5325 switch (button.name) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5326 case 'mostScore':
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5327 nodesIndex = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5328 if (collapseCheckBox.checked) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5329 lookForLeaf(nodesIndex, false);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5330 } else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5331 lookForNode(nodesIndex, false);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5332 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5333 break;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5334 case 'moreScore':
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5335 if (collapseCheckBox.checked) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5336 lookForLeaf(nodesIndex - 1, true);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5337 } else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5338 lookForNode(nodesIndex - 1, true);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5339 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5340 break;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5341 case 'lessScore':
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5342 if (collapseCheckBox.checked) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5343 lookForLeaf(nodesIndex + 1, false);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5344 } else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5345 lookForNode(nodesIndex + 1, false);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5346 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5347 break;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5348 case 'lestScore':
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5349 nodesIndex = nodes.length - 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5350 if (collapseCheckBox.checked) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5351 lookForLeaf(nodesIndex, true);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5352 } else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5353 lookForNode(nodesIndex, true);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5354 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5355 break;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5356 default:
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5357 alert('ERROR! Unknown button in canvas. Ignoring!')
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5358 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5359 search.value = nodes[nodesIndex].name;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5360 onSearchChange();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5361 context.strokeStyle = '#CC0000';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5362 context.lineWidth = 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5363 context.strokeRect(button.x, button.y, button.w, button.h);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5364 setTimeout(function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5365 drawLegend()
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5366 }, 700)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5367 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5368 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5369 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5370
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5371 function mouseUp(e) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5372 if (quickLook) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5373 navigateBack();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5374 quickLook = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5375 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5376
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5377 mouseDown = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5378 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5379
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5380 function navigateBack() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5381 if (nodeHistoryPosition > 0) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5382 nodeHistory[nodeHistoryPosition] = selectedNode;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5383 nodeHistoryPosition--;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5384
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5385 if (nodeHistory[nodeHistoryPosition].collapse) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5386 collapseCheckBox.checked = collapse = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5387 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5388
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5389 setSelectedNode(nodeHistory[nodeHistoryPosition]);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5390 updateDatasetButtons();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5391 updateView();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5392 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5393 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5394
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5395 function navigateUp() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5396 if (selectedNode.getParent()) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5397 selectNode(selectedNode.getParent());
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5398 updateView();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5399 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5400 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5401
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5402 function navigateForward() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5403 if (nodeHistoryPosition < nodeHistory.length - 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5404 nodeHistoryPosition++;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5405 var newNode = nodeHistory[nodeHistoryPosition];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5406
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5407 if (newNode.collapse) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5408 collapseCheckBox.checked = collapse = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5409 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5410
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5411 if (nodeHistoryPosition == nodeHistory.length - 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5412 // this will ensure the forward button is disabled
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5413
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5414 nodeHistory.length = nodeHistoryPosition;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5415 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5416
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5417 setSelectedNode(newNode);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5418 updateDatasetButtons();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5419 updateView();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5420 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5421 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5422
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5423 function nextDataset() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5424 var newDataset = currentDataset;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5425
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5426 do {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5427 if (newDataset === datasets - 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5428 newDataset = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5429 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5430 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5431 newDataset++;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5432 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5433 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5434 while (datasetDropDown.options[newDataset].disabled
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5435 || datasetDropDown.options[newDataset].hidden)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5436
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5437 selectDataset(newDataset);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5438 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5439
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5440 function onDatasetChange() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5441 selectDataset(datasetDropDown.selectedIndex);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5442 nodesIndex = undefined;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5443 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5444
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5445 function onKeyDown(event) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5446 if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5447 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5448 event.keyCode == 37 &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5449 document.activeElement.id != 'search' &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5450 document.activeElement.id != 'linkText'
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5451 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5452 navigateBack();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5453 event.preventDefault();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5454 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5455 else if
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5456 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5457 event.keyCode == 39 &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5458 document.activeElement.id != 'search' &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5459 document.activeElement.id != 'linkText'
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5460 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5461 navigateForward();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5462 event.preventDefault();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5463 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5464 else if (event.keyCode == 38 && datasets > 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5465 prevDataset();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5466
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5467 //if ( document.activeElement.id == 'datasets' )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5468 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5469 event.preventDefault();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5470 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5471 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5472 else if (event.keyCode == 40 && datasets > 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5473 nextDataset();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5474
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5475 //if ( document.activeElement.id == 'datasets' )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5476 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5477 event.preventDefault();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5478 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5479 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5480 else if (event.keyCode == 9 && datasets > 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5481 selectLastDataset();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5482 event.preventDefault();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5483 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5484 else if (event.keyCode == 83) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5485 progress += .2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5486 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5487 else if (event.keyCode == 66) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5488 progress -= .2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5489 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5490 else if (event.keyCode == 70) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5491 progress = 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5492 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5493 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5494
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5495 function onKeyPress(event) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5496 if (event.keyCode == 38 && datasets > 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5497 // prevDataset();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5498
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5499 //if ( document.activeElement.id == 'datasets' )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5500 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5501 event.preventDefault();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5502 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5503 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5504 else if (event.keyCode == 40 && datasets > 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5505 // nextDataset();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5506
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5507 //if ( document.activeElement.id == 'datasets' )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5508 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5509 event.preventDefault();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5510 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5511 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5512 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5513
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5514 function onKeyUp(event) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5515 if (event.keyCode == 27 && document.activeElement.id == 'search') {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5516 search.value = '';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5517 onSearchChange();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5518 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5519 else if (event.keyCode == 38 && datasets > 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5520 // prevDataset();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5521
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5522 //if ( document.activeElement.id == 'datasets' )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5523 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5524 event.preventDefault();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5525 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5526 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5527 else if (event.keyCode == 40 && datasets > 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5528 // nextDataset();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5529
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5530 //if ( document.activeElement.id == 'datasets' )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5531 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5532 event.preventDefault();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5533 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5534 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5535 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5536
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5537 function onRankChange() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5538 selectRank(rankDropDown.value);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5539 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5540
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5541 function onSearchChange() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5542 nSearchResults = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5543 head.search();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5544
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5545 if (search.value == '') {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5546 searchResults.innerHTML = '';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5547 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5548 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5549 searchResults.innerHTML = nSearchResults + ' results';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5550 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5551
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5552 setFocus(selectedNode);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5553 draw();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5554 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5555
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5556 function onSortChange() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5557 head.sort();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5558 head.setMagnitudes(0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5559 handleResize();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5560 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5561
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5562 function post(url, variable, value, postWindow) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5563 var form = document.createElement('form');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5564 var input = document.createElement('input');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5565 var inputDataset = document.createElement('input');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5566
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5567 form.appendChild(input);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5568 form.appendChild(inputDataset);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5569
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5570 form.method = "POST";
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5571 form.action = url;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5572
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5573 if (postWindow == undefined) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5574 form.target = '_blank';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5575 postWindow = window;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5576 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5577
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5578 input.type = 'hidden';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5579 input.name = variable;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5580 input.value = value;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5581
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5582 inputDataset.type = 'hidden';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5583 inputDataset.name = 'dataset';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5584 inputDataset.value = currentDataset;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5585
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5586 postWindow.document.body.appendChild(form);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5587 form.submit();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5588 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5589
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5590 function prevDataset() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5591 var newDataset = currentDataset;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5592
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5593 do {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5594 if (newDataset == 0) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5595 newDataset = datasets - 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5596 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5597 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5598 newDataset--;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5599 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5600 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5601 while (datasetDropDown.options[newDataset].disabled
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5602 || datasetDropDown.options[newDataset].hidden);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5603
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5604 selectDataset(newDataset);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5605 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5606
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5607 function radiusDecrease() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5608 if (bufferFactor < .309) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5609 bufferFactor += .03;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5610 updateViewNeeded = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5611 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5612 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5613
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5614 function radiusIncrease() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5615 if (bufferFactor > .041) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5616 bufferFactor -= .03;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5617 updateViewNeeded = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5618 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5619 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5620
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5621 function resetKeyOffset() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5622 currentKey = 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5623 keyMinTextLeft = centerX + gRadius + buffer - buffer / (keys + 1) /
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5624 2 + fontSize / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5625 keyMinAngle = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5626 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5627
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5628 function rgbText(r, g, b) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5629 var rgbArray =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5630 [
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5631 "rgb(",
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5632 Math.floor(r),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5633 ",",
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5634 Math.floor(g),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5635 ",",
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5636 Math.floor(b),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5637 ")"
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5638 ];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5639
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5640 return rgbArray.join('');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5641 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5642
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5643 function round(number) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5644 if (number >= 1 || number <= -1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5645 return number.toFixed(0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5646 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5647 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5648 return number.toPrecision(1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5649 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5650 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5651
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5652 function roundedRectangle(x, y, width, height, radius, fill, stroke) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5653 // Optionals: radius, stroke, fill
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5654 if (typeof stroke === 'undefined') {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5655 stroke = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5656 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5657 if (typeof radius === 'undefined') {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5658 radius = 5;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5659 } else if (typeof radius === 'number') {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5660 if (radius * 2 > width) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5661 radius = width / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5662 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5663 if (radius * 2 > height) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5664 radius = height / 2;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5665 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5666 radius = {tl: radius, tr: radius, br: radius, bl: radius};
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5667 } else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5668 var defaultRadius = {tl: 0, tr: 0, br: 0, bl: 0};
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5669 for (var side in defaultRadius) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5670 radius[side] = radius[side] || defaultRadius[side];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5671 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5672 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5673
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5674 context.beginPath();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5675 context.arc(x + radius.tl, y + radius.tl, radius.tl,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5676 Math.PI, Math.PI * 3 / 2, false);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5677 context.lineTo(x + width - radius.tr, y);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5678 context.arc(x + width - radius.tr, y + radius.tr, radius.tr,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5679 Math.PI * 3 / 2, Math.PI * 2, false);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5680 context.lineTo(x + width, y + height - radius.br);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5681 context.arc(x + width - radius.br, y + height - radius.br, radius.br,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5682 0, Math.PI / 2, false);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5683 context.lineTo(x + radius.bl, y + height);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5684 context.arc(x + radius.bl, y + height - radius.bl, radius.bl,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5685 Math.PI / 2, Math.PI, false);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5686 context.lineTo(x, y + radius.tl);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5687
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5688 if (fill) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5689 context.fill();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5690 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5691 if (stroke) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5692 context.stroke();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5693 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5694 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5695
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5696 function passClick(e) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5697 mouseClick(e);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5698 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5699
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5700 function searchResultString(results) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5701 var searchResults = this.searchResults;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5702
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5703 if (this.isSearchResult) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5704 // don't count ourselves
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5705 searchResults--;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5706 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5707
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5708 return ' - ' + results + (results > 1 ? ' results' : ' result');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5709 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5710
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5711 function setCallBacks() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5712 canvas.onselectstart = function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5713 return false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5714 } // prevent unwanted highlighting
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5715 options.onselectstart = function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5716 return false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5717 } // prevent unwanted highlighting
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5718 document.onmousemove = mouseMove;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5719 window.onblur = focusLost;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5720 window.onmouseout = focusLost;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5721 document.onkeyup = onKeyUp;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5722 document.onkeydown = onKeyDown;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5723 canvas.onmousedown = mouseClick;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5724 document.onmouseup = mouseUp;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5725 keyControl.onclick = toggleKeys;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5726 collapseCheckBox = document.getElementById('collapse');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5727 collapseCheckBox.checked = collapse;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5728 collapseCheckBox.onclick = handleResize;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5729 collapseCheckBox.onmousedown = suppressEvent;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5730 maxAbsoluteDepthText = document.getElementById('maxAbsoluteDepth');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5731 maxAbsoluteDepthButtonDecrease =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5732 document.getElementById('maxAbsoluteDepthDecrease');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5733 maxAbsoluteDepthButtonIncrease =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5734 document.getElementById('maxAbsoluteDepthIncrease');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5735 maxAbsoluteDepthButtonDecrease.onclick = maxAbsoluteDepthDecrease;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5736 maxAbsoluteDepthButtonIncrease.onclick = maxAbsoluteDepthIncrease;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5737 maxAbsoluteDepthButtonDecrease.onmousedown = suppressEvent;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5738 maxAbsoluteDepthButtonIncrease.onmousedown = suppressEvent;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5739 fontSizeText = document.getElementById('fontSize');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5740 fontSizeButtonDecrease = document.getElementById('fontSizeDecrease');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5741 fontSizeButtonIncrease = document.getElementById('fontSizeIncrease');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5742 fontSizeButtonDecrease.onclick = fontSizeDecrease;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5743 fontSizeButtonIncrease.onclick = fontSizeIncrease;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5744 fontSizeButtonDecrease.onmousedown = suppressEvent;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5745 fontSizeButtonIncrease.onmousedown = suppressEvent;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5746 bkgBrightButtonDecrease = document.getElementById('bkgBrightDecrease');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5747 bkgBrightButtonIncrease = document.getElementById('bkgBrightIncrease');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5748 bkgBrightButtonDecrease.onclick = bkgBrightDecrease;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5749 bkgBrightButtonIncrease.onclick = bkgBrightIncrease;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5750 bkgBrightButtonDecrease.onmousedown = suppressEvent;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5751 bkgBrightButtonIncrease.onmousedown = suppressEvent;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5752 radiusButtonDecrease = document.getElementById('radiusDecrease');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5753 radiusButtonIncrease = document.getElementById('radiusIncrease');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5754 radiusButtonDecrease.onclick = radiusDecrease;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5755 radiusButtonIncrease.onclick = radiusIncrease;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5756 radiusButtonDecrease.onmousedown = suppressEvent;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5757 radiusButtonIncrease.onmousedown = suppressEvent;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5758 maxAbsoluteDepth = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5759 backButton = document.getElementById('back');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5760 backButton.onclick = navigateBack;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5761 backButton.onmousedown = suppressEvent;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5762 forwardButton = document.getElementById('forward');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5763 forwardButton.onclick = navigateForward;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5764 forwardButton.onmousedown = suppressEvent;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5765 snapshotButton = document.getElementById('snapshot');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5766 snapshotButton.onclick = snapshot;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5767 snapshotButton.onmousedown = suppressEvent;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5768 detailsName = document.getElementById('detailsName');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5769 detailsExpand = document.getElementById('detailsExpand');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5770 detailsInfo = document.getElementById('detailsInfo');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5771 search = document.getElementById('search');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5772 search.onkeyup = onSearchChange;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5773 search.onmousedown = suppressEvent;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5774 searchResults = document.getElementById('searchResults');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5775 useHueDiv = document.getElementById('useHueDiv');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5776 linkButton = document.getElementById('linkButton');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5777 linkButton.onclick = showLink;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5778 linkButton.onmousedown = suppressEvent;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5779 linkText = document.getElementById('linkText');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5780 linkText.onblur = hideLink;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5781 linkText.onmousedown = suppressEvent;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5782 hide(linkText);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5783 var helpButton = document.getElementById('help');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5784 helpButton.onmousedown = suppressEvent;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5785 var searchClear = document.getElementById('searchClear');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5786 searchClear.onmousedown = suppressEvent;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5787 if (datasets > 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5788 datasetDropDown.onmousedown = suppressEvent;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5789 var prevDatasetButton = document.getElementById('prevDataset');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5790 prevDatasetButton.onmousedown = suppressEvent;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5791 var nextDatasetButton = document.getElementById('nextDataset');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5792 nextDatasetButton.onmousedown = suppressEvent;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5793 var lastDatasetButton = document.getElementById('lastDataset');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5794 lastDatasetButton.onmousedown = suppressEvent;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5795 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5796
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5797 image = document.getElementById('hiddenImage');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5798
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5799 if (image.complete) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5800 hiddenPattern = context.createPattern(image, 'repeat');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5801 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5802 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5803 image.onload = function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5804 hiddenPattern = context.createPattern(image, 'repeat');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5805 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5806 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5807
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5808 var loadingImageElement = document.getElementById('loadingImage');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5809
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5810 if (loadingImageElement) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5811 loadingImage = loadingImageElement.src;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5812 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5813 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5814
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5815 function selectDataset(newDataset) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5816 lastDataset = currentDataset;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5817 currentDataset = newDataset
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5818 if (datasets > 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5819 datasetDropDown.selectedIndex = currentDataset;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5820 updateDatasetButtons();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5821 datasetAlpha.start = 1.5;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5822 datasetChanged = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5823 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5824 head.setMagnitudes(0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5825 head.setDepth(1, 1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5826 head.setMaxDepths();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5827 handleResize();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5828 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5829
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5830 function selectLastDataset() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5831 selectDataset(lastDataset);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5832 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5833
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5834 function selectNode(newNode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5835 if (selectedNode != newNode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5836 // truncate history at current location to create a new branch
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5837 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5838 nodeHistory.length = nodeHistoryPosition;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5839
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5840 if (selectedNode != 0) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5841 nodeHistory.push(selectedNode);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5842 nodeHistoryPosition++;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5843 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5844
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5845 setSelectedNode(newNode);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5846 //updateView();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5847 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5848
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5849 updateDatasetButtons();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5850 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5851
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5852 function selectRank(rank) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5853 rankDropDown.value = rank;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5854 currentRank = rank;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5855 datasetsVisible = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5856 for (var i = 0; i < datasets; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5857 if (currentRank === 'ALL'
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5858 || i < numRawSamples
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5859 || (currentRank !== NO_RANK && (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5860 datasetNames[i].endsWith('EXCLUSIVE_' + currentRank) ||
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5861 datasetNames[i].endsWith('SHARED_' + currentRank) ||
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5862 datasetNames[i].endsWith('CONTROL_SHARED' + currentRank) ||
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5863 datasetNames[i].endsWith('CTRL_' + currentRank)))) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5864 datasetDropDown.options[i].hidden = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5865 datasetsVisible++;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5866 } else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5867 datasetDropDown.options[i].hidden = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5868 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5869 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5870 if (datasetDropDown.options[currentDataset].hidden === true) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5871 selectDataset(0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5872 } else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5873 selectDataset(currentDataset);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5874 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5875 datasetDropDown.size = (datasetsVisible < DATASET_MAX_SIZE ?
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5876 datasetsVisible : DATASET_MAX_SIZE);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5877 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5878
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5879 function setFocus(node) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5880 if (node == focusNode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5881 // return;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5882 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5883
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5884 focusNode = node;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5885
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5886 if (node.href) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5887 detailsName.innerHTML =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5888 '<a target="_blank" href="' + node.href + '">' + node.name + '</a>';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5889 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5890 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5891 detailsName.innerHTML = node.name;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5892 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5893
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5894 var table = '<table>';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5895
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5896 table += '<tr><td></td></tr>';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5897
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5898 for (var i = 0; i < node.attributes.length; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5899 if (attributes[i].displayName && node.attributes[i] != undefined) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5900 var index = node.attributes[i].length == 1
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5901 && attributes[i].mono ? 0 : currentDataset;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5902
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5903 if (typeof node.attributes[i][currentDataset] == 'number'
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5904 || node.attributes[i][index] != undefined
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5905 && node.attributes[i][currentDataset] != '') {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5906 var value = node.attributes[i][index];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5907
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5908 if (attributes[i].listNode != undefined) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5909 value =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5910 '<a href="" onclick="showList(' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5911 attributeIndex(attributes[i].listNode) + ',' + i +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5912 ',false);return false;" title="Show list">' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5913 value + '</a>';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5914 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5915 else if (attributes[i].listAll != undefined) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5916 value =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5917 '<a href="" onclick="showList(' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5918 attributeIndex(attributes[i].listAll) + ',' + i +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5919 ',true);return false;" title="Show list">' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5920 value + '</a>';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5921 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5922 else if (attributes[i].dataNode != undefined && dataEnabled) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5923 value =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5924 '<a href="" onclick="showData(' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5925 attributeIndex(attributes[i].dataNode) + ',' + i +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5926 ',false);return false;" title="Show data">' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5927 value + '</a>';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5928 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5929 else if (attributes[i].dataAll != undefined && dataEnabled) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5930 value =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5931 '<a href="" onclick="showData(' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5932 attributeIndex(attributes[i].dataAll) + ',' + i +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5933 ',true);return false;" title="Show data">' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5934 value + '</a>';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5935 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5936
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5937 table +=
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5938 '<tr><td class="CellWithTooltip">' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5939 '<strong>' + attributes[i].displayName + ':</strong>' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5940 '<span class="Tooltip">' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5941 attributes[i].tip + '</span>' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5942 '</td><td>' + value + '</td></tr>';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5943 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5944 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5945 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5946
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5947 table += '</table>';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5948 detailsInfo.innerHTML = table;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5949
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5950 detailsExpand.disabled = !focusNode.hasChildren()
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5951 || focusNode == selectedNode;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5952 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5953
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5954 function setSelectedNode(newNode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5955 if (selectedNode && selectedNode.hasParent(newNode)) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5956 zoomOut = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5957 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5958 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5959 zoomOut = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5960 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5961
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5962 selectedNodeLast = selectedNode;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5963 selectedNode = newNode;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5964
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5965 //if ( focusNode != selectedNode )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5966 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5967 setFocus(selectedNode);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5968 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5969 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5970
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5971 function waitForData(dataWindow, target, title, time, postUrl, postVar) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5972 if (nodeData.length == target) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5973 if (postUrl != undefined) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5974 for (var i = 0; i < nodeData.length; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5975 nodeData[i] = nodeData[i].replace(/\n/g, ',');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5976 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5977
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5978 var postString = nodeData.join('');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5979 postString = postString.slice(0, -1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5980
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5981 dataWindow.document.body.removeChild(dataWindow.document.getElementById('loading'));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5982 document.body.removeChild(document.getElementById('data'));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5983
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5984 post(postUrl, postVar, postString, dataWindow);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5985 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5986 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5987 //dataWindow.document.body.removeChild(dataWindow.document.getElementById('loading'));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5988 //document.body.removeChild(document.getElementById('data'));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5989
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5990 dataWindow.document.open();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5991 dataWindow.document.write('<pre>' + nodeData.join('') + '</pre>');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5992 dataWindow.document.close();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5993 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5994
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5995 dataWindow.document.title = title; // replace after document.write()
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5996 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5997 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5998 var date = new Date();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
5999
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6000 if (date.getTime() - time > 10000) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6001 dataWindow.document.body.removeChild(dataWindow.document.getElementById('loading'));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6002 document.body.removeChild(document.getElementById('data'));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6003 dataWindow.document.body.innerHTML =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6004 'Timed out loading supplemental files for:<br/>' + document.location;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6005 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6006 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6007 setTimeout(function () {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6008 waitForData(dataWindow, target, title, time, postUrl, postVar);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6009 }, 100);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6010 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6011 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6012 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6013
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6014 function data(newData) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6015 nodeData.push(newData);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6016 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6017
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6018 function enableData() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6019 dataEnabled = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6020 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6021
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6022 function showData(indexData, indexAttribute, summary) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6023 var dataWindow = window.open('', '_blank');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6024 var title = 'Re@ - ' + attributes[indexAttribute].displayName
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6025 + ' - ' + focusNode.name;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6026 dataWindow.document.title = title;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6027
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6028 nodeData = new Array();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6029
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6030 if (dataWindow && dataWindow.document && dataWindow.document.body != null) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6031 //var loadImage = document.createElement('img');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6032 //loadImage.src = "file://localhost/Users/ondovb/Krona/KronaTools/img/loading.gif";
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6033 //loadImage.id = "loading";
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6034 //loadImage.alt = "Loading...";
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6035 //dataWindow.document.body.appendChild(loadImage);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6036 dataWindow.document.body.innerHTML =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6037 '<img id="loading" src="' + loadingImage + '" alt="Loading..."></img>';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6038 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6039
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6040 var scripts = document.createElement('div');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6041 scripts.id = 'data';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6042 document.body.appendChild(scripts);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6043
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6044 var files = focusNode.getData(indexData, summary);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6045
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6046 var date = new Date();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6047 var time = date.getTime();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6048
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6049 for (var i = 0; i < files.length; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6050 var script = document.createElement('script');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6051 script.src = files[i] + '?' + time;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6052 scripts.appendChild(script);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6053 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6054
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6055 waitForData(dataWindow, files.length, title, time,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6056 attributes[indexAttribute].postUrl, attributes[indexAttribute].postVar);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6057
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6058 return false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6059 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6060
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6061 function showList(indexList, indexAttribute, summary) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6062 var list = focusNode.getList(indexList, summary);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6063
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6064 if (attributes[indexAttribute].postUrl != undefined) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6065 post(attributes[indexAttribute].postUrl,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6066 attributes[indexAttribute].postVar, list.join(','));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6067 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6068 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6069 var dataWindow = window.open('', '_blank');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6070
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6071 if (true || navigator.appName == 'Microsoft Internet Explorer') // :(
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6072 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6073 dataWindow.document.open();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6074 dataWindow.document.write('<pre>' + list.join('\n') + '</pre>');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6075 dataWindow.document.close();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6076 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6077 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6078 var pre = document.createElement('pre');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6079 dataWindow.document.body.appendChild(pre);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6080 pre.innerHTML = list;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6081 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6082
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6083 dataWindow.document.title = 'Re@ - ' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6084 attributes[indexAttribute].displayName + ' - ' + focusNode.name;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6085 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6086 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6087
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6088 function snapshot() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6089 svg = svgHeader();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6090
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6091 resetKeyOffset();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6092
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6093 snapshotMode = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6094
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6095 selectedNode.draw(false, true);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6096 selectedNode.draw(true, true);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6097
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6098 if (focusNode != 0 && focusNode != selectedNode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6099 context.globalAlpha = 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6100 focusNode.drawHighlight(true);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6101 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6102
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6103 if (hueDisplayName && useHue()) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6104 drawLegendSVG();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6105 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6106
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6107 snapshotMode = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6108
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6109 svg += svgFooter();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6110
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6111 var snapshotWindow = window.open('', '_blank', '', 'replace=false');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6112 snapshotWindow.document.write('<html><body>' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6113 '<button title="Download Rec@ntrifuge snapshot as SVG file" ' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6114 'onclick="document.getElementById(\'link\').click()">' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6115 'Download</button><a id="link" href="data:image/svg+xml,' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6116 encodeURIComponent(svg) + '" download="Recfg_snapshot.svg" hidden>' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6117 'Download</a><br></html></body>');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6118 snapshotWindow.document.title = 'Re@ [snapshot] ' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6119 location.href.split("/").slice(-1)[0].split(".html")[0];
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6120 snapshotWindow.document.write(svg);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6121 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6122
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6123 function save() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6124 alert(document.body.innerHTML);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6125 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6126
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6127 function spacer() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6128 if (snapshotMode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6129 return '&#160;&#160;&#160;';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6130 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6131 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6132 return ' ';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6133 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6134 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6135
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6136 function suppressEvent(e) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6137 e.cancelBubble = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6138 if (e.stopPropagation) e.stopPropagation();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6139 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6140
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6141 function svgFooter() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6142 return '</svg>';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6143 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6144
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6145 function svgHeader() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6146 var patternWidth = fontSize * .6;//radius / 50;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6147
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6148 return '\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6149 <?xml version="1.0" standalone="no"?>\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6150 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" \
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6151 "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6152 <svg width="' + imageWidth + '" height="' + imageHeight + '" version="1.1"\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6153 xmlns="http://www.w3.org/2000/svg">\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6154 <title>Rec@ntrifuge (snapshot) - ' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6155 (datasets > 1 ? datasetNames[currentDataset] + ' - ' : '')
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6156 + selectedNode.name +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6157 '</title>\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6158 <defs>\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6159 <style type="text/css">\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6160 @import url("https://fonts.googleapis.com/css?family=' + fontFamily + '");\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6161 text {font-size: ' + fontSize + 'px; font-family: ' + fontFamily
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6162 + '; dominant-baseline:central}\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6163 path {stroke-width:' + thinLineWidth * fontSize / 12 + ';}\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6164 path.wedge {stroke:none}\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6165 path.line {fill:none;stroke:black;}\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6166 line {stroke:black;stroke-width:' + thinLineWidth * fontSize / 12 + ';}\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6167 line.tick {stroke-width:' + thinLineWidth * fontSize / 6 + ';}\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6168 line.pattern {stroke-width:' + thinLineWidth * fontSize / 18 + ';}\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6169 circle {fill:none;stroke:black;stroke-width:' + thinLineWidth
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6170 * fontSize / 12 + ';}\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6171 rect {stroke:black;stroke-width:' + thinLineWidth * fontSize / 12 + ';}\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6172 .highlight {stroke:black;stroke-width:' + highlightLineWidth
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6173 * fontSize / 12 + ';}\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6174 .searchHighlight {fill:rgb(255, 255, 100);stroke:none;}\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6175 </style>\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6176 <pattern id="hiddenPattern" patternUnits="userSpaceOnUse" \
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6177 x="0" y="0" width="' + patternWidth + '" height="' + patternWidth + '">\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6178 <line class="pattern" x1="0" y1="0" x2="' + patternWidth / 2 + '" y2="'
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6179 + patternWidth / 2 + '"/>\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6180 <line class="pattern" x1="' + patternWidth / 2 + '" y1="' + patternWidth +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6181 '" x2="' + patternWidth + '" y2="' + patternWidth / 2 + '"/>\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6182 </pattern>\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6183 </defs>\
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6184 ';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6185 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6186
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6187 function svgText(text, x, y, anchor, bold, color) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6188 if (typeof(anchor) == 'undefined') {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6189 anchor = 'start';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6190 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6191
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6192 if (color == undefined) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6193 color = 'black';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6194 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6195
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6196 return '<text x="' + x + '" y="' + y +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6197 '" style="font-color:' + color + ';font-weight:'
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6198 + (bold ? 'bold' : 'normal') +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6199 '" text-anchor="' + anchor + '">' + text + '</text>';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6200 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6201
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6202 function toggleKeys() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6203 if (showKeys) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6204 keyControl.value = '…';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6205 showKeys = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6206 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6207 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6208 keyControl.value = 'x';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6209 showKeys = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6210 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6211
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6212 updateKeyControl();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6213
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6214 if (progress == 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6215 draw();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6216 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6217 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6218
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6219 function update() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6220 if (!head) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6221 return;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6222 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6223
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6224 if (mouseDown && focusNode != selectedNode) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6225 var date = new Date();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6226
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6227 if (date.getTime() - mouseDownTime > quickLookHoldLength) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6228 if (focusNode.hasChildren()) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6229 expand(focusNode);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6230 quickLook = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6231 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6232 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6233 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6234
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6235 if (updateViewNeeded) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6236 resize();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6237 mouseX = -1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6238 mouseY = -1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6239
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6240 collapse = collapseCheckBox.checked;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6241 compress = true;//compressCheckBox.checked;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6242 shorten = true;//shortenCheckBox.checked;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6243
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6244 checkSelectedCollapse();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6245 updateMaxAbsoluteDepth();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6246
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6247 if (focusNode.getCollapse() || focusNode.depth > maxAbsoluteDepth) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6248 setFocus(selectedNode);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6249 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6250 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6251 setFocus(focusNode);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6252 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6253
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6254 updateView();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6255
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6256 updateViewNeeded = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6257 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6258
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6259 var date = new Date();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6260 progress = (date.getTime() - tweenStartTime) / tweenLength;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6261 // progress += .01;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6262
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6263 if (progress >= 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6264 progress = 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6265 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6266
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6267 if (progress != progressLast) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6268 tweenFactor =// progress;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6269 (1 / (1 + Math.exp(-tweenCurvature * (progress - .5))) - .5) /
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6270 (tweenMax - .5) / 2 + .5;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6271
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6272 if (progress == 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6273 snapshotButton.disabled = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6274 zoomOut = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6275
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6276 //updateKeyControl();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6277
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6278 if (!quickLook) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6279 //checkHighlight();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6280 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6281
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6282
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6283 if (fpsDisplay) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6284 fpsDisplay.innerHTML = 'fps: '
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6285 + Math.round(tweenFrames * 1000 / tweenLength);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6286 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6287 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6288
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6289 draw();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6290 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6291
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6292 progressLast = progress;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6293 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6294
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6295 function updateDatasetButtons() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6296 if (datasets == 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6297 return;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6298 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6299
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6300 var node = selectedNode ? selectedNode : head;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6301
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6302 datasetButtonLast.disabled =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6303 node.attributes[magnitudeIndex][lastDataset] == 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6304
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6305 datasetButtonPrev.disabled = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6306 datasetButtonNext.disabled = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6307
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6308 for (var i = 0; i < datasets; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6309 var disable = node.attributes[magnitudeIndex][i] == 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6310
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6311 datasetDropDown.options[i].disabled = disable;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6312
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6313 if (!disable) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6314 if (i != currentDataset) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6315 datasetButtonPrev.disabled = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6316 datasetButtonNext.disabled = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6317 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6318 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6319 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6320 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6321
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6322 function updateDatasetWidths() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6323 if (datasets > 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6324 for (var i = 0; i < datasets; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6325 context.font = fontBold;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6326 var dim = context.measureText(datasetNames[i]);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6327 datasetWidths[i] = dim.width;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6328 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6329 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6330 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6331
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6332 function updateKeyControl() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6333 if (keys == 0)//|| progress != 1 )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6334 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6335 keyControl.style.visibility = 'hidden';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6336 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6337 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6338 keyControl.style.visibility = 'visible';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6339 keyControl.style.right = margin + 'px';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6340
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6341 if (showKeys) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6342 keyControl.style.top =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6343 imageHeight -
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6344 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6345 keys * (keySize + keyBuffer) -
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6346 keyBuffer +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6347 margin +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6348 keyControl.clientHeight * 1.5
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6349 ) + 'px';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6350 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6351 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6352 keyControl.style.top =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6353 (imageHeight - margin - keyControl.clientHeight) + 'px';
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6354 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6355 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6356 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6357
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6358 function updateView() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6359 if (selectedNode.depth > maxAbsoluteDepth - 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6360 maxAbsoluteDepth = selectedNode.depth + 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6361 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6362
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6363 highlightedNode = selectedNode;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6364
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6365 angleFactor = 2 * Math.PI / (selectedNode.magnitude);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6366
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6367 maxPossibleDepth = Math.floor(gRadius / (fontSize * minRingWidthFactor));
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6368
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6369 if (maxPossibleDepth < 4) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6370 maxPossibleDepth = 4;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6371 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6372
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6373 var minRadiusInner = fontSize * 8 / gRadius;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6374 var minRadiusFirst = fontSize * 6 / gRadius;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6375 var minRadiusOuter = fontSize * 5 / gRadius;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6376
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6377 if (.25 < minRadiusInner) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6378 minRadiusInner = .25;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6379 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6380
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6381 if (.15 < minRadiusFirst) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6382 minRadiusFirst = .15;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6383 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6384
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6385 if (.15 < minRadiusOuter) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6386 minRadiusOuter = .15;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6387 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6388
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6389 // visibility of nodes depends on the depth they are displayed at,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6390 // so we need to set the max depth assuming they can all be displayed
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6391 // and iterate it down based on the deepest child node we can display
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6392 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6393 var maxDepth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6394 var newMaxDepth = selectedNode.getMaxDepth() - selectedNode.getDepth() + 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6395 //
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6396 do {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6397 maxDepth = newMaxDepth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6398
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6399 if (!compress && maxDepth > maxPossibleDepth) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6400 maxDepth = maxPossibleDepth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6401 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6402
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6403 if (compress) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6404 compressedRadii = new Array(maxDepth);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6405
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6406 compressedRadii[0] = minRadiusInner;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6407
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6408 var offset = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6409
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6410 while
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6411 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6412 lerp
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6413 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6414 Math.atan(offset + 2),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6415 Math.atan(offset + 1),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6416 Math.atan(maxDepth + offset - 1),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6417 minRadiusInner,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6418 1 - minRadiusOuter
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6419 ) - minRadiusInner > minRadiusFirst &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6420 offset < 10
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6421 ) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6422 offset++;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6423 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6424
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6425 offset--;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6426
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6427 for (var i = 1; i < maxDepth; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6428 compressedRadii[i] = lerp
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6429 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6430 Math.atan(i + offset),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6431 Math.atan(offset),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6432 Math.atan(maxDepth + offset - 1),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6433 minRadiusInner,
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6434 1 - minRadiusOuter
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6435 )
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6436 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6437 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6438 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6439 nodeRadius = 1 / maxDepth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6440 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6441
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6442 newMaxDepth = selectedNode.maxVisibleDepth(maxDepth);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6443
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6444 if (compress) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6445 if (newMaxDepth <= maxPossibleDepth) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6446 // compress
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6447 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6448 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6449 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6450 if (newMaxDepth > maxPossibleDepth) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6451 newMaxDepth = maxPossibleDepth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6452 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6453 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6454 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6455 while (newMaxDepth < maxDepth);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6456
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6457 maxDisplayDepth = maxDepth;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6458
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6459 lightnessFactor = (lightnessMax - lightnessBase)
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6460 / (maxDepth > 8 ? 8 : maxDepth);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6461 keys = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6462
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6463 nLabelOffsets = new Array(maxDisplayDepth - 1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6464 labelOffsets = new Array(maxDisplayDepth - 1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6465 labelLastNodes = new Array(maxDisplayDepth - 1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6466 labelFirstNodes = new Array(maxDisplayDepth - 1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6467
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6468 for (var i = 0; i < maxDisplayDepth - 1; i++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6469 if (compress) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6470 if (i == maxDisplayDepth - 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6471 nLabelOffsets[i] = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6472 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6473 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6474 var width =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6475 (compressedRadii[i + 1] - compressedRadii[i]) *
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6476 gRadius;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6477
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6478 nLabelOffsets[i] = Math.floor(width / fontSize / 1.2);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6479
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6480 if (nLabelOffsets[i] > 2) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6481 nLabelOffsets[i] = min
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6482 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6483 Math.floor(width / fontSize / 1.75),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6484 5
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6485 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6486 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6487 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6488 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6489 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6490 nLabelOffsets[i] = Math.max
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6491 (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6492 Math.floor(Math.sqrt((nodeRadius * gRadius / fontSize)) * 1.5),
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6493 3
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6494 );
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6495 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6496
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6497 labelOffsets[i] = Math.floor((nLabelOffsets[i] - 1) / 2);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6498 labelLastNodes[i] = new Array(nLabelOffsets[i] + 1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6499 labelFirstNodes[i] = new Array(nLabelOffsets[i] + 1);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6500
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6501 for (var j = 0; j <= nLabelOffsets[i]; j++) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6502 // these arrays will allow nodes with neighboring labels to link to
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6503 // each other to determine max label length
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6504
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6505 labelLastNodes[i][j] = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6506 labelFirstNodes[i][j] = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6507 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6508 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6509
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6510 fontSizeText.innerHTML = fontSize;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6511 fontNormal = fontSize + 'px ' + fontFamily;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6512 context.font = fontNormal;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6513 fontBold = 'bold ' + fontSize + 'px ' + fontFamily;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6514 tickLength = fontSize * .7;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6515
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6516 head.setTargets(0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6517
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6518 keySize = ((imageHeight - margin * 3) * 1 / 2) / keys * 3 / 4;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6519
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6520 if (keySize > fontSize * maxKeySizeFactor) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6521 keySize = fontSize * maxKeySizeFactor;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6522 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6523
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6524 keyBuffer = keySize / 3;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6525
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6526 fontSizeLast = fontSize;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6527
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6528 if (datasetChanged) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6529 datasetChanged = false;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6530 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6531 else {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6532 datasetAlpha.start = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6533 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6534
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6535 var date = new Date();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6536 tweenStartTime = date.getTime();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6537 progress = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6538 tweenFrames = 0;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6539
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6540 updateKeyControl();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6541 updateDatasetWidths();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6542
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6543 document.title = ('Re@ - ' +
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6544 location.href.split("/").slice(-1)[0].split(".html")[0]);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6545 updateNavigationButtons();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6546 snapshotButton.disabled = true;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6547
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6548 maxAbsoluteDepthText.innerHTML = maxAbsoluteDepth - 1;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6549
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6550 maxAbsoluteDepthButtonDecrease.disabled = (maxAbsoluteDepth == 2);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6551 maxAbsoluteDepthButtonIncrease.disabled =
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6552 (maxAbsoluteDepth == head.maxDepth);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6553
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6554 bkgBrightButtonDecrease.disabled = (bkgBright == '555555');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6555 bkgBrightButtonIncrease.disabled = (bkgBright == 'ffffff');
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6556
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6557 if (collapse != collapseLast && search.value != '') {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6558 onSearchChange();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6559 collapseLast = collapse;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6560 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6561 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6562
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6563 function updateMaxAbsoluteDepth() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6564 while (maxAbsoluteDepth > 1 && selectedNode.depth > maxAbsoluteDepth - 1) {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6565 selectedNode = selectedNode.getParent();
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6566 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6567 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6568
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6569 function updateNavigationButtons() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6570 backButton.disabled = (nodeHistoryPosition == 0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6571 // upButton.disabled = (selectedNode.getParent() == 0);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6572 forwardButton.disabled = (nodeHistoryPosition == nodeHistory.length);
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6573 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6574
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6575 function useHue() {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6576 return useHueCheckBox && useHueCheckBox.checked;
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6577 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6578
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6579 /*
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6580 function zoomOut()
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6581 {
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6582 return (
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6583 selectedNodeLast != 0 &&
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6584 selectedNodeLast.getDepth() < selectedNode.getDepth());
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6585 }
fe733f05c2f8 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit 9142693589056424fb64869b69dbc08b179f57ee
iuc
parents:
diff changeset
6586 */</script></head><body><img id="hiddenImage" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9oLCBQhNQwWVnsAAAAidEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVAgb24gYSBNYWOHqHdDAAABE0lEQVQYGQEIAff+AwAAABkAAAAAAAAA+gAAAAAAAAAAAAAAAAAAAAAAAAAMAwAAAAAAAAANAAAAAAAAAPoAAAAAAAAADAAAAAYAAAD0AwAAAPoAAAAAAAAAAAAAAPoAAAAMAAAADQAAAPoAAAD6AAAAAAAAAAAAAAAAAAAAAAwAAAAZAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAABkAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAGQAAAAwAAAAAAAAADAAAAAwAAAAABAAAAAAAAAAAAAAA8wAAAPQAAAAAAAAAAAAAAA0AAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAZRssKC5OpXwYAAAAASUVORK5CYII=" style="display:none"><img id="loadingImage" src="data:image/gif;base64,R0lGODlhEAAQAPIAAP///wAAAMLCwkJCQgAAAGJiYoKCgpKSkiH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAEAAQAAADMwi63P4wyklrE2MIOggZnAdOmGYJRbExwroUmcG2LmDEwnHQLVsYOd2mBzkYDAdKa+dIAAAh+QQJCgAAACwAAAAAEAAQAAADNAi63P5OjCEgG4QMu7DmikRxQlFUYDEZIGBMRVsaqHwctXXf7WEYB4Ag1xjihkMZsiUkKhIAIfkECQoAAAAsAAAAABAAEAAAAzYIujIjK8pByJDMlFYvBoVjHA70GU7xSUJhmKtwHPAKzLO9HMaoKwJZ7Rf8AYPDDzKpZBqfvwQAIfkECQoAAAAsAAAAABAAEAAAAzMIumIlK8oyhpHsnFZfhYumCYUhDAQxRIdhHBGqRoKw0R8DYlJd8z0fMDgsGo/IpHI5TAAAIfkECQoAAAAsAAAAABAAEAAAAzIIunInK0rnZBTwGPNMgQwmdsNgXGJUlIWEuR5oWUIpz8pAEAMe6TwfwyYsGo/IpFKSAAAh+QQJCgAAACwAAAAAEAAQAAADMwi6IMKQORfjdOe82p4wGccc4CEuQradylesojEMBgsUc2G7sDX3lQGBMLAJibufbSlKAAAh+QQJCgAAACwAAAAAEAAQAAADMgi63P7wCRHZnFVdmgHu2nFwlWCI3WGc3TSWhUFGxTAUkGCbtgENBMJAEJsxgMLWzpEAACH5BAkKAAAALAAAAAAQABAAAAMyCLrc/jDKSatlQtScKdceCAjDII7HcQ4EMTCpyrCuUBjCYRgHVtqlAiB1YhiCnlsRkAAAOwAAAAAAAAAAAA==" style="display:none"><img id="logo" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAakAAABkCAYAAAA8Lc+FAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH4gYZFgwotKLFqAAAIABJREFUeNrtnXmYVMXVh9/q7umZnhl2RBbZQUEFUVkVcQFxBTUK4kJiEgU1UWQgavw0kmiCIouKEbckYhAV3EBUNIgbKG4RIyC7CAqyD9t0z0x31/dHXXToube7bs/tmWGm3ufpR+ypvl1dt2796lSdOgcMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8Fg0EIA7Ty4jgR2AXtMkxoMBoPBS5GSHl6vCFgHfAEsAuYC200zGww1nvrWc6/DyUBhBb/PB5wInA70AZoCjYFgQrnpwF/M7Tm8kRl8RYE5wGmmmQ2GGk1DF+NCowp8Tx7we2CV5nc9ZG6NESnd14tAc9PcBoMRqTS/43jga5fjjhEpI1KuXluAU02TGwxGpFxyKRBJY8wxInWY46vk72sKvA2caZreYDBo0gt4Bsg2TVH7CFTBd+YCrwDdgbXmFhgMP/Ey0Eqj3C0ox6TaQB3Uvnau6R5GpCqTesDz1gwpZm7D4Ym8lTrEcjsh48cgfB2Jx5siRB0kdQEQFIE4AHIHiPUIsR5/fLmYEP7etJ4txwFHaz4/tYWxwJGmaxiRqgpOBkYCj5rbcJiI0hD8HJVzJkIMAM4kyskg/SBAShACS5zKfurn/0oJUZAFoU3KEhDvIvyviEn7dpjWNdjQECgwzWBEqiq5G/gnakPUUF3FaWz+8cjYNUiuBJp5cMmWwBUgr0BGp8kxue8i4/+mNPKCmEqxaXGDxVAg3zSDESld7gK2JbznAxpYrxNQ56FCLq7ZBBgGPG1uRTUUp4JQbyR3Eo+dn2gfeYgfKQeAGEBW6H45Wk6D4CNiyt5d5g7Ues52UXYfsBT4MeH9paYZD2/cRJw4GliTokwOcLMlaLozoHeAAeZWVCfLKa8rUk5S4lEl7AbupW74ETGOklrU9KvQ25O6EHi9mtU9CxX9QYf3gVKNchstqzsVXwHnoY64GIxIadEHWGiJVipiKNd0sy9R1eI0glzyQnchGGMNOq7YWwKFxZK9xZK4hPygIMcPzfJFumbYOqT8rZgSed+IVLUXKa/JRoVZ0zkmcz7wpnmCayaZ2pP6GLgNvYN0fqAfyv3WUFUCNSa3B1I+j2bA4a1Fknc3xXl/U5z/7YizapdkZ8R+vpPth7b1BMc28nFqcx99W/jofqQPX2rlao8QC2VBaDKl4TvNflWtogH65zi/MM1lLCm3lhSoQI8rgbYaZScDY8ztqCKBKsi9DuRUUhyWLCyWzFoV45kVMT7aHK9QZOJmeYJLO/oZfqyfnk21xqLPiIuLxINFNXlJx1hSP9MG+NbFZNscZamhZDLiRIkL6+h4cyuqQJyG4Jejcx4H+UQygdpaJLntw1JaPhFh5IJSFldQoAC2HJA8sjRKr5nF9HmumNmrY6mu2QOf/ESOzetq7pwZmwymI3jFB5rlOptbUckCNY4ArUIzEGKEU5lwFO5cXEq7pyJM+CzK/tLM1GXJljhD55XQa2YxH3wfT1a0JXH5oRyT28PcQYPBiJQX6C4PNjG3olIFKsie0AtIhjmVWbAxTtdnIvz1kyhF0cqp12c/xjljVjEjF5QmEURZFynnG4vKYDAi5QU/aJbLRs8T0OAFe3MfR/ALuz/FJdy1uJSBLxaztlBWetUk8MT/onT7d4SvtjtaVQ2Jx9+WY3Jam5tpMBiRqtBwCMQ1y9Yxt6MSRKAgdBvIa+z+tqdYcv4rJdz7SdT1npNAOUP0buZjQCv1Ov0oH10a+8jLcl/PdYWSvs8XM2+94374kUjxohxnJjcGQ02mMsIiFaMXhaI+3qSar4Pa46qPCsQpUWewNgLfUXVeQEGrXkdYdRPAHqte6yHzh1bl6NxBIP9m97ddEck5L5Xw+da49vXa11ceev1b+enZVFA/WzhaR9/ukXzwfZy3NsR4bX2MAxr7W/tL4eI5JTxzXpArO/ntinRnb87DEBlRhc9PCBXtoLZR15qEGiqXeqiM5weqeT1zrGdjjwtDxXECnCkX9IMUohe1+WTgv2n+jl7A5SjX3A44h/ApRDlzPI/yPMz0uZuOwBXARUDXJJOCCLAEeAmYCXgeEkiOyjsSf/xrSyQPYWdEMmB2CUu3p+5LPgGD2/sZdWKAM1qmZ4jvL4XnV0Z54PMoq3en7n4BH8y6MMglHfxOlbpQTCzSdcnui17izeXAPJsB4mpgMCrVTMMy928dKlfaC8AnGte/2WbyNhZorPHZp1HHOxL5DHWI/iCD0XNKWgQsTiLE/YFzgR5AJ1TSwu0cupecA4zSvAcPA+GEieWNCWUaArdqXu+OJAPhF8AC699tUfEAU7EbeEKj3MFU9jpMSWMiGkSFjbsIOAloXWZsi1p9dCEwHRV1oyw9gLM0vmOtNe5UhLbAL6znqisq3UzZ9ZMdqOMVH1nP1IcudKdSRKpI05LqAixLQ5zGk14SxS3WZx/NgHXVBrjX6mB+t2M4MA24x8sZuiwIvWp19kMoicHAl4p5//vUAnX6UT4ePDOLbkd4s0ock/CvZVH+uCjKjnDybpgTgA8vz6b7kbbfvYH94ePEExRpfO04VGDjVMwAhpf5/6uABzVF5APgBmBFkjLbNa/lhikcGjV8pjVJSsXdwF8S3vNbv2GsNTja1b9Jgqjs1Kxn44SyLYBMpW95uIx4noteZIq11gQzFU3RD8VUx3q2delhTXh0zplKYJYlmAcj94xGnT9NxWvWZCYdTgX+BAx0+bm1wAOo4OIp3bIyvScl0HeIcGO+ZgETrNlfull+m1kd+GOHhzBdrgX+Zw1q/jQ+nw/8wZolneKJQI0OXWknUADXLyhJKVC5AXjy7CzeG5rtmUAB+AVc2yXAN9dkc2G75E0VicJlr5U4RbVoQ17orgz1YR9wvyVauqLSz7KMBx2mS0onWdbgVI+fDYMeV1gTnbaa5YW1kvSFprhWlHrAPywLfGAan+8APA58blleVSpS9dCPnq07y8hHZer8Q5oiYDdj+ZSKHygWwCTgSbxxAmkJvAtcXCGBGkcOgvF2f5u+Isa/lic3IjvUF3x+dQ7Xdsnc9mXjkGDuxUH+ckpyD4vv9kpuXFDq1Po3y7H5mTjK8JSLZafEmfMLwImH0eDot1YXPkUtvxsqn36o5bt0HIJaWWNGuwzWr63VP37jwbVOQC0BDqpKkdLNPVSEXoDZAPAiKuKxlzRBrVu3qcA1xuN9gragNdCdlfYV9oZGYZOSfNM+yah3k3svnNTEx6Jh2XRumHKeEQE5HynvRnIFUp6NlGeDuADECDUjl8tSKfxdvQNMG5CVdFYza3WM+RtshTWXWHyUx+0/Cvh1BT4fAmaTItxUNaEBKtTS7R5N/gzuaWT1l6wKXKOFNZa1yED9WlvW09EeXjPPGtPPSTboZxJd0/Nb9PbGxif7MRXkSGCuZVm5dai4HBVQNxMErZt4ArDJlRV1W4N6lEZut/vbDe+UsqfYucmPa+RjwWVBGuQkkwzxDfAQgaKZYkLq/TM5JtiJuH8EgutwSOVyfdcAO8LqrJYTNy0s5Ztr/AQSp1hC/k7exP1iqideZ6eC82FnF7QHfoXeRnxVcQxqea8jhqrkerwJbNA2AxPmPJTTQ/MMjXGzgN7AN5VtSfXVLLdSo8zJqM3ATNIFlQvLDQ1Re1uZnuU+6vpTpZFfo9zdD+GdjXFedz5/RPN8wZu/SCJQgp0IMZJNRV3E5KLHdQQKQEwqWSmmhAuI+Tqg9nhsubNXgMuOdp7Mry2UPLfStv71yMq5zMNlDa8mcbeSuaSRXnClEahqwXUeXsvr/jaOzMZYrQs8Y/fMZVKkAoDugLFIs5EqYxmiwOVsYRSVE9bpQlTmYz0rahw+bNxj4xL+8IGzleITMOO8IC3rOPbxD/HTTUwqekLMTs8rUjx0YKuYHB4OcriT1fr4gCya5zs/Z/d9Vupgeosrq+Hg0x441ozBhiQ0pfo6qbQBbqmE7+lurTqUE5JM8Wv0vVNSBaLtiEpsVhmEgJHouSlnW2Uri1tQZwxSszf3XJDtE9+evyHGl9ucvfnGnBzgTOfzTy9RGr5KTPbmfJmYHJkhx+ZsJi7mkXBMoWGO4G99s7hmvv3RkhU7JYt+iHNai3J1PVOOyjtSPHRgazV70M9CeWwe5B4yc07qcGQvai8scYXCq3NShwPV2cHm91RO4AesfvBPymz/ZOqLu6HObOiwAfgyRZmhaVh9e1BnL3KtGYqbzw/XFKkzUXtZbgijIl8IS8SDLj47COUxuSe1KSWH2Rn8D3/pbPy0yBf8qU+W0/Xe5EDkCvEEnsZCFxMjC2VB6FeoNelDb0JnPxM/97Fsh/348+w3MTuR8uGPn4FyOKlOnJR4K2zK/EZTpF6kZuWT2ody8y9LOxciNYHDP59U82paLx8Vcx5ySwfgdOC9shXwklzgd9ZsP0/zMzNI7TRxqos6rLMG80aoNdR2wFHAYy6u0Ra9NXo39dpjWV2NUVEAOln/vhX9k+hZwBkp9WkcQUR5t841uyVvb3B+lu89NYt8O40SrKI4MtSNQMmx2vcfMTk8G+ST5Z4OATd1c17hnbPOIQeVkGd42Kd3WTP17qhjAZ1RZ+FWu7xOo8Nw4CxCRWcZgXIoamX123NIZ4/UkIwGaVif/2dZYK1QgQ0m4n14teP5ObKKDkuBX6KccVqi/BKmoXFotwyHeG+7saRGUN5N3Gf9gIaWtXIq7vz7S1CHwlLRS/N6G1EHYLclvL8FdXp+O/qOEQNJHWFDt14Ra7nnvzYzyAf4OTSJzmZnf9Q5sSTdN3cAyHIOEy8kSSzYqo7gqs62ghAFcZV4NPk5NnlrbnNi8WuQ4jygD3H8soAw8CWSV4mGH0/qdSey7kBGh5IQQuuqzgFuea+UsE0X//GAZNUuSadEF3kp+nj0gO4AelI+Q+xKa/Cej75z0OEkUmFUBIrHUKHEElmFCgFl8A43QrAH6MOhnnCbUOeX5lr9MtejerkJKDAbFcSg7GT2e1TQhfnWGKejOQMp4y3txpIaC9yX8Pqb9f5vrMHT7QG0R1HLfcmo6+IG/tFGoMoyzsUMuKemxaX7O5PFJXwF/SzGGtab7G/37kurna2o358YIMu+NzwmJhU5ruur7L6hPxCVK5Hir9agfVDtQsApCCaQFVonR+de5KhRk/btQJR3087Lgl7NnLvpR5ttlwI7Sm+8m+7FOYX5AVQcP92Za93DZLBca83O73MQKENmcCMqd2Pjqm3xIeX39yqC7pmorahlQafVlrmoYAc6nFDWsqzKFM3fW4NAKlpqXi+a0sJQm6u6exWp9poE+gfmdAI4Pqd5rdQHpAXlLIlN+6RjAFmfwCnKeISYz/Ee/ZzdlwmkjrLRGCFflgU5v3S+O/7pdm/3a+HcTVftjts/8AWhoyrYP+Oo2HfJ+I6atTe02ZrFrjKaUenormpFUI4FyXg8xWTdDbrP0QukDm33d81rCcrs0VWVSEWAS9ELSKnr3v0devH/vta8XqrvrYNe4FxIHmj0IF9pXqsxSawEeRPZyHKb9Cze7OzRd1oLHy1s3b3Fs0m95PbmPp4su6+dHoKYJguy7WdnU/avwCZdS98Wyc9MOUhMqwr20TXopY5ZXIMGymuTWI6G6iFSn5A68HQJP0d+ryi6Dh2fa5TZhH4i3CZuG8ZrgboKtX6qg64Q6EYM113CaORRvUAv784O9N1l83CKdejPPQ5kuTA8HyURqbNbO4iAjE93FMOxuRcQl+nE78oF3w3YHMwWIKV6CC88xHRM4oLhGD1d+CoaP3G9Zrkt1AzmoRch3FC1IrVSs9xqj+ql6wClGwF/G3orUEdUlUjtQgVM/dDFZ3T3uWIelxMe1UvN6/XEs3uFW9gv29l5RyQ7G3X6UbYG9XamRGwPWUsQxOVEu7+VxuGlNTGW7YjTu5mPC9r57RpyEI7RQ8SuRGfP/KDzrdjntCMk4hUVKd1JT7iGDJL3G52oUnQDFRR63H+9Gn91PX/deDJXukjNRSU2+8Hl54LVtFNVz3rFaWunCt/ucfby72qffuMD4XQ0oCDnLJQr8qGqFlbZfcsK4lmtfORnCW48wc85bX56DpM4wshyS7b5ScJtxp1+lqyw40QJtYet1Kxly8MR4XG/lB7Vq8qDI1fWntR0VD6jH0xfzHhXLxdaJRKFLQfs+2zzfEFdO7mVcmmSL7FNH3LjO6XlLLaFG+Ns3CuJy0POSexM8miVyxycLNW8o4AJsd90Bm3+6+GgZqid4pkxKsuS6m3udSUhqZvYrXaEpaPF0TzPqQ+KZGva3e0stUQX9xOO8PGXUwKxQe39fnFIX5MzkjwS5UI5rSt0Hj/rOwbBjRuR0udH0wSG6oobkZqIfc6na7BZ+kngGFSE8a9Nk2d83lNuDTmc5Kx3PUdjXu5K8i3lzoct+iF+yFR8+rlBhh/rR5Rfa9+KFE/ZfuPt9RpQUnJc4vvr9zjvp7Wt6yBSPrnFdAZttpkmMNQEkXoC+wgMEr1N18szLFLtsIn/ZkOTGn1HBTmJCzeRmLMlku13GuRFJMm3lJO23Qm5qeauizH82HJ7wbvBd46YcsB+2be4eDBClFt8/HKbc/071Letf5Q9xRvM461NkWkCQwU5H73gBq7HXy+W+17RFKlhwJ0ZbKQGwJBa31Vk+b0FX5JVZUcBkzI7xaB2SNilxHNWL62Jcfz0CNd3DdA8XyCl+PCyTlmXiYn7t9lXGwHihsT34xJeWevskNnTPhrFRq8D4RoMhqRkLJWHFyK1BhWio3OKcu1R4Va+NPczo6ZUYeIeeP1sZ5Xa7+grJJJF4/6GhEN+A1r5CAUOXVpcsVNy888p6nszr7g5TktLY0LDkOVjIS7eHHd0+ggF4OQmPjtr8lPTDwyGmoFX3n2vapYbapo846ZUuTQe9ZKI1MZ9jj7c7ZII4Ud23zGia9I5TxbwL8qcf/jpm8bmtEXyoN2Hnl7uvKE2oJWfoN3pEikWmX5gMBiRKssczXKXU73TaNcAQ0rsTnwrPwvHVPBbD0h7F28pnA8Wy/jT2Lgs/61vFt2OSNqlupEQ/FKOqdOYuO91bNaqv94RZ/py56W+IU4p5n2+901HMBiMSJXlU1TA2FS0xYuoCoYkxNfavdu5ob1ISeDzrTbec4K+coj9KXgxJbIeWJj4fm4A3h0aZGDrpN3qTpSnJ/KWUB9k9BOQtkvFY98vxWnLrF624OIOfrt6rxIT9y8z/cBgMCKVONa9plnWLPllVKN8tiH8OzV0NmAd4vo1oXXOaUksttuwCYVSP1vw1qXZvDgoyFmtfOWcNvyC4MDWvlmx0aHn8LEI5ZVZjqeXx3j7O2fX8+u6+KljG/NDzDadwGAwImWHWfKrDmQVrcJmKa53kpxMb3wbcxI8x7TRKseUvMfp75d29PPOZdkU/i7Ep1dm85/Lslk8LJvC34d469LsTj7BMKf+9+6mOCMXOEd/yQ3ALSfZ7n/FkbF/m05gMNQcvIw48S4qY2S9FOVaoiJQfOzxb1mPt8m+DsuzI2IC+2SBWJm4hHZWSz9OMSA/2hznh/3SJl2HHCZHh+4QU8L255rqRsazN9SFJK7/dYLQo6n+XGjZjjiXvlZCSZIwwGO7BxxSizBPTC5ebR5rg6HSeR1vw96tyYRIlaBC/evkFxqaAZHajUpfbEC+Q8KRgPb1BW3qCjbsLb/JE5cwfXmMO3qV6w5BhLwbGGEriOOIyiHhK2iZswvEyIrWev6GGMNeL2VPsfPh3fb1Bbf2cAjYJ+Qkc+8NhirhIeA/mbiw1wFm3Sz5+cx9zZRGlXdqABh6jHM2gEeWRim2tV7Eb+XoUE9Hy202MTE5cj3I4aSZW2lPseSmhaWc/3JJUoEK+ODf5wXJs9MoKd8UkyIfmJtvMNQsvBaK14FijXLNgFNM82eI7OB72IT0/9WxzobzlgOSZ1ZEnfrIDHkTdZN9pZgcmUFpuBPIcehnd91SEhfjO/6zePUjS6Mpw3CP75tFH/u9tSgE/mBuvMFgRCoV+1B7U7rWlCEDiPv27LYmDIdwbCNBryQOFHctjtpbMoKOZIWednJJ/6nYVPaKyZE/Mzncnjh9EdwG4mkEHwMfIMQCBM8DY5CyH3XDrbIfLLpje1j+lhSJIUd0DTC2u4PICh4SU/YvN3feYKh5ZCJVxxzgXI1yl6HiPaXKlFtdk89V76R4UkxHyEsS3769R4BL5tpXfWuR5E8fRXnoTNs9n0tomTNNEhkpUuQeEiB5MLwY/UR6i4BHgJvt/vjb4/082t8x8+HXlIT/zzzKhhowya+OxGpiI7+CXrr0psBpGuUi1fTmRap11zpQ9AY2cfIu6uDnhCRRIR5ZGmXBRqfbJ66jIDRD3pSRbJ13AOsSxI7bewZ4cmAQh2DtB5C+q8RUrSVmg8HrcTFUQwyLZIRrokhtBe0AnzoHe3VdwYMuvnOXxusTD2+eTt2O1qzXLiA/1cVUFHD5sI2Vw919nPt5XMLVb5Q4BnUFriQYeleOzWnrcb85AFyLZaXVzxa8PDjI+L5ZTofq4khxlZhyoDbmKDPnDDNLXc1yR1aBxdJMs1xeJU/GdbXkIVRKpVSv3plW5TnoZeO9FLXEkyQtn3ZCtubWw5tq//0sVFqPVKSane+1BDRX41otSO1M0E+zXkWAXtbZ0shUskJjEq97SQc/57X186bDId6tRZILXylh4ZCgfXBaSR+kb6kcE7qTfeHHPEyL8R4w7YpO/hsnnZ5FszyRbJguEJOL5lA7ycWQSRqjYkmmGnuO8/A7dbcPWmuW6+RRvXZplmukUaY+8HtNQZuWSUsK9KOiNwHOSFFmk4tGSiWMddE7x3XQIkyF7uG1CzTKjNC8lnYWVTGVvUhpG118Wv8s8rOcP/vfbXEGzymhyHH6IOsieZj83K/kmJzhcgRZFekwEoQcnTuodHSo+8zzg8kESgKjxKTwQ7V4ED3K6EjGuUijzHkefp/ukvWppE4cWBeVhNALvtcsp7N1M8SF5mzNtEittF46pFry2wfs1LzWZCifPr0MY0kdEaPsb0iFrqv1HSTkX7J5IHp4WK8yQ3rOw3aC27quYEK/5Lrywfdx+s8uZns4mXEqOyPFM+SHNsiC0CR5S6iPHKdvocvR+cfJgpy7KAitQMi5AUHP5LNN+RsxOfxwDR0YdWfT52NIBzcW//8BdVJYKoOqQKSCqGXxZNyvuSqjg66RcHUKKy8L0D0mEisrjpnchJujaXL+Avhdig60RNMa6Y3yKLsd5Qp/0A44ArjBEgtd3tIoswQYqFGuGWqf7jaUY8nBfbY8S6Qnu6jXfDc3QTxYWChHh25B8Fzi3244IcCSLXGeWeG8HL5kS5xTnivm5cFBujROOqdpDhTgo4C9of1yjFiClKsQrEHKfSD2IWUuiDoIWqP24HpDrInmFssm4lwuHox8TM1Fd2mlv9XHJ5J8qdyQXvtiDbhvAlcB3yX8rSsquo2X4+d2F2XvtsQjMU5lPjAeuN7Den2hWS4fFXFiOOX383OBR4GOmtf6DLWdknGRetUalFPRyHrokg2+izRFCuAk4G1LCH60LKumLq3GQkuAUrHYxTVbADMsMf4B8KM2XoMu23W+2xshpoSflwU5w0GUm4E/NiDIsh3F/Hebs0Pm2kJJz5nF3Nc3i5tPCuhISj5SDgAGqB1C6xMizf1+yctE/deLqfu3U7PZ6KLseGCUNYjssGbibwEvGy3yRKRALa2tssaf1dZY0hnomYFVqM0uygaBZ4C/AB+hYqY2QX+/3Q0foZbYdR7ejta4+aX1iliT19Nd1uuQMS6TIvUpKkyOjjfK0BSD7yzgXmtg1yUXhzQQGryoOUN9z8VvLGv2tkmzXl9aD417BDci+YqE5c5QAOZdEuSMWcWs3u28rBeJwi3vlfLCqhgPnplFz6aZPyKyeb8sal7Hd5mYXPRmLRlEP7OWTXRpmjB5O2BEKinbrEmim/3TbGsS3T/DdduUxmfaVGAs0WWnJVSnuvjMidarIgbOT2RypIkDczXLXpzColgPzKukjhxHuUnqUEIZL5RKYEq6HxSTIt+B+CU23o/N8gQLh2TTvn7qydLHW+L0nlnM0Hkl9skSPWD1bsm1b5fQ9h+RXDGp6EhqD+8YHckoYeDzalq3pVSDg7MOTK3E71oMfFVZIgX6AWcbAGenKHM3lbP+/jSwzOUN3FIJ9foSeLYiFxCTi+YihG0OqBb5gneHZCc96HsQCcxeHaPHs8X0e6GYJ/4XZWdEVujHFUVh1uoYF80pofPTEf6xLHYwXceD1B5vtuXohxUzpMfCalqvfUB1PfP3Mumu4LinXPQYXyV0iL2aZVPF8vsK5bWSSTYAY1x+phDl+CEzWK8w8Ev0Inkkp07Rn50s3JZ1BIuGZXNRe/1V1Q9/iDNyQSnNHovQ9/li7lhUyrz1MdYWSqJxZ5HbtE+ycGOcv30S5fxXSmgyLczl80qYuy5G/NCWrAc8VosG0Xsy3JdqO89WY4uluqYaKgVGVkK/fBJ432nM0Hl1TPOLn9e8fiGkDLfjtwZYmYHXLip2OG9chuoVBS7xsifIceTIgty3ZEFI2r1io0PynlOzZJavYnXP8iGb5gnZsYGQJx/pk8c0ELJ1XSFzAmld7yqPfr7ufdLN8HuJ5vXczJL/nmabJ3qJztT83J88aNeGLuqpc/CznYvr+V3WdaZHz+Y9Lsrma9SrKcrZoKL1iluDvU7ZuS7a7fYMjXESlV/Q9pB6ZQRI1F3yq0fqwLQx1IGwWR7X8Vugr7Xcki5/tl5esh+1X/eKlxcV44ggiy52yjvlE3BnrwBfXJ1NtyPS7yKlcfjxgGTNbskXW+Os2i35bq8kkt6i7UPWQ1wbGIveEQhDetyOO5dvOx6zJhNe8iMwwYPrjEc/oIIb7gMykVj0fZQDUFFVidQb6B9S1InlVwxcaQmCF+F4FgK9gBWbkJGGAAAFR0lEQVQVNVCsWfrVllVYUVajcm5lxGFETCGMPzwY5BtOZbo09rHkymwe6JdFg5yqDReX5aPRmO6BuW4OCh/GhFEHvJ8zepIRNqIiz6SbyeAlHCL2e8A9VGzf7DHgzgxPoG7GuwDb01FnTR2PB1SGSO1BuWrrMAi9yMIxSxB6WiKYDquspZr+HsyqyvIscDzwjzRFdIfVCY4nwxupYiIH2BQZTJLDxNl+GNs9wNrfZDO2e4A6wcodTQI++NWxflb+OoeJ/bJ6zF0afKqWDKQHJ2MXAGuNrnjOQuvZ3+ryc/dZk+nSDNWrFBichiVUYgnIDWR+72gq0B2H/SNNvrF+5zWpJgsBYIHmRYsqUKGnXAjicei7iS61HuIu1szoQtRhO6dzEFtR3lMvoJICZqqj/YAKXfJnlEPIxahDxk4CvA/40Jqhzbb+v1IQs4lBeIwsyFkO4u84hJVqmCN4oF8Wd/XO4l/Lovz9qyhrdmfuWWgcElzZyc/vugU4usHPVtzpLXy/nDUo589DX4t8S+3gDdQZwv6oWHHdUIfAG6MiqZiI6OmzCDgBFXRgJMkD934G3EXlLMMesCbQl6OWJrulELVXrbGmMhN/LkfFXT0dFXf0AlKHnIujXMz/iQpsoLXwXxM7eBAVcqcRKtBisXXT16HWfKsKP2ozuIlVL2HV6zvUQb4q9ziStwQ74/NPRzOO4Bdb47y8Nsara2Os2FlxwWqaJxjQyselHf2c39ZP0HE7XD4lJkeuM2OswUPyUMv+J6L2PnNQnsmrUYdZ11Rh3Tqilv47WEIQQx2yXY5apdpt85nR6IVbe82yaLwYd7ugQka1tMa4XKsNf0StXC1xqGutEylDRYRqHAH25vwRxJ24CNm0rUiyZEucJVvirNipHCQ27JUU2qSjzw1Aw5DgmAaCzg19HNtIcFoLH8c31l59jiNFLzGl6HNzxwwGWypbpDJGwNxLwyGzlnFEIXKPHJ3zLD7xVySX60xmmuQKBrf3M9jmjNVu66BvVELdoCDbX9FK8glS+szdMhhqPuZBN9jrwJTIejEpfAVC9AL5FhXYjG2QI2iQIzgiVGGB+gLEBWJS+BQxJfypuUsGQ83HWFKG5GI1qegz4Fw5JtgJ6b8ZFYo/vxKrEEPKtxG+x5hc9Jow0RgMBiNSBkN5sSpZCdwob2vwR0rDg0D8AjiHzKQyl8D/gOcIiH+LCeHN5g4YajhHkDzJ4kEK0Us54q8pDWNEyuBOrO7fvQflPjpDjiCX/NyzgN4gT0F5BaZjZUWBtQjxMcTfwed/Rzxw4EfT2oZaxFjgVo1yT6JcvlPRSPN7i6t7wxiRMqQvWE9QBEXzsKJiyCH4aZHTkgBtiNMGfG1A5iBkPeL4ED4/yH1IuRshChFsJu7/hnr714hxaZ/+NxhqArou7gOtcTvVGaPumtfbZpreYDAYDKk4Gf1grAUprtUWdchX51p3maY3GAwGQyoCqIDSOsKyD+jncJ1sVFQdXcE71zS9wWAwGHR42YW4lAL/QgUi7oqKY3odKt6n7jWKUZE2DAaDwWBIyRVkLl+T3esd0+QGg8Fg0CUIbK5Ekfq1aXKDwWAwuGFEJQnUJlJnQjcYDAaD4RAEKjVLpkVqiGlqg8FgMKRDG1RKi0wJ1D9NExsMBoOhIvRCZTX3WqDmY5b5DAaDweABfVDJDb0SqJk4ZN42GAwGgyEdmgFzKihOu4FrMUluDQaDwZAhBgFvoFLH64rTNuCvQMPD+YcbZTUYDIbDh9aoILP9gBNRKT4ao0Iq7UMFqv0KWAD8h8Mgynkq/h885rfKXRQafwAAAABJRU5ErkJggg==
4
12f0968f171c planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tools/recentrifuge commit fbb5d7bb68cbb5f497cdda3c0697b21b046a8262
iuc
parents: 1
diff changeset
6587 " style="display:none"><noscript>Javascript must be enabled to view this page.</noscript><div style="display:none"><krona collapse="true" key="true" chart="TAXOMIC"><attributes magnitude="cnt"><attribute display="Count" dataAll="members" tip="Number of reads assigned to this and child taxa">cnt</attribute><attribute display="Unassigned" dataNode="members" tip="Number of reads assigned specifically to this taxon">una</attribute><attribute display="TaxID" mono="true" hrefBase="https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?mode=Info&amp;id=" tip="Taxonomic identifier">tid</attribute><attribute display="Rank" mono="true" tip="Taxonomic rank/level">rnk</attribute><attribute display="Read length (avg)" tip="Averaged score of reads assigned to this and child taxa">sco</attribute></attributes><datasets rawSamples="3"><dataset isctr="False" sread="10999" sclas="10354" sfilt="10354" scmin="23.0" scavg="190.73954464627033" scmax="400.1051804377604" lnmin="70 nt" lnavg="387 nt" lnmax="602 nt" tclas="215" tfilt="215" tfold="5" sclim="None" totnt="4.22 Mnt">input_dir/centrifuge_1_out</dataset><dataset isctr="False" sread="10999" sclas="10354" sfilt="10354" scmin="23.0" scavg="190.73954464627033" scmax="400.1051804377604" lnmin="70 nt" lnavg="387 nt" lnmax="602 nt" tclas="215" tfilt="215" tfold="5" sclim="None" totnt="4.22 Mnt">input_dir/centrifuge_2_out</dataset><dataset isctr="False" sread="10999" sclas="10354" sfilt="10354" scmin="23.0" scavg="190.73954464627033" scmax="400.1051804377604" lnmin="70 nt" lnavg="387 nt" lnmax="602 nt" tclas="215" tfilt="215" tfold="5" sclim="None" totnt="4.22 Mnt">input_dir/centrifuge_out</dataset><dataset>SHARED_species</dataset><dataset>SHARED_genus</dataset><dataset>SHARED_family</dataset><dataset>SHARED_order</dataset><dataset>SHARED_class</dataset><dataset>SHARED_phylum</dataset><dataset>SHARED_SUMMARY</dataset></datasets><color attribute="sco" hueStart="0" hueEnd="300" valueStart="390.6" valueEnd="494.0" default="true"> </color><n name="root"><cnt><val>75</val><val>75</val><val>75</val><val>31</val><val>35</val><val>67</val><val>73</val><val>75</val><val>75</val><val>75</val></cnt><una><val></val><val></val><val></val><val></val><val></val><val></val><val></val><val></val><val></val><val></val></una><tid><val href="1">1</val></tid><rnk><val>no_rank</val></rnk><sco><val>392.59</val><val>392.59</val><val>392.59</val><val>488.35</val><val>489.00</val><val>446.66</val><val>442.05</val><val>440.73</val><val>440.73</val><val>440.73</val></sco><n name="Bacteria"><cnt><val>75</val><val>75</val><val>75</val><val>31</val><val>35</val><val>67</val><val>73</val><val>75</val><val>75</val><val>75</val></cnt><una><val></val><val></val><val></val><val></val><val></val><val></val><val></val><val></val><val></val><val></val></una><tid><val href="2">2</val></tid><rnk><val>superkingdom</val></rnk><sco><val>392.59</val><val>392.59</val><val>392.59</val><val>488.35</val><val>489.00</val><val>446.66</val><val>442.05</val><val>440.73</val><val>440.73</val><val>440.73</val></sco><n name="Proteobacteria"><cnt><val>75</val><val>75</val><val>75</val><val>31</val><val>35</val><val>67</val><val>73</val><val>75</val><val>75</val><val>75</val></cnt><una><val></val><val></val><val></val><val></val><val></val><val></val><val></val><val></val><val>75</val><val></val></una><tid><val href="1224">1224</val></tid><rnk><val>phylum</val></rnk><sco><val>392.59</val><val>392.59</val><val>392.59</val><val>488.35</val><val>489.00</val><val>446.66</val><val>442.05</val><val>440.73</val><val>440.73</val><val>440.73</val></sco><n name="Gammaproteobacteria"><cnt><val>75</val><val>75</val><val>75</val><val>31</val><val>35</val><val>67</val><val>73</val><val>75</val><val></val><val>75</val></cnt><una><val>2</val><val>2</val><val>2</val><val></val><val></val><val></val><val></val><val>75</val><val></val><val>2</val></una><tid><val href="1236">1236</val></tid><rnk><val>class</val></rnk><sco><val>392.59</val><val>392.59</val><val>392.59</val><val>488.35</val><val>489.00</val><val>446.66</val><val>442.05</val><val>440.73</val><val>0</val><val>440.73</val></sco><n name="Enterobacteriales"><cnt><val>73</val><val>73</val><val>73</val><val>31</val><val>35</val><val>67</val><val>73</val><val></val><val></val><val>73</val></cnt><una><val>6</val><val>6</val><val>6</val><val></val><val></val><val></val><val>73</val><val></val><val></val><val>6</val></una><tid><val href="91347">91347</val></tid><rnk><val>order</val></rnk><sco><val>390.56</val><val>390.56</val><val>390.56</val><val>488.35</val><val>489.00</val><val>446.66</val><val>442.05</val><val>0</val><val>0</val><val>442.05</val></sco><n name="Enterobacteriaceae"><cnt><val>67</val><val>67</val><val>67</val><val>31</val><val>35</val><val>67</val><val></val><val></val><val></val><val>67</val></cnt><una><val>32</val><val>32</val><val>32</val><val></val><val></val><val>67</val><val></val><val></val><val></val><val>32</val></una><tid><val href="543">543</val></tid><rnk><val>family</val></rnk><sco><val>400.34</val><val>400.34</val><val>400.34</val><val>488.35</val><val>489.00</val><val>446.66</val><val>0</val><val>0</val><val>0</val><val>446.66</val></sco><n name="Escherichia"><cnt><val>35</val><val>35</val><val>35</val><val>31</val><val>35</val><val></val><val></val><val></val><val></val><val>35</val></cnt><una><val>4</val><val>4</val><val>4</val><val></val><val>35</val><val></val><val></val><val></val><val></val><val>4</val></una><tid><val href="561">561</val></tid><rnk><val>genus</val></rnk><sco><val>494.03</val><val>494.03</val><val>494.03</val><val>488.35</val><val>489.00</val><val>0</val><val>0</val><val>0</val><val>0</val><val>489.00</val></sco><n name="Escherichia coli"><cnt><val>31</val><val>31</val><val>31</val><val>31</val><val></val><val></val><val></val><val></val><val></val><val>31</val></cnt><una><val>31</val><val>31</val><val>31</val><val>31</val><val></val><val></val><val></val><val></val><val></val><val>31</val></una><tid><val href="562">562</val></tid><rnk><val>species</val></rnk><sco><val>488.35</val><val>488.35</val><val>488.35</val><val>488.35</val><val>0</val><val>0</val><val>0</val><val>0</val><val>0</val><val>488.35</val></sco></n></n></n></n></n></n></n></n></krona></div></body></html>