annotate test-data/kraken_test/test1_csv.rcf.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
0
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
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">
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
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">{//----------------------------------------------------------------------------
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4 // PURPOSE
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6 // Krona is a flexible tool for exploring the relative proportions of
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
7 // hierarchical data, such as metagenomic classifications, using a
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
8 // radial, space-filling display. It is implemented using HTML5 and
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
9 // JavaScript, allowing charts to be explored locally or served over the
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
10 // Internet, requiring only a current version of any major web
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
11 // browser. Krona charts can be created using an Excel template or from
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
12 // common bioinformatic formats using the provided conversion scripts.
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
13 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
14 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
15 // COPYRIGHT LICENSE
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
16 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
17 // Copyright (c) 2011, Battelle National Biodefense Institute (BNBI);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
18 // all rights reserved. Authored by: Brian Ondov, Nicholas Bergman, and
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
19 // Adam Phillippy
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
20 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
21 // This Software was prepared for the Department of Homeland Security
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
22 // (DHS) by the Battelle National Biodefense Institute, LLC (BNBI) as
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
23 // part of contract HSHQDC-07-C-00020 to manage and operate the National
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
24 // Biodefense Analysis and Countermeasures Center (NBACC), a Federally
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
25 // Funded Research and Development Center.
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
26 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
27 // Redistribution and use in source and binary forms, with or without
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
28 // modification, are permitted provided that the following conditions are
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
29 // met:
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
30 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
31 // * Redistributions of source code must retain the above copyright
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
32 // notice, this list of conditions and the following disclaimer.
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
33 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
34 // * Redistributions in binary form must reproduce the above copyright
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
35 // notice, this list of conditions and the following disclaimer in the
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
36 // documentation and/or other materials provided with the distribution.
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
37 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
38 // * Neither the name of the Battelle National Biodefense Institute nor
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
39 // the names of its contributors may be used to endorse or promote
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
40 // products derived from this software without specific prior written
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
41 // permission.
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
42 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
43 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
44 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
45 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
46 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
47 // HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
48 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
49 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
50 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
51 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
52 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
53 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
54 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
55 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
56 // TRADEMARK LICENSE
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
57 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
58 // KRONA(TM) is a trademark of the Department of Homeland Security, and use
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
59 // of the trademark is subject to the following conditions:
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
60 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
61 // * Distribution of the unchanged, official code/software using the
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
62 // KRONA(TM) mark is hereby permitted by the Department of Homeland
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
63 // Security, provided that the software is distributed without charge
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
64 // and modification.
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
65 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
66 // * Distribution of altered source code/software using the KRONA(TM) mark
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
67 // is not permitted unless written permission has been granted by the
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
68 // Department of Homeland Security.
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
69 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
70 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
71 // FOR MORE INFORMATION VISIT
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
72 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
73 // https://github.com/marbl/Krona/wiki/
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
74 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
75 //----------------------------------------------------------------------------
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
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
0
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
78 // this file from the Krona Javascript 2.0 release.
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
79 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
80 // Redistribution and use in source and binary forms, with or without
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
81 // modification, are permitted provided that the above copyright notice is
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
82 // reproduced and all the above conditions are met.
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
83 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
84 // The KRONA(TM) mark has been substituted in the generated charts by
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
85 // another logo in compliance with the above-stated conditions.
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
86 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
87 // FOR MORE INFORMATION VISIT
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
88 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
89 // https://github.com/khyox/recentrifuge/wiki/
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
90 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
91 //----------------------------------------------------------------------------
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
92 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
93
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
94 ///////////////
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
95 // Variables //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
96 ///////////////
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
97
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
98 var canvas;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
99 var canvasButtons = []; // Keep trace of CanvasButton objects
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
100 var ChartEnum = Object.freeze({
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
101 TAXOMIC: 'taxonomic',
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
102 GENOMIC: 'genomic'
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
103 })
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
104 var chart = ChartEnum.TAXOMIC
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
105 var context;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
106 var svg; // for snapshot mode
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
107 var collapse = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
108 var collapseCheckBox;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
109 var collapseLast;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
110 var compress;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
111 var compressCheckBox;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
112 var maxAbsoluteDepthText;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
113 var maxAbsoluteDepthButtonDecrease;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
114 var maxAbsoluteDepthButtonIncrease;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
115 var fontSize = 12;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
116 var fontSizeText;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
117 var fontSizeButtonDecrease;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
118 var fontSizeButtonIncrease;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
119 var fontSizeLast;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
120 var bkgBright = "eeeeee";
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
121 var bkgBrightButtonDecrease;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
122 var bkgBrightButtonIncrease;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
123 var radiusButtonDecrease;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
124 var radiusButtonIncrease;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
125 var shorten;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
126 var shortenCheckBox;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
127 var maxAbsoluteDepth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
128 var backButton;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
129 var upButton;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
130 var forwardButton;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
131 var snapshotButton;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
132 var snapshotMode = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
133 var details;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
134 var detailsName;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
135 var search;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
136 var searchResults;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
137 var nSearchResults;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
138 var useHueCheckBox;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
139 var useHueDiv;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
140 var sortByScoreCheckBox;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
141 var datasetDropDown;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
142 var datasetButtonLast;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
143 var datasetButtonPrev;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
144 var datasetButtonNext;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
145 var rankDropDown;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
146 var keyControl;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
147 var showKeys = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
148 var linkButton;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
149 var linkText;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
150 var frame;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
151
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
152 // Node references. Note that the meanings of 'selected' and 'focused' are
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
153 // swapped in the docs.
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
154 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
155 var head; // the root of the entire tree
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
156 var selectedNode = 0; // the root of the current view
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
157 var focusNode = 0; // a node chosen for more info (single-click)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
158 var highlightedNode = 0; // mouse hover node
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
159 var highlightingHidden = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
160 var nodes = new Array(); // Array with all the nodes
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
161 var nodesIndex; // Index of nodes, points last using hue(score) buttons
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
162 var currentNodeID = 0; // to iterate while loading
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
163
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
164 var nodeHistory = new Array();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
165 var nodeHistoryPosition = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
166
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
167 var dataEnabled = false; // true when supplemental files are present
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
168
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
169 // store non-Krona GET variables so they can be passed on to links
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
170 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
171 var getVariables = new Array();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
172
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
173 // selectedNodeLast is separate from the history, since we need to check
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
174 // properties of the last node viewed when browsing through the history
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
175 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
176 var selectedNodeLast = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
177 var zoomOut = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
178
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
179 // temporary zoom-in while holding the mouse button on a wedge
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
180 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
181 var quickLook = false; // true when in quick look state
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
182 var mouseDown = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
183 var mouseDownTime; // to detect mouse button hold
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
184 var quickLookHoldLength = 200;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
185
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
186 var imageWidth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
187 var imageHeight;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
188 var centerX;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
189 var centerY;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
190 var gRadius;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
191 var updateViewNeeded = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
192
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
193 // Determines the angle that the pie chart starts at. 90 degrees makes the
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
194 // center label consistent with the children.
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
195 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
196 var rotationOffset = Math.PI / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
197
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
198 var buffer;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
199 var bufferFactor = .1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
200
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
201 // The maps are the small pie charts showing the current slice being viewed.
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
202 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
203 var mapBuffer = 10;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
204 var mapRadius = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
205 var maxMapRadius = 25;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
206 var mapWidth = 150;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
207 var maxLabelOverhang = Math.PI * 4.18;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
208
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
209 // Keys are the labeled boxes for slices in the highest level that are too thin
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
210 // to label.
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
211 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
212 var maxKeySizeFactor = 2; // will be multiplied by font size
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
213 var keySize;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
214 var keys;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
215 var keyBuffer = 10;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
216 var currentKey;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
217 var keyMinTextLeft;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
218 var keyMinAngle;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
219
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
220 var minRingWidthFactor = 5; // will be multiplied by font size
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
221 var maxPossibleDepth; // the theoretical max that can be displayed
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
222 var maxDisplayDepth; // the actual depth that will be displayed
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
223 var headerHeight = 0;//document.getElementById('options').clientHeight;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
224 var historySpacingFactor = 1.6; // will be multiplied by font size
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
225 var historyAlphaDelta = .25;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
226
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
227 // appearance
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
228 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
229 var lineOpacity = 0.3;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
230 var saturation = 0.5;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
231 var lightnessBase = 0.6;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
232 var lightnessMax = .8;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
233 var thinLineWidth = .3;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
234 var highlightLineWidth = 1.5;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
235 var labelBoxBuffer = 6;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
236 var labelBoxRounding = 15;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
237 var labelWidthFudge = 1.05; // The width of unshortened labels are set slightly
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
238 // longer than the name width so the animation
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
239 // finishes faster.
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
240 var fontNormal;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
241 var fontBold;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
242 var fontFamily = 'sans-serif';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
243 //var fontFaceBold = 'bold Arial';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
244 var nodeRadius;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
245 var angleFactor;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
246 var tickLength;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
247 var compressedRadii;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
248
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
249 // colors
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
250 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
251 var highlightFill = 'rgba(255, 255, 255, .3)';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
252 var colorUnclassified = 'rgb(220,220,220)';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
253
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
254 // label staggering
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
255 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
256 var labelOffsets; // will store the current offset at each depth
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
257 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
258 // This will store pointers to the last node that had a label in each offset
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
259 // (or "track") of each depth. These will be used to shorten neighboring
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
260 // labels that would overlap. The [nLabelNodes] index will store the last node
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
261 // with a radial label. labelFirstNodes is the same, but to check for going all
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
262 // the way around and overlapping the first labels.
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
263 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
264 var labelLastNodes;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
265 var labelFirstNodes;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
266 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
267 var nLabelOffsets = 3; // the number of offsets to use
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
268
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
269 var mouseX = -1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
270 var mouseY = -1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
271 var mouseXRel = -1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
272 var mouseYRel = -1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
273
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
274 // tweening
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
275 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
276 var progress = 0; // for tweening; goes from 0 to 1.
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
277 var progressLast = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
278 var tweenFactor = 0; // progress converted by a curve for a smoother effect.
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
279 var tweenLength = 850; // in ms
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
280 var tweenCurvature = 13;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
281 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
282 // tweenMax is used to scale the sigmoid function so its range is [0,1] for the
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
283 // domain [0,1]
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
284 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
285 var tweenMax = 1 / (1 + Math.exp(-tweenCurvature / 2));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
286 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
287 var tweenStartTime;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
288
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
289 // for framerate debug
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
290 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
291 var tweenFrames = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
292 var fpsDisplay = document.getElementById('frameRate');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
293
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
294 // Arrays to translate xml attribute names into displayable attribute names
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
295 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
296 var attributes = [];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
297 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
298 var magnitudeIndex; // the index of attribute arrays used for magnitude
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
299 var membersAssignedIndex;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
300 var membersSummaryIndex;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
301
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
302 // For defining gradients
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
303 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
304 var hueDisplayName;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
305 var hueStopPositions;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
306 var hueStopHues;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
307 var hueStopText;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
308
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
309 // multiple datasets
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
310 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
311 const DEFAULT_RANK = 'SUMMARY';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
312 const NO_RANK = 'NONE';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
313 var currentRank = DEFAULT_RANK;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
314 var currentDataset = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
315 var lastDataset = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
316 var datasets = 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
317 var datasetNames;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
318 const DATASET_MAX_SIZE = 20; // Max size in rows of the dataset selection list
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
319 var datasetsVisible = 1; // Number of datasets not hidden
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
320 var datasetAlpha = new Tween(0, 0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
321 var datasetWidths = [];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
322 var datasetChanged;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
323 var datasetSelectWidth = 50;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
324 var numRawSamples;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
325 var stats;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
326
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
327 window.onload = load;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
328
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
329 var image;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
330 var hiddenPattern;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
331 var loadingImage;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
332 var logoImage;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
333
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
334 // Setup CSS-like style of tooltips for attributes
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
335 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
336 var csstring = '.CellWithTooltip{ position:relative; }\n' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
337 '.Tooltip{ display:none;position:absolute;z-index:100;border:2px;' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
338 'background-color:white;border-style:solid;border-width:2px;' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
339 'border-color:red;padding:3px;color:red;top:20px;left:0px; }' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
340 '.CellWithTooltip:hover span.Tooltip{ display:block; }';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
341 var style = document.createElement('style');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
342 if (style.styleSheet) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
343 style.styleSheet.cssText = csstring;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
344 } else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
345 style.appendChild(document.createTextNode(csstring));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
346 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
347 document.getElementsByTagName('head')[0].appendChild(style);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
348
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
349 ///////////////
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
350 // Functions //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
351 ///////////////
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
352
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
353 function backingScale() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
354 if ('devicePixelRatio' in window) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
355 if (window.devicePixelRatio > 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
356 return window.devicePixelRatio;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
357 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
358 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
359
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
360 return 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
361 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
362
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
363 function resize() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
364 imageWidth = window.innerWidth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
365 imageHeight = window.innerHeight;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
366
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
367 if (!snapshotMode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
368 context.canvas.width = imageWidth * backingScale();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
369 context.canvas.height = imageHeight * backingScale();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
370 context.canvas.style.width = imageWidth + "px"
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
371 context.canvas.style.height = imageHeight + "px"
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
372 context.scale(backingScale(), backingScale());
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
373 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
374
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
375 if (datasetDropDown) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
376 var ratio =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
377 (datasetDropDown.offsetTop + datasetDropDown.clientHeight) * 2 /
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
378 imageHeight;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
379
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
380 if (ratio > 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
381 ratio = 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
382 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
383
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
384 ratio = Math.sqrt(ratio);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
385
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
386 datasetSelectWidth =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
387 (datasetDropDown.offsetLeft + datasetDropDown.clientWidth) * ratio;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
388 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
389 var leftMargin = datasets > 1 ? datasetSelectWidth + 30 : 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
390 var minDimension = imageWidth - mapWidth - leftMargin > imageHeight ?
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
391 imageHeight :
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
392 imageWidth - mapWidth - leftMargin;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
393
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
394 maxMapRadius = minDimension * .03;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
395 buffer = minDimension * bufferFactor;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
396 margin = minDimension * .015;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
397 centerX = (imageWidth - mapWidth - leftMargin) / 2 + leftMargin;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
398 centerY = imageHeight / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
399 gRadius = minDimension / 2 - buffer;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
400 //context.font = '11px sans-serif';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
401 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
402
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
403 function handleResize() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
404 updateViewNeeded = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
405 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
406
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
407 function Attribute() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
408 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
409
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
410 function SampleStats(sample, ictrl, sread, sclas, sfilt, scmin, scavg, scmax,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
411 lnmin, lnavg, lnmax, tclas, tfilt, tfold) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
412 // Class to store the statistics of a sample
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
413 this.sample = sample;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
414 this.is_ctrl = (ictrl === 'True');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
415 this.sread = sread;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
416 this.sclas = sclas;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
417 this.sfilt = sfilt;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
418 this.scmin = scmin;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
419 this.scavg = scavg;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
420 this.scmax = scmax;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
421 this.lnmin = lnmin;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
422 this.lnavg = lnavg;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
423 this.lnmax = lnmax;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
424 this.tclas = tclas;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
425 this.tfilt = tfilt;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
426 this.tfold = tfold;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
427 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
428
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
429 function CanvasButton(name, x, y, w, h, fill) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
430 // Constructor for a button in the canvas
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
431 this.name = name;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
432 this.x = x || 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
433 this.y = y || 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
434 this.w = w || 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
435 this.h = h || 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
436 this.fill = fill || '#000000';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
437
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
438 // Draws the button to a given context
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
439 this.draw = function (ctx) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
440 var oldAlpha = ctx.globalAlpha
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
441 ctx.globalAlpha = 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
442 ctx.strokeStyle = '#' + bkgBright;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
443 ctx.lineWidth = 3;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
444 ctx.strokeRect(this.x, this.y, this.w, this.h);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
445 ctx.fillStyle = this.fill;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
446 ctx.fillRect(this.x, this.y, this.w, this.h);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
447 ctx.strokeStyle = '#000000';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
448 ctx.lineWidth = 0.5;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
449 ctx.strokeRect(this.x, this.y, this.w, this.h);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
450 // Draws symbols in buttons
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
451 ctx.fillStyle = '#000000';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
452 ctx.globalAlpha = 0.7;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
453 switch (this.name) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
454 case 'mostScore':
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
455 ctx.beginPath();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
456 ctx.moveTo(this.x + 1 * this.w / 2, this.y + this.h / 8);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
457 ctx.lineTo(this.x + 1 * this.w / 6, this.y + this.h / 2);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
458 ctx.lineTo(this.x + 5 * this.w / 6, this.y + this.h / 2);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
459 ctx.fill();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
460 case 'moreScore':
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
461 ctx.beginPath();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
462 ctx.moveTo(this.x + 1 * this.w / 2, this.y + 1 * this.h / 4);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
463 ctx.lineTo(this.x + 1 * this.w / 6, this.y + 3 * this.h / 4);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
464 ctx.lineTo(this.x + 5 * this.w / 6, this.y + 3 * this.h / 4);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
465 ctx.fill();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
466 break;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
467 case 'lestScore':
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
468 ctx.beginPath();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
469 ctx.moveTo(this.x + 1 * this.w / 2, this.y + 7 * this.h / 8);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
470 ctx.lineTo(this.x + 1 * this.w / 6, this.y + 1 * this.h / 2);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
471 ctx.lineTo(this.x + 5 * this.w / 6, this.y + 1 * this.h / 2);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
472 ctx.fill();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
473 case 'lessScore':
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
474 ctx.beginPath();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
475 ctx.moveTo(this.x + 1 * this.w / 2, this.y + 3 * this.h / 4);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
476 ctx.lineTo(this.x + 1 * this.w / 6, this.y + 1 * this.h / 4);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
477 ctx.lineTo(this.x + 5 * this.w / 6, this.y + 1 * this.h / 4);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
478 ctx.fill();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
479 break;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
480 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
481 ctx.globalAlpha = oldAlpha
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
482 };
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
483
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
484 // Determine if a point is inside the button's bounds
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
485 this.is_inside = function (mx, my) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
486 // Check the Mouse X,Y fall in the button's area
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
487 return (this.x <= mx) && (this.x + this.w >= mx) &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
488 (this.y <= my) && (this.y + this.h >= my);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
489 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
490 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
491
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
492 function Tween(start, end) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
493 this.start = start;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
494 this.end = end;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
495 this.current = this.start;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
496
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
497 this.current = function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
498 if (progress == 1 || this.start == this.end) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
499 return this.end;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
500 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
501 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
502 return this.start + tweenFactor * (this.end - this.start);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
503 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
504 };
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
505
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
506 this.setTarget = function (target) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
507 this.start = this.current();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
508 this.end = target;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
509 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
510 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
511
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
512 function Node() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
513 this.id = currentNodeID;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
514 currentNodeID++;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
515 nodes[this.id] = this;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
516
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
517 this.angleStart = new Tween(Math.PI, 0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
518 this.angleEnd = new Tween(Math.PI, 0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
519 this.radiusInner = new Tween(1, 1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
520 this.labelRadius = new Tween(1, 1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
521 this.labelWidth = new Tween(0, 0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
522 this.scale = new Tween(1, 1); // TEMP
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
523 this.radiusOuter = new Tween(1, 1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
524
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
525 this.r = new Tween(255, 255);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
526 this.g = new Tween(255, 255);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
527 this.b = new Tween(255, 255);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
528
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
529 this.alphaLabel = new Tween(0, 1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
530 this.alphaLine = new Tween(0, 1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
531 this.alphaArc = new Tween(0, 0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
532 this.alphaWedge = new Tween(0, 1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
533 this.alphaOther = new Tween(0, 1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
534 this.alphaPattern = new Tween(0, 0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
535 this.children = Array();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
536 this.parent = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
537
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
538 this.attributes = new Array(attributes.length);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
539
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
540 this.addChild = function (child) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
541 this.children.push(child);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
542 };
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
543
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
544 this.addLabelNode = function (depth, labelOffset) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
545 if (labelHeadNodes[depth][labelOffset] == 0) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
546 // this will become the head node for this list
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
547
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
548 labelHeadNodes[depth][labelOffset] = this;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
549 this.labelPrev = this;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
550 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
551
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
552 var head = labelHeadNodes[depth][labelOffset];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
553
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
554 this.labelNext = head;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
555 this.labelPrev = head.labelPrev;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
556 head.labelPrev.labelNext = this;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
557 head.labelPrev = this;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
558 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
559
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
560 this.canDisplayDepth = function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
561 // whether this node is at a depth that can be displayed, according
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
562 // to the max absolute depth
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
563
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
564 return this.depth <= maxAbsoluteDepth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
565 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
566
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
567 this.canDisplayHistory = function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
568 var radiusInner;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
569
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
570 if (compress) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
571 radiusInner = compressedRadii[0];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
572 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
573 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
574 radiusInner = nodeRadius;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
575 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
576
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
577 return (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
578 -this.labelRadius.end * gRadius +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
579 historySpacingFactor * fontSize / 2 <
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
580 radiusInner * gRadius
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
581 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
582 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
583
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
584 this.canDisplayLabelCurrent = function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
585 return (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
586 (this.angleEnd.current() - this.angleStart.current()) *
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
587 (this.radiusInner.current() * gRadius + gRadius) >=
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
588 minWidth());
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
589 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
590
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
591 this.checkHighlight = function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
592 if (this.children.length == 0 && this == focusNode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
593 //return false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
594 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
595
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
596 if (this.hide) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
597 return false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
598 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
599
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
600 if (this.radiusInner.end == 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
601 // compressed to the outside; don't check
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
602
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
603 return false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
604 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
605
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
606 var highlighted = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
607
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
608 var angleStartCurrent = this.angleStart.current() + rotationOffset;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
609 var angleEndCurrent = this.angleEnd.current() + rotationOffset;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
610 var radiusInner = this.radiusInner.current() * gRadius;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
611
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
612 for (var i = 0; i < this.children.length; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
613 highlighted = this.children[i].checkHighlight();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
614
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
615 if (highlighted) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
616 return true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
617 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
618 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
619
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
620 if (this.radial) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
621 var angleText = (angleStartCurrent + angleEndCurrent) / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
622 var radiusText = (gRadius + radiusInner) / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
623
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
624 context.rotate(angleText);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
625 context.beginPath();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
626 context.moveTo(radiusText, -fontSize);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
627 context.lineTo(radiusText, fontSize);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
628 context.lineTo(radiusText + centerX, fontSize);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
629 context.lineTo(radiusText + centerX, -fontSize);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
630 context.closePath();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
631 context.rotate(-angleText);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
632
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
633 if (context.isPointInPath(mouseXRel, mouseYRel)) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
634 var label = String(this.getPercentage()) + '%' + ' '
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
635 + this.name;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
636
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
637 if (this.searchResultChildren()) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
638 label += searchResultString(this.searchResultChildren());
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
639 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
640
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
641 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
642 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
643 Math.sqrt((mouseXRel) * (mouseXRel)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
644 + (mouseYRel) * (mouseYRel)) / backingScale() <
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
645 radiusText + measureText(label)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
646 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
647 highlighted = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
648 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
649 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
650 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
651 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
652 for (var i = 0; i < this.hiddenLabels.length; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
653 var hiddenLabel = this.hiddenLabels[i];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
654
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
655 context.rotate(hiddenLabel.angle);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
656 context.beginPath();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
657 context.moveTo(gRadius, -fontSize);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
658 context.lineTo(gRadius, fontSize);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
659 context.lineTo(gRadius + centerX, fontSize);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
660 context.lineTo(gRadius + centerX, -fontSize);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
661 context.closePath();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
662 context.rotate(-hiddenLabel.angle);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
663
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
664 if (context.isPointInPath(mouseXRel, mouseYRel)) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
665 var label = String(hiddenLabel.value) + ' more';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
666
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
667 if (hiddenLabel.search) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
668 label += searchResultString(hiddenLabel.search);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
669 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
670
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
671 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
672 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
673 Math.sqrt((mouseXRel) * (mouseXRel)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
674 + (mouseYRel) * (mouseYRel)) / backingScale() <
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
675 gRadius + fontSize + measureText(label)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
676 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
677 highlighted = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
678 break;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
679 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
680 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
681 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
682 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
683
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
684 if (!highlighted && this != selectedNode && !this.getCollapse()) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
685 context.beginPath();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
686 context.arc(0, 0, radiusInner, angleStartCurrent, angleEndCurrent,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
687 false);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
688 context.arc(0, 0, gRadius, angleEndCurrent, angleStartCurrent,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
689 true);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
690 context.closePath();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
691
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
692 if (context.isPointInPath(mouseXRel, mouseYRel)) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
693 highlighted = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
694 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
695
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
696 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
697 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
698 !highlighted &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
699 (angleEndCurrent - angleStartCurrent) *
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
700 (radiusInner + gRadius) <
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
701 minWidth() &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
702 this.getDepth() == selectedNode.getDepth() + 1
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
703 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
704 if (showKeys && this.checkHighlightKey()) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
705 highlighted = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
706 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
707 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
708 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
709
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
710 if (highlighted) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
711 if (this != highlightedNode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
712 // document.body.style.cursor='pointer';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
713 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
714
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
715 highlightedNode = this;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
716 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
717
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
718 return highlighted;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
719 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
720
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
721 this.checkHighlightCenter = function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
722 if (!this.canDisplayHistory()) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
723 return;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
724 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
725
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
726 var cx = centerX;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
727 var cy = centerY - this.labelRadius.end * gRadius;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
728 //var dim = context.measureText(this.name);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
729
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
730 var width = this.nameWidth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
731
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
732 if (this.searchResultChildren()) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
733 var results = searchResultString(this.searchResultChildren());
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
734 var dim = context.measureText(results);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
735 width += dim.width;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
736 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
737
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
738 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
739 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
740 mouseX > cx - width / 2 &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
741 mouseX < cx + width / 2 &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
742 mouseY > cy - historySpacingFactor * fontSize / 2 &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
743 mouseY < cy + historySpacingFactor * fontSize / 2
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
744 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
745 highlightedNode = this;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
746 return;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
747 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
748
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
749 if (this.getParent()) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
750 this.getParent().checkHighlightCenter();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
751 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
752 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
753
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
754 this.checkHighlightKey = function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
755 var offset = keyOffset();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
756
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
757 var xMin = imageWidth - keySize - margin - this.keyNameWidth
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
758 - keyBuffer;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
759 var xMax = imageWidth - margin;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
760 var yMin = offset;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
761 var yMax = offset + keySize;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
762
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
763 currentKey++;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
764
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
765 return (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
766 mouseX > xMin &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
767 mouseX < xMax &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
768 mouseY > yMin &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
769 mouseY < yMax);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
770 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
771
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
772 this.checkHighlightMap = function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
773 if (this.parent) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
774 this.parent.checkHighlightMap();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
775 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
776
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
777 if (this.getCollapse() || this == focusNode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
778 return;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
779 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
780
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
781 var box = this.getMapPosition();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
782
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
783 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
784 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
785 mouseX > box.x - mapRadius &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
786 mouseX < box.x + mapRadius &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
787 mouseY > box.y - mapRadius &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
788 mouseY < box.y + mapRadius
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
789 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
790 highlightedNode = this;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
791 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
792 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
793
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
794 /* this.collapse = function()
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
795 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
796 for (var i = 0; i < this.children.length; i++ )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
797 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
798 this.children[i] = this.children[i].collapse();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
799 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
800
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
801 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
802 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
803 this.children.length == 1 &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
804 this.children[0].magnitude == this.magnitude
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
805 )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
806 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
807 this.children[0].parent = this.parent;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
808 this.children[0].getDepth() = this.parent.getDepth() + 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
809 return this.children[0];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
810 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
811 else
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
812 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
813 return this;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
814 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
815 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
816 */
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
817 this.draw = function (labelMode, selected, searchHighlighted) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
818 var depth = this.getDepth() - selectedNode.getDepth() + 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
819 // var hidden = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
820
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
821 if (selectedNode == this) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
822 selected = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
823 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
824
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
825 var angleStartCurrent = this.angleStart.current() + rotationOffset;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
826 var angleEndCurrent = this.angleEnd.current() + rotationOffset;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
827 var radiusInner = this.radiusInner.current() * gRadius;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
828 var canDisplayLabelCurrent = this.canDisplayLabelCurrent();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
829 var hiddenSearchResults = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
830
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
831 /* if ( ! this.hide )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
832 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
833 for ( var i = 0; i < this.children.length; i++ )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
834 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
835 if ( this.children[i].hide && this.children[i].searchResults )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
836 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
837 hiddenSearchResults = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
838 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
839 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
840 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
841 */
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
842 var drawChildren =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
843 (!this.hide || !this.hidePrev && progress < 1) &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
844 (!this.hideAlone || !this.hideAlonePrev && progress < 1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
845
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
846 // if ( this.alphaWedge.current() > 0 || this.alphaLabel.current() > 0 )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
847 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
848 var lastChildAngleEnd = angleStartCurrent;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
849
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
850 if (this.hasChildren())//canDisplayChildren )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
851 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
852 lastChildAngleEnd =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
853 this.children[this.children.length - 1].angleEnd.current()
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
854 + rotationOffset;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
855 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
856
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
857 if (labelMode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
858 var drawRadial =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
859 !(
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
860 this.parent &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
861 this.parent != selectedNode &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
862 angleEndCurrent == this.parent.angleEnd.current()
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
863 + rotationOffset
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
864 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
865
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
866 //if ( angleStartCurrent != angleEndCurrent )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
867 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
868 this.drawLines(angleStartCurrent, angleEndCurrent,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
869 radiusInner, drawRadial, selected);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
870 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
871
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
872 var alphaOtherCurrent = this.alphaOther.current();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
873 var childRadiusInner;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
874
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
875 if (this == selectedNode || alphaOtherCurrent) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
876 childRadiusInner =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
877 this.children.length ?
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
878 this.children[this.children.length
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
879 - 1].radiusInner.current() * gRadius
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
880 : radiusInner
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
881 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
882
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
883 if (this == selectedNode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
884 this.drawReferenceRings(childRadiusInner);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
885 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
886
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
887 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
888 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
889 selected &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
890 !searchHighlighted &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
891 this != selectedNode &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
892 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
893 this.isSearchResult ||
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
894 this.hideAlone && this.searchResultChildren() ||
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
895 false
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
896 // this.hide &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
897 // this.containsSearchResult
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
898 )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
899 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
900 context.globalAlpha = this.alphaWedge.current();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
901
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
902 drawWedge
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
903 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
904 angleStartCurrent,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
905 angleEndCurrent,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
906 radiusInner,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
907 gRadius,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
908 highlightFill,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
909 0,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
910 true
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
911 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
912
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
913 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
914 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
915 this.keyed &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
916 !showKeys &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
917 this.searchResults &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
918 !searchHighlighted &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
919 this != highlightedNode &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
920 this != focusNode
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
921 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
922 var angle = (angleEndCurrent + angleStartCurrent) / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
923 this.drawLabel(angle, true, false, true, true);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
924 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
925
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
926 //this.drawHighlight(false);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
927 searchHighlighted = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
928 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
929
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
930 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
931 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
932 this == selectedNode ||
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
933 // true
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
934 //(canDisplayLabelCurrent) &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
935 this != highlightedNode &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
936 this != focusNode
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
937 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
938 if (this.radial != this.radialPrev
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
939 && this.alphaLabel.end == 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
940 context.globalAlpha = tweenFactor;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
941 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
942 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
943 context.globalAlpha = this.alphaLabel.current();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
944 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
945
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
946 this.drawLabel
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
947 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
948 (angleStartCurrent + angleEndCurrent) / 2,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
949 this.hideAlone && this.searchResultChildren() ||
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
950 (this.isSearchResult || hiddenSearchResults) && selected,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
951 this == selectedNode && !this.radial,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
952 selected,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
953 this.radial
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
954 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
955
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
956 if (this.radial != this.radialPrev
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
957 && this.alphaLabel.start == 1 && progress < 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
958 context.globalAlpha = 1 - tweenFactor;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
959
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
960 this.drawLabel
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
961 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
962 (angleStartCurrent + angleEndCurrent) / 2,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
963 (this.isSearchResult || hiddenSearchResults)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
964 && selected,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
965 this == selectedNodeLast && !this.radialPrev,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
966 selected,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
967 this.radialPrev
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
968 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
969 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
970 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
971
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
972 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
973 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
974 alphaOtherCurrent &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
975 lastChildAngleEnd != null
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
976 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
977 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
978 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
979 (angleEndCurrent - lastChildAngleEnd) *
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
980 (childRadiusInner + gRadius) >=
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
981 minWidth()
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
982 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
983 //context.font = fontNormal;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
984 context.globalAlpha = this.alphaOther.current();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
985
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
986 drawTextPolar
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
987 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
988 this.getUnclassifiedText(),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
989 this.getUnclassifiedPercentage(),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
990 (lastChildAngleEnd + angleEndCurrent) / 2,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
991 (childRadiusInner + gRadius) / 2,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
992 true,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
993 false,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
994 false,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
995 0,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
996 0
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
997 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
998 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
999 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1000
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1001 if (this == selectedNode && this.keyUnclassified && showKeys) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1002 this.drawKey
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1003 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1004 (lastChildAngleEnd + angleEndCurrent) / 2,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1005 false,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1006 false
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1007 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1008 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1009 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1010 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1011 var alphaWedgeCurrent = this.alphaWedge.current();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1012
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1013 if (alphaWedgeCurrent || this.alphaOther.current()) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1014 var currentR = this.r.current();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1015 var currentG = this.g.current();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1016 var currentB = this.b.current();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1017
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1018 var fill = rgbText(currentR, currentG, currentB);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1019
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1020 var radiusOuter;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1021 var lastChildAngle;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1022 var truncateWedge =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1023 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1024 (this.hasChildren() || this == selectedNode) &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1025 !this.keyed &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1026 (compress || depth < maxDisplayDepth) &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1027 drawChildren
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1028 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1029
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1030 if (truncateWedge) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1031 radiusOuter = this.children.length
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1032 ? this.children[0].radiusInner.current()
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1033 * gRadius : radiusInner;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1034 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1035 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1036 radiusOuter = gRadius;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1037 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1038 /*
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1039 if ( this.hasChildren() )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1040 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1041 radiusOuter = this.children[0].getUncollapsed().radiusInner.current() * gRadius + 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1042 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1043 else
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1044 { // TEMP
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1045 radiusOuter = radiusInner + nodeRadius * gRadius;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1046
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1047 if ( radiusOuter > gRadius )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1048 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1049 radiusOuter = gRadius;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1050 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1051 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1052 */
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1053 context.globalAlpha = alphaWedgeCurrent;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1054
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1055 if (radiusInner != radiusOuter || truncateWedge) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1056 drawWedge
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1057 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1058 angleStartCurrent,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1059 angleEndCurrent,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1060 radiusInner,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1061 radiusOuter,//this.radiusOuter.current() * gRadius,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1062 //'rgba(0, 200, 0, .1)',
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1063 fill,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1064 this.alphaPattern.current()
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1065 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1066
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1067 if (truncateWedge) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1068 // fill in the extra space if the sum of our
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1069 // childrens' magnitudes is less than ours
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1070
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1071 if (lastChildAngleEnd < angleEndCurrent)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1072 //&& false) // TEMP
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1073 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1074 if (radiusOuter > 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1075 // overlap slightly to hide the seam
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1076
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1077 // radiusOuter -= 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1078 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1079
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1080 if (alphaWedgeCurrent < 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1081 context.globalAlpha
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1082 = this.alphaOther.current();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1083 drawWedge
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1084 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1085 lastChildAngleEnd,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1086 angleEndCurrent,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1087 radiusOuter,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1088 gRadius,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1089 colorUnclassified,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1090 0
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1091 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1092 context.globalAlpha = alphaWedgeCurrent;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1093 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1094
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1095 drawWedge
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1096 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1097 lastChildAngleEnd,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1098 angleEndCurrent,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1099 radiusOuter,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1100 gRadius,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1101 //this.radiusOuter.current() * gRadius,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1102 //'rgba(200, 0, 0, .1)',
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1103 fill,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1104 this.alphaPattern.current()
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1105 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1106 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1107 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1108
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1109 if (radiusOuter < gRadius) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1110 // patch up the seam
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1111 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1112 context.beginPath();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1113 context.arc(0, 0, radiusOuter,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1114 angleStartCurrent/*lastChildAngleEnd*/,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1115 angleEndCurrent, false);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1116 context.strokeStyle = fill;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1117 context.lineWidth = 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1118 context.stroke();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1119 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1120 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1121
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1122 if (this.keyed && selected && showKeys)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1123 //&& progress == 1 )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1124 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1125 this.drawKey
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1126 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1127 (angleStartCurrent + angleEndCurrent) / 2,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1128 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1129 this == highlightedNode ||
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1130 this == focusNode ||
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1131 this.searchResults
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1132 ),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1133 this == highlightedNode || this == focusNode
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1134 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1135 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1136 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1137 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1138 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1139
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1140 this.hiddenLabels = Array();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1141
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1142 if (drawChildren) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1143 // draw children
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1144 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1145 for (var i = 0; i < this.children.length; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1146 if (this.drawHiddenChildren(i, selected, labelMode,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1147 searchHighlighted)) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1148 var childHiddenEnd = this.children[i].hiddenEnd;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1149 if (childHiddenEnd > i) { // Avoid infinite loop
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1150 i = childHiddenEnd;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1151 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1152 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1153 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1154 this.children[i].draw(labelMode, selected,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1155 searchHighlighted);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1156 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1157 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1158 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1159 };
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1160
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1161 this.drawHiddenChildren = function
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1162 (firstHiddenChild,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1163 selected,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1164 labelMode,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1165 searchHighlighted) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1166 var firstChild = this.children[firstHiddenChild];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1167
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1168 if (firstChild.hiddenEnd == null
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1169 || firstChild.radiusInner.current() == 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1170 return false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1171 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1172
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1173 for (var i = firstHiddenChild; i < firstChild.hiddenEnd; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1174 if (!this.children[i].hide
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1175 || !this.children[i].hidePrev && progress < 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1176 return false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1177 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1178 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1179
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1180 var angleStart = firstChild.angleStart.current() + rotationOffset;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1181 var lastChild = this.children[firstChild.hiddenEnd];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1182 var angleEnd = lastChild.angleEnd.current() + rotationOffset;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1183 var radiusInner = gRadius * firstChild.radiusInner.current();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1184 var hiddenChildren = firstChild.hiddenEnd - firstHiddenChild + 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1185
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1186 if (labelMode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1187 var hiddenSearchResults = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1188
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1189 for (var i = firstHiddenChild; i <= firstChild.hiddenEnd; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1190 hiddenSearchResults += this.children[i].searchResults;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1191
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1192 if (this.children[i].magnitude == 0) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1193 hiddenChildren--;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1194 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1195 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1196
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1197 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1198 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1199 selected &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1200 (angleEnd - angleStart) *
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1201 (gRadius + gRadius) >=
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1202 minWidth() ||
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1203 this == highlightedNode &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1204 hiddenChildren ||
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1205 hiddenSearchResults
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1206 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1207 context.globalAlpha = this.alphaWedge.current();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1208
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1209 this.drawHiddenLabel
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1210 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1211 angleStart,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1212 angleEnd,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1213 hiddenChildren,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1214 hiddenSearchResults
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1215 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1216 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1217 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1218
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1219 var drawWedges = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1220
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1221 for (var i = firstHiddenChild; i <= firstChild.hiddenEnd; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1222 // all hidden children must be completely hidden to draw together
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1223
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1224 if (this.children[i].alphaPattern.current()
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1225 != this.children[i].alphaWedge.current()) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1226 drawWedges = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1227 break;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1228 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1229 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1230
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1231 if (labelMode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1232 if (drawWedges) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1233 var drawRadial = (angleEnd
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1234 < this.angleEnd.current() + rotationOffset);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1235 this.drawLines(angleStart, angleEnd, radiusInner, drawRadial);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1236 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1237
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1238 if (hiddenSearchResults && !searchHighlighted) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1239 drawWedge
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1240 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1241 angleStart,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1242 angleEnd,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1243 radiusInner,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1244 gRadius,//this.radiusOuter.current() * gRadius,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1245 highlightFill,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1246 0,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1247 true
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1248 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1249 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1250 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1251 else if (drawWedges) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1252 context.globalAlpha = this.alphaWedge.current();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1253
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1254 var fill = rgbText
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1255 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1256 firstChild.r.current(),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1257 firstChild.g.current(),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1258 firstChild.b.current()
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1259 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1260
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1261 drawWedge
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1262 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1263 angleStart,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1264 angleEnd,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1265 radiusInner,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1266 gRadius,//this.radiusOuter.current() * gRadius,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1267 fill,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1268 context.globalAlpha,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1269 false
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1270 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1271 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1272
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1273 return drawWedges;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1274 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1275
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1276 this.drawHiddenLabel = function (angleStart, angleEnd, value,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1277 hiddenSearchResults) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1278 var textAngle = (angleStart + angleEnd) / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1279 var labelRadius = gRadius + fontSize;//(radiusInner + radius) / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1280
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1281 var hiddenLabel = Array();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1282
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1283 hiddenLabel.value = value;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1284 hiddenLabel.angle = textAngle;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1285 hiddenLabel.search = hiddenSearchResults;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1286
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1287 this.hiddenLabels.push(hiddenLabel);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1288
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1289 drawTick(gRadius - fontSize * .75, fontSize * 1.5, textAngle);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1290 drawTextPolar
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1291 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1292 value.toString() + ' more',
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1293 0, // inner text
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1294 textAngle,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1295 labelRadius,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1296 true, // radial
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1297 hiddenSearchResults, // bubble
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1298 this == highlightedNode || this == focusNode, // bold
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1299 false,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1300 hiddenSearchResults
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1301 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1302 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1303
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1304 this.drawHighlight = function (bold) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1305 var angleStartCurrent = this.angleStart.current() + rotationOffset;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1306 var angleEndCurrent = this.angleEnd.current() + rotationOffset;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1307 var radiusInner = this.radiusInner.current() * gRadius;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1308
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1309 //this.setHighlightStyle();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1310
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1311 if (this == focusNode && this
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1312 == highlightedNode && this.hasChildren()) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1313 // context.fillStyle = "rgba(255, 255, 255, .3)";
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1314 arrow
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1315 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1316 angleStartCurrent,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1317 angleEndCurrent,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1318 radiusInner
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1319 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1320 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1321 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1322 drawWedge
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1323 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1324 angleStartCurrent,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1325 angleEndCurrent,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1326 radiusInner,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1327 gRadius,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1328 highlightFill,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1329 0,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1330 true
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1331 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1332 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1333
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1334 // check if hidden children should be highlighted
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1335 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1336 for (var i = 0; i < this.children.length; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1337 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1338 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1339 this.children[i].getDepth() - selectedNode.getDepth() + 1 <=
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1340 maxDisplayDepth &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1341 this.children[i].hiddenEnd != null
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1342 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1343 var firstChild = this.children[i];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1344 var lastChild = this.children[firstChild.hiddenEnd];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1345 var hiddenAngleStart = firstChild.angleStart.current()
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1346 + rotationOffset;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1347 var hiddenAngleEnd = lastChild.angleEnd.current()
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1348 + rotationOffset;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1349 var hiddenRadiusInner = gRadius
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1350 * firstChild.radiusInner.current();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1351
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1352 drawWedge
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1353 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1354 hiddenAngleStart,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1355 hiddenAngleEnd,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1356 hiddenRadiusInner,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1357 gRadius,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1358 'rgba(255, 255, 255, .3)',
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1359 0,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1360 true
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1361 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1362
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1363 if (false && !this.searchResults) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1364 this.drawHiddenLabel
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1365 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1366 hiddenAngleStart,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1367 hiddenAngleEnd,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1368 firstChild.hiddenEnd - i + 1
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1369 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1370 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1371
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1372 i = firstChild.hiddenEnd;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1373 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1374 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1375
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1376 // context.strokeStyle = 'black';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1377 context.fillStyle = 'black';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1378
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1379 var highlight = !(progress < 1 && zoomOut
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1380 && this == selectedNodeLast);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1381
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1382 var angle = (angleEndCurrent + angleStartCurrent) / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1383
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1384 if (!(this.keyed && showKeys)) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1385 this.drawLabel(angle, true, bold, true, this.radial);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1386 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1387 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1388
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1389 this.drawHighlightCenter = function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1390 if (!this.canDisplayHistory()) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1391 return;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1392 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1393
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1394 context.lineWidth = highlightLineWidth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1395 context.strokeStyle = 'black';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1396 context.fillStyle = "rgba(255, 255, 255, .6)";
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1397
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1398 context.fillStyle = 'black';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1399 this.drawLabel(3 * Math.PI / 2, true, true, false);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1400 context.font = fontNormal;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1401 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1402
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1403 this.drawKey = function (angle, highlight, bold) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1404 var offset = keyOffset();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1405 var color;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1406 var colorText = this.magnitude == 0 ? 'gray' : 'black';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1407 var patternAlpha = this.alphaPattern.end;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1408 var boxLeft = imageWidth - keySize - margin;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1409 var textY = offset + keySize / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1410
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1411 var label;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1412 var keyNameWidth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1413
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1414 if (this == selectedNode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1415 color = colorUnclassified;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1416 label =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1417 this.getUnclassifiedText() +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1418 ' ' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1419 this.getUnclassifiedPercentage();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1420 keyNameWidth = measureText(label, false);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1421 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1422 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1423 label = this.keyLabel;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1424 color = rgbText(this.r.end, this.g.end, this.b.end);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1425
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1426 if (highlight) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1427 if (this.searchResultChildren()) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1428 label = label
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1429 + searchResultString(this.searchResultChildren());
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1430 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1431
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1432 keyNameWidth = measureText(label, bold);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1433 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1434 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1435 keyNameWidth = this.keyNameWidth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1436 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1437 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1438
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1439 var textLeft = boxLeft - keyBuffer - keyNameWidth - fontSize / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1440 var labelLeft = textLeft;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1441
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1442 if (labelLeft > keyMinTextLeft - fontSize / 2) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1443 keyMinTextLeft -= fontSize / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1444
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1445 if (keyMinTextLeft < centerX - gRadius + fontSize / 2) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1446 keyMinTextLeft = centerX - gRadius + fontSize / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1447 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1448
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1449 labelLeft = keyMinTextLeft;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1450 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1451
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1452 var lineX = new Array();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1453 var lineY = new Array();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1454
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1455 var bendRadius;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1456 var keyAngle = Math.atan((textY - centerY) / (labelLeft - centerX));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1457 var arcAngle;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1458
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1459 if (keyAngle < 0) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1460 keyAngle += Math.PI;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1461 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1462
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1463 if (keyMinAngle == 0 || angle < keyMinAngle) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1464 keyMinAngle = angle;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1465 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1466
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1467 if (angle > Math.PI && keyMinAngle > Math.PI) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1468 // allow lines to come underneath the chart
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1469
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1470 angle -= Math.PI * 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1471 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1472
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1473 lineX.push(Math.cos(angle) * gRadius);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1474 lineY.push(Math.sin(angle) * gRadius);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1475
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1476 if (angle < keyAngle
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1477 && textY > centerY
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1478 + Math.sin(angle) * (gRadius + buffer * (currentKey - 1)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1479 / (keys + 1) / 2 + buffer / 2)) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1480 bendRadius = gRadius + buffer - buffer * currentKey
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1481 / (keys + 1) / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1482 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1483 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1484 bendRadius = gRadius + buffer * currentKey
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1485 / (keys + 1) / 2 + buffer / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1486 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1487
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1488 var outside =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1489 Math.sqrt
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1490 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1491 Math.pow(labelLeft - centerX, 2) +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1492 Math.pow(textY - centerY, 2)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1493 ) > bendRadius;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1494
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1495 if (!outside) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1496 arcAngle = Math.asin((textY - centerY) / bendRadius);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1497
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1498 keyMinTextLeft = min(keyMinTextLeft, centerX
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1499 + bendRadius * Math.cos(arcAngle) - fontSize / 2);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1500
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1501 if (labelLeft < textLeft && textLeft > centerX
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1502 + bendRadius * Math.cos(arcAngle)) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1503 lineX.push(textLeft - centerX);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1504 lineY.push(textY - centerY);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1505 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1506 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1507 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1508 keyMinTextLeft = min(keyMinTextLeft, labelLeft - fontSize / 2);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1509
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1510 if (angle < keyAngle) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1511 // flip everything over y = x
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1512 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1513 arcAngle = Math.PI / 2 - keyLineAngle
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1514 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1515 Math.PI / 2 - angle,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1516 Math.PI / 2 - keyAngle,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1517 bendRadius,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1518 textY - centerY,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1519 labelLeft - centerX,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1520 lineY,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1521 lineX
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1522 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1523
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1524 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1525 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1526 arcAngle = keyLineAngle
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1527 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1528 angle,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1529 keyAngle,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1530 bendRadius,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1531 labelLeft - centerX,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1532 textY - centerY,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1533 lineX,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1534 lineY
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1535 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1536 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1537 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1538
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1539 if (labelLeft > centerX + bendRadius * Math.cos(arcAngle) ||
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1540 textY > centerY + bendRadius * Math.sin(arcAngle) + .01)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1541 // if ( outside || )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1542 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1543 lineX.push(labelLeft - centerX);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1544 lineY.push(textY - centerY);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1545
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1546 if (textLeft != labelLeft) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1547 lineX.push(textLeft - centerX);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1548 lineY.push(textY - centerY);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1549 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1550 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1551
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1552 context.globalAlpha = this.alphaWedge.current();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1553
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1554 if (snapshotMode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1555 var labelSVG;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1556
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1557 if (this == selectedNode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1558 labelSVG =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1559 this.getUnclassifiedText() +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1560 spacer() +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1561 this.getUnclassifiedPercentage();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1562 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1563 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1564 labelSVG = this.name + spacer() + this.getPercentage() + '%';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1565 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1566
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1567 svg +=
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1568 '<rect fill="' + color + '" ' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1569 'x="' + boxLeft + '" y="' + offset +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1570 '" width="' + keySize + '" height="' + keySize + '"/>';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1571
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1572 if (patternAlpha) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1573 svg +=
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1574 '<rect fill="url(#hiddenPattern)" style="stroke:none" ' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1575 'x="' + boxLeft + '" y="' + offset +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1576 '" width="' + keySize + '" height="' + keySize + '"/>';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1577 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1578
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1579 svg +=
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1580 '<path class="line' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1581 (highlight ? ' highlight' : '') +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1582 '" d="M ' + (lineX[0] + centerX) + ',' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1583 (lineY[0] + centerY);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1584
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1585 if (angle != arcAngle) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1586 svg +=
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1587 ' L ' + (centerX + bendRadius * Math.cos(angle)) + ',' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1588 (centerY + bendRadius * Math.sin(angle)) +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1589 ' A ' + bendRadius + ',' + bendRadius + ' 0 ' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1590 '0,' + (angle > arcAngle ? '0' : '1') + ' ' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1591 (centerX + bendRadius * Math.cos(arcAngle)) + ',' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1592 (centerY + bendRadius * Math.sin(arcAngle));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1593 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1594
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1595 for (var i = 1; i < lineX.length; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1596 svg +=
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1597 ' L ' + (centerX + lineX[i]) + ',' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1598 (centerY + lineY[i]);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1599 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1600
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1601 svg += '"/>';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1602
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1603 if (highlight) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1604 if (this.searchResultChildren()) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1605 labelSVG = labelSVG
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1606 + searchResultString(this.searchResultChildren());
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1607 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1608
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1609 drawBubbleSVG
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1610 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1611 boxLeft - keyBuffer - keyNameWidth - fontSize / 2,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1612 textY - fontSize,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1613 keyNameWidth + fontSize,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1614 fontSize * 2,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1615 fontSize,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1616 0
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1617 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1618
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1619 if (this.isSearchResult) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1620 drawSearchHighlights
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1621 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1622 label,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1623 boxLeft - keyBuffer - keyNameWidth,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1624 textY,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1625 0
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1626 )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1627 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1628 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1629
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1630 svg += svgText(labelSVG, boxLeft - keyBuffer, textY, 'end', bold,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1631 colorText);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1632 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1633 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1634 context.fillStyle = color;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1635 context.translate(-centerX, -centerY);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1636 context.strokeStyle = 'black';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1637 context.globalAlpha = 1;//this.alphaWedge.current();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1638
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1639 context.fillRect(boxLeft, offset, keySize, keySize);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1640
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1641 if (patternAlpha) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1642 context.globalAlpha = patternAlpha;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1643 context.fillStyle = hiddenPattern;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1644
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1645 // make clipping box for Firefox performance
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1646 context.beginPath();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1647 context.moveTo(boxLeft, offset);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1648 context.lineTo(boxLeft + keySize, offset);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1649 context.lineTo(boxLeft + keySize, offset + keySize);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1650 context.lineTo(boxLeft, offset + keySize);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1651 context.closePath();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1652 context.save();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1653 context.clip();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1654
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1655 context.fillRect(boxLeft, offset, keySize, keySize);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1656 context.fillRect(boxLeft, offset, keySize, keySize);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1657
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1658 context.restore(); // remove clipping region
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1659 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1660
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1661 if (highlight) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1662 this.setHighlightStyle();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1663 context.fillRect(boxLeft, offset, keySize, keySize);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1664 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1665 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1666 context.lineWidth = thinLineWidth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1667 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1668
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1669 context.strokeRect(boxLeft, offset, keySize, keySize);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1670
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1671 if (lineX.length) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1672 context.beginPath();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1673 context.moveTo(lineX[0] + centerX, lineY[0] + centerY);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1674
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1675 context.arc(centerX, centerY, bendRadius, angle, arcAngle,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1676 angle > arcAngle);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1677
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1678 for (var i = 1; i < lineX.length; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1679 context.lineTo(lineX[i] + centerX, lineY[i] + centerY);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1680 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1681
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1682 context.globalAlpha = this == selectedNode ?
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1683 this.children[0].alphaWedge.current() :
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1684 this.alphaWedge.current();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1685 context.lineWidth = highlight
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1686 ? highlightLineWidth : thinLineWidth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1687 context.stroke();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1688 context.globalAlpha = 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1689 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1690
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1691 if (highlight) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1692 drawBubbleCanvas
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1693 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1694 boxLeft - keyBuffer - keyNameWidth - fontSize / 2,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1695 textY - fontSize,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1696 keyNameWidth + fontSize,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1697 fontSize * 2,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1698 fontSize,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1699 0
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1700 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1701
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1702 if (this.isSearchResult) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1703 drawSearchHighlights
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1704 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1705 label,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1706 boxLeft - keyBuffer - keyNameWidth,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1707 textY,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1708 0
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1709 )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1710 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1711 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1712
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1713 drawText(label, boxLeft - keyBuffer, offset + keySize / 2, 0,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1714 'end', bold, colorText);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1715
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1716 context.translate(centerX, centerY);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1717 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1718
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1719 currentKey++;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1720 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1721
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1722 this.drawLabel = function (angle, bubble, bold, selected, radial) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1723 if (context.globalAlpha == 0) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1724 return;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1725 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1726
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1727 var innerText;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1728 var label;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1729 var radius;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1730
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1731 if (radial) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1732 radius = (this.radiusInner.current() + 1) * gRadius / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1733 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1734 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1735 radius = this.labelRadius.current() * gRadius;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1736 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1737
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1738 if (radial && (selected || bubble)) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1739 var percentage = this.getPercentage();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1740 innerText = percentage + '%';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1741 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1742
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1743 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1744 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1745 !radial &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1746 this != selectedNode &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1747 !bubble &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1748 (!zoomOut || this != selectedNodeLast)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1749 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1750 label = this.shortenLabel();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1751 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1752 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1753 label = this.name;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1754 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1755
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1756 var flipped = drawTextPolar
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1757 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1758 label,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1759 innerText,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1760 angle,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1761 radius,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1762 radial,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1763 bubble,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1764 bold,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1765 // this.isSearchResult && this.shouldAddSearchResultsString() && (!selected || this == selectedNode || highlight),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1766 this.isSearchResult
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1767 && (!selected || this == selectedNode || bubble),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1768 (this.hideAlone || !selected || this == selectedNode)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1769 ? this.searchResultChildren() : 0
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1770 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1771
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1772 var depth = this.getDepth() - selectedNode.getDepth() + 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1773
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1774 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1775 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1776 !radial &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1777 !bubble &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1778 this != selectedNode &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1779 this.angleEnd.end != this.angleStart.end &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1780 nLabelOffsets[depth - 2] > 2 &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1781 this.labelWidth.current()
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1782 > (this.angleEnd.end - this.angleStart.end) * Math.abs(radius) &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1783 !(zoomOut && this == selectedNodeLast) &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1784 this.labelRadius.end > 0
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1785 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1786 // name extends beyond wedge; draw tick mark towards the central
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1787 // radius for easier identification
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1788
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1789 var radiusCenter = compress ?
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1790 (compressedRadii[depth - 1] + compressedRadii[depth - 2]) / 2 :
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1791 (depth - .5) * nodeRadius;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1792
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1793 if (this.labelRadius.end > radiusCenter) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1794 if (flipped) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1795 drawTick(radius - tickLength * 1.4, tickLength, angle);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1796 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1797 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1798 drawTick(radius - tickLength * 1.7, tickLength, angle);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1799 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1800 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1801 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1802 if (flipped) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1803 drawTick(radius + tickLength * .7, tickLength, angle);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1804 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1805 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1806 drawTick(radius + tickLength * .4, tickLength, angle);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1807 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1808 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1809 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1810 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1811
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1812 this.drawLines = function (angleStart, angleEnd, radiusInner, drawRadial,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1813 selected) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1814 if (snapshotMode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1815 if (this != selectedNode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1816 if (angleEnd == angleStart + Math.PI * 2) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1817 // fudge to prevent overlap, which causes arc ambiguity
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1818 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1819 angleEnd -= .1 / gRadius;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1820 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1821
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1822 var longArc = angleEnd - angleStart > Math.PI ? 1 : 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1823
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1824 var x1 = centerX + radiusInner * Math.cos(angleStart);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1825 var y1 = centerY + radiusInner * Math.sin(angleStart);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1826
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1827 var x2 = centerX + gRadius * Math.cos(angleStart);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1828 var y2 = centerY + gRadius * Math.sin(angleStart);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1829
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1830 var x3 = centerX + gRadius * Math.cos(angleEnd);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1831 var y3 = centerY + gRadius * Math.sin(angleEnd);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1832
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1833 var x4 = centerX + radiusInner * Math.cos(angleEnd);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1834 var y4 = centerY + radiusInner * Math.sin(angleEnd);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1835
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1836 if (this.alphaArc.end) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1837 var dArray =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1838 [
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1839 " M ", x4, ",", y4,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1840 " A ", radiusInner, ",", radiusInner, " 0 ",
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1841 longArc,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1842 " 0 ", x1, ",", y1
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1843 ];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1844
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1845 svg += '<path class="line" d="' + dArray.join('') + '"/>';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1846 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1847
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1848 if (drawRadial && this.alphaLine.end) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1849 svg += '<line x1="' + x3 + '" y1="' + y3 + '" x2="' + x4
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1850 + '" y2="' + y4 + '"/>';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1851 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1852 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1853 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1854 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1855 context.lineWidth = thinLineWidth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1856 context.strokeStyle = 'black';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1857 context.beginPath();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1858 context.arc(0, 0, radiusInner, angleStart, angleEnd, false);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1859 context.globalAlpha = this.alphaArc.current();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1860 context.stroke();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1861
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1862 if (drawRadial) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1863 var x1 = radiusInner * Math.cos(angleEnd);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1864 var y1 = radiusInner * Math.sin(angleEnd);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1865 var x2 = gRadius * Math.cos(angleEnd);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1866 var y2 = gRadius * Math.sin(angleEnd);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1867
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1868 context.beginPath();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1869 context.moveTo(x1, y1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1870 context.lineTo(x2, y2);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1871
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1872 // if ( this.getCollapse() )//( selected && this != selectedNode )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1873 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1874 context.globalAlpha = this.alphaLine.current();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1875 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1876
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1877 context.stroke();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1878 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1879 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1880 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1881
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1882 this.drawMap = function (child) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1883 if (this.parent) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1884 this.parent.drawMap(child);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1885 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1886
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1887 if (this.getCollapse() && this != child || this == focusNode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1888 return;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1889 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1890
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1891 var angleStart =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1892 (child.baseMagnitude - this.baseMagnitude) / this.magnitude
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1893 * Math.PI * 2 + rotationOffset;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1894 var angleEnd =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1895 (child.baseMagnitude - this.baseMagnitude + child.magnitude) /
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1896 this.magnitude * Math.PI * 2 +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1897 rotationOffset;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1898
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1899 var box = this.getMapPosition();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1900
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1901 context.save();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1902 context.fillStyle = 'black';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1903 context.textAlign = 'end';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1904 context.textBaseline = 'middle';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1905
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1906 var textX = box.x - mapRadius - mapBuffer;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1907 var percentage = getPercentage(child.magnitude / this.magnitude);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1908
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1909 var highlight = this == selectedNode || this == highlightedNode;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1910
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1911 if (highlight) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1912 context.font = fontBold;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1913 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1914 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1915 context.font = fontNormal;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1916 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1917
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1918 context.fillText(percentage + '% of', textX, box.y - mapRadius / 3);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1919 context.fillText(this.name, textX, box.y + mapRadius / 3);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1920
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1921 if (highlight) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1922 context.font = fontNormal;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1923 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1924
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1925 if (this == highlightedNode && this != selectedNode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1926 context.fillStyle = 'rgb(245, 245, 245)';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1927 // context.fillStyle = 'rgb(200, 200, 200)';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1928 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1929 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1930 context.fillStyle = 'rgb(255, 255, 255)';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1931 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1932
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1933 context.beginPath();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1934 context.arc(box.x, box.y, mapRadius, 0, Math.PI * 2, true);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1935 context.closePath();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1936 context.fill();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1937
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1938 if (this == selectedNode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1939 context.lineWidth = 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1940 context.fillStyle = 'rgb(100, 100, 100)';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1941 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1942 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1943 if (this == highlightedNode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1944 context.lineWidth = .2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1945 context.fillStyle = 'rgb(190, 190, 190)';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1946 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1947 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1948 context.lineWidth = .2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1949 context.fillStyle = 'rgb(200, 200, 200)';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1950 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1951 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1952
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1953 var maxDepth = this.getMaxDepth();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1954
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1955 if (!compress && maxDepth > maxPossibleDepth + this.getDepth() - 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1956 maxDepth = maxPossibleDepth + this.getDepth() - 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1957 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1958
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1959 if (this.getDepth() < selectedNode.getDepth()) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1960 if (child.getDepth() - 1 >= maxDepth) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1961 maxDepth = child.getDepth();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1962 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1963 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1964
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1965 var radiusInner;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1966
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1967 if (compress) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1968 radiusInner = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1969 // Math.atan(child.getDepth() - this.getDepth()) /
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1970 // Math.PI * 2 * .9;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1971 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1972 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1973 radiusInner =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1974 (child.getDepth() - this.getDepth()) /
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1975 (maxDepth - this.getDepth() + 1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1976 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1977
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1978 context.stroke();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1979 context.beginPath();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1980
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1981 if (radiusInner == 0) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1982 context.moveTo(box.x, box.y);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1983 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1984 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1985 context.arc(box.x, box.y, mapRadius * radiusInner, angleEnd,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1986 angleStart, true);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1987 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1988
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1989 context.arc(box.x, box.y, mapRadius, angleStart, angleEnd, false);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1990 context.closePath();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1991 context.fill();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1992
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1993 if (this == highlightedNode && this != selectedNode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1994 context.lineWidth = 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1995 context.stroke();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1996 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1997
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1998 context.restore();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
1999 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2000
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2001 this.drawReferenceRings = function (childRadiusInner) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2002 if (snapshotMode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2003 svg +=
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2004 '<circle cx="' + centerX + '" cy="' + centerY +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2005 '" r="' + childRadiusInner + '"/>';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2006 svg +=
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2007 '<circle cx="' + centerX + '" cy="' + centerY +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2008 '" r="' + gRadius + '"/>';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2009 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2010 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2011 context.globalAlpha = 1 - this.alphaLine.current();//this.getUncollapsed().alphaLine.current();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2012 context.beginPath();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2013 context.arc(0, 0, childRadiusInner, 0, Math.PI * 2, false);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2014 context.stroke();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2015 context.beginPath();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2016 context.arc(0, 0, gRadius, 0, Math.PI * 2, false);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2017 context.stroke();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2018 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2019 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2020
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2021 this.getCollapse = function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2022 return (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2023 collapse &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2024 this.collapse &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2025 this.depth != maxAbsoluteDepth
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2026 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2027 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2028
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2029 this.getDepth = function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2030 if (collapse) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2031 return this.depthCollapsed;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2032 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2033 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2034 return this.depth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2035 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2036 };
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2037
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2038 this.getHue = function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2039 return this.hues[currentDataset];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2040 };
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2041
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2042 this.getMagnitude = function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2043 return this.attributes[magnitudeIndex][currentDataset];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2044 };
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2045
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2046 this.getMapPosition = function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2047 return {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2048 x: (details.offsetLeft + details.clientWidth - mapRadius),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2049 y: ((focusNode.getDepth() - this.getDepth()) *
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2050 (mapBuffer + mapRadius * 2) - mapRadius) +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2051 details.clientHeight + details.offsetTop
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2052 };
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2053 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2054
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2055 this.getMaxDepth = function (limit) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2056 var max;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2057
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2058 if (collapse) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2059 return this.maxDepthCollapsed;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2060 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2061 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2062 if (this.maxDepth > maxAbsoluteDepth) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2063 return maxAbsoluteDepth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2064 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2065 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2066 return this.maxDepth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2067 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2068 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2069 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2070
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2071 this.getData = function (index, summary) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2072 var files = new Array();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2073
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2074 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2075 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2076 this.attributes[index] != null &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2077 this.attributes[index][currentDataset] != null &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2078 this.attributes[index][currentDataset] != ''
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2079 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2080 files.push
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2081 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2082 document.location +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2083 '.files/' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2084 this.attributes[index][currentDataset]
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2085 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2086 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2087
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2088 if (summary) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2089 for (var i = 0; i < this.children.length; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2090 files = files.concat(this.children[i].getData(index, true));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2091 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2092 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2093
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2094 return files;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2095 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2096
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2097 this.getList = function (index, summary) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2098 var list;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2099
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2100 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2101 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2102 this.attributes[index] != null &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2103 this.attributes[index][currentDataset] != null
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2104 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2105 list = this.attributes[index][currentDataset];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2106 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2107 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2108 list = new Array();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2109 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2110
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2111 if (summary) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2112 for (var i = 0; i < this.children.length; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2113 list = list.concat(this.children[i].getList(index, true));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2114 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2115 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2116
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2117 return list;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2118 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2119
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2120 this.getParent = function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2121 // returns parent, accounting for collapsing or 0 if doesn't exist
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2122
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2123 var parent = this.parent;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2124
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2125 while (parent != 0 && parent.getCollapse()) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2126 parent = parent.parent;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2127 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2128
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2129 return parent;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2130 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2131
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2132 this.getPercentage = function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2133 return getPercentage(this.magnitude / selectedNode.magnitude);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2134 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2135
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2136 this.getUnclassifiedPercentage = function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2137 if (this.children.length) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2138 var lastChild = this.children[this.children.length - 1];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2139
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2140 return getPercentage
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2141 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2142 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2143 this.baseMagnitude +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2144 this.magnitude -
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2145 lastChild.magnitude -
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2146 lastChild.baseMagnitude
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2147 ) / this.magnitude
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2148 ) + '%';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2149 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2150 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2151 return '100%';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2152 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2153 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2154
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2155 this.getUnclassifiedText = function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2156 return '[other ' + this.name + ']';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2157 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2158
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2159 this.getUncollapsed = function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2160 // recurse through collapsed children until uncollapsed node is found
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2161
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2162 if (this.getCollapse()) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2163 return this.children[0].getUncollapsed();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2164 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2165 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2166 return this;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2167 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2168 };
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2169
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2170 this.hasChildren = function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2171 return this.depth < maxAbsoluteDepth && this.magnitude
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2172 && this.children.length;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2173 };
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2174
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2175 this.hasParent = function (parent) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2176 if (this.parent) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2177 if (this.parent === parent) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2178 return true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2179 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2180 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2181 return this.parent.hasParent(parent);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2182 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2183 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2184 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2185 return false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2186 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2187 };
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2188
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2189 this.isLeaf = function (_recursing) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2190 // Returns true/1 for a real leave, false/0 otherwise, counting the
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2191 // non-empty leaves downstream and checking for positive counts.
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2192 // Param _recursing is an internal auxiliar variable not to be used
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2193 var leaves = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2194 if (this.children.length) { // Node has children -> recurse
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2195 for (var i = 0; i < this.children.length; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2196 leaves += this.children[i].isLeaf(true);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2197 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2198 if (_recursing) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2199 return leaves ? leaves : +!!this.magnitude;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2200 // If this has no leaves but has magnitude, this is a leaf.
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2201 // NOTE: +!!num is 0 for num=0 and is 1 otherwise
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2202 } else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2203 return !!this.magnitude && !leaves;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2204 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2205 } else { // Node has not children
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2206 if (!this.magnitude) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2207 return 0; // Fake leaf (empty)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2208 } else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2209 return 1; // This is true leaf
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2210 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2211 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2212 };
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2213
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2214 this.maxVisibleDepth = function (maxDepth) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2215 var childInnerRadius;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2216 var depth = this.getDepth() - selectedNode.getDepth() + 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2217 var currentMaxDepth = depth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2218
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2219 if (this.hasChildren() && depth < maxDepth) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2220 var lastChild = this.children[this.children.length - 1];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2221
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2222 if (lastChild.baseMagnitude + lastChild.magnitude <
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2223 this.baseMagnitude + this.magnitude) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2224 currentMaxDepth++;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2225 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2226
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2227 if (compress) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2228 childInnerRadius = compressedRadii[depth - 1];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2229 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2230 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2231 childInnerRadius = (depth) / maxDepth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2232 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2233
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2234 for (var i = 0; i < this.children.length; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2235 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2236 (//true ||
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2237 this.children[i].magnitude *
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2238 angleFactor *
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2239 (childInnerRadius + 1) *
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2240 gRadius >=
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2241 minWidth()
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2242 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2243 var childMaxDepth
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2244 = this.children[i].maxVisibleDepth(maxDepth);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2245
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2246 if (childMaxDepth > currentMaxDepth) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2247 currentMaxDepth = childMaxDepth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2248 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2249 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2250 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2251 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2252
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2253 return currentMaxDepth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2254 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2255
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2256 this.resetLabelWidth = function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2257 var nameWidthOld = this.nameWidth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2258
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2259 if (true || !this.radial)//&& fontSize != fontSizeLast )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2260 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2261 var dim = context.measureText(this.name);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2262 this.nameWidth = dim.width;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2263 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2264
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2265 if (fontSize != fontSizeLast
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2266 && this.labelWidth.end == nameWidthOld * labelWidthFudge) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2267 // font size changed; adjust start of tween to match
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2268
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2269 this.labelWidth.start = this.nameWidth * labelWidthFudge;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2270 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2271 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2272 this.labelWidth.start = this.labelWidth.current();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2273 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2274
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2275 this.labelWidth.end = this.nameWidth * labelWidthFudge;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2276 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2277
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2278 this.restrictLabelWidth = function (width) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2279 if (width < this.labelWidth.end) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2280 this.labelWidth.end = width;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2281 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2282 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2283
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2284 this.search = function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2285 this.isSearchResult = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2286 this.searchResults = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2287
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2288 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2289 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2290 !this.getCollapse() &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2291 search.value !== '' &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2292 this.name.toLowerCase().indexOf(search.value.toLowerCase()) !== -1
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2293 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2294 this.isSearchResult = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2295 this.searchResults = 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2296 nSearchResults++;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2297 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2298
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2299 for (var i = 0; i < this.children.length; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2300 this.searchResults += this.children[i].search();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2301 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2302
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2303 return this.searchResults;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2304 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2305
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2306 this.searchResultChildren = function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2307 if (this.isSearchResult) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2308 return this.searchResults - 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2309 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2310 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2311 return this.searchResults;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2312 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2313 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2314
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2315 this.setDepth = function (depth, depthCollapsed) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2316 this.depth = depth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2317 this.depthCollapsed = depthCollapsed;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2318
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2319 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2320 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2321 this.children.length === 1 &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2322 // this.magnitude > 0 &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2323 this.children[0].magnitude === this.magnitude &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2324 (head.children.length > 1 || this.children[0].children.length)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2325 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2326 this.collapse = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2327 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2328 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2329 this.collapse = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2330 depthCollapsed++;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2331 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2332
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2333 for (var i = 0; i < this.children.length; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2334 this.children[i].setDepth(depth + 1, depthCollapsed);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2335 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2336 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2337
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2338 this.setHighlightStyle = function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2339 context.lineWidth = highlightLineWidth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2340
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2341 if (this.hasChildren() || this !== focusNode
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2342 || this !== highlightedNode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2343 context.strokeStyle = 'black';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2344 context.fillStyle = "rgba(255, 255, 255, .3)";
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2345 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2346 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2347 context.strokeStyle = 'rgb(90,90,90)';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2348 context.fillStyle = "rgba(155, 155, 155, .3)";
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2349 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2350 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2351
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2352 this.setLabelWidth = function (node) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2353 if (!shorten || this.radial) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2354 return; // don't need to set width
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2355 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2356
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2357 if (node.hide) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2358 alert('wtf');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2359 return;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2360 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2361
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2362 var angle = (this.angleStart.end + this.angleEnd.end) / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2363 var a; // angle difference
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2364
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2365 if (node == selectedNode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2366 a = Math.abs(angle - node.angleOther);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2367 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2368 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2369 a = Math.abs(angle
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2370 - (node.angleStart.end + node.angleEnd.end) / 2);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2371 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2372
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2373 if (a == 0) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2374 return;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2375 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2376
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2377 if (a > Math.PI) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2378 a = 2 * Math.PI - a;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2379 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2380
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2381 if (node.radial || node == selectedNode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2382 var nodeLabelRadius;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2383
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2384 if (node == selectedNode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2385 // radial 'other' label
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2386
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2387 nodeLabelRadius = (node.children[0].radiusInner.end + 1) / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2388 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2389 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2390 nodeLabelRadius = (node.radiusInner.end + 1) / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2391 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2392
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2393 if (a < Math.PI / 2) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2394 var r = this.labelRadius.end * gRadius + .5 * fontSize
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2395 var hypotenuse = r / Math.cos(a);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2396 var opposite = r * Math.tan(a);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2397 var fontRadius = .8 * fontSize;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2398
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2399 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2400 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2401 nodeLabelRadius * gRadius < hypotenuse &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2402 this.labelWidth.end / 2 + fontRadius > opposite
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2403 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2404 this.labelWidth.end = 2 * (opposite - fontRadius);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2405 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2406 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2407 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2408 else if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2409 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2410 this.labelRadius.end == node.labelRadius.end &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2411 a < Math.PI / 4
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2412 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2413 // same radius with small angle; use circumferential approximation
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2414
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2415 var dist = a * this.labelRadius.end * gRadius - fontSize
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2416 * (1 - a * 4 / Math.PI) * 1.3;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2417
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2418 if (this.labelWidth.end < dist) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2419 node.restrictLabelWidth((dist - this.labelWidth.end / 2) * 2);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2420 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2421 else if (node.labelWidth.end < dist) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2422 this.restrictLabelWidth((dist - node.labelWidth.end / 2) * 2);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2423 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2424 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2425 // both labels reach halfway point; restrict both
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2426
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2427 this.labelWidth.end = dist;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2428 node.labelWidth.end = dist
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2429 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2430 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2431 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2432 var r1 = this.labelRadius.end * gRadius;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2433 var r2 = node.labelRadius.end * gRadius;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2434
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2435 // first adjust the radii to account for the height of the font
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2436 // by shifting them toward each other
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2437 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2438 var fontFudge = .35 * fontSize;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2439 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2440 if (this.labelRadius.end < node.labelRadius.end) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2441 r1 += fontFudge;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2442 r2 -= fontFudge;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2443 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2444 else if (this.labelRadius.end > node.labelRadius.end) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2445 r1 -= fontFudge;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2446 r2 += fontFudge;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2447 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2448 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2449 r1 -= fontFudge;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2450 r2 -= fontFudge;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2451 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2452
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2453 var r1s = r1 * r1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2454 var r2s = r2 * r2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2455
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2456 // distance between the centers of the two labels
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2457 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2458 var dist = Math.sqrt(r1s + r2s - 2 * r1 * r2 * Math.cos(a));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2459
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2460 // angle at our label center between our radius and the line to the
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2461 // other label center
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2462 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2463 var b = Math.acos((r1s + dist * dist - r2s) / (2 * r1 * dist));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2464
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2465 // distance from our label center to the intersection of the
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2466 // two tangents
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2467 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2468 var l1 = Math.sin(a + b - Math.PI / 2) * dist / Math.sin(Math.PI - a);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2469
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2470 // distance from other label center the the intersection of the
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2471 // two tangents
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2472 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2473 var l2 = Math.sin(Math.PI / 2 - b) * dist / Math.sin(Math.PI - a);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2474
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2475 l1 = Math.abs(l1) - .4 * fontSize;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2476 l2 = Math.abs(l2) - .4 * fontSize;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2477 /*
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2478 // amount to shorten the distances because of height of the font
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2479 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2480 var l3 = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2481 var fontRadius = fontSize * .55;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2482 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2483 if ( l1 < 0 || l2 < 0 )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2484 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2485 var l4 = fontRadius / Math.tan(a);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2486 l1 = Math.abs(l1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2487 l2 = Math.abs(l2);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2488
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2489 l1 -= l4;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2490 l2 -= l4;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2491 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2492 else
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2493 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2494 var c = Math.PI - a;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2495
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2496 l3 = fontRadius * Math.tan(c / 2);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2497 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2498 */
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2499 if (this.labelWidth.end / 2 > l1 && node.labelWidth.end / 2 > l2) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2500 // shorten the farthest one from the intersection
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2501
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2502 if (l1 > l2) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2503 this.restrictLabelWidth(2 * (l1));// - l3 - fontRadius));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2504 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2505 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2506 node.restrictLabelWidth(2 * (l2));// - l3 - fontRadius));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2507 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2508 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2509 /*
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2510 else if ( this.labelWidth.end / 2 > l1 + l3 && node.labelWidth.end
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2511 / 2 > l2 - l3 )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2512 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2513 node.restrictLabelWidth(2 * (l2 - l3));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2514 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2515 else if ( this.labelWidth.end / 2 > l1 - l3 && node.labelWidth.end
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2516 / 2 > l2 + l3 )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2517 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2518 this.restrictLabelWidth(2 * (l1 - l3));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2519 }*/
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2520 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2521 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2522
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2523 this.setMagnitudes = function (baseMagnitude) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2524 this.magnitude = this.getMagnitude();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2525 this.baseMagnitude = baseMagnitude;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2526
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2527 for (var i = 0; i < this.children.length; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2528 this.children[i].setMagnitudes(baseMagnitude);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2529 baseMagnitude += this.children[i].magnitude;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2530 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2531
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2532 this.maxChildMagnitude = baseMagnitude;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2533 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2534
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2535 this.setMaxDepths = function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2536 this.maxDepth = this.depth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2537 this.maxDepthCollapsed = this.depthCollapsed;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2538
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2539 for (i in this.children) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2540 var child = this.children[i];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2541
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2542 child.setMaxDepths();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2543
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2544 if (child.maxDepth > this.maxDepth) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2545 this.maxDepth = child.maxDepth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2546 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2547
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2548 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2549 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2550 child.maxDepthCollapsed > this.maxDepthCollapsed &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2551 (child.depth <= maxAbsoluteDepth || maxAbsoluteDepth == 0)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2552 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2553 this.maxDepthCollapsed = child.maxDepthCollapsed;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2554 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2555 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2556 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2557
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2558 this.setTargetLabelRadius = function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2559 var depth = this.getDepth() - selectedNode.getDepth() + 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2560 var index = depth - 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2561 var labelOffset = labelOffsets[index];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2562
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2563 if (this.radial) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2564 //this.labelRadius.setTarget((this.radiusInner.end + 1) / 2);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2565 var max =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2566 depth == maxDisplayDepth ?
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2567 1 :
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2568 compressedRadii[index + 1];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2569
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2570 this.labelRadius.setTarget((compressedRadii[index] + max) / 2);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2571 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2572 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2573 var radiusCenter;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2574 var width;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2575
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2576 if (compress) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2577 if (nLabelOffsets[index] > 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2578 this.labelRadius.setTarget
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2579 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2580 lerp
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2581 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2582 labelOffset + .75,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2583 0,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2584 nLabelOffsets[index] + .5,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2585 compressedRadii[index],
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2586 compressedRadii[index + 1]
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2587 )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2588 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2589 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2590 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2591 this.labelRadius.setTarget((compressedRadii[index]
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2592 + compressedRadii[index + 1]) / 2);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2593 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2594 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2595 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2596 radiusCenter =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2597 nodeRadius * (depth - 1) +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2598 nodeRadius / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2599 width = nodeRadius;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2600
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2601 this.labelRadius.setTarget
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2602 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2603 radiusCenter + width
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2604 * ((labelOffset + 1) / (nLabelOffsets[index] + 1) - .5)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2605 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2606 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2607 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2608
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2609 if (!this.hide && !this.keyed && nLabelOffsets[index]) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2610 // check last and first labels in each track for overlap
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2611
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2612 for (var i = 0; i < maxDisplayDepth - 1; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2613 for (var j = 0; j <= nLabelOffsets[i]; j++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2614 var last = labelLastNodes[i][j];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2615 var first = labelFirstNodes[i][j];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2616
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2617 if (last) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2618 if (j == nLabelOffsets[i]) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2619 // last is radial
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2620 this.setLabelWidth(last);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2621 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2622 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2623 last.setLabelWidth(this);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2624 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2625 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2626
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2627 if (first) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2628 if (j == nLabelOffsets[i]) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2629 this.setLabelWidth(first);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2630 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2631 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2632 first.setLabelWidth(this);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2633 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2634 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2635 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2636 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2637
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2638 if (selectedNode.canDisplayLabelOther) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2639 // in case there is an 'other' label
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2640 this.setLabelWidth(selectedNode);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2641 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2642
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2643 if (this.radial) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2644 // use the last 'track' of this depth for radial
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2645
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2646 labelLastNodes[index][nLabelOffsets[index]] = this;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2647
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2648 if (labelFirstNodes[index][nLabelOffsets[index]] == 0) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2649 labelFirstNodes[index][nLabelOffsets[index]] = this;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2650 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2651 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2652 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2653 labelLastNodes[index][labelOffset] = this;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2654
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2655 // update offset
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2656
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2657 labelOffsets[index] += 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2658
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2659 if (labelOffsets[index] > nLabelOffsets[index]) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2660 labelOffsets[index] -= nLabelOffsets[index];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2661
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2662 if (!(nLabelOffsets[index] & 1)) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2663 labelOffsets[index]--;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2664 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2665 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2666 else if (labelOffsets[index] == nLabelOffsets[index]) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2667 labelOffsets[index] -= nLabelOffsets[index];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2668
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2669 if (false && !(nLabelOffsets[index] & 1)) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2670 labelOffsets[index]++;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2671 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2672 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2673
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2674 if (labelFirstNodes[index][labelOffset] == 0) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2675 labelFirstNodes[index][labelOffset] = this;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2676 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2677 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2678 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2679 else if (this.hide) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2680 this.labelWidth.end = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2681 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2682 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2683
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2684 this.setTargets = function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2685 if (this == selectedNode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2686 this.setTargetsSelected
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2687 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2688 0,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2689 1,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2690 lightnessBase,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2691 false,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2692 false
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2693 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2694 return;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2695 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2696
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2697 var depthRelative = this.getDepth() - selectedNode.getDepth();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2698
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2699 var parentOfSelected = selectedNode.hasParent(this);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2700 /* (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2701 // ! this.getCollapse() &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2702 this.baseMagnitude <= selectedNode.baseMagnitude &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2703 this.baseMagnitude + this.magnitude >=
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2704 selectedNode.baseMagnitude + selectedNode.magnitude
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2705 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2706 */
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2707 if (parentOfSelected) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2708 this.resetLabelWidth();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2709 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2710 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2711 //context.font = fontNormal;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2712 var dim = context.measureText(this.name);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2713 this.nameWidth = dim.width;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2714 //this.labelWidth.setTarget(this.labelWidth.end);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2715 this.labelWidth.setTarget(0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2716 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2717
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2718 // set angles
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2719 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2720 if (this.baseMagnitude <= selectedNode.baseMagnitude) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2721 this.angleStart.setTarget(0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2722 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2723 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2724 this.angleStart.setTarget(Math.PI * 2);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2725 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2726 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2727 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2728 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2729 parentOfSelected ||
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2730 this.baseMagnitude + this.magnitude >=
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2731 selectedNode.baseMagnitude + selectedNode.magnitude
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2732 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2733 this.angleEnd.setTarget(Math.PI * 2);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2734 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2735 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2736 this.angleEnd.setTarget(0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2737 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2738
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2739 // children
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2740 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2741 for (var i = 0; i < this.children.length; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2742 this.children[i].setTargets();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2743 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2744
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2745 if (this.getDepth() <= selectedNode.getDepth()) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2746 // collapse in
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2747
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2748 this.radiusInner.setTarget(0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2749
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2750 if (parentOfSelected) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2751 this.labelRadius.setTarget
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2752 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2753 (depthRelative) *
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2754 historySpacingFactor * fontSize / gRadius
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2755 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2756 //this.scale.setTarget(1 - (selectedNode.getDepth()
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2757 // - this.getDepth()) / 18); // TEMP
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2758 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2759 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2760 this.labelRadius.setTarget(0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2761 //this.scale.setTarget(1); // TEMP
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2762 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2763 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2764 else if (depthRelative + 1 > maxDisplayDepth) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2765 // collapse out
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2766
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2767 this.radiusInner.setTarget(1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2768 this.labelRadius.setTarget(1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2769 //this.scale.setTarget(1); // TEMP
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2770 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2771 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2772 // don't collapse
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2773
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2774 if (compress) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2775 this.radiusInner.setTarget(compressedRadii[depthRelative - 1]);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2776 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2777 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2778 this.radiusInner.setTarget(nodeRadius * (depthRelative));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2779 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2780
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2781 //this.scale.setTarget(1); // TEMP
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2782
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2783 if (this == selectedNode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2784 this.labelRadius.setTarget(0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2785 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2786 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2787 if (compress) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2788 this.labelRadius.setTarget
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2789 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2790 (compressedRadii[depthRelative - 1]
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2791 + compressedRadii[depthRelative]) / 2
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2792 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2793 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2794 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2795 this.labelRadius.setTarget(nodeRadius * (depthRelative)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2796 + nodeRadius / 2);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2797 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2798 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2799 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2800
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2801 // this.r.start = this.r.end;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2802 // this.g.start = this.g.end;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2803 // this.b.start = this.b.end;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2804
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2805 this.r.setTarget(255);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2806 this.g.setTarget(255);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2807 this.b.setTarget(255);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2808
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2809 this.alphaLine.setTarget(0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2810 this.alphaArc.setTarget(0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2811 this.alphaWedge.setTarget(0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2812 this.alphaPattern.setTarget(0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2813 this.alphaOther.setTarget(0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2814
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2815 if (parentOfSelected && !this.getCollapse()) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2816 var alpha =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2817 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2818 1 -
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2819 (selectedNode.getDepth() - this.getDepth()) /
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2820 (Math.floor((compress ? compressedRadii[0] : nodeRadius)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2821 * gRadius / (historySpacingFactor * fontSize) - .5) + 1)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2822 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2823
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2824 if (alpha < 0) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2825 alpha = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2826 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2827
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2828 this.alphaLabel.setTarget(alpha);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2829 this.radial = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2830 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2831 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2832 this.alphaLabel.setTarget(0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2833 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2834
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2835 this.hideAlonePrev = this.hideAlone;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2836 this.hidePrev = this.hide;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2837
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2838 if (parentOfSelected) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2839 this.hideAlone = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2840 this.hide = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2841 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2842
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2843 if (this.getParent() == selectedNode.getParent()) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2844 this.hiddenEnd = null;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2845 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2846
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2847 this.radialPrev = this.radial;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2848 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2849
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2850 this.setTargetsSelected = function (hueMin, hueMax, lightness, hide,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2851 nextSiblingHidden) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2852 var collapse = this.getCollapse();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2853 var depth = this.getDepth() - selectedNode.getDepth() + 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2854 var canDisplayChildLabels = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2855 var lastChild;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2856
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2857 if (this.hasChildren())//&& ! hide )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2858 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2859 lastChild = this.children[this.children.length - 1];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2860 this.hideAlone = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2861 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2862 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2863 this.hideAlone = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2864 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2865
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2866 // set child wedges
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2867 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2868 for (var i = 0; i < this.children.length; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2869 this.children[i].setTargetWedge();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2870
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2871 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2872 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2873 !this.children[i].hide &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2874 (collapse || depth < maxDisplayDepth) &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2875 this.depth < maxAbsoluteDepth
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2876 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2877 canDisplayChildLabels = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2878 this.hideAlone = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2879 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2880 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2881
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2882 if (this == selectedNode || lastChild && lastChild.angleEnd.end
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2883 < this.angleEnd.end - .01) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2884 this.hideAlone = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2885 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2886
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2887 if (this.hideAlonePrev == undefined) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2888 this.hideAlonePrev = this.hideAlone;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2889 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2890
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2891 if (this == selectedNode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2892 var otherArc =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2893 this.children.length ?
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2894 angleFactor *
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2895 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2896 this.baseMagnitude + this.magnitude -
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2897 lastChild.baseMagnitude - lastChild.magnitude
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2898 )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2899 : this.baseMagnitude + this.magnitude;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2900 this.canDisplayLabelOther =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2901 this.children.length ?
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2902 otherArc *
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2903 (this.children[0].radiusInner.end + 1) * gRadius >=
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2904 minWidth()
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2905 : true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2906
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2907 this.keyUnclassified = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2908
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2909 if (this.canDisplayLabelOther) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2910 this.angleOther = Math.PI * 2 - otherArc / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2911 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2912 else if (otherArc > 0.0000000001) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2913 this.keyUnclassified = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2914 keys++;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2915 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2916
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2917 this.angleStart.setTarget(0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2918 this.angleEnd.setTarget(Math.PI * 2);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2919
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2920 if (this.children.length) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2921 this.radiusInner.setTarget(0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2922 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2923 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2924 this.radiusInner.setTarget(compressedRadii[0]);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2925 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2926
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2927 this.hidePrev = this.hide;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2928 this.hide = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2929 this.hideAlonePrev = this.hideAlone;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2930 this.hideAlone = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2931 this.keyed = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2932 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2933
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2934 if (hueMax - hueMin > 1 / 12) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2935 hueMax = hueMin + 1 / 12;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2936 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2937
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2938 // set lightness
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2939 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2940 if (!(hide || this.hideAlone)) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2941 if (useHue()) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2942 lightness = (lightnessBase + lightnessMax) / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2943 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2944 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2945 lightness = lightnessBase + (depth - 1) * lightnessFactor;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2946
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2947 if (lightness > lightnessMax) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2948 lightness = lightnessMax;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2949 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2950 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2951 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2952
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2953 if (hide) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2954 this.hide = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2955 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2956
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2957 if (this.hidePrev == undefined) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2958 this.hidePrev = this.hide;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2959 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2960
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2961 var hiddenStart = -1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2962 var hiddenHueNumer = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2963 var hiddenHueDenom = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2964
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2965
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2966 if (!this.hide) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2967 this.hiddenEnd = null;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2968 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2969
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2970 for (var i = 0; true; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2971 if (!this.hideAlone && !hide && (i == this.children.length
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2972 || !this.children[i].hide)) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2973 // reached a non-hidden child or the end; set targets for
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2974 // previous group of hidden children (if any) using their
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2975 // average hue
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2976
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2977 if (hiddenStart != -1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2978 var hiddenHue = hiddenHueDenom ? hiddenHueNumer
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2979 / hiddenHueDenom : hueMin;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2980
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2981 for (var j = hiddenStart; j < i; j++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2982 this.children[j].setTargetsSelected
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2983 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2984 hiddenHue,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2985 null,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2986 lightness,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2987 false,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2988 j < i - 1
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2989 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2990
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2991 this.children[j].hiddenEnd = null;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2992 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2993
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2994 this.children[hiddenStart].hiddenEnd = i - 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2995 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2996 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2997
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2998 if (i == this.children.length) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
2999 break;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3000 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3001
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3002 var child = this.children[i];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3003 var childHueMin;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3004 var childHueMax;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3005
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3006 if (this.magnitude > 0 && !this.hide && !this.hideAlone) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3007 if (useHue()) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3008 childHueMin = child.hues[currentDataset];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3009 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3010 else if (this == selectedNode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3011 var min = 0.0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3012 var max = 1.0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3013
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3014 if (this.children.length > 6) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3015 childHueMin = lerp((1 - Math.pow(
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3016 1 - i / this.children.length, 1.4)) * .95,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3017 0, 1, min, max);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3018 childHueMax = lerp((1 - Math.pow(
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3019 1 - (i + .55) / this.children.length, 1.4)) * .95,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3020 0, 1, min, max);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3021 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3022 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3023 childHueMin = lerp(i / this.children.length, 0, 1,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3024 min, max);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3025 childHueMax = lerp((i + .55) / this.children.length,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3026 0, 1, min, max);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3027 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3028 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3029 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3030 childHueMin = lerp
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3031 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3032 child.baseMagnitude,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3033 this.baseMagnitude,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3034 this.baseMagnitude + this.magnitude,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3035 hueMin,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3036 hueMax
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3037 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3038 childHueMax = lerp
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3039 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3040 child.baseMagnitude + child.magnitude * .99,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3041 this.baseMagnitude,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3042 this.baseMagnitude + this.magnitude,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3043 hueMin,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3044 hueMax
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3045 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3046 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3047 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3048 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3049 childHueMin = hueMin;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3050 childHueMax = hueMax;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3051 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3052
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3053 if (!this.hideAlone && !hide && !this.hide && child.hide) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3054 if (hiddenStart == -1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3055 hiddenStart = i;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3056 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3057
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3058 if (useHue()) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3059 hiddenHueNumer += childHueMin * child.magnitude;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3060 hiddenHueDenom += child.magnitude;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3061 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3062 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3063 hiddenHueNumer += childHueMin;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3064 hiddenHueDenom++;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3065 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3066 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3067 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3068 hiddenStart = -1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3069
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3070 this.children[i].setTargetsSelected
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3071 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3072 childHueMin,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3073 childHueMax,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3074 lightness,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3075 hide || this.keyed || this.hideAlone
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3076 || this.hide && !collapse,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3077 false
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3078 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3079 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3080 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3081
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3082 if (this.hue && this.magnitude) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3083 this.hue.setTarget(this.hues[currentDataset]);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3084
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3085 if (this.attributes[magnitudeIndex][lastDataset] == 0) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3086 this.hue.start = this.hue.end;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3087 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3088 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3089
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3090 this.radialPrev = this.radial;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3091
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3092 if (this == selectedNode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3093 this.resetLabelWidth();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3094 this.labelWidth.setTarget(this.nameWidth * labelWidthFudge);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3095 this.alphaWedge.setTarget(0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3096 this.alphaLabel.setTarget(1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3097 this.alphaOther.setTarget(1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3098 this.alphaArc.setTarget(0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3099 this.alphaLine.setTarget(0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3100 this.alphaPattern.setTarget(0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3101 this.r.setTarget(255);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3102 this.g.setTarget(255);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3103 this.b.setTarget(255);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3104 this.radial = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3105 this.labelRadius.setTarget(0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3106 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3107 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3108 var rgb = hslToRgb
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3109 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3110 hueMin,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3111 saturation,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3112 lightness
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3113 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3114
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3115 this.r.setTarget(rgb.r);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3116 this.g.setTarget(rgb.g);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3117 this.b.setTarget(rgb.b);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3118 this.alphaOther.setTarget(0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3119
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3120 this.alphaWedge.setTarget(1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3121
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3122 if (this.hide || this.hideAlone) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3123 this.alphaPattern.setTarget(1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3124 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3125 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3126 this.alphaPattern.setTarget(0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3127 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3128
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3129 // set radial
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3130 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3131 if (!(hide || this.hide))//&& ! this.keyed )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3132 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3133 if (this.hideAlone) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3134 this.radial = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3135 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3136 else if (false && canDisplayChildLabels) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3137 this.radial = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3138 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3139 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3140 this.radial = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3141
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3142 if (this.hasChildren() && depth < maxDisplayDepth) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3143 var lastChild = this.children[this.children.length - 1];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3144
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3145 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3146 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3147 lastChild.angleEnd.end == this.angleEnd.end ||
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3148 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3149 (this.angleStart.end + this.angleEnd.end) / 2 -
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3150 lastChild.angleEnd.end
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3151 ) * (this.radiusInner.end + 1) * gRadius * 2 <
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3152 minWidth()
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3153 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3154 this.radial = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3155 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3156 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3157 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3158 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3159
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3160 // set alphaLabel
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3161 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3162 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3163 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3164 collapse ||
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3165 hide ||
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3166 this.hide ||
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3167 this.keyed ||
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3168 depth > maxDisplayDepth ||
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3169 !this.canDisplayDepth()
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3170 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3171 this.alphaLabel.setTarget(0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3172 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3173 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3174 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3175 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3176 (this.radial || nLabelOffsets[depth - 2])
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3177 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3178 this.alphaLabel.setTarget(1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3179 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3180 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3181 this.alphaLabel.setTarget(0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3182
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3183 if (this.radialPrev) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3184 this.alphaLabel.start = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3185 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3186 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3187 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3188
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3189 // set alphaArc
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3190 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3191 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3192 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3193 collapse ||
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3194 hide ||
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3195 depth > maxDisplayDepth ||
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3196 !this.canDisplayDepth()
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3197 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3198 this.alphaArc.setTarget(0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3199 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3200 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3201 this.alphaArc.setTarget(1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3202 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3203
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3204 // set alphaLine
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3205 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3206 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3207 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3208 hide ||
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3209 this.hide && nextSiblingHidden ||
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3210 depth > maxDisplayDepth ||
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3211 !this.canDisplayDepth()
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3212 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3213 this.alphaLine.setTarget(0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3214 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3215 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3216 this.alphaLine.setTarget(1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3217 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3218
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3219 //if ( ! this.radial )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3220 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3221 this.resetLabelWidth();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3222 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3223
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3224 // set labelRadius target
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3225 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3226 if (collapse) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3227 this.labelRadius.setTarget(this.radiusInner.end);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3228 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3229 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3230 if (depth > maxDisplayDepth || !this.canDisplayDepth()) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3231 this.labelRadius.setTarget(1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3232 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3233 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3234 this.setTargetLabelRadius();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3235 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3236 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3237 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3238 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3239
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3240 this.setTargetWedge = function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3241 var depth = this.getDepth() - selectedNode.getDepth() + 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3242
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3243 // set angles
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3244 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3245 var baseMagnitudeRelative = this.baseMagnitude
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3246 - selectedNode.baseMagnitude;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3247 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3248 this.angleStart.setTarget(baseMagnitudeRelative * angleFactor);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3249 this.angleEnd.setTarget((baseMagnitudeRelative + this.magnitude)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3250 * angleFactor);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3251
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3252 // set radiusInner
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3253 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3254 if (depth > maxDisplayDepth || !this.canDisplayDepth()) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3255 this.radiusInner.setTarget(1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3256 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3257 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3258 if (compress) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3259 this.radiusInner.setTarget(compressedRadii[depth - 2]);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3260 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3261 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3262 this.radiusInner.setTarget(nodeRadius * (depth - 1));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3263 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3264 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3265
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3266 if (this.hide != undefined) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3267 this.hidePrev = this.hide;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3268 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3269
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3270 if (this.hideAlone != undefined) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3271 this.hideAlonePrev = this.hideAlone;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3272 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3273
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3274 // set hide
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3275 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3276 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3277 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3278 (this.angleEnd.end - this.angleStart.end) *
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3279 (this.radiusInner.end * gRadius + gRadius) <
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3280 minWidth()
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3281 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3282 if (depth == 2 && !this.getCollapse() && this.depth
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3283 <= maxAbsoluteDepth) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3284 this.keyed = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3285 keys++;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3286 this.hide = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3287
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3288 var percentage = this.getPercentage();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3289 this.keyLabel = this.name + ' ' + percentage + '%';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3290 var dim = context.measureText(this.keyLabel);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3291 this.keyNameWidth = dim.width;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3292 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3293 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3294 this.keyed = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3295 this.hide = depth > 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3296 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3297 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3298 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3299 this.keyed = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3300 this.hide = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3301 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3302 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3303
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3304 this.shortenLabel = function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3305 var label = this.name;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3306
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3307 var labelWidth = this.nameWidth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3308 var maxWidth = this.labelWidth.current();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3309 var minEndLength = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3310
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3311 if (labelWidth > maxWidth && label.length > minEndLength * 2) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3312 var endLength =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3313 Math.floor((label.length - 1) * maxWidth / labelWidth / 2);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3314
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3315 if (endLength < minEndLength) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3316 endLength = minEndLength;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3317 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3318
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3319 return (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3320 label.substring(0, endLength) +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3321 '...' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3322 label.substring(label.length - endLength));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3323 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3324 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3325 return label;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3326 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3327 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3328
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3329 /* this.shouldAddSearchResultsString = function()
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3330 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3331 if ( this.isSearchResult )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3332 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3333 return this.searchResults > 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3334 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3335 else
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3336 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3337 return this.searchResults > 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3338 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3339 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3340 */
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3341 this.sort = function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3342 this.children.sort(function (a, b) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3343 if (sortByScoreCheckBox.checked) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3344 return b.getHue() - a.getHue()
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3345 } else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3346 return b.getMagnitude() - a.getMagnitude()
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3347 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3348 });
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3349
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3350 for (var i = 0; i < this.children.length; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3351 this.children[i].sort();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3352 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3353 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3354 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3355
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3356 var options;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3357
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3358 function addOptionElement(position, innerHTML, title, padding) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3359 var div = document.createElement("div");
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3360 // div.style.position = 'absolute';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3361 // div.style.top = position + 'px';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3362 div.innerHTML = innerHTML;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3363 // div.style.display = 'block';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3364 div.style.padding = padding || '2px';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3365
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3366 if (title) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3367 div.title = title;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3368 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3369
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3370 options.appendChild(div);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3371 var height = 0;//div.clientHeight;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3372 return position + height;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3373 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3374
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3375 function addOptionElements(hueName, hueDefault) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3376 options = document.createElement('div');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3377 options.style.position = 'absolute';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3378 options.style.top = '0px';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3379 options.addEventListener('mousedown', function (e) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3380 mouseClick(e)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3381 }, false);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3382 // options.onmouseup = function(e) {mouseUp(e)}
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3383 document.body.appendChild(options);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3384
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3385 if (chart === ChartEnum.TAXOMIC) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3386 document.body.style.font = '11px Ubuntu';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3387 } else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3388 document.body.style.font = '12px Saira Semi Condensed';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3389 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3390 var position = 5;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3391
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3392 function logLoaded(fontFace) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3393 console.log(fontFace.family, 'loaded successfully.');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3394 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3395
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3396 // Loading FontFaces via JavaScript is alternative to using CSS's @font-face rule.
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3397 // var ubuntuMonoFontFace = new FontFace('Ubuntu Mono', 'url(https://fonts.gstatic.com/s/ubuntumono/v7/KFOjCneDtsqEr0keqCMhbCc6CsTYl4BO.woff2)');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3398 // document.fonts.add(ubuntuMonoFontFace);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3399 // ubuntuMonoFontFace.loaded.then(logLoaded);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3400 // var oxygenFontFace = new FontFace('Oxygen', 'url(https://fonts.gstatic.com/s/oxygen/v5/qBSyz106i5ud7wkBU-FrPevvDin1pK8aKteLpeZ5c0A.woff2)');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3401 // document.fonts.add(oxygenFontFace);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3402 // oxygenFontFace.loaded.then(logLoaded);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3403 var oxygenMonoFontFace = new FontFace('Oxygen Mono', 'url(https://fonts.gstatic.com/s/oxygenmono/v5/h0GsssGg9FxgDgCjLeAd7hjYx-6tPUUv.woff2)');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3404 document.fonts.add(oxygenMonoFontFace);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3405 oxygenMonoFontFace.loaded.then(logLoaded);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3406 var sairaCondensedFontFace = new FontFace('Saira Condensed', 'url(https://fonts.gstatic.com/s/sairacondensed/v3/EJROQgErUN8XuHNEtX81i9TmEkrvoutF2o-Srg.woff2)');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3407 document.fonts.add(sairaCondensedFontFace);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3408 sairaCondensedFontFace.loaded.then(logLoaded);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3409 var sairaSemiCondensedFontFace = new FontFace('Saira Semi Condensed', 'url(https://fonts.gstatic.com/s/sairasemicondensed/v3/U9MD6c-2-nnJkHxyCjRcnMHcWVWV1cWRRX8MaOY8q3T_.woff2)');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3410 document.fonts.add(sairaSemiCondensedFontFace);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3411 sairaSemiCondensedFontFace.loaded.then(logLoaded);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3412
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3413 // The .ready promise resolves when all fonts that have been previously requested
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3414 // are loaded and layout operations are complete.
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3415 document.fonts.ready.then(function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3416 console.log('There are', document.fonts.size, 'FontFaces loaded.\n');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3417
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3418 // document.fonts has a Set-like interface. Here, we're iterating over its values.
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3419 for (var fontFace of document.fonts.values()) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3420 console.log('FontFace:');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3421 for (var property in fontFace) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3422 console.log(' ' + property + ': ' + fontFace[property]);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3423 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3424 console.log('\n');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3425 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3426 });
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3427
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3428 details = document.createElement('div');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3429 details.style.position = 'absolute';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3430 details.style.top = '1%';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3431 details.style.right = '2%';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3432 details.style.textAlign = 'right';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3433 document.body.insertBefore(details, canvas);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3434 //<div id="details" style="position:absolute;top:1%;right:2%;text-align:right;">
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3435
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3436 details.innerHTML = '\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3437 <span id="detailsName" style="font-weight:bold"></span>&nbsp;\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3438 <input type="button" id="detailsExpand" onclick="expand(focusNode);"\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3439 value="&harr;" title="Expand this wedge to become the new focus of the chart"/><br/>\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3440 <div id="detailsInfo" style="float:right"></div>';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3441
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3442 keyControl = document.createElement('input');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3443 keyControl.type = 'button';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3444 keyControl.value = showKeys ? 'x' : '…';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3445 keyControl.style.position = '';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3446 keyControl.style.position = 'fixed';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3447 keyControl.style.visibility = 'hidden';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3448
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3449 document.body.insertBefore(keyControl, canvas);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3450
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3451 var logoElement = document.getElementById('logo');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3452
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3453 if (logoElement) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3454 logoImage = logoElement.src;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3455 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3456 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3457 logoImage = 'https://raw.githubusercontent.com/khyox/recentrifuge/master/recentrifuge/img/logo-rcf-mini.uri';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3458 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3459 var placeholderTit;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3460 if (chart === ChartEnum.GENOMIC) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3461 placeholderTit = "Complete or partial function, process, component...";
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3462 } else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3463 placeholderTit = "Taxon scientific name, complete or partial name...";
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3464 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3465 position = addOptionElement
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3466 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3467 position,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
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;)"/>\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3469 <input type="button" id="forward" value="&rarr;" title="Go forward (Shortcut: &rarr;)"/> \
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3470 &nbsp;&nbsp;&nbsp;Search: <input type="text" placeholder="' + placeholderTit + '" size="45" id="search"/>\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3471 <input id="searchClear" type="button" value="x" onclick="clearSearch()"/> \
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3472 <span id="searchResults"></span>'
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3473 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3474
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3475 if (datasets > 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3476 var size = datasets < DATASET_MAX_SIZE ? datasets : DATASET_MAX_SIZE;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3477
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3478 var select =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3479 '<table style="border-collapse:collapse;margin-left:10px"><tr><td style="padding:0px">' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3480 '<select id="datasets" style="min-width:100px" size="' + size + '" onchange="onDatasetChange()">';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3481
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3482 for (var i = 0; i < datasetNames.length; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3483 select += '<option>' + datasetNames[i] + '</option>';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3484 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3485 select +=
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3486 '</select></td><td style="vertical-align:top;padding:2px;">' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3487 '<input style="display:block" title="Previous dataset ' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3488 '(Shortcut: &uarr;)" id="prevDataset" type="button"' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3489 ' value="&uarr;" onclick="prevDataset()" disabled="true"/>' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3490 '<input title="Next dataset (Shortcut: &darr;)" ' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3491 'id="nextDataset" type="button" value="&darr;" ' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3492 'onclick="nextDataset()"/><br/></td>' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3493 '<td style="vertical-align:top;padding:2px;">' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3494 '<input style="display:block" ' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3495 'title="Switch to the prior dataset that was viewed ' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3496 '(Shortcut: TAB)" id="lastDataset" type="button" ' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3497 'style="font:11px Ubuntu" value="prior" ' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3498 'onclick="selectLastDataset()"/>' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3499 '<select id="ranks" onchange="onRankChange()" ' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3500 'title="Filter samples by taxonomic rank">' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3501 '<option value="SUMMARY">SUMMARY</option>' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3502 '<option value="strain">strain</option>' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3503 '<option value="species">species</option>' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3504 '<option value="genus">genus</option>' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3505 '<option value="family">family</option>' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3506 '<option value="order">order</option>' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3507 '<option value="class">class</option>' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3508 '<option value="phylum">phylum</option>' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3509 '<option value="kingdom">kingdom</option>' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3510 '<option value="domain">domain</option>' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3511 '<option value="ALL">ALL</option>' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3512 '<option value="NONE">NONE</option>' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3513 '</select></td></tr></table>';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3514
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3515 position = addOptionElement(position + 5, select);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3516
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3517 datasetDropDown = document.getElementById('datasets');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3518 datasetButtonLast = document.getElementById('lastDataset');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3519 datasetButtonPrev = document.getElementById('prevDataset');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3520 datasetButtonNext = document.getElementById('nextDataset');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3521 rankDropDown = document.getElementById('ranks');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3522 if (chart === ChartEnum.GENOMIC) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3523 for (i = 1; i < 10; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3524 rankDropDown.remove(1); // Remove taxonomic ranks from options
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3525 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3526 datasetDropDown.style.color='#FFFFFF'
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3527 datasetDropDown.style.backgroundColor='#555555' // #B20DFF22'
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3528 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3529 position += datasetDropDown.clientHeight;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3530 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3531
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3532 position = addOptionElement
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3533 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3534 position + 5,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3535 '<input type="button" id="maxAbsoluteDepthDecrease" style="margin:1px 4px 0 10px" value="-"/>\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3536 <span id="maxAbsoluteDepth"></span>\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3537 &nbsp;<input type="button" id="maxAbsoluteDepthIncrease" style="margin:2px 1px 0 2px" value="+"/> Max depth',
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3538 'Maximum depth to display, counted from the top level \
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3539 and including collapsed wedges.'
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3540 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3541
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3542 position = addOptionElement
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3543 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3544 position,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3545 '<input type="button" id="fontSizeDecrease" style="margin:0 4px 0 10px" value="-"/>\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3546 <span id="fontSize"></span>\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3547 &nbsp;<input type="button" id="fontSizeIncrease" style="margin:0 2px 0 2px" value="+"/> Font size'
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3548 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3549
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3550 position = addOptionElement
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3551 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3552 position,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3553 '<input type="button" id="radiusDecrease" style="margin:0 4px 0 10px" value="-"/>\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3554 <input type="button" id="radiusIncrease" style="margin:0 2px 0 1px" value="+"/> Chart size'
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3555 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3556
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3557 position = addOptionElement
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3558 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3559 position,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3560 '<input type="button" id="bkgBrightDecrease" style="margin:0 4px 5px 10px" value="-"/>\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3561 <input type="button" id="bkgBrightIncrease" style="margin:0 2px 5px 1px" value="+"/> Bkg bright'
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3562 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3563
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3564 if (hueName) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3565 hueDisplayName = attributes[attributeIndex(hueName)].displayName;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3566
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3567 position = addOptionElement
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3568 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3569 position + 5,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3570 '<input type="checkbox" id="useHue" style="float:left; ' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3571 'margin:1px 4px 0 12px"/><div>Color by ' + hueDisplayName +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3572 '</div>'
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3573 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3574
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3575 useHueCheckBox = document.getElementById('useHue');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3576 useHueCheckBox.checked = hueDefault;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3577 useHueCheckBox.onclick = handleResize;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3578 useHueCheckBox.onmousedown = suppressEvent;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3579
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3580 position = addOptionElement
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3581 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3582 position,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3583 '<input type="checkbox" id="sortByScore"/> Use to sort',
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3584 'Activates sorting the taxa by this magnitude',
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3585 '0px 2px 2px 25px'
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3586 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3587
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3588 sortByScoreCheckBox = document.getElementById('sortByScore');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3589 sortByScoreCheckBox.onclick = onSortChange;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3590 sortByScoreCheckBox.onmousedown = suppressEvent;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3591 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3592
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3593 position = addOptionElement
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3594 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3595 position,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3596 '<input type="checkbox" id="collapse" style="margin:4px 4px 0 12px" ' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3597 'checked="checked"/>Collapse',
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3598 'Collapse wedges that are redundant (entirely composed of another ' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3599 'wedge). Also affects score navigation, restricting to lowest level.'
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3600 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3601
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3602 /*
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3603 position = addOptionElement
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3604 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3605 position,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3606 '&nbsp;<input type="checkbox" id="shorten" checked="checked" />Shorten labels</div>',
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3607 'Prevent labels from overlapping by shortening them'
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3608 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3609
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3610 position = addOptionElement
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3611 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3612 position,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3613 '&nbsp;<input type="checkbox" id="compress" checked="checked" />Compress',
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3614 'Compress wedges if needed to show the entire depth'
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3615 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3616 */
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3617
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3618 position = addOptionElement
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3619 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3620 position,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3621 '<input type="button" id="snapshot" style="margin:5px 2px 0 10px"\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3622 value="Snapshot" title="Render the current view as SVG (Scalable \
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3623 Vector Graphics), a vectorial publication-quality format that can be saved or \
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3624 printed as PDF"/> <input type="button" id="help" value="?"\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3625 onclick="window.open(\'https://github.com/khyox/recentrifuge/wiki\',\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3626 \'help\')" title="Help"/>');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3627
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3628 position = addOptionElement
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3629 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3630 position + 5,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3631 '<input type="button" id="linkButton" style="margin:5px 2px 0 10px" value="Link"/>\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3632 <input type="text" size="30" id="linkText"/>',
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3633 'Show a link to this view that can be copied for bookmarking or sharing'
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3634 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3635 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3636
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3637 function arrow(angleStart, angleEnd, radiusInner) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3638 if (context.globalAlpha == 0) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3639 return;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3640 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3641
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3642 var angleCenter = (angleStart + angleEnd) / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3643 var radiusArrowInner = radiusInner - gRadius / 10;//nodeRadius * gRadius;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3644 var radiusArrowOuter = gRadius * 1.1;//(1 + nodeRadius);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3645 var radiusArrowCenter = (radiusArrowInner + radiusArrowOuter) / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3646 var pointLength = (radiusArrowOuter - radiusArrowInner) / 5;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3647
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3648 context.fillStyle = highlightFill;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3649 context.lineWidth = highlightLineWidth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3650
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3651 // First, mask out the first half of the arrow. This will prevent the tips
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3652 // from superimposing if the arrow goes most of the way around the circle.
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3653 // Masking is done by setting the clipping region to the inverse of the
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3654 // half-arrow, which is defined by cutting the half-arrow out of a large
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3655 // rectangle
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3656 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3657 context.beginPath();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3658 context.arc(0, 0, radiusInner, angleCenter, angleEnd, false);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3659 context.lineTo
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3660 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3661 radiusArrowInner * Math.cos(angleEnd),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3662 radiusArrowInner * Math.sin(angleEnd)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3663 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3664 context.lineTo
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3665 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3666 radiusArrowCenter * Math.cos(angleEnd)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3667 - pointLength * Math.sin(angleEnd),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3668 radiusArrowCenter * Math.sin(angleEnd)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3669 + pointLength * Math.cos(angleEnd)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3670 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3671 context.lineTo
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3672 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3673 radiusArrowOuter * Math.cos(angleEnd),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3674 radiusArrowOuter * Math.sin(angleEnd)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3675 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3676 context.arc(0, 0, gRadius, angleEnd, angleCenter, true);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3677 context.closePath();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3678 context.moveTo(-imageWidth, -imageHeight);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3679 context.lineTo(imageWidth, -imageHeight);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3680 context.lineTo(imageWidth, imageHeight);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3681 context.lineTo(-imageWidth, imageHeight);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3682 context.closePath();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3683 context.save();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3684 context.clip();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3685
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3686 // Next, draw the other half-arrow with the first half masked out
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3687 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3688 context.beginPath();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3689 context.arc(0, 0, radiusInner, angleCenter, angleStart, true);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3690 context.lineTo
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3691 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3692 radiusArrowInner * Math.cos(angleStart),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3693 radiusArrowInner * Math.sin(angleStart)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3694 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3695 context.lineTo
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3696 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3697 radiusArrowCenter * Math.cos(angleStart)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3698 + pointLength * Math.sin(angleStart),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3699 radiusArrowCenter * Math.sin(angleStart)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3700 - pointLength * Math.cos(angleStart)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3701 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3702 context.lineTo
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3703 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3704 radiusArrowOuter * Math.cos(angleStart),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3705 radiusArrowOuter * Math.sin(angleStart)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3706 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3707 context.arc(0, 0, gRadius, angleStart, angleCenter, false);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3708 context.fill();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3709 context.stroke();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3710
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3711 // Finally, remove the clipping region and draw the first half-arrow. This
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3712 // half is extended slightly to fill the seam.
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3713 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3714 context.restore();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3715 context.beginPath();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3716 context.arc(0, 0, radiusInner, angleCenter
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3717 - 2 / (2 * Math.PI * radiusInner), angleEnd, false);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3718 context.lineTo
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3719 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3720 radiusArrowInner * Math.cos(angleEnd),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3721 radiusArrowInner * Math.sin(angleEnd)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3722 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3723 context.lineTo
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3724 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3725 radiusArrowCenter * Math.cos(angleEnd)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3726 - pointLength * Math.sin(angleEnd),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3727 radiusArrowCenter * Math.sin(angleEnd)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3728 + pointLength * Math.cos(angleEnd)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3729 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3730 context.lineTo
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3731 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3732 radiusArrowOuter * Math.cos(angleEnd),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3733 radiusArrowOuter * Math.sin(angleEnd)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3734 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3735 context.arc(0, 0, gRadius, angleEnd, angleCenter - 2
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3736 / (2 * Math.PI * gRadius), true);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3737 context.fill();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3738 context.stroke();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3739 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3740
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3741 function attributeIndex(aname) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3742 for (var i = 0; i < attributes.length; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3743 if (aname == attributes[i].name) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3744 return i;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3745 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3746 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3747
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3748 return null;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3749 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3750
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3751 function bkgBrightDecrease() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3752 var bkgBrightInt = parseInt(bkgBright, 16)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3753 if (bkgBrightInt > parseInt('555555', 16)) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3754 bkgBright = (bkgBrightInt - 0x111111).toString(16)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3755 document.body.style.backgroundColor = '#' + bkgBright
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3756 updateViewNeeded = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3757 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3758 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3759
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3760 function bkgBrightIncrease() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3761 var bkgBrightInt = parseInt(bkgBright, 16)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3762 if (bkgBrightInt < parseInt('ffffff', 16)) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3763 bkgBright = (bkgBrightInt + 0x111111).toString(16)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3764 document.body.style.backgroundColor = '#' + bkgBright
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3765 updateViewNeeded = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3766 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3767 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3768
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3769 function checkHighlight() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3770 var lastHighlightedNode = highlightedNode;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3771 var lastHighlightingHidden = highlightingHidden;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3772
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3773 highlightedNode = selectedNode;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3774 resetKeyOffset();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3775
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3776 if (progress == 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3777 selectedNode.checkHighlight();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3778 if (selectedNode.getParent()) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3779 selectedNode.getParent().checkHighlightCenter();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3780 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3781
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3782 focusNode.checkHighlightMap();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3783 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3784
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3785 if (highlightedNode != selectedNode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3786 if (highlightedNode == focusNode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3787 // canvas.style.display='none';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3788 // window.resizeBy(1,0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3789 // canvas.style.cursor='ew-resize';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3790 // window.resizeBy(-1,0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3791 // canvas.style.display='inline';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3792 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3793 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3794 // canvas.style.cursor='pointer';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3795 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3796 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3797 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3798 // canvas.style.cursor='auto';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3799 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3800
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3801 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3802 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3803 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3804 true ||
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3805 highlightedNode != lastHighlightedNode ||
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3806 highlightingHidden != highlightingHiddenLast
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3807 ) &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3808 progress == 1
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3809 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3810 draw(); // TODO: handle in update()
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3811 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3812 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3813
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3814 function checkSelectedCollapse() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3815 var newNode = selectedNode;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3816
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3817 while (newNode.getCollapse()) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3818 newNode = newNode.children[0];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3819 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3820
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3821 if (newNode.children.length == 0 && newNode.getParent()) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3822 newNode = newNode.getParent();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3823 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3824
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3825 if (newNode != selectedNode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3826 selectNode(newNode);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3827 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3828 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3829
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3830 function clearSearch() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3831 if (search.value != '') {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3832 search.value = '';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3833 nodesIndex = undefined;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3834 onSearchChange();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3835 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3836 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3837
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3838 function createSVG() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3839 svgNS = "http://www.w3.org/2000/svg";
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3840 var SVG = {};
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3841 SVG.xlinkns = "http://www.w3.org/1999/xlink";
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3842
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3843 var newSVG = document.createElementNS(svgNS, "svg:svg");
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3844
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3845 newSVG.setAttribute("id", "canvas");
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3846 // How big is the canvas in pixels
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3847 newSVG.setAttribute("width", '100%');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3848 newSVG.setAttribute("height", '100%');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3849 // Set the coordinates used by drawings in the canvas
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3850 // newSVG.setAttribute("viewBox", "0 0 " + imageWidth + " " + imageHeight);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3851 // Define the XLink namespace that SVG uses
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3852 newSVG.setAttributeNS
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3853 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3854 "http://www.w3.org/2000/xmlns/",
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3855 "xmlns:xlink",
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3856 SVG.xlinkns
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3857 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3858
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3859 return newSVG;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3860 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3861
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3862 function degrees(radians) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3863 return radians * 180 / Math.PI;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3864 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3865
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3866 function draw() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3867 tweenFrames++;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3868 //resize();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3869 // context.fillRect(0, 0, imageWidth, imageHeight);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3870 context.clearRect(0, 0, imageWidth, imageHeight);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3871
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3872 context.font = fontNormal;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3873 context.textBaseline = 'middle';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3874
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3875 //context.strokeStyle = 'rgba(0, 0, 0, 0.3)';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3876 context.translate(centerX, centerY);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3877
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3878 resetKeyOffset();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3879
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3880 head.draw(false, false); // draw pie slices
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3881 head.draw(true, false); // draw labels
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3882
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3883 var pathRoot = selectedNode;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3884
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3885 if (focusNode != 0 && focusNode != selectedNode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3886 context.globalAlpha = 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3887 focusNode.drawHighlight(true);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3888 pathRoot = focusNode;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3889 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3890
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3891 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3892 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3893 highlightedNode &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3894 highlightedNode.getDepth() >= selectedNode.getDepth() &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3895 highlightedNode != focusNode
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3896 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3897 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3898 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3899 progress == 1 &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3900 highlightedNode != selectedNode &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3901 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3902 highlightedNode != focusNode ||
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3903 focusNode.children.length > 0
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3904 )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3905 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3906 context.globalAlpha = 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3907 highlightedNode.drawHighlight(true);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3908 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3909
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3910 //pathRoot = highlightedNode;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3911 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3912 else if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3913 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3914 progress == 1 &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3915 highlightedNode.getDepth() < selectedNode.getDepth()
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3916 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3917 context.globalAlpha = 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3918 highlightedNode.drawHighlightCenter();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3919 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3920
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3921 if (quickLook && false) // TEMP
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3922 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3923 context.globalAlpha = 1 - progress / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3924 selectedNode.drawHighlight(true);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3925 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3926 else if (progress < 1)//&& zoomOut() )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3927 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3928 if (!zoomOut)//() )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3929 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3930 context.globalAlpha = selectedNode.alphaLine.current();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3931 selectedNode.drawHighlight(true);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3932 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3933 else if (selectedNodeLast) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3934 context.globalAlpha = 1 - 4 * Math.pow(progress - .5, 2);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3935 selectedNodeLast.drawHighlight(false);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3936 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3937 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3938
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3939 drawDatasetName();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3940
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3941 //drawHistory();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3942
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3943 context.translate(-centerX, -centerY);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3944 context.globalAlpha = 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3945
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3946 mapRadius =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3947 (imageHeight / 2 - details.clientHeight - details.offsetTop) /
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3948 (pathRoot.getDepth() - 1) * 3 / 4 / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3949
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3950 if (mapRadius > maxMapRadius) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3951 mapRadius = maxMapRadius;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3952 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3953
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3954 mapBuffer = mapRadius / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3955
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3956 //context.font = fontNormal;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3957 pathRoot.drawMap(pathRoot);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3958
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3959 if (hueDisplayName && useHue()) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3960 drawLegend();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3961 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3962 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3963
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3964 function drawBubble(angle, radius, width, radial, flip) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3965 var height = fontSize * 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3966 var x;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3967 var y;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3968
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3969 width = width + fontSize;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3970
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3971 if (radial) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3972 y = -fontSize;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3973
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3974 if (flip) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3975 x = radius - width + fontSize / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3976 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3977 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3978 x = radius - fontSize / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3979 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3980 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3981 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3982 x = -width / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3983 y = -radius - fontSize;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3984 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3985
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3986 if (snapshotMode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3987 drawBubbleSVG(x + centerX, y + centerY, width, height, fontSize, angle);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3988 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3989 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3990 drawBubbleCanvas(x, y, width, height, fontSize, angle);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3991 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3992 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3993
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3994 function drawBubbleCanvas(x, y, width, height, radius, rotation) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3995 context.strokeStyle = 'black';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3996 context.lineWidth = highlightLineWidth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3997 context.fillStyle = 'rgba(255, 255, 255, .75)';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3998 context.rotate(rotation);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
3999 roundedRectangle(x, y, width, fontSize * 2, fontSize);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4000 context.fill();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4001 context.stroke();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4002 context.rotate(-rotation);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4003 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4004
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4005 function drawBubbleSVG(x, y, width, height, radius, rotation) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4006 svg +=
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4007 '<rect x="' + x + '" y="' + y +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4008 '" width="' + width +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4009 '" height="' + height +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4010 '" rx="' + radius +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4011 '" ry="' + radius +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4012 '" fill="rgba(255, 255, 255, .75)' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4013 '" class="highlight" ' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4014 'transform="rotate(' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4015 degrees(rotation) + ',' + centerX + ',' + centerY +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4016 ')"/>';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4017 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4018
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4019 function drawDatasetName() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4020 var alpha = datasetAlpha.current();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4021
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4022 if (alpha > 0) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4023 var radius = gRadius * compressedRadii[0] / -2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4024
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4025 if (alpha > 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4026 alpha = 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4027 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4028
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4029 context.globalAlpha = alpha;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4030
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4031 drawBubble(0, -radius, datasetWidths[currentDataset], false, false);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4032 drawText(datasetNames[currentDataset], 0, radius, 0, 'center', true);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4033 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4034 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4035
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4036 function drawHistory() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4037 var alpha = 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4038 context.textAlign = 'center';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4039
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4040 for (var i = 0; i < nodeHistoryPosition && alpha > 0; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4041
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4042 context.globalAlpha = alpha - historyAlphaDelta * tweenFactor;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4043 context.fillText
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4044 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4045 nodeHistory[nodeHistoryPosition - i - 1].name,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4046 0,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4047 (i + tweenFactor) * historySpacingFactor * fontSize - 1
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4048 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4049
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4050 if (alpha > 0) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4051 alpha -= historyAlphaDelta;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4052 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4053 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4054
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4055 context.globalAlpha = 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4056 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4057
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4058 function drawLegend() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4059 var width = imageHeight * .0265;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4060 var side = width * 0.9
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4061 var left_buttons = imageWidth * .008;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4062 var left = left_buttons + side + fontSize;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4063 var height = imageHeight * .15;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4064 var top = imageHeight - fontSize * 3.5 - height;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4065 var textLeft = left + width + fontSize / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4066 var delta = (height - side) / 3;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4067
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4068 canvasButtons = [] // Delete previous buttons
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4069 var buttonMost = new CanvasButton('mostScore', left_buttons,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4070 top, side, side, '#c87cca');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4071 var buttonLest = new CanvasButton('lestScore', left_buttons,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4072 top + 3 * delta, side, side, '#d38381');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4073 canvasButtons.push(buttonMost, buttonLest);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4074 if (nodesIndex !== undefined) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4075 var buttonMore = new CanvasButton('moreScore', left_buttons,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4076 top + delta, side, side, '#81c8d3');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4077 var buttonLess = new CanvasButton('lessScore', left_buttons,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4078 top + 2 * delta, side, side, '#96d281');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4079 canvasButtons.push(buttonMore, buttonLess)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4080 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4081 canvasButtons.forEach(function (element) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4082 element.draw(context);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4083 });
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4084 context.fillStyle = 'black';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4085 context.textAlign = 'start';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4086 context.font = fontNormal;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4087 context.fillText(hueDisplayName, left_buttons, imageHeight - fontSize * 1.5);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4088
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4089 var gradient = context.createLinearGradient(0, top + height, 0, top);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4090
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4091 for (var i = 0; i < hueStopPositions.length; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4092 gradient.addColorStop(hueStopPositions[i], hueStopHsl[i]);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4093
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4094 var textY = top + (1 - hueStopPositions[i]) * height;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4095
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4096 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4097 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4098 i === 0 ||
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4099 i === hueStopPositions.length - 1 ||
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4100 textY > top + fontSize && textY < top + height - fontSize
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4101 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4102 context.fillText(hueStopText[i], textLeft, textY);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4103 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4104 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4105
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4106 context.fillStyle = gradient;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4107 context.fillRect(left, top, width, height);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4108 context.lineWidth = thinLineWidth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4109 context.strokeRect(left, top, width, height);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4110
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4111 // Sample statistics
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4112 if (currentDataset < numRawSamples) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4113 var stat = stats[currentDataset];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4114 // Define aux position variables
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4115 var statsX = textLeft + 2 * width;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4116 var statsY = top;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4117 var rad = width;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4118 context.font = "Bold 11px Ubuntu";
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4119 var statLabelText;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4120 if (chart === ChartEnum.GENOMIC) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4121 context.fillStyle = 'rgba(170, 20, 255, 1)';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4122 statLabelText = 'Functional sample statistics';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4123 } else if (stat.is_ctrl) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4124 context.fillStyle = 'rgba(50, 50, 200, 1)';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4125 statLabelText = 'Control statistics';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4126 } else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4127 context.fillStyle = 'rgba(200, 50, 50, 1)';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4128 statLabelText = 'Sample statistics';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4129 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4130 context.fillText(statLabelText, statsX + width,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4131 imageHeight - fontSize * 1.5);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4132 // Get the set of strings
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4133 var oldFont = context.font;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4134 context.font = "10.5px monospace"; // In case the next line fails
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4135 context.font = "10.5px Oxygen Mono";
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4136 var readTit;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4137 var nodeTit;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4138 if (chart === ChartEnum.GENOMIC) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4139 readTit = 'Annotations read: '
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4140 nodeTit = 'GOs'
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4141 } else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4142 readTit = 'Sequences read: '
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4143 nodeTit = 'TaxIDs'
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4144 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4145 var statsStrs = [
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4146 readTit + stat.sread,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4147 ' those classified: ' + (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4148 stat.sclas / stat.sread * 100).toPrecision(3) + '%',
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4149 ' those accepted: '
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4150 + (stat.sfilt / stat.sclas * 100).toPrecision(3) + '%',
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4151 'Score average: ' + parseFloat(stat.scavg).toFixed(1),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4152 ' min: ' + parseFloat(stat.scmin).toFixed(1) +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4153 ' max: ' + parseFloat(stat.scmax).toFixed(1),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4154 'Length average: ' + stat.lnavg,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4155 ' min: ' + stat.lnmin + ' max: ' + stat.lnmax,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4156 nodeTit + ' by classifier: ' + stat.tclas,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4157 ' those accepted: ' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4158 (stat.tfilt / stat.tclas * 100).toPrecision(3) + '%',
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4159 ' final: ' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4160 (stat.tfold / stat.tfilt * 100).toPrecision(3) + '% ['
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4161 + stat.tfold + ']'
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4162 ];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4163 var maxTextWidth = Math.max.apply(null, statsStrs.map(function (text) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4164 return context.measureText(text).width
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4165 }));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4166 // Draw the rounded rectangle
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4167 context.lineWidth = 3;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4168 if (chart === ChartEnum.GENOMIC) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4169 context.strokeStyle = '#B20DFF';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4170 context.fillStyle = 'rgba(180, 100, 255, 0.2)';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4171 } else if (stat.is_ctrl) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4172 context.strokeStyle = '#3333CC';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4173 context.fillStyle = 'rgba(0, 255, 255, 0.2)';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4174 } else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4175 context.strokeStyle = '#CC3333';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4176 context.fillStyle = 'rgba(255, 255, 0, 0.2)';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4177 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4178 var box = new roundedRectangle(
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4179 statsX, statsY, 1.2 * maxTextWidth, height, {tr: rad, bl: rad});
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4180 context.stroke();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4181 context.fill();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4182 context.fillStyle = context.strokeStyle = '#222222';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4183 // Write the stats inside
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4184 var statsNum = statsStrs.length;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4185 var statsLeft = statsX + maxTextWidth * 0.1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4186 var statsDelta = height / (statsNum + 1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4187 for (i = 0; i < statsNum; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4188 context.fillText(statsStrs[i],
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4189 statsLeft, top + i * statsDelta + fontSize);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4190 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4191 // Restore font
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4192 context.font = oldFont;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4193 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4194 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4195
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4196 function drawLegendSVG() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4197 var left = imageWidth * .01;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4198 var width = imageHeight * .0265;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4199 var height = imageHeight * .15;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4200 var top = imageHeight - fontSize * 3.5 - height;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4201 var textLeft = left + width + fontSize / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4202
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4203 var text = '';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4204
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4205 text += svgText(hueDisplayName, left, imageHeight - fontSize * 1.5);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4206
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4207 var svgtest =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4208 '<linearGradient id="gradient" x1="0%" y1="100%" x2="0%" y2="0%">';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4209
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4210 for (var i = 0; i < hueStopPositions.length; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4211 svgtest +=
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4212 '<stop offset="' + round(hueStopPositions[i] * 100) +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4213 '%" style="stop-color:' + hueStopHsl[i] + '"/>';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4214
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4215 var textY = top + (1 - hueStopPositions[i]) * height;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4216
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4217 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4218 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4219 i == 0 ||
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4220 i == hueStopPositions.length - 1 ||
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4221 textY > top + fontSize && textY < top + height - fontSize
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4222 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4223 text += svgText(hueStopText[i], textLeft, textY);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4224 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4225 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4226
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4227 svgtest += '</linearGradient>';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4228 //alert(svgtest);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4229 svg += svgtest;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4230 svg +=
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4231 '<rect style="fill:url(#gradient)" x="' + left + '" y="' + top +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4232 '" width="' + width + '" height="' + height + '"/>';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4233
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4234 svg += text;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4235 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4236
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4237 function drawSearchHighlights(label, bubbleX, bubbleY, rotation, center) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4238 var index = -1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4239 var labelLength = label.length;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4240
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4241 bubbleX -= fontSize / 4;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4242
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4243 do {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4244 index = label.toLowerCase().indexOf(search.value.toLowerCase(),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4245 index + 1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4246
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4247 if (index != -1 && index < labelLength) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4248 var dim = context.measureText(label.substr(0, index));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4249 var x = bubbleX + dim.width;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4250
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4251 dim = context.measureText(label.substr(index, search.value.length));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4252
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4253 var y = bubbleY - fontSize * 3 / 4;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4254 var width = dim.width + fontSize / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4255 var height = fontSize * 3 / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4256 var radius = fontSize / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4257
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4258 if (snapshotMode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4259 if (center) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4260 x += centerX;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4261 y += centerY;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4262 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4263
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4264 svg +=
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4265 '<rect x="' + x + '" y="' + y +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4266 '" width="' + width +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4267 '" height="' + height +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4268 '" rx="' + radius +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4269 '" ry="' + radius +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4270 '" class="searchHighlight' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4271 '" transform="rotate(' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4272 degrees(rotation) + ',' + centerX + ',' + centerY +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4273 ')"/>';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4274 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4275 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4276 context.fillStyle = 'rgb(255, 255, 100)';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4277 context.rotate(rotation);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4278 roundedRectangle(x, y, width, height, radius);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4279 context.fill();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4280 context.rotate(-rotation);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4281 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4282 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4283 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4284 while (index != -1 && index < labelLength);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4285 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4286
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4287 function drawText(text, x, y, angle, anchor, bold, color) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4288 if (color == undefined) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4289 color = 'black';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4290 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4291
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4292 if (snapshotMode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4293 svg +=
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4294 '<text x="' + (centerX + x) + '" y="' + (centerY + y) +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4295 '" text-anchor="' + anchor + '" style="font-color:' + color
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4296 + ';font-weight:' + (bold ? 'bold' : 'normal') +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4297 '" transform="rotate(' + degrees(angle) + ',' + centerX
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4298 + ',' + centerY + ')">' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4299 text + '</text>';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4300 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4301 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4302 context.fillStyle = color;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4303 context.textAlign = anchor;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4304 context.font = bold ? fontBold : fontNormal;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4305 context.rotate(angle);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4306 context.fillText(text, x, y);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4307 context.rotate(-angle);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4308 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4309 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4310
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4311 function drawTextPolar
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4312 (text,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4313 innerText,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4314 angle,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4315 radius,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4316 radial,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4317 bubble,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4318 bold,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4319 searchResult,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4320 searchResults) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4321 var anchor;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4322 var textX;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4323 var textY;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4324 var spacer;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4325 var totalText = text;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4326 var flip;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4327
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4328 if (snapshotMode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4329 spacer = '&#160;&#160;&#160;';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4330 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4331 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4332 spacer = ' ';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4333 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4334
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4335 if (radial) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4336 flip = angle < 3 * Math.PI / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4337
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4338 if (flip) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4339 angle -= Math.PI;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4340 radius = -radius;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4341 anchor = 'end';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4342
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4343 if (innerText) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4344 totalText = text + spacer + innerText;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4345 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4346 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4347 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4348 anchor = 'start';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4349
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4350 if (innerText) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4351 totalText = innerText + spacer + text;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4352 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4353 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4354
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4355 textX = radius;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4356 textY = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4357 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4358 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4359 flip = angle < Math.PI || angle > 2 * Math.PI;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4360 var label;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4361
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4362 anchor = snapshotMode ? 'middle' : 'center';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4363
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4364 if (flip) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4365 angle -= Math.PI;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4366 radius = -radius;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4367 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4368
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4369 angle += Math.PI / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4370 textX = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4371 textY = -radius;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4372 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4373
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4374 if (bubble) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4375 var textActual = totalText;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4376
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4377 if (innerText && snapshotMode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4378 if (flip) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4379 textActual = text + ' ' + innerText;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4380 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4381 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4382 textActual = innerText + ' ' + text;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4383 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4384 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4385
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4386 if (searchResults) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4387 textActual = textActual + searchResultString(searchResults);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4388 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4389
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4390 var textWidth = measureText(textActual, bold);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4391
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4392 var x = textX;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4393
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4394 if (anchor == 'end') {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4395 x -= textWidth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4396 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4397 else if (anchor != 'start') {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4398 // centered
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4399 x -= textWidth / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4400 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4401
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4402 drawBubble(angle, radius, textWidth, radial, flip);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4403
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4404 if (searchResult) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4405 drawSearchHighlights
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4406 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4407 textActual,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4408 x,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4409 textY,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4410 angle,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4411 true
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4412 )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4413 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4414 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4415
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4416 if (searchResults) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4417 totalText = totalText + searchResultString(searchResults);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4418 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4419
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4420 drawText(totalText, textX, textY, angle, anchor, bold);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4421
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4422 return flip;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4423 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4424
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4425 function drawTick(start, length, angle) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4426 if (snapshotMode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4427 svg +=
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4428 '<line x1="' + (centerX + start) +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4429 '" y1="' + centerY +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4430 '" x2="' + (centerX + start + length) +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4431 '" y2="' + centerY +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4432 '" class="tick" transform="rotate(' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4433 degrees(angle) + ',' + centerX + ',' + centerY +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4434 ')"/>';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4435 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4436 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4437 context.rotate(angle);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4438 context.beginPath();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4439 context.moveTo(start, 0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4440 context.lineTo(start + length, 0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4441 context.lineWidth = thinLineWidth * 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4442 context.stroke();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4443 context.rotate(-angle);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4444 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4445 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4446
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4447 function drawWedge
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4448 (angleStart,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4449 angleEnd,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4450 radiusInner,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4451 radiusOuter,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4452 color,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4453 patternAlpha,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4454 highlight) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4455 if (context.globalAlpha == 0) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4456 return;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4457 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4458
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4459 if (snapshotMode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4460 if (angleEnd == angleStart + Math.PI * 2) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4461 // fudge to prevent overlap, which causes arc ambiguity
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4462 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4463 angleEnd -= .1 / gRadius;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4464 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4465
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4466 var longArc = angleEnd - angleStart > Math.PI ? 1 : 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4467
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4468 var x1 = centerX + radiusInner * Math.cos(angleStart);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4469 var y1 = centerY + radiusInner * Math.sin(angleStart);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4470
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4471 var x2 = centerX + gRadius * Math.cos(angleStart);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4472 var y2 = centerY + gRadius * Math.sin(angleStart);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4473
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4474 var x3 = centerX + gRadius * Math.cos(angleEnd);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4475 var y3 = centerY + gRadius * Math.sin(angleEnd);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4476
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4477 var x4 = centerX + radiusInner * Math.cos(angleEnd);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4478 var y4 = centerY + radiusInner * Math.sin(angleEnd);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4479
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4480 var dArray =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4481 [
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4482 " M ", x1, ",", y1,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4483 " L ", x2, ",", y2,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4484 " A ", gRadius, ",", gRadius, " 0 ", longArc, ",1 ", x3
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4485 , ",", y3,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4486 " L ", x4, ",", y4,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4487 " A ", radiusInner, ",", radiusInner, " 0 ", longArc,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4488 " 0 ", x1, ",", y1,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4489 " Z "
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4490 ];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4491
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4492 svg +=
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4493 '<path class="' + (highlight ? 'highlight' : 'wedge')
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4494 + '" fill="' + color +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4495 '" d="' + dArray.join('') + '"/>';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4496
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4497 if (patternAlpha > 0) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4498 svg +=
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4499 '<path class="wedge" fill="url(#hiddenPattern)" d="' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4500 dArray.join('') + '"/>';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4501 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4502 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4503 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4504 // fudge to prevent seams during animation
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4505 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4506 angleEnd += 1 / gRadius;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4507
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4508 context.fillStyle = color;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4509 context.beginPath();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4510 context.arc(0, 0, radiusInner, angleStart, angleEnd, false);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4511 context.arc(0, 0, radiusOuter, angleEnd, angleStart, true);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4512 context.closePath();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4513 context.fill();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4514
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4515 if (patternAlpha > 0) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4516 context.save();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4517 context.clip();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4518 context.globalAlpha = patternAlpha;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4519 context.fillStyle = hiddenPattern;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4520 context.fill();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4521 context.restore();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4522 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4523
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4524 if (highlight) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4525 context.lineWidth = highlight ? highlightLineWidth : thinLineWidth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4526 context.strokeStyle = 'black';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4527 context.stroke();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4528 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4529 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4530 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4531
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4532 function expand(node) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4533 selectNode(node);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4534 updateView();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4535 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4536
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4537 function focusLost() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4538 mouseX = -1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4539 mouseY = -1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4540 checkHighlight();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4541 document.body.style.cursor = 'auto';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4542 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4543
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4544 function fontSizeDecrease() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4545 if (fontSize > 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4546 fontSize--;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4547 updateViewNeeded = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4548 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4549 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4550
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4551 function fontSizeIncrease() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4552 fontSize++;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4553 updateViewNeeded = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4554 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4555
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4556 function getGetString(name, value, bool) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4557 return name + '=' + (bool ? value ? 'true' : 'false' : value);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4558 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4559
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4560 function hideLink() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4561 hide(linkText);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4562 show(linkButton);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4563 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4564
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4565 function show(object) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4566 object.style.display = 'inline';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4567 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4568
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4569 function hide(object) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4570 object.style.display = 'none';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4571 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4572
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4573 function showLink() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4574 var urlHalves = String(document.location).split('?');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4575 var newGetVariables = new Array();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4576
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4577 newGetVariables.push
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4578 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4579 getGetString('dataset', currentDataset, false),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4580 getGetString('node', selectedNode.id, false),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4581 getGetString('collapse', collapse, true),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4582 getGetString('color', useHue(), true),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4583 getGetString('depth', maxAbsoluteDepth - 1, false),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4584 getGetString('font', fontSize, false),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4585 getGetString('key', showKeys, true)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4586 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4587
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4588 hide(linkButton);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4589 show(linkText);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4590 linkText.value = urlHalves[0] + '?'
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4591 + getVariables.concat(newGetVariables).join('&');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4592 //linkText.disabled = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4593 linkText.focus();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4594 linkText.select();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4595 //linkText.disabled = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4596 // document.location = urlHalves[0] + '?' + getVariables.join('&');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4597 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4598
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4599 function getFirstChild(element) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4600 element = element.firstChild;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4601
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4602 if (element && element.nodeType != 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4603 element = getNextSibling(element);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4604 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4605
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4606 return element;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4607 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4608
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4609 function getNextSibling(element) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4610 do {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4611 element = element.nextSibling;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4612 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4613 while (element && element.nodeType != 1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4614
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4615 return element;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4616 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4617
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4618 function getPercentage(fraction) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4619 return round(fraction * 100);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4620 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4621
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4622 function hslText(hue) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4623 if (1 || snapshotMode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4624 // Safari doesn't seem to allow hsl() in SVG
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4625
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4626 var rgb = hslToRgb(hue, saturation, (lightnessBase + lightnessMax) / 2);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4627
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4628 return rgbText(rgb.r, rgb.g, rgb.b);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4629 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4630 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4631 var hslArray =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4632 [
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4633 'hsl(',
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4634 Math.floor(hue * 360),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4635 ',',
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4636 Math.floor(saturation * 100),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4637 '%,',
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4638 Math.floor((lightnessBase + lightnessMax) * 50),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4639 '%)'
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4640 ];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4641
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4642 return hslArray.join('');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4643 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4644 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4645
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4646 function hslToRgb(h, s, l) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4647 var m1, m2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4648 var r, g, b;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4649
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4650 if (s == 0) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4651 r = g = b = Math.floor((l * 255));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4652 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4653 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4654 if (l <= 0.5) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4655 m2 = l * (s + 1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4656 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4657 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4658 m2 = l + s - l * s;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4659 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4660
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4661 m1 = l * 2 - m2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4662
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4663 r = Math.floor(hueToRgb(m1, m2, h + 1 / 3));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4664 g = Math.floor(hueToRgb(m1, m2, h));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4665 b = Math.floor(hueToRgb(m1, m2, h - 1 / 3));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4666 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4667
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4668 return {r: r, g: g, b: b};
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4669 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4670
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4671 function hueToRgb(m1, m2, hue) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4672 var v;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4673
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4674 while (hue < 0) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4675 hue += 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4676 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4677
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4678 while (hue > 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4679 hue -= 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4680 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4681
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4682 if (6 * hue < 1)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4683 v = m1 + (m2 - m1) * hue * 6;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4684 else if (2 * hue < 1)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4685 v = m2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4686 else if (3 * hue < 2)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4687 v = m1 + (m2 - m1) * (2 / 3 - hue) * 6;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4688 else
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4689 v = m1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4690
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4691 return 255 * v;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4692 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4693
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4694 function interpolateHue(hueStart, hueEnd, valueStart, valueEnd) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4695 // since the gradient will be RGB based, we need to add stops to hit all the
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4696 // colors in the hue spectrum
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4697
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4698 function selective_round(value){
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4699 // Selective round depending on the hue scale width
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4700 if(valueEnd - valueStart < 10){
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4701 return(value.toFixed(1))
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4702 } else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4703 return(round(value))
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4704 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4705 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4706
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4707 hueStopPositions = new Array();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4708 hueStopHsl = new Array();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4709 hueStopText = new Array();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4710
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4711 hueStopPositions.push(0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4712 hueStopHsl.push(hslText(hueStart));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4713 hueStopText.push(selective_round(valueStart));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4714
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4715 for
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4716 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4717 var i = (hueStart > hueEnd ? 5 / 6 : 1 / 6);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4718 (hueStart > hueEnd ? i > 0 : i < 1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4719 i += (hueStart > hueEnd ? -1 : 1) / 6
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4720 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4721 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4722 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4723 hueStart > hueEnd ?
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4724 i > hueEnd && i < hueStart :
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4725 i > hueStart && i < hueEnd
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4726 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4727 hueStopPositions.push(lerp(i, hueStart, hueEnd, 0, 1));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4728 hueStopHsl.push(hslText(i));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4729 hueStopText.push(selective_round(lerp(
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4730 i, hueStart, hueEnd, valueStart, valueEnd)));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4731 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4732 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4733
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4734 hueStopPositions.push(1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4735 hueStopHsl.push(hslText(hueEnd));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4736 hueStopText.push(selective_round(valueEnd));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4737 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4738
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4739 function keyLineAngle(angle, keyAngle, bendRadius, keyX, keyY, pointsX,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4740 pointsY) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4741 if (angle < Math.PI / 2 && keyY < bendRadius * Math.sin(angle)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4742 || angle > Math.PI / 2 && keyY < bendRadius) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4743 return Math.asin(keyY / bendRadius);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4744 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4745 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4746 // find the angle of the normal to a tangent line that goes to
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4747 // the label
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4748
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4749 var textDist = Math.sqrt
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4750 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4751 Math.pow(keyX, 2) +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4752 Math.pow(keyY, 2)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4753 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4754
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4755 var tanAngle = Math.acos(bendRadius / textDist) + keyAngle;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4756
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4757 if (angle < tanAngle || angle < Math.PI / 2)//|| labelLeft < centerX )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4758 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4759 // angle doesn't reach far enough for tangent; collapse and
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4760 // connect directly to label
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4761
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4762 if (keyY / Math.tan(angle) > 0) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4763 pointsX.push(keyY / Math.tan(angle));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4764 pointsY.push(keyY);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4765 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4766 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4767 pointsX.push(bendRadius * Math.cos(angle));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4768 pointsY.push(bendRadius * Math.sin(angle));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4769 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4770
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4771 return angle;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4772 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4773 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4774 return tanAngle;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4775 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4776 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4777 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4778
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4779 function keyOffset() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4780 return imageHeight - (keys - currentKey + 1) * (keySize + keyBuffer) +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4781 keyBuffer - margin;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4782 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4783
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4784 function lerp(value, fromStart, fromEnd, toStart, toEnd) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4785 // Rescale value from source scale [fromStart, fromEnd]
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4786 // to target scale [toStart, toEnd]
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4787 return (value - fromStart) *
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4788 (toEnd - toStart) /
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4789 (fromEnd - fromStart) +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4790 toStart;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4791 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4792
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4793 function createCanvas() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4794 canvas = document.createElement('canvas');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4795 document.body.appendChild(canvas);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4796 context = canvas.getContext('2d');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4797 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4798
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4799 function load() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4800 document.body.style.overflow = "hidden";
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4801 document.body.style.margin = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4802 document.body.style.backgroundColor = '#' + bkgBright;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4803 createCanvas();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4804
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4805 if (context == undefined) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4806 document.body.innerHTML = '\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4807 <br/>Recentrifuge: Sorry, this browser does not support HTML5 (please see \
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4808 <a href="https://github.com/khyox/recentrifuge/wiki/Browser-support">Browser support</a>).\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4809 ';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4810 return;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4811 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4812
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4813 if (typeof context.fillText != 'function') {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4814 document.body.innerHTML = '\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4815 <br/>Recentrifuge: Sorry, this browser does not support HTML5 canvas text (please see \
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4816 <a href="https://github.com/khyox/recentrifuge/wiki/Browser-support">Browser support</a>).\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4817 ';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4818 return;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4819 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4820
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4821 resize();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4822
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4823 var kronaElement = document.getElementsByTagName('krona')[0];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4824
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4825 var magnitudeName;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4826 var hueName;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4827 var hueDefault;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4828 var hueStart;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4829 var hueEnd;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4830 var valueStart;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4831 var valueEnd;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4832
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4833 if (kronaElement.getAttribute('collapse') !== undefined) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4834 collapse = kronaElement.getAttribute('collapse') === 'true';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4835 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4836
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4837 if (kronaElement.getAttribute('key') !== undefined) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4838 showKeys = kronaElement.getAttribute('key') === 'true';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4839 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4840
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4841 if (kronaElement.getAttribute('chart') !== undefined) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4842 switch (kronaElement.getAttribute('chart')) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4843 case 'TAXOMIC':
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4844 chart = ChartEnum.TAXOMIC;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4845 fontFamily = 'Ubuntu'
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4846 fontSize = 11
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4847 break;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4848 case 'GENOMIC':
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4849 chart = ChartEnum.GENOMIC;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4850 fontFamily = 'Saira Condensed'
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4851 fontSize = 12
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4852 break;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4853 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4854 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4855
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4856 for
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4857 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4858 var element = getFirstChild(kronaElement);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4859 element;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4860 element = getNextSibling(element)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4861 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4862 switch (element.tagName.toLowerCase()) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4863 case 'attributes':
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4864 magnitudeName = element.getAttribute('magnitude');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4865 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4866 for
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4867 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4868 var attributeElement = getFirstChild(element);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4869 attributeElement;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4870 attributeElement = getNextSibling(attributeElement)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4871 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4872 var tag = attributeElement.tagName.toLowerCase();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4873
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4874 if (tag == 'attribute') {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4875 var attribute = new Attribute();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4876 attribute.name =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4877 attributeElement.firstChild.nodeValue.toLowerCase();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4878 attribute.displayName =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4879 attributeElement.getAttribute('display');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4880
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4881 if (attributeElement.getAttribute('tip')) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4882 attribute.tip =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4883 attributeElement.getAttribute('tip');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4884 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4885
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4886 if (attributeElement.getAttribute('hrefBase')) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4887 attribute.hrefBase =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4888 attributeElement.getAttribute('hrefBase');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4889 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4890
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4891 if (attributeElement.getAttribute('target')) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4892 attribute.target =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4893 attributeElement.getAttribute('target');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4894 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4895
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4896 if (attribute.name === magnitudeName) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4897 magnitudeIndex = attributes.length;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4898 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4899
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4900 if (attributeElement.getAttribute('listAll')) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4901 attribute.listAll =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4902 attributeElement.getAttribute('listAll').toLowerCase();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4903 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4904 else if (attributeElement.getAttribute('listNode')) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4905 attribute.listNode =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4906 attributeElement.getAttribute('listNode').toLowerCase();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4907 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4908 else if (attributeElement.getAttribute('dataAll')) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4909 attribute.dataAll =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4910 attributeElement.getAttribute('dataAll').toLowerCase();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4911 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4912 else if (attributeElement.getAttribute('dataNode')) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4913 attribute.dataNode =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4914 attributeElement.getAttribute('dataNode').toLowerCase();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4915 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4916
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4917 if (attributeElement.getAttribute('postUrl')) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4918 attribute.postUrl =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4919 attributeElement.getAttribute('postUrl');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4920 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4921
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4922 if (attributeElement.getAttribute('postVar')) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4923 attribute.postVar =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4924 attributeElement.getAttribute('postVar');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4925 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4926
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4927 if (attributeElement.getAttribute('mono')) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4928 attribute.mono = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4929 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4930
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4931 attributes.push(attribute);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4932 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4933 else if (tag == 'list') {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4934 var attribute = new Attribute();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4935
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4936 attribute.name = attributeElement.firstChild.nodeValue;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4937 attribute.list = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4938 attributes.push(attribute);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4939 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4940 else if (tag == 'data') {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4941 var attribute = new Attribute();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4942
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4943 attribute.name = attributeElement.firstChild.nodeValue;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4944 attribute.data = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4945 attributes.push(attribute);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4946
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4947 var enableScript = document.createElement('script');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4948 var date = new Date();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4949 enableScript.src =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4950 attributeElement.getAttribute('enable') + '?' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4951 date.getTime();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4952 document.body.appendChild(enableScript);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4953 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4954 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4955 break;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4956
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4957 case 'color':
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4958 hueName = element.getAttribute('attribute');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4959 hueStart = Number(element.getAttribute('hueStart')) / 360;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4960 hueEnd = Number(element.getAttribute('hueEnd')) / 360;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4961 valueStart = Number(element.getAttribute('valueStart'));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4962 valueEnd = Number(element.getAttribute('valueEnd'));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4963 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4964 interpolateHue(hueStart, hueEnd, valueStart, valueEnd);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4965 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4966 if (element.getAttribute('default') == 'true') {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4967 hueDefault = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4968 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4969 break;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4970
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4971 case 'datasets':
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4972 datasetNames = [];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4973 stats = [];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4974 numRawSamples = element.getAttribute('rawSamples');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4975 var i = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4976 for (var j = getFirstChild(element); j; j = getNextSibling(j)) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4977 var datasetName = j.firstChild.nodeValue;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4978 datasetNames.push(datasetName);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4979 if (i < numRawSamples) { // Get stats of raw samples
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4980 var stat = new SampleStats(
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4981 datasetName,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4982 j.getAttribute('isctr'),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4983 j.getAttribute('sread'),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4984 j.getAttribute('sclas'),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4985 j.getAttribute('sfilt'),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4986 j.getAttribute('scmin'),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4987 j.getAttribute('scavg'),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4988 j.getAttribute('scmax'),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4989 j.getAttribute('lnmin'),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4990 j.getAttribute('lnavg'),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4991 j.getAttribute('lnmax'),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4992 j.getAttribute('tclas'),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4993 j.getAttribute('tfilt'),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4994 j.getAttribute('tfold')
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4995 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4996 stats.push(stat)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4997 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4998 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
4999 datasets = datasetNames.length;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5000 break;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
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':
0
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5003 case 'node':
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5004 head = loadTreeDOM
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5005 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5006 element,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5007 magnitudeName,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5008 hueName,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5009 hueStart,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5010 hueEnd,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5011 valueStart,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5012 valueEnd
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5013 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5014 break;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5015 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5016 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5017
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5018 // get GET options
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5019 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5020 var urlHalves = String(document.location).split('?');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5021 var datasetDefault = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5022 var maxDepthDefault;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5023 var nodeDefault = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5024 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5025 if (urlHalves[1]) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5026 var vars = urlHalves[1].split('&');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5027
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5028 for (i = 0; i < vars.length; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5029 var pair = vars[i].split('=');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5030
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5031 switch (pair[0]) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5032 case 'collapse':
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5033 collapse = pair[1] == 'true';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5034 break;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5035
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5036 case 'color':
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5037 hueDefault = pair[1] == 'true';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5038 break;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5039
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5040 case 'dataset':
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5041 datasetDefault = Number(pair[1]);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5042 break;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5043
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5044 case 'depth':
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5045 maxDepthDefault = Number(pair[1]) + 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5046 break;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5047
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5048 case 'key':
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5049 showKeys = pair[1] == 'true';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5050 break;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5051
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5052 case 'font':
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5053 fontSize = Number(pair[1]);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5054 break;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
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':
0
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5057 case 'node':
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5058 nodeDefault = Number(pair[1]);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5059 break;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5060
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5061 default:
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5062 getVariables.push(pair[0] + '=' + pair[1]);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5063 break;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5064 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5065 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5066 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5067
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5068 addOptionElements(hueName, hueDefault);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5069 if (datasets > 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5070 if (datasets > numRawSamples) { // Check for cross-analysis samples
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5071 selectRank(DEFAULT_RANK);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5072 } else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5073 selectRank(NO_RANK);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5074 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5075 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5076 setCallBacks();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5077
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5078 head.sort();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5079 maxAbsoluteDepth = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5080 selectDataset(datasetDefault);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5081
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5082 if (maxDepthDefault && maxDepthDefault < head.maxDepth) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5083 maxAbsoluteDepth = maxDepthDefault;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5084 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5085 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5086 maxAbsoluteDepth = head.maxDepth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5087 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5088
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5089 selectNode(nodes[nodeDefault]);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5090
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5091 setInterval(update, 20);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5092
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5093 window.onresize = handleResize;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5094 updateMaxAbsoluteDepth();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5095 updateViewNeeded = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5096 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5097
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5098 function loadTreeDOM
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5099 (domNode,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5100 magnitudeName,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5101 hueName,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5102 hueStart,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5103 hueEnd,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5104 valueStart,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5105 valueEnd) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5106 var newNode = new Node();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5107
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5108 newNode.name = domNode.getAttribute('name');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5109
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5110 if (domNode.getAttribute('href')) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5111 newNode.href = domNode.getAttribute('href');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
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 }
0
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5116
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5117 if (hueName) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5118 newNode.hues = new Array();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5119 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5120
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5121 for (var i = getFirstChild(domNode); i; i = getNextSibling(i)) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
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':
0
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5124 case 'node':
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5125 var newChild = loadTreeDOM
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5126 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5127 i,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5128 magnitudeName,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5129 hueName,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5130 hueStart,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5131 hueEnd,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5132 valueStart,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5133 valueEnd
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5134 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5135 newChild.parent = newNode;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5136 newNode.children.push(newChild);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5137 break;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5138
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5139 default:
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5140 var attributeName = i.tagName.toLowerCase();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5141 var index = attributeIndex(attributeName);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5142 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5143 newNode.attributes[index] = new Array();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5144 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5145 for (var j = getFirstChild(i); j; j = getNextSibling(j)) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5146 if (attributes[index] == undefined) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5147 var x = 5;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5148 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5149 if (attributes[index].list) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5150 newNode.attributes[index].push(new Array());
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5151
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5152 for (var k = getFirstChild(j); k; k = getNextSibling(k)) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5153 newNode.attributes[index][
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5154 newNode.attributes[
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5155 index].length - 1].push(
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5156 k.firstChild.nodeValue);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5157 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5158 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5159 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5160 var value = j.firstChild ? j.firstChild.nodeValue : '';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5161
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5162 if (j.getAttribute('href')) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5163 var target;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5164
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5165 if (attributes[index].target) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5166 target = ' target="'
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5167 + attributes[index].target + '"';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5168 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5169
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5170 value = '<a href="' + attributes[index].hrefBase
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5171 + j.getAttribute('href') + '"'
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5172 + target + '>' + value + '</a>';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5173 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5174
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5175 newNode.attributes[index].push(value);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5176 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5177 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5178 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5179 if (attributeName == magnitudeName
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5180 || attributeName == hueName) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5181 for (j = 0; j < datasets; j++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5182 // j is the dataset index (goes from 0 to datasets-1)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5183 var value = newNode.attributes[index][j]
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5184 == undefined ? 0 : Number(newNode.attributes[index][j]);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5185
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5186 newNode.attributes[index][j] = value;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5187
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5188 if (attributeName == hueName) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5189 var hue = lerp
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5190 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5191 value,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5192 valueStart,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5193 valueEnd,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5194 hueStart,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5195 hueEnd
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5196 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5197
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5198 if (hue < hueStart == hueStart < hueEnd) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5199 hue = hueStart;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5200 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5201 else if (hue > hueEnd == hueStart < hueEnd) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5202 hue = hueEnd;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5203 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5204
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5205 newNode.hues[j] = hue;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5206 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5207 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5208
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5209 if (attributeName == hueName) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5210 newNode.hue = new Tween(newNode.hues[0],
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5211 newNode.hues[0]);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5212 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5213 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5214 break;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5215 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5216 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5217
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5218 return newNode;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5219 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5220
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5221 function maxAbsoluteDepthDecrease() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5222 if (maxAbsoluteDepth > 2) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5223 maxAbsoluteDepth--;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5224 head.setMaxDepths();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5225 handleResize();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5226 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5227 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5228
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5229 function maxAbsoluteDepthIncrease() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5230 if (maxAbsoluteDepth < head.maxDepth) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5231 maxAbsoluteDepth++;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5232 head.setMaxDepths();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5233 handleResize();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5234 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5235 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5236
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5237 function measureText(text, bold) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5238 context.font = bold ? fontBold : fontNormal;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5239 var dim = context.measureText(text);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5240 return dim.width;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5241 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5242
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5243 function min(a, b) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5244 return a < b ? a : b;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5245 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5246
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5247 function minWidth() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5248 // Min wedge width (at center) for displaying a node (or for displaying a
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5249 // label if it's at the highest level being viewed, multiplied by 2 to make
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5250 // further calculations simpler
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5251
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5252 return (fontSize * 2.3);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5253 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5254
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5255 function mouseMove(e) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5256 mouseX = e.pageX;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5257 mouseY = e.pageY - headerHeight;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5258 mouseXRel = (mouseX - centerX) * backingScale()
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5259 mouseYRel = (mouseY - centerY) * backingScale()
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5260
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5261 if (head && !quickLook) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5262 checkHighlight();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5263 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5264 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5265
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5266 function mouseClick(e) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5267 // Event listener function for mouse click on CANVAS
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5268 if (highlightedNode == focusNode && focusNode != selectedNode
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5269 || selectedNode.hasParent(highlightedNode)) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5270 if (highlightedNode.hasChildren()) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5271 expand(highlightedNode);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5272 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5273 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5274 else if (progress == 1)//( highlightedNode != selectedNode )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5275 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5276 setFocus(highlightedNode);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5277 // document.body.style.cursor='ew-resize';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5278 draw();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5279 checkHighlight();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5280 var date = new Date();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5281 mouseDownTime = date.getTime();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5282 mouseDown = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5283 var button = undefined;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5284 for (var i = 0; i < canvasButtons.length; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5285 if (canvasButtons[i].is_inside(e.pageX, e.pageY)) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5286 context.strokeStyle = '#CC0000';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5287 context.lineWidth = 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5288 button = canvasButtons[i];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5289 context.strokeRect(button.x, button.y, button.w, button.h);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5290 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5291 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5292 if (button) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5293 // Reorder the array of nodes only when needed
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5294 if (nodesIndex === undefined || !nodes.reduce(
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5295 function (acc, current, index) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5296 // Calculate deviation from id == index for every node
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5297 return acc + Math.abs(current.id - index)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5298 }, 0)) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5299 nodes.sort(function (a, b) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5300 return b.getHue() - a.getHue()
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5301 });
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5302 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5303
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5304 function lookForLeaf(testIndex, reverse) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5305 // Look for nodes without children but with counts
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5306 for (; testIndex >= 0 && testIndex <= nodes.length - 1
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5307 && !nodes[testIndex].isLeaf();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5308 reverse ? testIndex-- : testIndex++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5309 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5310 if (testIndex >= 0 && testIndex <= nodes.length - 1
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5311 && nodes[testIndex].isLeaf()) nodesIndex = testIndex;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5312 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5313
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5314 function lookForNode(testIndex, reverse) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5315 // Look for nodes with counts
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5316 for (; testIndex >= 0 && testIndex <= nodes.length - 1
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5317 && nodes[testIndex].getHue() <= 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5318 reverse ? testIndex-- : testIndex++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5319 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5320 if (testIndex >= 0 && testIndex <= nodes.length - 1
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5321 && nodes[testIndex].getHue() > 0)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5322 nodesIndex = testIndex;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5323 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5324
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5325 switch (button.name) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5326 case 'mostScore':
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5327 nodesIndex = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5328 if (collapseCheckBox.checked) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5329 lookForLeaf(nodesIndex, false);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5330 } else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5331 lookForNode(nodesIndex, false);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5332 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5333 break;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5334 case 'moreScore':
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5335 if (collapseCheckBox.checked) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5336 lookForLeaf(nodesIndex - 1, true);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5337 } else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5338 lookForNode(nodesIndex - 1, true);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5339 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5340 break;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5341 case 'lessScore':
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5342 if (collapseCheckBox.checked) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5343 lookForLeaf(nodesIndex + 1, false);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5344 } else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5345 lookForNode(nodesIndex + 1, false);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5346 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5347 break;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5348 case 'lestScore':
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5349 nodesIndex = nodes.length - 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5350 if (collapseCheckBox.checked) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5351 lookForLeaf(nodesIndex, true);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5352 } else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5353 lookForNode(nodesIndex, true);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5354 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5355 break;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5356 default:
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5357 alert('ERROR! Unknown button in canvas. Ignoring!')
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5358 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5359 search.value = nodes[nodesIndex].name;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5360 onSearchChange();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5361 context.strokeStyle = '#CC0000';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5362 context.lineWidth = 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5363 context.strokeRect(button.x, button.y, button.w, button.h);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5364 setTimeout(function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5365 drawLegend()
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5366 }, 700)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5367 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5368 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5369 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5370
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5371 function mouseUp(e) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5372 if (quickLook) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5373 navigateBack();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5374 quickLook = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5375 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5376
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5377 mouseDown = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5378 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5379
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5380 function navigateBack() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5381 if (nodeHistoryPosition > 0) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5382 nodeHistory[nodeHistoryPosition] = selectedNode;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5383 nodeHistoryPosition--;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5384
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5385 if (nodeHistory[nodeHistoryPosition].collapse) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5386 collapseCheckBox.checked = collapse = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5387 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5388
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5389 setSelectedNode(nodeHistory[nodeHistoryPosition]);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5390 updateDatasetButtons();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5391 updateView();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5392 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5393 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5394
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5395 function navigateUp() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5396 if (selectedNode.getParent()) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5397 selectNode(selectedNode.getParent());
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5398 updateView();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5399 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5400 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5401
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5402 function navigateForward() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5403 if (nodeHistoryPosition < nodeHistory.length - 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5404 nodeHistoryPosition++;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5405 var newNode = nodeHistory[nodeHistoryPosition];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5406
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5407 if (newNode.collapse) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5408 collapseCheckBox.checked = collapse = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5409 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5410
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5411 if (nodeHistoryPosition == nodeHistory.length - 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5412 // this will ensure the forward button is disabled
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5413
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5414 nodeHistory.length = nodeHistoryPosition;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5415 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5416
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5417 setSelectedNode(newNode);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5418 updateDatasetButtons();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5419 updateView();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5420 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5421 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5422
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5423 function nextDataset() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5424 var newDataset = currentDataset;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5425
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5426 do {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5427 if (newDataset === datasets - 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5428 newDataset = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5429 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5430 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5431 newDataset++;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5432 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5433 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5434 while (datasetDropDown.options[newDataset].disabled
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5435 || datasetDropDown.options[newDataset].hidden)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5436
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5437 selectDataset(newDataset);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5438 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5439
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5440 function onDatasetChange() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5441 selectDataset(datasetDropDown.selectedIndex);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5442 nodesIndex = undefined;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5443 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5444
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5445 function onKeyDown(event) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5446 if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5447 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5448 event.keyCode == 37 &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5449 document.activeElement.id != 'search' &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5450 document.activeElement.id != 'linkText'
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5451 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5452 navigateBack();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5453 event.preventDefault();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5454 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5455 else if
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5456 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5457 event.keyCode == 39 &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5458 document.activeElement.id != 'search' &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5459 document.activeElement.id != 'linkText'
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5460 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5461 navigateForward();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5462 event.preventDefault();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5463 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5464 else if (event.keyCode == 38 && datasets > 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5465 prevDataset();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5466
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5467 //if ( document.activeElement.id == 'datasets' )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5468 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5469 event.preventDefault();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5470 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5471 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5472 else if (event.keyCode == 40 && datasets > 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5473 nextDataset();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5474
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5475 //if ( document.activeElement.id == 'datasets' )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5476 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5477 event.preventDefault();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5478 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5479 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5480 else if (event.keyCode == 9 && datasets > 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5481 selectLastDataset();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5482 event.preventDefault();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5483 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5484 else if (event.keyCode == 83) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5485 progress += .2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5486 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5487 else if (event.keyCode == 66) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5488 progress -= .2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5489 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5490 else if (event.keyCode == 70) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5491 progress = 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5492 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5493 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5494
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5495 function onKeyPress(event) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5496 if (event.keyCode == 38 && datasets > 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5497 // prevDataset();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5498
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5499 //if ( document.activeElement.id == 'datasets' )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5500 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5501 event.preventDefault();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5502 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5503 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5504 else if (event.keyCode == 40 && datasets > 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5505 // nextDataset();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5506
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5507 //if ( document.activeElement.id == 'datasets' )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5508 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5509 event.preventDefault();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5510 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5511 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5512 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5513
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5514 function onKeyUp(event) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5515 if (event.keyCode == 27 && document.activeElement.id == 'search') {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5516 search.value = '';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5517 onSearchChange();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5518 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5519 else if (event.keyCode == 38 && datasets > 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5520 // prevDataset();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5521
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5522 //if ( document.activeElement.id == 'datasets' )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5523 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5524 event.preventDefault();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5525 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5526 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5527 else if (event.keyCode == 40 && datasets > 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5528 // nextDataset();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5529
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5530 //if ( document.activeElement.id == 'datasets' )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5531 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5532 event.preventDefault();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5533 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5534 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5535 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5536
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5537 function onRankChange() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5538 selectRank(rankDropDown.value);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5539 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5540
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5541 function onSearchChange() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5542 nSearchResults = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5543 head.search();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5544
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5545 if (search.value == '') {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5546 searchResults.innerHTML = '';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5547 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5548 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5549 searchResults.innerHTML = nSearchResults + ' results';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5550 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5551
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5552 setFocus(selectedNode);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5553 draw();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5554 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5555
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5556 function onSortChange() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5557 head.sort();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5558 head.setMagnitudes(0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5559 handleResize();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5560 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5561
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5562 function post(url, variable, value, postWindow) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5563 var form = document.createElement('form');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5564 var input = document.createElement('input');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5565 var inputDataset = document.createElement('input');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5566
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5567 form.appendChild(input);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5568 form.appendChild(inputDataset);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5569
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5570 form.method = "POST";
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5571 form.action = url;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5572
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5573 if (postWindow == undefined) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5574 form.target = '_blank';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5575 postWindow = window;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5576 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5577
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5578 input.type = 'hidden';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5579 input.name = variable;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5580 input.value = value;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5581
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5582 inputDataset.type = 'hidden';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5583 inputDataset.name = 'dataset';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5584 inputDataset.value = currentDataset;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5585
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5586 postWindow.document.body.appendChild(form);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5587 form.submit();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5588 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5589
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5590 function prevDataset() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5591 var newDataset = currentDataset;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5592
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5593 do {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5594 if (newDataset == 0) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5595 newDataset = datasets - 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5596 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5597 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5598 newDataset--;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5599 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5600 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5601 while (datasetDropDown.options[newDataset].disabled
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5602 || datasetDropDown.options[newDataset].hidden);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5603
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5604 selectDataset(newDataset);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5605 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5606
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5607 function radiusDecrease() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5608 if (bufferFactor < .309) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5609 bufferFactor += .03;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5610 updateViewNeeded = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5611 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5612 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5613
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5614 function radiusIncrease() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5615 if (bufferFactor > .041) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5616 bufferFactor -= .03;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5617 updateViewNeeded = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5618 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5619 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5620
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5621 function resetKeyOffset() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5622 currentKey = 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5623 keyMinTextLeft = centerX + gRadius + buffer - buffer / (keys + 1) /
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5624 2 + fontSize / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5625 keyMinAngle = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5626 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5627
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5628 function rgbText(r, g, b) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5629 var rgbArray =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5630 [
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5631 "rgb(",
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5632 Math.floor(r),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5633 ",",
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5634 Math.floor(g),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5635 ",",
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5636 Math.floor(b),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5637 ")"
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5638 ];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5639
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5640 return rgbArray.join('');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5641 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5642
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5643 function round(number) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5644 if (number >= 1 || number <= -1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5645 return number.toFixed(0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5646 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5647 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5648 return number.toPrecision(1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5649 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5650 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5651
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5652 function roundedRectangle(x, y, width, height, radius, fill, stroke) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5653 // Optionals: radius, stroke, fill
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5654 if (typeof stroke === 'undefined') {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5655 stroke = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5656 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5657 if (typeof radius === 'undefined') {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5658 radius = 5;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5659 } else if (typeof radius === 'number') {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5660 if (radius * 2 > width) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5661 radius = width / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5662 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5663 if (radius * 2 > height) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5664 radius = height / 2;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5665 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5666 radius = {tl: radius, tr: radius, br: radius, bl: radius};
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5667 } else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5668 var defaultRadius = {tl: 0, tr: 0, br: 0, bl: 0};
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5669 for (var side in defaultRadius) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5670 radius[side] = radius[side] || defaultRadius[side];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5671 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5672 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5673
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5674 context.beginPath();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5675 context.arc(x + radius.tl, y + radius.tl, radius.tl,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5676 Math.PI, Math.PI * 3 / 2, false);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5677 context.lineTo(x + width - radius.tr, y);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5678 context.arc(x + width - radius.tr, y + radius.tr, radius.tr,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5679 Math.PI * 3 / 2, Math.PI * 2, false);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5680 context.lineTo(x + width, y + height - radius.br);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5681 context.arc(x + width - radius.br, y + height - radius.br, radius.br,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5682 0, Math.PI / 2, false);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5683 context.lineTo(x + radius.bl, y + height);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5684 context.arc(x + radius.bl, y + height - radius.bl, radius.bl,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5685 Math.PI / 2, Math.PI, false);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5686 context.lineTo(x, y + radius.tl);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5687
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5688 if (fill) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5689 context.fill();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5690 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5691 if (stroke) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5692 context.stroke();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5693 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5694 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5695
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5696 function passClick(e) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5697 mouseClick(e);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5698 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5699
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5700 function searchResultString(results) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5701 var searchResults = this.searchResults;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5702
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5703 if (this.isSearchResult) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5704 // don't count ourselves
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5705 searchResults--;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5706 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5707
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5708 return ' - ' + results + (results > 1 ? ' results' : ' result');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5709 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5710
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5711 function setCallBacks() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5712 canvas.onselectstart = function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5713 return false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5714 } // prevent unwanted highlighting
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5715 options.onselectstart = function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5716 return false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5717 } // prevent unwanted highlighting
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5718 document.onmousemove = mouseMove;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5719 window.onblur = focusLost;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5720 window.onmouseout = focusLost;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5721 document.onkeyup = onKeyUp;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5722 document.onkeydown = onKeyDown;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5723 canvas.onmousedown = mouseClick;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5724 document.onmouseup = mouseUp;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5725 keyControl.onclick = toggleKeys;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5726 collapseCheckBox = document.getElementById('collapse');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5727 collapseCheckBox.checked = collapse;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5728 collapseCheckBox.onclick = handleResize;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5729 collapseCheckBox.onmousedown = suppressEvent;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5730 maxAbsoluteDepthText = document.getElementById('maxAbsoluteDepth');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5731 maxAbsoluteDepthButtonDecrease =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5732 document.getElementById('maxAbsoluteDepthDecrease');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5733 maxAbsoluteDepthButtonIncrease =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5734 document.getElementById('maxAbsoluteDepthIncrease');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5735 maxAbsoluteDepthButtonDecrease.onclick = maxAbsoluteDepthDecrease;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5736 maxAbsoluteDepthButtonIncrease.onclick = maxAbsoluteDepthIncrease;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5737 maxAbsoluteDepthButtonDecrease.onmousedown = suppressEvent;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5738 maxAbsoluteDepthButtonIncrease.onmousedown = suppressEvent;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5739 fontSizeText = document.getElementById('fontSize');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5740 fontSizeButtonDecrease = document.getElementById('fontSizeDecrease');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5741 fontSizeButtonIncrease = document.getElementById('fontSizeIncrease');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5742 fontSizeButtonDecrease.onclick = fontSizeDecrease;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5743 fontSizeButtonIncrease.onclick = fontSizeIncrease;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5744 fontSizeButtonDecrease.onmousedown = suppressEvent;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5745 fontSizeButtonIncrease.onmousedown = suppressEvent;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5746 bkgBrightButtonDecrease = document.getElementById('bkgBrightDecrease');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5747 bkgBrightButtonIncrease = document.getElementById('bkgBrightIncrease');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5748 bkgBrightButtonDecrease.onclick = bkgBrightDecrease;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5749 bkgBrightButtonIncrease.onclick = bkgBrightIncrease;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5750 bkgBrightButtonDecrease.onmousedown = suppressEvent;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5751 bkgBrightButtonIncrease.onmousedown = suppressEvent;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5752 radiusButtonDecrease = document.getElementById('radiusDecrease');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5753 radiusButtonIncrease = document.getElementById('radiusIncrease');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5754 radiusButtonDecrease.onclick = radiusDecrease;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5755 radiusButtonIncrease.onclick = radiusIncrease;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5756 radiusButtonDecrease.onmousedown = suppressEvent;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5757 radiusButtonIncrease.onmousedown = suppressEvent;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5758 maxAbsoluteDepth = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5759 backButton = document.getElementById('back');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5760 backButton.onclick = navigateBack;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5761 backButton.onmousedown = suppressEvent;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5762 forwardButton = document.getElementById('forward');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5763 forwardButton.onclick = navigateForward;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5764 forwardButton.onmousedown = suppressEvent;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5765 snapshotButton = document.getElementById('snapshot');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5766 snapshotButton.onclick = snapshot;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5767 snapshotButton.onmousedown = suppressEvent;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5768 detailsName = document.getElementById('detailsName');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5769 detailsExpand = document.getElementById('detailsExpand');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5770 detailsInfo = document.getElementById('detailsInfo');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5771 search = document.getElementById('search');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5772 search.onkeyup = onSearchChange;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5773 search.onmousedown = suppressEvent;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5774 searchResults = document.getElementById('searchResults');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5775 useHueDiv = document.getElementById('useHueDiv');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5776 linkButton = document.getElementById('linkButton');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5777 linkButton.onclick = showLink;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5778 linkButton.onmousedown = suppressEvent;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5779 linkText = document.getElementById('linkText');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5780 linkText.onblur = hideLink;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5781 linkText.onmousedown = suppressEvent;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5782 hide(linkText);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5783 var helpButton = document.getElementById('help');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5784 helpButton.onmousedown = suppressEvent;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5785 var searchClear = document.getElementById('searchClear');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5786 searchClear.onmousedown = suppressEvent;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5787 if (datasets > 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5788 datasetDropDown.onmousedown = suppressEvent;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5789 var prevDatasetButton = document.getElementById('prevDataset');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5790 prevDatasetButton.onmousedown = suppressEvent;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5791 var nextDatasetButton = document.getElementById('nextDataset');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5792 nextDatasetButton.onmousedown = suppressEvent;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5793 var lastDatasetButton = document.getElementById('lastDataset');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5794 lastDatasetButton.onmousedown = suppressEvent;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5795 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5796
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5797 image = document.getElementById('hiddenImage');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5798
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5799 if (image.complete) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5800 hiddenPattern = context.createPattern(image, 'repeat');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5801 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5802 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5803 image.onload = function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5804 hiddenPattern = context.createPattern(image, 'repeat');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5805 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5806 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5807
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5808 var loadingImageElement = document.getElementById('loadingImage');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5809
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5810 if (loadingImageElement) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5811 loadingImage = loadingImageElement.src;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5812 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5813 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5814
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5815 function selectDataset(newDataset) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5816 lastDataset = currentDataset;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5817 currentDataset = newDataset
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5818 if (datasets > 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5819 datasetDropDown.selectedIndex = currentDataset;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5820 updateDatasetButtons();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5821 datasetAlpha.start = 1.5;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5822 datasetChanged = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5823 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5824 head.setMagnitudes(0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5825 head.setDepth(1, 1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5826 head.setMaxDepths();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5827 handleResize();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5828 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5829
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5830 function selectLastDataset() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5831 selectDataset(lastDataset);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5832 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5833
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5834 function selectNode(newNode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5835 if (selectedNode != newNode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5836 // truncate history at current location to create a new branch
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5837 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5838 nodeHistory.length = nodeHistoryPosition;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5839
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5840 if (selectedNode != 0) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5841 nodeHistory.push(selectedNode);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5842 nodeHistoryPosition++;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5843 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5844
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5845 setSelectedNode(newNode);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5846 //updateView();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5847 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5848
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5849 updateDatasetButtons();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5850 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5851
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5852 function selectRank(rank) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5853 rankDropDown.value = rank;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5854 currentRank = rank;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5855 datasetsVisible = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5856 for (var i = 0; i < datasets; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5857 if (currentRank === 'ALL'
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5858 || i < numRawSamples
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5859 || (currentRank !== NO_RANK && (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5860 datasetNames[i].endsWith('EXCLUSIVE_' + currentRank) ||
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5861 datasetNames[i].endsWith('SHARED_' + currentRank) ||
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5862 datasetNames[i].endsWith('CONTROL_SHARED' + currentRank) ||
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5863 datasetNames[i].endsWith('CTRL_' + currentRank)))) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5864 datasetDropDown.options[i].hidden = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5865 datasetsVisible++;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5866 } else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5867 datasetDropDown.options[i].hidden = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5868 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5869 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5870 if (datasetDropDown.options[currentDataset].hidden === true) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5871 selectDataset(0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5872 } else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5873 selectDataset(currentDataset);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5874 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5875 datasetDropDown.size = (datasetsVisible < DATASET_MAX_SIZE ?
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5876 datasetsVisible : DATASET_MAX_SIZE);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5877 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5878
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5879 function setFocus(node) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5880 if (node == focusNode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5881 // return;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5882 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5883
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5884 focusNode = node;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5885
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5886 if (node.href) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5887 detailsName.innerHTML =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5888 '<a target="_blank" href="' + node.href + '">' + node.name + '</a>';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5889 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5890 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5891 detailsName.innerHTML = node.name;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5892 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5893
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5894 var table = '<table>';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5895
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5896 table += '<tr><td></td></tr>';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5897
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5898 for (var i = 0; i < node.attributes.length; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5899 if (attributes[i].displayName && node.attributes[i] != undefined) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5900 var index = node.attributes[i].length == 1
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5901 && attributes[i].mono ? 0 : currentDataset;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5902
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5903 if (typeof node.attributes[i][currentDataset] == 'number'
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5904 || node.attributes[i][index] != undefined
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5905 && node.attributes[i][currentDataset] != '') {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5906 var value = node.attributes[i][index];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5907
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5908 if (attributes[i].listNode != undefined) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5909 value =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5910 '<a href="" onclick="showList(' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5911 attributeIndex(attributes[i].listNode) + ',' + i +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5912 ',false);return false;" title="Show list">' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5913 value + '</a>';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5914 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5915 else if (attributes[i].listAll != undefined) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5916 value =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5917 '<a href="" onclick="showList(' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5918 attributeIndex(attributes[i].listAll) + ',' + i +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5919 ',true);return false;" title="Show list">' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5920 value + '</a>';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5921 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5922 else if (attributes[i].dataNode != undefined && dataEnabled) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5923 value =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5924 '<a href="" onclick="showData(' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5925 attributeIndex(attributes[i].dataNode) + ',' + i +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5926 ',false);return false;" title="Show data">' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5927 value + '</a>';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5928 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5929 else if (attributes[i].dataAll != undefined && dataEnabled) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5930 value =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5931 '<a href="" onclick="showData(' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5932 attributeIndex(attributes[i].dataAll) + ',' + i +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5933 ',true);return false;" title="Show data">' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5934 value + '</a>';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5935 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5936
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5937 table +=
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5938 '<tr><td class="CellWithTooltip">' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5939 '<strong>' + attributes[i].displayName + ':</strong>' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5940 '<span class="Tooltip">' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5941 attributes[i].tip + '</span>' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5942 '</td><td>' + value + '</td></tr>';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5943 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5944 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5945 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5946
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5947 table += '</table>';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5948 detailsInfo.innerHTML = table;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5949
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5950 detailsExpand.disabled = !focusNode.hasChildren()
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5951 || focusNode == selectedNode;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5952 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5953
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5954 function setSelectedNode(newNode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5955 if (selectedNode && selectedNode.hasParent(newNode)) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5956 zoomOut = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5957 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5958 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5959 zoomOut = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5960 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5961
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5962 selectedNodeLast = selectedNode;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5963 selectedNode = newNode;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5964
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5965 //if ( focusNode != selectedNode )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5966 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5967 setFocus(selectedNode);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5968 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5969 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5970
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5971 function waitForData(dataWindow, target, title, time, postUrl, postVar) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5972 if (nodeData.length == target) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5973 if (postUrl != undefined) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5974 for (var i = 0; i < nodeData.length; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5975 nodeData[i] = nodeData[i].replace(/\n/g, ',');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5976 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5977
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5978 var postString = nodeData.join('');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5979 postString = postString.slice(0, -1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5980
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5981 dataWindow.document.body.removeChild(dataWindow.document.getElementById('loading'));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5982 document.body.removeChild(document.getElementById('data'));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5983
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5984 post(postUrl, postVar, postString, dataWindow);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5985 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5986 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5987 //dataWindow.document.body.removeChild(dataWindow.document.getElementById('loading'));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5988 //document.body.removeChild(document.getElementById('data'));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5989
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5990 dataWindow.document.open();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5991 dataWindow.document.write('<pre>' + nodeData.join('') + '</pre>');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5992 dataWindow.document.close();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5993 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5994
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5995 dataWindow.document.title = title; // replace after document.write()
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5996 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5997 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5998 var date = new Date();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
5999
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6000 if (date.getTime() - time > 10000) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6001 dataWindow.document.body.removeChild(dataWindow.document.getElementById('loading'));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6002 document.body.removeChild(document.getElementById('data'));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6003 dataWindow.document.body.innerHTML =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6004 'Timed out loading supplemental files for:<br/>' + document.location;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6005 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6006 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6007 setTimeout(function () {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6008 waitForData(dataWindow, target, title, time, postUrl, postVar);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6009 }, 100);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6010 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6011 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6012 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6013
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6014 function data(newData) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6015 nodeData.push(newData);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6016 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6017
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6018 function enableData() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6019 dataEnabled = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6020 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6021
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6022 function showData(indexData, indexAttribute, summary) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6023 var dataWindow = window.open('', '_blank');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6024 var title = 'Re@ - ' + attributes[indexAttribute].displayName
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6025 + ' - ' + focusNode.name;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6026 dataWindow.document.title = title;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6027
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6028 nodeData = new Array();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6029
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6030 if (dataWindow && dataWindow.document && dataWindow.document.body != null) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6031 //var loadImage = document.createElement('img');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6032 //loadImage.src = "file://localhost/Users/ondovb/Krona/KronaTools/img/loading.gif";
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6033 //loadImage.id = "loading";
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6034 //loadImage.alt = "Loading...";
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6035 //dataWindow.document.body.appendChild(loadImage);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6036 dataWindow.document.body.innerHTML =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6037 '<img id="loading" src="' + loadingImage + '" alt="Loading..."></img>';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6038 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6039
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6040 var scripts = document.createElement('div');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6041 scripts.id = 'data';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6042 document.body.appendChild(scripts);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6043
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6044 var files = focusNode.getData(indexData, summary);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6045
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6046 var date = new Date();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6047 var time = date.getTime();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6048
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6049 for (var i = 0; i < files.length; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6050 var script = document.createElement('script');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6051 script.src = files[i] + '?' + time;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6052 scripts.appendChild(script);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6053 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6054
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6055 waitForData(dataWindow, files.length, title, time,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6056 attributes[indexAttribute].postUrl, attributes[indexAttribute].postVar);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6057
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6058 return false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6059 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6060
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6061 function showList(indexList, indexAttribute, summary) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6062 var list = focusNode.getList(indexList, summary);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6063
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6064 if (attributes[indexAttribute].postUrl != undefined) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6065 post(attributes[indexAttribute].postUrl,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6066 attributes[indexAttribute].postVar, list.join(','));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6067 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6068 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6069 var dataWindow = window.open('', '_blank');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6070
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6071 if (true || navigator.appName == 'Microsoft Internet Explorer') // :(
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6072 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6073 dataWindow.document.open();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6074 dataWindow.document.write('<pre>' + list.join('\n') + '</pre>');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6075 dataWindow.document.close();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6076 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6077 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6078 var pre = document.createElement('pre');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6079 dataWindow.document.body.appendChild(pre);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6080 pre.innerHTML = list;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6081 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6082
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6083 dataWindow.document.title = 'Re@ - ' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6084 attributes[indexAttribute].displayName + ' - ' + focusNode.name;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6085 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6086 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6087
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6088 function snapshot() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6089 svg = svgHeader();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6090
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6091 resetKeyOffset();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6092
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6093 snapshotMode = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6094
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6095 selectedNode.draw(false, true);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6096 selectedNode.draw(true, true);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6097
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6098 if (focusNode != 0 && focusNode != selectedNode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6099 context.globalAlpha = 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6100 focusNode.drawHighlight(true);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6101 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6102
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6103 if (hueDisplayName && useHue()) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6104 drawLegendSVG();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6105 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6106
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6107 snapshotMode = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6108
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6109 svg += svgFooter();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6110
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6111 var snapshotWindow = window.open('', '_blank', '', 'replace=false');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6112 snapshotWindow.document.write('<html><body>' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6113 '<button title="Download Rec@ntrifuge snapshot as SVG file" ' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6114 'onclick="document.getElementById(\'link\').click()">' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6115 'Download</button><a id="link" href="data:image/svg+xml,' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6116 encodeURIComponent(svg) + '" download="Recfg_snapshot.svg" hidden>' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6117 'Download</a><br></html></body>');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6118 snapshotWindow.document.title = 'Re@ [snapshot] ' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6119 location.href.split("/").slice(-1)[0].split(".html")[0];
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6120 snapshotWindow.document.write(svg);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6121 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6122
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6123 function save() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6124 alert(document.body.innerHTML);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6125 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6126
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6127 function spacer() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6128 if (snapshotMode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6129 return '&#160;&#160;&#160;';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6130 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6131 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6132 return ' ';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6133 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6134 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6135
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6136 function suppressEvent(e) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6137 e.cancelBubble = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6138 if (e.stopPropagation) e.stopPropagation();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6139 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6140
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6141 function svgFooter() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6142 return '</svg>';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6143 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6144
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6145 function svgHeader() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6146 var patternWidth = fontSize * .6;//radius / 50;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6147
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6148 return '\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6149 <?xml version="1.0" standalone="no"?>\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6150 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" \
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6151 "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6152 <svg width="' + imageWidth + '" height="' + imageHeight + '" version="1.1"\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6153 xmlns="http://www.w3.org/2000/svg">\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6154 <title>Rec@ntrifuge (snapshot) - ' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6155 (datasets > 1 ? datasetNames[currentDataset] + ' - ' : '')
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6156 + selectedNode.name +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6157 '</title>\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6158 <defs>\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6159 <style type="text/css">\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6160 @import url("https://fonts.googleapis.com/css?family=' + fontFamily + '");\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6161 text {font-size: ' + fontSize + 'px; font-family: ' + fontFamily
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6162 + '; dominant-baseline:central}\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6163 path {stroke-width:' + thinLineWidth * fontSize / 12 + ';}\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6164 path.wedge {stroke:none}\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6165 path.line {fill:none;stroke:black;}\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6166 line {stroke:black;stroke-width:' + thinLineWidth * fontSize / 12 + ';}\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6167 line.tick {stroke-width:' + thinLineWidth * fontSize / 6 + ';}\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6168 line.pattern {stroke-width:' + thinLineWidth * fontSize / 18 + ';}\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6169 circle {fill:none;stroke:black;stroke-width:' + thinLineWidth
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6170 * fontSize / 12 + ';}\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6171 rect {stroke:black;stroke-width:' + thinLineWidth * fontSize / 12 + ';}\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6172 .highlight {stroke:black;stroke-width:' + highlightLineWidth
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6173 * fontSize / 12 + ';}\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6174 .searchHighlight {fill:rgb(255, 255, 100);stroke:none;}\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6175 </style>\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6176 <pattern id="hiddenPattern" patternUnits="userSpaceOnUse" \
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6177 x="0" y="0" width="' + patternWidth + '" height="' + patternWidth + '">\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6178 <line class="pattern" x1="0" y1="0" x2="' + patternWidth / 2 + '" y2="'
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6179 + patternWidth / 2 + '"/>\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6180 <line class="pattern" x1="' + patternWidth / 2 + '" y1="' + patternWidth +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6181 '" x2="' + patternWidth + '" y2="' + patternWidth / 2 + '"/>\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6182 </pattern>\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6183 </defs>\
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6184 ';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6185 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6186
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6187 function svgText(text, x, y, anchor, bold, color) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6188 if (typeof(anchor) == 'undefined') {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6189 anchor = 'start';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6190 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6191
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6192 if (color == undefined) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6193 color = 'black';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6194 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6195
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6196 return '<text x="' + x + '" y="' + y +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6197 '" style="font-color:' + color + ';font-weight:'
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6198 + (bold ? 'bold' : 'normal') +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6199 '" text-anchor="' + anchor + '">' + text + '</text>';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6200 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6201
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6202 function toggleKeys() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6203 if (showKeys) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6204 keyControl.value = '…';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6205 showKeys = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6206 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6207 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6208 keyControl.value = 'x';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6209 showKeys = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6210 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6211
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6212 updateKeyControl();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6213
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6214 if (progress == 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6215 draw();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6216 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6217 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6218
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6219 function update() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6220 if (!head) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6221 return;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6222 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6223
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6224 if (mouseDown && focusNode != selectedNode) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6225 var date = new Date();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6226
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6227 if (date.getTime() - mouseDownTime > quickLookHoldLength) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6228 if (focusNode.hasChildren()) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6229 expand(focusNode);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6230 quickLook = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6231 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6232 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6233 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6234
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6235 if (updateViewNeeded) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6236 resize();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6237 mouseX = -1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6238 mouseY = -1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6239
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6240 collapse = collapseCheckBox.checked;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6241 compress = true;//compressCheckBox.checked;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6242 shorten = true;//shortenCheckBox.checked;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6243
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6244 checkSelectedCollapse();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6245 updateMaxAbsoluteDepth();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6246
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6247 if (focusNode.getCollapse() || focusNode.depth > maxAbsoluteDepth) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6248 setFocus(selectedNode);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6249 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6250 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6251 setFocus(focusNode);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6252 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6253
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6254 updateView();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6255
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6256 updateViewNeeded = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6257 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6258
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6259 var date = new Date();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6260 progress = (date.getTime() - tweenStartTime) / tweenLength;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6261 // progress += .01;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6262
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6263 if (progress >= 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6264 progress = 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6265 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6266
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6267 if (progress != progressLast) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6268 tweenFactor =// progress;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6269 (1 / (1 + Math.exp(-tweenCurvature * (progress - .5))) - .5) /
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6270 (tweenMax - .5) / 2 + .5;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6271
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6272 if (progress == 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6273 snapshotButton.disabled = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6274 zoomOut = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6275
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6276 //updateKeyControl();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6277
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6278 if (!quickLook) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6279 //checkHighlight();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6280 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6281
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6282
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6283 if (fpsDisplay) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6284 fpsDisplay.innerHTML = 'fps: '
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6285 + Math.round(tweenFrames * 1000 / tweenLength);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6286 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6287 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6288
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6289 draw();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6290 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6291
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6292 progressLast = progress;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6293 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6294
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6295 function updateDatasetButtons() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6296 if (datasets == 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6297 return;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6298 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6299
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6300 var node = selectedNode ? selectedNode : head;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6301
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6302 datasetButtonLast.disabled =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6303 node.attributes[magnitudeIndex][lastDataset] == 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6304
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6305 datasetButtonPrev.disabled = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6306 datasetButtonNext.disabled = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6307
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6308 for (var i = 0; i < datasets; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6309 var disable = node.attributes[magnitudeIndex][i] == 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6310
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6311 datasetDropDown.options[i].disabled = disable;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6312
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6313 if (!disable) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6314 if (i != currentDataset) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6315 datasetButtonPrev.disabled = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6316 datasetButtonNext.disabled = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6317 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6318 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6319 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6320 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6321
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6322 function updateDatasetWidths() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6323 if (datasets > 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6324 for (var i = 0; i < datasets; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6325 context.font = fontBold;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6326 var dim = context.measureText(datasetNames[i]);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6327 datasetWidths[i] = dim.width;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6328 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6329 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6330 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6331
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6332 function updateKeyControl() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6333 if (keys == 0)//|| progress != 1 )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6334 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6335 keyControl.style.visibility = 'hidden';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6336 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6337 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6338 keyControl.style.visibility = 'visible';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6339 keyControl.style.right = margin + 'px';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6340
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6341 if (showKeys) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6342 keyControl.style.top =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6343 imageHeight -
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6344 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6345 keys * (keySize + keyBuffer) -
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6346 keyBuffer +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6347 margin +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6348 keyControl.clientHeight * 1.5
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6349 ) + 'px';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6350 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6351 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6352 keyControl.style.top =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6353 (imageHeight - margin - keyControl.clientHeight) + 'px';
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6354 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6355 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6356 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6357
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6358 function updateView() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6359 if (selectedNode.depth > maxAbsoluteDepth - 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6360 maxAbsoluteDepth = selectedNode.depth + 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6361 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6362
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6363 highlightedNode = selectedNode;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6364
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6365 angleFactor = 2 * Math.PI / (selectedNode.magnitude);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6366
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6367 maxPossibleDepth = Math.floor(gRadius / (fontSize * minRingWidthFactor));
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6368
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6369 if (maxPossibleDepth < 4) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6370 maxPossibleDepth = 4;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6371 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6372
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6373 var minRadiusInner = fontSize * 8 / gRadius;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6374 var minRadiusFirst = fontSize * 6 / gRadius;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6375 var minRadiusOuter = fontSize * 5 / gRadius;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6376
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6377 if (.25 < minRadiusInner) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6378 minRadiusInner = .25;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6379 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6380
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6381 if (.15 < minRadiusFirst) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6382 minRadiusFirst = .15;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6383 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6384
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6385 if (.15 < minRadiusOuter) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6386 minRadiusOuter = .15;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6387 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6388
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6389 // visibility of nodes depends on the depth they are displayed at,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6390 // so we need to set the max depth assuming they can all be displayed
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6391 // and iterate it down based on the deepest child node we can display
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6392 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6393 var maxDepth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6394 var newMaxDepth = selectedNode.getMaxDepth() - selectedNode.getDepth() + 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6395 //
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6396 do {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6397 maxDepth = newMaxDepth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6398
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6399 if (!compress && maxDepth > maxPossibleDepth) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6400 maxDepth = maxPossibleDepth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6401 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6402
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6403 if (compress) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6404 compressedRadii = new Array(maxDepth);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6405
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6406 compressedRadii[0] = minRadiusInner;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6407
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6408 var offset = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6409
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6410 while
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6411 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6412 lerp
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6413 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6414 Math.atan(offset + 2),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6415 Math.atan(offset + 1),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6416 Math.atan(maxDepth + offset - 1),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6417 minRadiusInner,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6418 1 - minRadiusOuter
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6419 ) - minRadiusInner > minRadiusFirst &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6420 offset < 10
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6421 ) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6422 offset++;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6423 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6424
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6425 offset--;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6426
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6427 for (var i = 1; i < maxDepth; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6428 compressedRadii[i] = lerp
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6429 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6430 Math.atan(i + offset),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6431 Math.atan(offset),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6432 Math.atan(maxDepth + offset - 1),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6433 minRadiusInner,
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6434 1 - minRadiusOuter
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6435 )
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6436 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6437 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6438 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6439 nodeRadius = 1 / maxDepth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6440 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6441
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6442 newMaxDepth = selectedNode.maxVisibleDepth(maxDepth);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6443
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6444 if (compress) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6445 if (newMaxDepth <= maxPossibleDepth) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6446 // compress
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6447 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6448 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6449 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6450 if (newMaxDepth > maxPossibleDepth) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6451 newMaxDepth = maxPossibleDepth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6452 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6453 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6454 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6455 while (newMaxDepth < maxDepth);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6456
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6457 maxDisplayDepth = maxDepth;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6458
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6459 lightnessFactor = (lightnessMax - lightnessBase)
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6460 / (maxDepth > 8 ? 8 : maxDepth);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6461 keys = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6462
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6463 nLabelOffsets = new Array(maxDisplayDepth - 1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6464 labelOffsets = new Array(maxDisplayDepth - 1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6465 labelLastNodes = new Array(maxDisplayDepth - 1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6466 labelFirstNodes = new Array(maxDisplayDepth - 1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6467
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6468 for (var i = 0; i < maxDisplayDepth - 1; i++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6469 if (compress) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6470 if (i == maxDisplayDepth - 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6471 nLabelOffsets[i] = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6472 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6473 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6474 var width =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6475 (compressedRadii[i + 1] - compressedRadii[i]) *
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6476 gRadius;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6477
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6478 nLabelOffsets[i] = Math.floor(width / fontSize / 1.2);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6479
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6480 if (nLabelOffsets[i] > 2) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6481 nLabelOffsets[i] = min
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6482 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6483 Math.floor(width / fontSize / 1.75),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6484 5
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6485 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6486 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6487 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6488 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6489 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6490 nLabelOffsets[i] = Math.max
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6491 (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6492 Math.floor(Math.sqrt((nodeRadius * gRadius / fontSize)) * 1.5),
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6493 3
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6494 );
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6495 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6496
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6497 labelOffsets[i] = Math.floor((nLabelOffsets[i] - 1) / 2);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6498 labelLastNodes[i] = new Array(nLabelOffsets[i] + 1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6499 labelFirstNodes[i] = new Array(nLabelOffsets[i] + 1);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6500
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6501 for (var j = 0; j <= nLabelOffsets[i]; j++) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6502 // these arrays will allow nodes with neighboring labels to link to
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6503 // each other to determine max label length
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6504
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6505 labelLastNodes[i][j] = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6506 labelFirstNodes[i][j] = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6507 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6508 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6509
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6510 fontSizeText.innerHTML = fontSize;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6511 fontNormal = fontSize + 'px ' + fontFamily;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6512 context.font = fontNormal;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6513 fontBold = 'bold ' + fontSize + 'px ' + fontFamily;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6514 tickLength = fontSize * .7;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6515
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6516 head.setTargets(0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6517
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6518 keySize = ((imageHeight - margin * 3) * 1 / 2) / keys * 3 / 4;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6519
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6520 if (keySize > fontSize * maxKeySizeFactor) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6521 keySize = fontSize * maxKeySizeFactor;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6522 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6523
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6524 keyBuffer = keySize / 3;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6525
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6526 fontSizeLast = fontSize;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6527
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6528 if (datasetChanged) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6529 datasetChanged = false;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6530 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6531 else {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6532 datasetAlpha.start = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6533 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6534
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6535 var date = new Date();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6536 tweenStartTime = date.getTime();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6537 progress = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6538 tweenFrames = 0;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6539
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6540 updateKeyControl();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6541 updateDatasetWidths();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6542
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6543 document.title = ('Re@ - ' +
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6544 location.href.split("/").slice(-1)[0].split(".html")[0]);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6545 updateNavigationButtons();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6546 snapshotButton.disabled = true;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6547
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6548 maxAbsoluteDepthText.innerHTML = maxAbsoluteDepth - 1;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6549
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6550 maxAbsoluteDepthButtonDecrease.disabled = (maxAbsoluteDepth == 2);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6551 maxAbsoluteDepthButtonIncrease.disabled =
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6552 (maxAbsoluteDepth == head.maxDepth);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6553
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6554 bkgBrightButtonDecrease.disabled = (bkgBright == '555555');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6555 bkgBrightButtonIncrease.disabled = (bkgBright == 'ffffff');
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6556
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6557 if (collapse != collapseLast && search.value != '') {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6558 onSearchChange();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6559 collapseLast = collapse;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6560 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6561 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6562
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6563 function updateMaxAbsoluteDepth() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6564 while (maxAbsoluteDepth > 1 && selectedNode.depth > maxAbsoluteDepth - 1) {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6565 selectedNode = selectedNode.getParent();
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6566 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6567 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6568
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6569 function updateNavigationButtons() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6570 backButton.disabled = (nodeHistoryPosition == 0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6571 // upButton.disabled = (selectedNode.getParent() == 0);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6572 forwardButton.disabled = (nodeHistoryPosition == nodeHistory.length);
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6573 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6574
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6575 function useHue() {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6576 return useHueCheckBox && useHueCheckBox.checked;
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6577 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6578
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6579 /*
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6580 function zoomOut()
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6581 {
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6582 return (
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6583 selectedNodeLast != 0 &&
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6584 selectedNodeLast.getDepth() < selectedNode.getDepth());
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
iuc
parents:
diff changeset
6585 }
09b7b0b2e2c2 planemo upload for repository https://github.com/mesocentre-clermont-auvergne/galaxy-tools/tree/master/tools/recentrifuge commit fdcec50b71967011e4351eb347a9df2840be6bee
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="Kmer coverage (%)" tip="Averaged score of reads assigned to this and child taxa">sco</attribute></attributes><datasets rawSamples="1"><dataset isctr="False" sread="99" sclas="99" sfilt="99" scmin="36" scavg="99.94949494949495" scmax="347" lnmin="198 nt" lnavg="533 nt" lnmax="602 nt" tclas="13" tfilt="13" tfold="1" sclim="None" totnt="52.81 knt">input_dir/kraken_out</dataset></datasets><color attribute="sco" hueStart="0" hueEnd="300" valueStart="13.6" valueEnd="13.6" default="true"> </color><n name="root"><cnt><val>9</val></cnt><una><val></val></una><tid><val href="1">1</val></tid><rnk><val>no_rank</val></rnk><sco><val>13.61</val></sco><n name="Bacteria"><cnt><val>9</val></cnt><una><val></val></una><tid><val href="2">2</val></tid><rnk><val>superkingdom</val></rnk><sco><val>13.61</val></sco><n name="Proteobacteria"><cnt><val>9</val></cnt><una><val></val></una><tid><val href="1224">1224</val></tid><rnk><val>phylum</val></rnk><sco><val>13.61</val></sco><n name="Gammaproteobacteria"><cnt><val>9</val></cnt><una><val></val></una><tid><val href="1236">1236</val></tid><rnk><val>class</val></rnk><sco><val>13.61</val></sco><n name="Enterobacteriales"><cnt><val>9</val></cnt><una><val></val></una><tid><val href="91347">91347</val></tid><rnk><val>order</val></rnk><sco><val>13.61</val></sco><n name="Enterobacteriaceae"><cnt><val>9</val></cnt><una><val>9</val></una><tid><val href="543">543</val></tid><rnk><val>family</val></rnk><sco><val>13.61</val></sco></n></n></n></n></n></n></krona></div></body></html>