Mercurial > repos > crs4 > taxonomy_krona_chart
annotate test-data/krona_test1.html @ 2:50f204c82159 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
author | iuc |
---|---|
date | Wed, 02 Mar 2016 04:49:06 -0500 |
parents | 09552faff9c0 |
children | 1334cb4c6b68 |
rev | line source |
---|---|
1
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
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"> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3 <head> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4 <meta charset="utf-8"/> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5 <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="/> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6 <script id="notfound">window.onload=function(){document.body.innerHTML=""}</script> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
7 <script language="javascript" type="text/javascript"> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
8 {//----------------------------------------------------------------------------- |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
9 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
10 // PURPOSE |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
11 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
12 // Krona is a flexible tool for exploring the relative proportions of |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
13 // hierarchical data, such as metagenomic classifications, using a |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
14 // radial, space-filling display. It is implemented using HTML5 and |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
15 // JavaScript, allowing charts to be explored locally or served over the |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
16 // Internet, requiring only a current version of any major web |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
17 // browser. Krona charts can be created using an Excel template or from |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
18 // common bioinformatic formats using the provided conversion scripts. |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
19 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
20 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
21 // COPYRIGHT LICENSE |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
22 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
23 // Copyright (c) 2011, Battelle National Biodefense Institute (BNBI); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
24 // all rights reserved. Authored by: Brian Ondov, Nicholas Bergman, and |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
25 // Adam Phillippy |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
26 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
27 // This Software was prepared for the Department of Homeland Security |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
28 // (DHS) by the Battelle National Biodefense Institute, LLC (BNBI) as |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
29 // part of contract HSHQDC-07-C-00020 to manage and operate the National |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
30 // Biodefense Analysis and Countermeasures Center (NBACC), a Federally |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
31 // Funded Research and Development Center. |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
32 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
33 // Redistribution and use in source and binary forms, with or without |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
34 // modification, are permitted provided that the following conditions are |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
35 // met: |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
36 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
37 // * Redistributions of source code must retain the above copyright |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
38 // notice, this list of conditions and the following disclaimer. |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
39 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
40 // * Redistributions in binary form must reproduce the above copyright |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
41 // notice, this list of conditions and the following disclaimer in the |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
42 // documentation and/or other materials provided with the distribution. |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
43 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
44 // * Neither the name of the Battelle National Biodefense Institute nor |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
45 // the names of its contributors may be used to endorse or promote |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
46 // products derived from this software without specific prior written |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
47 // permission. |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
48 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
49 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
50 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
51 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
52 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
53 // HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
54 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
55 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
56 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
57 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
58 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
59 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
60 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
61 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
62 // TRADEMARK LICENSE |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
63 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
64 // KRONA(TM) is a trademark of the Department of Homeland Security, and use |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
65 // of the trademark is subject to the following conditions: |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
66 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
67 // * Distribution of the unchanged, official code/software using the |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
68 // KRONA(TM) mark is hereby permitted by the Department of Homeland |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
69 // Security, provided that the software is distributed without charge |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
70 // and modification. |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
71 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
72 // * Distribution of altered source code/software using the KRONA(TM) mark |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
73 // is not permitted unless written permission has been granted by the |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
74 // Department of Homeland Security. |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
75 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
76 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
77 // FOR MORE INFORMATION VISIT |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
78 // |
2
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
79 // https://github.com/marbl/Krona/wiki/ |
1
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
80 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
81 //----------------------------------------------------------------------------- |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
82 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
83 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
84 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
85 var canvas; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
86 var context; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
87 var svg; // for snapshot mode |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
88 var collapse = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
89 var collapseCheckBox; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
90 var collapseLast; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
91 var compress; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
92 var compressCheckBox; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
93 var maxAbsoluteDepthText; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
94 var maxAbsoluteDepthButtonDecrease; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
95 var maxAbsoluteDepthButtonIncrease; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
96 var fontSize = 11; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
97 var fontSizeText; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
98 var fontSizeButtonDecrease; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
99 var fontSizeButtonIncrease; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
100 var fontSizeLast; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
101 var radiusButtonDecrease; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
102 var radiusButtonIncrease; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
103 var shorten; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
104 var shortenCheckBox; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
105 var maxAbsoluteDepth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
106 var backButton; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
107 var upButton; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
108 var forwardButton; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
109 var snapshotButton; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
110 var snapshotMode = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
111 var details; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
112 var detailsName; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
113 var search; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
114 var searchResults; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
115 var nSearchResults; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
116 var useHueCheckBox; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
117 var useHueDiv; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
118 var datasetDropDown; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
119 var datasetButtonLast; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
120 var datasetButtonPrev; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
121 var datasetButtonNext; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
122 var keyControl; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
123 var showKeys = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
124 var linkButton; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
125 var linkText; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
126 var frame; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
127 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
128 // Node references. Note that the meanings of 'selected' and 'focused' are |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
129 // swapped in the docs. |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
130 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
131 var head; // the root of the entire tree |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
132 var selectedNode = 0; // the root of the current view |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
133 var focusNode = 0; // a node chosen for more info (single-click) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
134 var highlightedNode = 0; // mouse hover node |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
135 var highlightingHidden = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
136 var nodes = new Array(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
137 var currentNodeID = 0; // to iterate while loading |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
138 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
139 var nodeHistory = new Array(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
140 var nodeHistoryPosition = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
141 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
142 var dataEnabled = false; // true when supplemental files are present |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
143 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
144 // store non-Krona GET variables so they can be passed on to links |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
145 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
146 var getVariables = new Array(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
147 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
148 // selectedNodeLast is separate from the history, since we need to check |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
149 // properties of the last node viewed when browsing through the history |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
150 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
151 var selectedNodeLast = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
152 var zoomOut = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
153 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
154 // temporary zoom-in while holding the mouse button on a wedge |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
155 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
156 var quickLook = false; // true when in quick look state |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
157 var mouseDown = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
158 var mouseDownTime; // to detect mouse button hold |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
159 var quickLookHoldLength = 200; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
160 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
161 var imageWidth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
162 var imageHeight; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
163 var centerX; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
164 var centerY; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
165 var gRadius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
166 var updateViewNeeded = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
167 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
168 // Determines the angle that the pie chart starts at. 90 degrees makes the |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
169 // center label consistent with the children. |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
170 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
171 var rotationOffset = Math.PI / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
172 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
173 var buffer; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
174 var bufferFactor = .1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
175 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
176 // The maps are the small pie charts showing the current slice being viewed. |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
177 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
178 var mapBuffer = 10; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
179 var mapRadius = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
180 var maxMapRadius = 25; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
181 var mapWidth = 150; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
182 var maxLabelOverhang = Math.PI * 4.18; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
183 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
184 // Keys are the labeled boxes for slices in the highest level that are too thin |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
185 // to label. |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
186 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
187 var maxKeySizeFactor = 2; // will be multiplied by font size |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
188 var keySize; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
189 var keys; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
190 var keyBuffer = 10; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
191 var currentKey; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
192 var keyMinTextLeft; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
193 var keyMinAngle; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
194 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
195 var minRingWidthFactor = 5; // will be multiplied by font size |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
196 var maxPossibleDepth; // the theoretical max that can be displayed |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
197 var maxDisplayDepth; // the actual depth that will be displayed |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
198 var headerHeight = 0;//document.getElementById('options').clientHeight; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
199 var historySpacingFactor = 1.6; // will be multiplied by font size |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
200 var historyAlphaDelta = .25; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
201 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
202 // appearance |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
203 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
204 var lineOpacity = 0.3; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
205 var saturation = 0.5; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
206 var lightnessBase = 0.6; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
207 var lightnessMax = .8; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
208 var thinLineWidth = .3; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
209 var highlightLineWidth = 1.5; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
210 var labelBoxBuffer = 6; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
211 var labelBoxRounding = 15; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
212 var labelWidthFudge = 1.05; // The width of unshortened labels are set slightly |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
213 // longer than the name width so the animation |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
214 // finishes faster. |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
215 var fontNormal; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
216 var fontBold; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
217 var fontFamily = 'sans-serif'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
218 //var fontFaceBold = 'bold Arial'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
219 var nodeRadius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
220 var angleFactor; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
221 var tickLength; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
222 var compressedRadii; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
223 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
224 // colors |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
225 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
226 var highlightFill = 'rgba(255, 255, 255, .3)'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
227 var colorUnclassified = 'rgb(220,220,220)'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
228 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
229 // label staggering |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
230 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
231 var labelOffsets; // will store the current offset at each depth |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
232 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
233 // This will store pointers to the last node that had a label in each offset (or "track") of a |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
234 // each depth. These will be used to shorten neighboring labels that would overlap. |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
235 // The [nLabelNodes] index will store the last node with a radial label. |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
236 // labelFirstNodes is the same, but to check for going all the way around and |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
237 // overlapping the first labels. |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
238 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
239 var labelLastNodes; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
240 var labelFirstNodes; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
241 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
242 var nLabelOffsets = 3; // the number of offsets to use |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
243 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
244 var mouseX = -1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
245 var mouseY = -1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
246 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
247 // tweening |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
248 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
249 var progress = 0; // for tweening; goes from 0 to 1. |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
250 var progressLast = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
251 var tweenFactor = 0; // progress converted by a curve for a smoother effect. |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
252 var tweenLength = 850; // in ms |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
253 var tweenCurvature = 13; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
254 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
255 // tweenMax is used to scale the sigmoid function so its range is [0,1] for the |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
256 // domain [0,1] |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
257 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
258 var tweenMax = 1 / (1 + Math.exp(-tweenCurvature / 2)); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
259 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
260 var tweenStartTime; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
261 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
262 // for framerate debug |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
263 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
264 var tweenFrames = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
265 var fpsDisplay = document.getElementById('frameRate'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
266 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
267 // Arrays to translate xml attribute names into displayable attribute names |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
268 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
269 var attributes = new Array(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
270 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
271 var magnitudeIndex; // the index of attribute arrays used for magnitude |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
272 var membersAssignedIndex; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
273 var membersSummaryIndex; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
274 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
275 // For defining gradients |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
276 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
277 var hueDisplayName; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
278 var hueStopPositions; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
279 var hueStopHues; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
280 var hueStopText; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
281 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
282 // multiple datasets |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
283 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
284 var currentDataset = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
285 var lastDataset = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
286 var datasets = 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
287 var datasetNames; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
288 var datasetSelectSize = 30; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
289 var datasetAlpha = new Tween(0, 0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
290 var datasetWidths = new Array(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
291 var datasetChanged; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
292 var datasetSelectWidth = 50; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
293 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
294 window.onload = load; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
295 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
296 var image; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
297 var hiddenPattern; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
298 var loadingImage; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
299 var logoImage; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
300 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
301 function resize() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
302 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
303 imageWidth = window.innerWidth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
304 imageHeight = window.innerHeight; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
305 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
306 if ( ! snapshotMode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
307 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
308 context.canvas.width = imageWidth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
309 context.canvas.height = imageHeight; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
310 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
311 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
312 if ( datasetDropDown ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
313 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
314 var ratio = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
315 (datasetDropDown.offsetTop + datasetDropDown.clientHeight) * 2 / |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
316 imageHeight; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
317 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
318 if ( ratio > 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
319 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
320 ratio = 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
321 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
322 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
323 ratio = Math.sqrt(ratio); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
324 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
325 datasetSelectWidth = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
326 (datasetDropDown.offsetLeft + datasetDropDown.clientWidth) * ratio; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
327 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
328 var leftMargin = datasets > 1 ? datasetSelectWidth + 30 : 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
329 var minDimension = imageWidth - mapWidth - leftMargin > imageHeight ? |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
330 imageHeight : |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
331 imageWidth - mapWidth - leftMargin; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
332 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
333 maxMapRadius = minDimension * .03; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
334 buffer = minDimension * bufferFactor; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
335 margin = minDimension * .015; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
336 centerX = (imageWidth - mapWidth - leftMargin) / 2 + leftMargin; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
337 centerY = imageHeight / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
338 gRadius = minDimension / 2 - buffer; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
339 //context.font = '11px sans-serif'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
340 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
341 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
342 function handleResize() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
343 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
344 updateViewNeeded = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
345 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
346 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
347 function Attribute() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
348 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
349 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
350 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
351 function Tween(start, end) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
352 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
353 this.start = start; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
354 this.end = end; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
355 this.current = this.start; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
356 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
357 this.current = function() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
358 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
359 if ( progress == 1 || this.start == this.end ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
360 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
361 return this.end; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
362 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
363 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
364 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
365 return this.start + tweenFactor * (this.end - this.start); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
366 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
367 }; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
368 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
369 this.setTarget = function(target) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
370 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
371 this.start = this.current(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
372 this.end = target; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
373 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
374 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
375 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
376 function Node() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
377 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
378 this.id = currentNodeID; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
379 currentNodeID++; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
380 nodes[this.id] = this; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
381 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
382 this.angleStart = new Tween(Math.PI, 0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
383 this.angleEnd = new Tween(Math.PI, 0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
384 this.radiusInner = new Tween(1, 1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
385 this.labelRadius = new Tween(1, 1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
386 this.labelWidth = new Tween(0, 0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
387 this.scale = new Tween(1, 1); // TEMP |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
388 this.radiusOuter = new Tween(1, 1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
389 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
390 this.r = new Tween(255, 255); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
391 this.g = new Tween(255, 255); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
392 this.b = new Tween(255, 255); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
393 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
394 this.alphaLabel = new Tween(0, 1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
395 this.alphaLine = new Tween(0, 1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
396 this.alphaArc = new Tween(0, 0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
397 this.alphaWedge = new Tween(0, 1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
398 this.alphaOther = new Tween(0, 1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
399 this.alphaPattern = new Tween(0, 0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
400 this.children = Array(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
401 this.parent = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
402 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
403 this.attributes = new Array(attributes.length); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
404 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
405 this.addChild = function(child) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
406 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
407 this.children.push(child); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
408 }; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
409 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
410 this.addLabelNode = function(depth, labelOffset) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
411 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
412 if ( labelHeadNodes[depth][labelOffset] == 0 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
413 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
414 // this will become the head node for this list |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
415 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
416 labelHeadNodes[depth][labelOffset] = this; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
417 this.labelPrev = this; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
418 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
419 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
420 var head = labelHeadNodes[depth][labelOffset]; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
421 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
422 this.labelNext = head; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
423 this.labelPrev = head.labelPrev; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
424 head.labelPrev.labelNext = this; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
425 head.labelPrev = this; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
426 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
427 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
428 this.canDisplayDepth = function() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
429 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
430 // whether this node is at a depth that can be displayed, according |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
431 // to the max absolute depth |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
432 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
433 return this.depth <= maxAbsoluteDepth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
434 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
435 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
436 this.canDisplayHistory = function() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
437 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
438 var radiusInner; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
439 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
440 if ( compress ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
441 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
442 radiusInner = compressedRadii[0]; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
443 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
444 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
445 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
446 radiusInner = nodeRadius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
447 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
448 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
449 return ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
450 -this.labelRadius.end * gRadius + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
451 historySpacingFactor * fontSize / 2 < |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
452 radiusInner * gRadius |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
453 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
454 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
455 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
456 this.canDisplayLabelCurrent = function() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
457 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
458 return ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
459 (this.angleEnd.current() - this.angleStart.current()) * |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
460 (this.radiusInner.current() * gRadius + gRadius) >= |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
461 minWidth()); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
462 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
463 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
464 this.checkHighlight = function() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
465 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
466 if ( this.children.length == 0 && this == focusNode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
467 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
468 //return false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
469 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
470 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
471 if ( this.hide ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
472 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
473 return false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
474 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
475 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
476 if ( this.radiusInner.end == 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
477 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
478 // compressed to the outside; don't check |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
479 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
480 return false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
481 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
482 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
483 var highlighted = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
484 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
485 var angleStartCurrent = this.angleStart.current() + rotationOffset; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
486 var angleEndCurrent = this.angleEnd.current() + rotationOffset; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
487 var radiusInner = this.radiusInner.current() * gRadius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
488 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
489 for ( var i = 0; i < this.children.length; i++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
490 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
491 highlighted = this.children[i].checkHighlight(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
492 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
493 if ( highlighted ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
494 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
495 return true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
496 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
497 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
498 |
2
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
499 if ( this.radial ) |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
500 { |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
501 var angleText = (angleStartCurrent + angleEndCurrent) / 2; |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
502 var radiusText = (gRadius + radiusInner) / 2; |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
503 |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
504 context.rotate(angleText); |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
505 context.beginPath(); |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
506 context.moveTo(radiusText, -fontSize); |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
507 context.lineTo(radiusText, fontSize); |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
508 context.lineTo(radiusText + centerX, fontSize); |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
509 context.lineTo(radiusText + centerX, -fontSize); |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
510 context.closePath(); |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
511 context.rotate(-angleText); |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
512 |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
513 if ( context.isPointInPath(mouseX - centerX, mouseY - centerY) ) |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
514 { |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
515 var label = String(this.getPercentage()) + '%' + ' ' + this.name; |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
516 |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
517 if ( this.searchResultChildren() ) |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
518 { |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
519 label += searchResultString(this.searchResultChildren()); |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
520 } |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
521 |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
522 if |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
523 ( |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
524 Math.sqrt((mouseX - centerX) * (mouseX - centerX) + (mouseY - centerY) * (mouseY - centerY)) < |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
525 radiusText + measureText(label) |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
526 ) |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
527 { |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
528 highlighted = true; |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
529 } |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
530 } |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
531 } |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
532 else |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
533 { |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
534 for ( var i = 0; i < this.hiddenLabels.length; i++ ) |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
535 { |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
536 var hiddenLabel = this.hiddenLabels[i]; |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
537 |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
538 context.rotate(hiddenLabel.angle); |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
539 context.beginPath(); |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
540 context.moveTo(gRadius, -fontSize); |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
541 context.lineTo(gRadius, fontSize); |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
542 context.lineTo(gRadius + centerX, fontSize); |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
543 context.lineTo(gRadius + centerX, -fontSize); |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
544 context.closePath(); |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
545 context.rotate(-hiddenLabel.angle); |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
546 |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
547 if ( context.isPointInPath(mouseX - centerX, mouseY - centerY) ) |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
548 { |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
549 var label = String(hiddenLabel.value) + ' more'; |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
550 |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
551 if ( hiddenLabel.search ) |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
552 { |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
553 label += searchResultString(hiddenLabel.search); |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
554 } |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
555 |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
556 if |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
557 ( |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
558 Math.sqrt((mouseX - centerX) * (mouseX - centerX) + (mouseY - centerY) * (mouseY - centerY)) < |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
559 gRadius + fontSize + measureText(label) |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
560 ) |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
561 { |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
562 highlighted = true; |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
563 break; |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
564 } |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
565 } |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
566 } |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
567 } |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
568 |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
569 if ( ! highlighted && this != selectedNode && ! this.getCollapse() ) |
1
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
570 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
571 context.beginPath(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
572 context.arc(0, 0, radiusInner, angleStartCurrent, angleEndCurrent, false); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
573 context.arc(0, 0, gRadius, angleEndCurrent, angleStartCurrent, true); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
574 context.closePath(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
575 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
576 if ( context.isPointInPath(mouseX - centerX, mouseY - centerY) ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
577 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
578 highlighted = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
579 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
580 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
581 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
582 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
583 ! highlighted && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
584 (angleEndCurrent - angleStartCurrent) * |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
585 (radiusInner + gRadius) < |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
586 minWidth() && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
587 this.getDepth() == selectedNode.getDepth() + 1 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
588 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
589 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
590 if ( showKeys && this.checkHighlightKey() ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
591 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
592 highlighted = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
593 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
594 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
595 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
596 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
597 if ( highlighted ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
598 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
599 if ( this != highlightedNode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
600 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
601 // document.body.style.cursor='pointer'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
602 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
603 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
604 highlightedNode = this; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
605 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
606 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
607 return highlighted; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
608 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
609 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
610 this.checkHighlightCenter = function() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
611 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
612 if ( ! this.canDisplayHistory() ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
613 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
614 return; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
615 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
616 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
617 var cx = centerX; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
618 var cy = centerY - this.labelRadius.end * gRadius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
619 //var dim = context.measureText(this.name); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
620 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
621 var width = this.nameWidth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
622 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
623 if ( this.searchResultChildren() ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
624 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
625 var results = searchResultString(this.searchResultChildren()); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
626 var dim = context.measureText(results); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
627 width += dim.width; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
628 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
629 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
630 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
631 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
632 mouseX > cx - width / 2 && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
633 mouseX < cx + width / 2 && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
634 mouseY > cy - historySpacingFactor * fontSize / 2 && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
635 mouseY < cy + historySpacingFactor * fontSize / 2 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
636 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
637 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
638 highlightedNode = this; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
639 return; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
640 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
641 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
642 if ( this.getParent() ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
643 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
644 this.getParent().checkHighlightCenter(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
645 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
646 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
647 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
648 this.checkHighlightKey = function() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
649 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
650 var offset = keyOffset(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
651 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
652 var xMin = imageWidth - keySize - margin - this.keyNameWidth - keyBuffer; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
653 var xMax = imageWidth - margin; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
654 var yMin = offset; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
655 var yMax = offset + keySize; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
656 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
657 currentKey++; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
658 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
659 return ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
660 mouseX > xMin && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
661 mouseX < xMax && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
662 mouseY > yMin && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
663 mouseY < yMax); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
664 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
665 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
666 this.checkHighlightMap = function() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
667 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
668 if ( this.parent ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
669 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
670 this.parent.checkHighlightMap(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
671 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
672 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
673 if ( this.getCollapse() || this == focusNode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
674 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
675 return; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
676 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
677 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
678 var box = this.getMapPosition(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
679 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
680 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
681 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
682 mouseX > box.x - mapRadius && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
683 mouseX < box.x + mapRadius && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
684 mouseY > box.y - mapRadius && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
685 mouseY < box.y + mapRadius |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
686 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
687 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
688 highlightedNode = this; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
689 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
690 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
691 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
692 /* this.collapse = function() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
693 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
694 for (var i = 0; i < this.children.length; i++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
695 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
696 this.children[i] = this.children[i].collapse(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
697 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
698 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
699 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
700 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
701 this.children.length == 1 && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
702 this.children[0].magnitude == this.magnitude |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
703 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
704 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
705 this.children[0].parent = this.parent; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
706 this.children[0].getDepth() = this.parent.getDepth() + 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
707 return this.children[0]; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
708 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
709 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
710 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
711 return this; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
712 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
713 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
714 */ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
715 this.draw = function(labelMode, selected, searchHighlighted) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
716 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
717 var depth = this.getDepth() - selectedNode.getDepth() + 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
718 // var hidden = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
719 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
720 if ( selectedNode == this ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
721 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
722 selected = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
723 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
724 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
725 var angleStartCurrent = this.angleStart.current() + rotationOffset; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
726 var angleEndCurrent = this.angleEnd.current() + rotationOffset; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
727 var radiusInner = this.radiusInner.current() * gRadius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
728 var canDisplayLabelCurrent = this.canDisplayLabelCurrent(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
729 var hiddenSearchResults = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
730 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
731 /* if ( ! this.hide ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
732 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
733 for ( var i = 0; i < this.children.length; i++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
734 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
735 if ( this.children[i].hide && this.children[i].searchResults ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
736 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
737 hiddenSearchResults = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
738 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
739 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
740 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
741 */ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
742 var drawChildren = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
743 ( ! this.hide || ! this.hidePrev && progress < 1 ) && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
744 ( ! this.hideAlone || ! this.hideAlonePrev && progress < 1 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
745 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
746 // if ( this.alphaWedge.current() > 0 || this.alphaLabel.current() > 0 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
747 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
748 var lastChildAngleEnd; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
749 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
750 if ( this.hasChildren() )//canDisplayChildren ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
751 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
752 lastChildAngleEnd = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
753 this.children[this.children.length - 1].angleEnd.current() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
754 + rotationOffset; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
755 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
756 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
757 if ( labelMode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
758 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
759 var drawRadial = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
760 !( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
761 this.parent && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
762 this.parent != selectedNode && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
763 angleEndCurrent == this.parent.angleEnd.current() + rotationOffset |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
764 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
765 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
766 if ( angleStartCurrent != angleEndCurrent ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
767 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
768 this.drawLines(angleStartCurrent, angleEndCurrent, radiusInner, drawRadial, selected); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
769 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
770 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
771 var alphaOtherCurrent = this.alphaOther.current(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
772 var childRadiusInner; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
773 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
774 if ( this == selectedNode || alphaOtherCurrent ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
775 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
776 childRadiusInner = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
777 this.children[this.children.length - 1].radiusInner.current() * gRadius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
778 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
779 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
780 if ( this == selectedNode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
781 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
782 this.drawReferenceRings(childRadiusInner); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
783 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
784 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
785 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
786 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
787 selected && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
788 ! searchHighlighted && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
789 this != selectedNode && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
790 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
791 this.isSearchResult || |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
792 this.hideAlone && this.searchResultChildren() || |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
793 false |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
794 // this.hide && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
795 // this.containsSearchResult |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
796 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
797 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
798 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
799 context.globalAlpha = this.alphaWedge.current(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
800 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
801 drawWedge |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
802 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
803 angleStartCurrent, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
804 angleEndCurrent, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
805 radiusInner, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
806 gRadius, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
807 highlightFill, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
808 0, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
809 true |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
810 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
811 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
812 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
813 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
814 this.keyed && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
815 ! showKeys && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
816 this.searchResults && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
817 ! searchHighlighted && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
818 this != highlightedNode && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
819 this != focusNode |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
820 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
821 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
822 var angle = (angleEndCurrent + angleStartCurrent) / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
823 this.drawLabel(angle, true, false, true, true); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
824 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
825 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
826 //this.drawHighlight(false); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
827 searchHighlighted = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
828 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
829 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
830 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
831 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
832 this == selectedNode || |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
833 // true |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
834 //(canDisplayLabelCurrent) && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
835 this != highlightedNode && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
836 this != focusNode |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
837 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
838 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
839 if ( this.radial != this.radialPrev && this.alphaLabel.end == 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
840 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
841 context.globalAlpha = tweenFactor; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
842 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
843 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
844 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
845 context.globalAlpha = this.alphaLabel.current(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
846 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
847 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
848 this.drawLabel |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
849 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
850 (angleStartCurrent + angleEndCurrent) / 2, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
851 this.hideAlone && this.searchResultChildren() || |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
852 (this.isSearchResult || hiddenSearchResults) && selected, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
853 this == selectedNode && ! this.radial, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
854 selected, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
855 this.radial |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
856 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
857 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
858 if ( this.radial != this.radialPrev && this.alphaLabel.start == 1 && progress < 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
859 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
860 context.globalAlpha = 1 - tweenFactor; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
861 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
862 this.drawLabel |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
863 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
864 (angleStartCurrent + angleEndCurrent) / 2, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
865 (this.isSearchResult || hiddenSearchResults) && selected, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
866 this == selectedNodeLast && ! this.radialPrev, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
867 selected, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
868 this.radialPrev |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
869 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
870 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
871 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
872 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
873 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
874 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
875 alphaOtherCurrent && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
876 lastChildAngleEnd != null |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
877 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
878 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
879 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
880 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
881 (angleEndCurrent - lastChildAngleEnd) * |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
882 (childRadiusInner + gRadius) >= |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
883 minWidth() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
884 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
885 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
886 //context.font = fontNormal; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
887 context.globalAlpha = this.alphaOther.current(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
888 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
889 drawTextPolar |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
890 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
891 this.getUnclassifiedText(), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
892 this.getUnclassifiedPercentage(), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
893 (lastChildAngleEnd + angleEndCurrent) / 2, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
894 (childRadiusInner + gRadius) / 2, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
895 true, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
896 false, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
897 false, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
898 0, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
899 0 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
900 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
901 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
902 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
903 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
904 if ( this == selectedNode && this.keyUnclassified && showKeys ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
905 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
906 this.drawKey |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
907 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
908 (lastChildAngleEnd + angleEndCurrent) / 2, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
909 false, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
910 false |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
911 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
912 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
913 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
914 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
915 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
916 var alphaWedgeCurrent = this.alphaWedge.current(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
917 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
918 if ( alphaWedgeCurrent || this.alphaOther.current() ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
919 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
920 var currentR = this.r.current(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
921 var currentG = this.g.current(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
922 var currentB = this.b.current(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
923 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
924 var fill = rgbText(currentR, currentG, currentB); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
925 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
926 var radiusOuter; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
927 var lastChildAngle; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
928 var truncateWedge = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
929 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
930 this.hasChildren() && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
931 ! this.keyed && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
932 (compress || depth < maxDisplayDepth) && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
933 drawChildren |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
934 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
935 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
936 if ( truncateWedge ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
937 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
938 radiusOuter = this.children[0].radiusInner.current() * gRadius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
939 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
940 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
941 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
942 radiusOuter = gRadius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
943 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
944 /* |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
945 if ( this.hasChildren() ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
946 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
947 radiusOuter = this.children[0].getUncollapsed().radiusInner.current() * gRadius + 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
948 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
949 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
950 { // TEMP |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
951 radiusOuter = radiusInner + nodeRadius * gRadius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
952 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
953 if ( radiusOuter > gRadius ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
954 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
955 radiusOuter = gRadius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
956 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
957 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
958 */ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
959 context.globalAlpha = alphaWedgeCurrent; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
960 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
961 if ( radiusInner != radiusOuter ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
962 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
963 drawWedge |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
964 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
965 angleStartCurrent, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
966 angleEndCurrent, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
967 radiusInner, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
968 radiusOuter,//this.radiusOuter.current() * gRadius, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
969 //'rgba(0, 200, 0, .1)', |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
970 fill, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
971 this.alphaPattern.current() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
972 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
973 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
974 if ( truncateWedge ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
975 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
976 // fill in the extra space if the sum of our childrens' |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
977 // magnitudes is less than ours |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
978 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
979 if ( lastChildAngleEnd < angleEndCurrent )//&& false) // TEMP |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
980 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
981 if ( radiusOuter > 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
982 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
983 // overlap slightly to hide the seam |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
984 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
985 // radiusOuter -= 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
986 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
987 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
988 if ( alphaWedgeCurrent < 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
989 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
990 context.globalAlpha = this.alphaOther.current(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
991 drawWedge |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
992 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
993 lastChildAngleEnd, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
994 angleEndCurrent, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
995 radiusOuter, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
996 gRadius, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
997 colorUnclassified, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
998 0 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
999 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1000 context.globalAlpha = alphaWedgeCurrent; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1001 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1002 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1003 drawWedge |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1004 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1005 lastChildAngleEnd, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1006 angleEndCurrent, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1007 radiusOuter, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1008 gRadius,//this.radiusOuter.current() * gRadius, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1009 //'rgba(200, 0, 0, .1)', |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1010 fill, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1011 this.alphaPattern.current() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1012 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1013 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1014 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1015 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1016 if ( radiusOuter < gRadius ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1017 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1018 // patch up the seam |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1019 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1020 context.beginPath(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1021 context.arc(0, 0, radiusOuter, angleStartCurrent/*lastChildAngleEnd*/, angleEndCurrent, false); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1022 context.strokeStyle = fill; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1023 context.lineWidth = 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1024 context.stroke(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1025 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1026 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1027 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1028 if ( this.keyed && selected && showKeys )//&& progress == 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1029 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1030 this.drawKey |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1031 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1032 (angleStartCurrent + angleEndCurrent) / 2, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1033 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1034 this == highlightedNode || |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1035 this == focusNode || |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1036 this.searchResults |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1037 ), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1038 this == highlightedNode || this == focusNode |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1039 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1040 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1041 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1042 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1043 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1044 |
2
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
1045 this.hiddenLabels = Array(); |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
1046 |
1
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1047 if ( drawChildren ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1048 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1049 // draw children |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1050 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1051 for ( var i = 0; i < this.children.length; i++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1052 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1053 if ( this.drawHiddenChildren(i, selected, labelMode, searchHighlighted) ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1054 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1055 i = this.children[i].hiddenEnd; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1056 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1057 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1058 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1059 this.children[i].draw(labelMode, selected, searchHighlighted); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1060 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1061 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1062 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1063 }; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1064 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1065 this.drawHiddenChildren = function |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1066 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1067 firstHiddenChild, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1068 selected, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1069 labelMode, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1070 searchHighlighted |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1071 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1072 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1073 var firstChild = this.children[firstHiddenChild]; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1074 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1075 if ( firstChild.hiddenEnd == null || firstChild.radiusInner.current() == 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1076 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1077 return false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1078 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1079 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1080 for ( var i = firstHiddenChild; i < firstChild.hiddenEnd; i++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1081 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1082 if ( ! this.children[i].hide || ! this.children[i].hidePrev && progress < 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1083 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1084 return false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1085 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1086 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1087 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1088 var angleStart = firstChild.angleStart.current() + rotationOffset; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1089 var lastChild = this.children[firstChild.hiddenEnd]; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1090 var angleEnd = lastChild.angleEnd.current() + rotationOffset; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1091 var radiusInner = gRadius * firstChild.radiusInner.current(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1092 var hiddenChildren = firstChild.hiddenEnd - firstHiddenChild + 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1093 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1094 if ( labelMode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1095 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1096 var hiddenSearchResults = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1097 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1098 for ( var i = firstHiddenChild; i <= firstChild.hiddenEnd; i++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1099 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1100 hiddenSearchResults += this.children[i].searchResults; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1101 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1102 if ( this.children[i].magnitude == 0 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1103 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1104 hiddenChildren--; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1105 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1106 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1107 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1108 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1109 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1110 selected && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1111 (angleEnd - angleStart) * |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1112 (gRadius + gRadius) >= |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1113 minWidth() || |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1114 this == highlightedNode && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1115 hiddenChildren || |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1116 hiddenSearchResults |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1117 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1118 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1119 context.globalAlpha = this.alphaWedge.current(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1120 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1121 this.drawHiddenLabel |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1122 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1123 angleStart, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1124 angleEnd, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1125 hiddenChildren, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1126 hiddenSearchResults |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1127 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1128 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1129 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1130 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1131 var drawWedges = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1132 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1133 for ( var i = firstHiddenChild; i <= firstChild.hiddenEnd; i++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1134 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1135 // all hidden children must be completely hidden to draw together |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1136 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1137 if ( this.children[i].alphaPattern.current() != this.children[i].alphaWedge.current() ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1138 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1139 drawWedges = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1140 break; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1141 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1142 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1143 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1144 if ( labelMode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1145 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1146 if ( drawWedges ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1147 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1148 var drawRadial = (angleEnd < this.angleEnd.current() + rotationOffset); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1149 this.drawLines(angleStart, angleEnd, radiusInner, drawRadial); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1150 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1151 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1152 if ( hiddenSearchResults && ! searchHighlighted ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1153 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1154 drawWedge |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1155 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1156 angleStart, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1157 angleEnd, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1158 radiusInner, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1159 gRadius,//this.radiusOuter.current() * gRadius, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1160 highlightFill, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1161 0, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1162 true |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1163 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1164 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1165 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1166 else if ( drawWedges ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1167 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1168 context.globalAlpha = this.alphaWedge.current(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1169 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1170 var fill = rgbText |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1171 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1172 firstChild.r.current(), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1173 firstChild.g.current(), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1174 firstChild.b.current() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1175 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1176 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1177 drawWedge |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1178 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1179 angleStart, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1180 angleEnd, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1181 radiusInner, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1182 gRadius,//this.radiusOuter.current() * gRadius, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1183 fill, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1184 context.globalAlpha, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1185 false |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1186 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1187 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1188 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1189 return drawWedges; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1190 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1191 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1192 this.drawHiddenLabel = function(angleStart, angleEnd, value, hiddenSearchResults) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1193 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1194 var textAngle = (angleStart + angleEnd) / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1195 var labelRadius = gRadius + fontSize;//(radiusInner + radius) / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1196 |
2
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
1197 var hiddenLabel = Array(); |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
1198 |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
1199 hiddenLabel.value = value; |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
1200 hiddenLabel.angle = textAngle; |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
1201 hiddenLabel.search = hiddenSearchResults; |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
1202 |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
1203 this.hiddenLabels.push(hiddenLabel); |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
1204 |
1
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1205 drawTick(gRadius - fontSize * .75, fontSize * 1.5, textAngle); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1206 drawTextPolar |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1207 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1208 value.toString() + ' more', |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1209 0, // inner text |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1210 textAngle, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1211 labelRadius, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1212 true, // radial |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1213 hiddenSearchResults, // bubble |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1214 this == highlightedNode || this == focusNode, // bold |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1215 false, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1216 hiddenSearchResults |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1217 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1218 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1219 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1220 this.drawHighlight = function(bold) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1221 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1222 var angleStartCurrent = this.angleStart.current() + rotationOffset; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1223 var angleEndCurrent = this.angleEnd.current() + rotationOffset; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1224 var radiusInner = this.radiusInner.current() * gRadius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1225 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1226 //this.setHighlightStyle(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1227 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1228 if ( this == focusNode && this == highlightedNode && this.hasChildren() ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1229 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1230 // context.fillStyle = "rgba(255, 255, 255, .3)"; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1231 arrow |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1232 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1233 angleStartCurrent, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1234 angleEndCurrent, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1235 radiusInner |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1236 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1237 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1238 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1239 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1240 drawWedge |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1241 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1242 angleStartCurrent, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1243 angleEndCurrent, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1244 radiusInner, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1245 gRadius, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1246 highlightFill, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1247 0, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1248 true |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1249 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1250 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1251 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1252 // check if hidden children should be highlighted |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1253 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1254 for ( var i = 0; i < this.children.length; i++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1255 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1256 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1257 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1258 this.children[i].getDepth() - selectedNode.getDepth() + 1 <= |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1259 maxDisplayDepth && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1260 this.children[i].hiddenEnd != null |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1261 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1262 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1263 var firstChild = this.children[i]; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1264 var lastChild = this.children[firstChild.hiddenEnd]; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1265 var hiddenAngleStart = firstChild.angleStart.current() + rotationOffset; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1266 var hiddenAngleEnd = lastChild.angleEnd.current() + rotationOffset; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1267 var hiddenRadiusInner = gRadius * firstChild.radiusInner.current(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1268 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1269 drawWedge |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1270 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1271 hiddenAngleStart, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1272 hiddenAngleEnd, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1273 hiddenRadiusInner, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1274 gRadius, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1275 'rgba(255, 255, 255, .3)', |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1276 0, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1277 true |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1278 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1279 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1280 if ( false && ! this.searchResults ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1281 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1282 this.drawHiddenLabel |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1283 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1284 hiddenAngleStart, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1285 hiddenAngleEnd, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1286 firstChild.hiddenEnd - i + 1 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1287 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1288 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1289 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1290 i = firstChild.hiddenEnd; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1291 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1292 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1293 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1294 // context.strokeStyle = 'black'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1295 context.fillStyle = 'black'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1296 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1297 var highlight = ! ( progress < 1 && zoomOut && this == selectedNodeLast ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1298 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1299 var angle = (angleEndCurrent + angleStartCurrent) / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1300 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1301 if ( ! (this.keyed && showKeys) ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1302 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1303 this.drawLabel(angle, true, bold, true, this.radial); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1304 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1305 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1306 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1307 this.drawHighlightCenter = function() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1308 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1309 if ( ! this.canDisplayHistory() ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1310 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1311 return; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1312 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1313 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1314 context.lineWidth = highlightLineWidth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1315 context.strokeStyle = 'black'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1316 context.fillStyle = "rgba(255, 255, 255, .6)"; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1317 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1318 context.fillStyle = 'black'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1319 this.drawLabel(3 * Math.PI / 2, true, true, false); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1320 context.font = fontNormal; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1321 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1322 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1323 this.drawKey = function(angle, highlight, bold) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1324 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1325 var offset = keyOffset(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1326 var color; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1327 var colorText = this.magnitude == 0 ? 'gray' : 'black'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1328 var patternAlpha = this.alphaPattern.end; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1329 var boxLeft = imageWidth - keySize - margin; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1330 var textY = offset + keySize / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1331 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1332 var label; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1333 var keyNameWidth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1334 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1335 if ( this == selectedNode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1336 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1337 color = colorUnclassified; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1338 label = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1339 this.getUnclassifiedText() + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1340 ' ' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1341 this.getUnclassifiedPercentage(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1342 keyNameWidth = measureText(label, false); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1343 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1344 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1345 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1346 label = this.keyLabel; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1347 color = rgbText(this.r.end, this.g.end, this.b.end); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1348 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1349 if ( highlight ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1350 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1351 if ( this.searchResultChildren() ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1352 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1353 label = label + searchResultString(this.searchResultChildren()); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1354 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1355 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1356 keyNameWidth = measureText(label, bold); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1357 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1358 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1359 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1360 keyNameWidth = this.keyNameWidth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1361 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1362 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1363 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1364 var textLeft = boxLeft - keyBuffer - keyNameWidth - fontSize / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1365 var labelLeft = textLeft; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1366 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1367 if ( labelLeft > keyMinTextLeft - fontSize / 2 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1368 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1369 keyMinTextLeft -= fontSize / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1370 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1371 if ( keyMinTextLeft < centerX - gRadius + fontSize / 2 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1372 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1373 keyMinTextLeft = centerX - gRadius + fontSize / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1374 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1375 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1376 labelLeft = keyMinTextLeft; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1377 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1378 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1379 var lineX = new Array(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1380 var lineY = new Array(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1381 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1382 var bendRadius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1383 var keyAngle = Math.atan((textY - centerY) / (labelLeft - centerX)); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1384 var arcAngle; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1385 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1386 if ( keyAngle < 0 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1387 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1388 keyAngle += Math.PI; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1389 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1390 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1391 if ( keyMinAngle == 0 || angle < keyMinAngle ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1392 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1393 keyMinAngle = angle; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1394 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1395 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1396 if ( angle > Math.PI && keyMinAngle > Math.PI ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1397 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1398 // allow lines to come underneath the chart |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1399 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1400 angle -= Math.PI * 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1401 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1402 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1403 lineX.push(Math.cos(angle) * gRadius); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1404 lineY.push(Math.sin(angle) * gRadius); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1405 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1406 if ( angle < keyAngle && textY > centerY + Math.sin(angle) * (gRadius + buffer * (currentKey - 1) / (keys + 1) / 2 + buffer / 2) ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1407 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1408 bendRadius = gRadius + buffer - buffer * currentKey / (keys + 1) / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1409 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1410 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1411 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1412 bendRadius = gRadius + buffer * currentKey / (keys + 1) / 2 + buffer / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1413 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1414 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1415 var outside = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1416 Math.sqrt |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1417 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1418 Math.pow(labelLeft - centerX, 2) + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1419 Math.pow(textY - centerY, 2) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1420 ) > bendRadius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1421 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1422 if ( ! outside ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1423 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1424 arcAngle = Math.asin((textY - centerY) / bendRadius); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1425 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1426 keyMinTextLeft = min(keyMinTextLeft, centerX + bendRadius * Math.cos(arcAngle) - fontSize / 2); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1427 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1428 if ( labelLeft < textLeft && textLeft > centerX + bendRadius * Math.cos(arcAngle) ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1429 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1430 lineX.push(textLeft - centerX); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1431 lineY.push(textY - centerY); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1432 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1433 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1434 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1435 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1436 keyMinTextLeft = min(keyMinTextLeft, labelLeft - fontSize / 2); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1437 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1438 if ( angle < keyAngle ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1439 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1440 // flip everything over y = x |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1441 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1442 arcAngle = Math.PI / 2 - keyLineAngle |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1443 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1444 Math.PI / 2 - angle, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1445 Math.PI / 2 - keyAngle, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1446 bendRadius, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1447 textY - centerY, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1448 labelLeft - centerX, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1449 lineY, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1450 lineX |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1451 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1452 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1453 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1454 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1455 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1456 arcAngle = keyLineAngle |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1457 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1458 angle, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1459 keyAngle, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1460 bendRadius, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1461 labelLeft - centerX, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1462 textY - centerY, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1463 lineX, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1464 lineY |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1465 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1466 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1467 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1468 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1469 if ( labelLeft > centerX + bendRadius * Math.cos(arcAngle) || |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1470 textY > centerY + bendRadius * Math.sin(arcAngle) + .01) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1471 // if ( outside || ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1472 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1473 lineX.push(labelLeft - centerX); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1474 lineY.push(textY - centerY); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1475 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1476 if ( textLeft != labelLeft ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1477 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1478 lineX.push(textLeft - centerX); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1479 lineY.push(textY - centerY); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1480 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1481 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1482 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1483 context.globalAlpha = this.alphaWedge.current(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1484 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1485 if ( snapshotMode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1486 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1487 var labelSVG; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1488 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1489 if ( this == selectedNode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1490 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1491 labelSVG = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1492 this.getUnclassifiedText() + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1493 spacer() + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1494 this.getUnclassifiedPercentage(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1495 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1496 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1497 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1498 labelSVG = this.name + spacer() + this.getPercentage() + '%'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1499 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1500 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1501 svg += |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1502 '<rect fill="' + color + '" ' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1503 'x="' + boxLeft + '" y="' + offset + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1504 '" width="' + keySize + '" height="' + keySize + '"/>'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1505 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1506 if ( patternAlpha ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1507 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1508 svg += |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1509 '<rect fill="url(#hiddenPattern)" style="stroke:none" ' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1510 'x="' + boxLeft + '" y="' + offset + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1511 '" width="' + keySize + '" height="' + keySize + '"/>'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1512 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1513 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1514 svg += |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1515 '<path class="line' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1516 (highlight ? ' highlight' : '') + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1517 '" d="M ' + (lineX[0] + centerX) + ',' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1518 (lineY[0] + centerY); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1519 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1520 if ( angle != arcAngle ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1521 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1522 svg += |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1523 ' L ' + (centerX + bendRadius * Math.cos(angle)) + ',' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1524 (centerY + bendRadius * Math.sin(angle)) + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1525 ' A ' + bendRadius + ',' + bendRadius + ' 0 ' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1526 '0,' + (angle > arcAngle ? '0' : '1') + ' ' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1527 (centerX + bendRadius * Math.cos(arcAngle)) + ',' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1528 (centerY + bendRadius * Math.sin(arcAngle)); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1529 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1530 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1531 for ( var i = 1; i < lineX.length; i++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1532 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1533 svg += |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1534 ' L ' + (centerX + lineX[i]) + ',' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1535 (centerY + lineY[i]); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1536 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1537 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1538 svg += '"/>'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1539 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1540 if ( highlight ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1541 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1542 if ( this.searchResultChildren() ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1543 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1544 labelSVG = labelSVG + searchResultString(this.searchResultChildren()); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1545 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1546 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1547 drawBubbleSVG |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1548 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1549 boxLeft - keyBuffer - keyNameWidth - fontSize / 2, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1550 textY - fontSize, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1551 keyNameWidth + fontSize, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1552 fontSize * 2, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1553 fontSize, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1554 0 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1555 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1556 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1557 if ( this.isSearchResult ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1558 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1559 drawSearchHighlights |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1560 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1561 label, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1562 boxLeft - keyBuffer - keyNameWidth, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1563 textY, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1564 0 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1565 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1566 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1567 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1568 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1569 svg += svgText(labelSVG, boxLeft - keyBuffer, textY, 'end', bold, colorText); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1570 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1571 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1572 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1573 context.fillStyle = color; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1574 context.translate(-centerX, -centerY); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1575 context.strokeStyle = 'black'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1576 context.globalAlpha = 1;//this.alphaWedge.current(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1577 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1578 context.fillRect(boxLeft, offset, keySize, keySize); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1579 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1580 if ( patternAlpha ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1581 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1582 context.globalAlpha = patternAlpha; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1583 context.fillStyle = hiddenPattern; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1584 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1585 // make clipping box for Firefox performance |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1586 context.beginPath(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1587 context.moveTo(boxLeft, offset); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1588 context.lineTo(boxLeft + keySize, offset); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1589 context.lineTo(boxLeft + keySize, offset + keySize); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1590 context.lineTo(boxLeft, offset + keySize); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1591 context.closePath(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1592 context.save(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1593 context.clip(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1594 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1595 context.fillRect(boxLeft, offset, keySize, keySize); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1596 context.fillRect(boxLeft, offset, keySize, keySize); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1597 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1598 context.restore(); // remove clipping region |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1599 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1600 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1601 if ( highlight ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1602 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1603 this.setHighlightStyle(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1604 context.fillRect(boxLeft, offset, keySize, keySize); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1605 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1606 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1607 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1608 context.lineWidth = thinLineWidth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1609 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1610 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1611 context.strokeRect(boxLeft, offset, keySize, keySize); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1612 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1613 if ( lineX.length ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1614 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1615 context.beginPath(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1616 context.moveTo(lineX[0] + centerX, lineY[0] + centerY); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1617 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1618 context.arc(centerX, centerY, bendRadius, angle, arcAngle, angle > arcAngle); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1619 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1620 for ( var i = 1; i < lineX.length; i++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1621 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1622 context.lineTo(lineX[i] + centerX, lineY[i] + centerY); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1623 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1624 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1625 context.globalAlpha = this == selectedNode ? |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1626 this.children[0].alphaWedge.current() : |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1627 this.alphaWedge.current(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1628 context.lineWidth = highlight ? highlightLineWidth : thinLineWidth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1629 context.stroke(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1630 context.globalAlpha = 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1631 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1632 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1633 if ( highlight ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1634 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1635 drawBubbleCanvas |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1636 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1637 boxLeft - keyBuffer - keyNameWidth - fontSize / 2, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1638 textY - fontSize, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1639 keyNameWidth + fontSize, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1640 fontSize * 2, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1641 fontSize, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1642 0 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1643 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1644 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1645 if ( this.isSearchResult ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1646 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1647 drawSearchHighlights |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1648 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1649 label, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1650 boxLeft - keyBuffer - keyNameWidth, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1651 textY, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1652 0 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1653 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1654 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1655 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1656 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1657 drawText(label, boxLeft - keyBuffer, offset + keySize / 2, 0, 'end', bold, colorText); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1658 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1659 context.translate(centerX, centerY); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1660 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1661 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1662 currentKey++; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1663 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1664 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1665 this.drawLabel = function(angle, bubble, bold, selected, radial) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1666 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1667 if ( context.globalAlpha == 0 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1668 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1669 return; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1670 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1671 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1672 var innerText; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1673 var label; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1674 var radius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1675 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1676 if ( radial ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1677 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1678 radius = (this.radiusInner.current() + 1) * gRadius / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1679 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1680 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1681 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1682 radius = this.labelRadius.current() * gRadius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1683 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1684 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1685 if ( radial && (selected || bubble ) ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1686 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1687 var percentage = this.getPercentage(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1688 innerText = percentage + '%'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1689 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1690 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1691 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1692 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1693 ! radial && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1694 this != selectedNode && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1695 ! bubble && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1696 ( !zoomOut || this != selectedNodeLast) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1697 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1698 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1699 label = this.shortenLabel(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1700 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1701 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1702 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1703 label = this.name; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1704 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1705 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1706 var flipped = drawTextPolar |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1707 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1708 label, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1709 innerText, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1710 angle, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1711 radius, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1712 radial, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1713 bubble, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1714 bold, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1715 // this.isSearchResult && this.shouldAddSearchResultsString() && (!selected || this == selectedNode || highlight), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1716 this.isSearchResult && (!selected || this == selectedNode || bubble), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1717 (this.hideAlone || !selected || this == selectedNode ) ? this.searchResultChildren() : 0 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1718 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1719 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1720 var depth = this.getDepth() - selectedNode.getDepth() + 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1721 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1722 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1723 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1724 ! radial && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1725 ! bubble && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1726 this != selectedNode && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1727 this.angleEnd.end != this.angleStart.end && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1728 nLabelOffsets[depth - 2] > 2 && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1729 this.labelWidth.current() > (this.angleEnd.end - this.angleStart.end) * Math.abs(radius) && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1730 ! ( zoomOut && this == selectedNodeLast ) && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1731 this.labelRadius.end > 0 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1732 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1733 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1734 // name extends beyond wedge; draw tick mark towards the central |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1735 // radius for easier identification |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1736 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1737 var radiusCenter = compress ? |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1738 (compressedRadii[depth - 1] + compressedRadii[depth - 2]) / 2 : |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1739 (depth - .5) * nodeRadius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1740 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1741 if ( this.labelRadius.end > radiusCenter ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1742 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1743 if ( flipped ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1744 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1745 drawTick(radius - tickLength * 1.4 , tickLength, angle); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1746 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1747 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1748 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1749 drawTick(radius - tickLength * 1.7, tickLength, angle); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1750 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1751 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1752 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1753 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1754 if ( flipped ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1755 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1756 drawTick(radius + tickLength * .7, tickLength, angle); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1757 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1758 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1759 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1760 drawTick(radius + tickLength * .4, tickLength, angle); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1761 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1762 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1763 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1764 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1765 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1766 this.drawLines = function(angleStart, angleEnd, radiusInner, drawRadial, selected) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1767 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1768 if ( snapshotMode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1769 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1770 if ( this != selectedNode) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1771 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1772 if ( angleEnd == angleStart + Math.PI * 2 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1773 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1774 // fudge to prevent overlap, which causes arc ambiguity |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1775 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1776 angleEnd -= .1 / gRadius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1777 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1778 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1779 var longArc = angleEnd - angleStart > Math.PI ? 1 : 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1780 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1781 var x1 = centerX + radiusInner * Math.cos(angleStart); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1782 var y1 = centerY + radiusInner * Math.sin(angleStart); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1783 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1784 var x2 = centerX + gRadius * Math.cos(angleStart); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1785 var y2 = centerY + gRadius * Math.sin(angleStart); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1786 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1787 var x3 = centerX + gRadius * Math.cos(angleEnd); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1788 var y3 = centerY + gRadius * Math.sin(angleEnd); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1789 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1790 var x4 = centerX + radiusInner * Math.cos(angleEnd); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1791 var y4 = centerY + radiusInner * Math.sin(angleEnd); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1792 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1793 if ( this.alphaArc.end ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1794 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1795 var dArray = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1796 [ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1797 " M ", x4, ",", y4, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1798 " A ", radiusInner, ",", radiusInner, " 0 ", longArc, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1799 " 0 ", x1, ",", y1 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1800 ]; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1801 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1802 svg += '<path class="line" d="' + dArray.join('') + '"/>'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1803 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1804 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1805 if ( drawRadial && this.alphaLine.end ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1806 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1807 svg += '<line x1="' + x3 + '" y1="' + y3 + '" x2="' + x4 + '" y2="' + y4 + '"/>'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1808 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1809 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1810 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1811 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1812 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1813 context.lineWidth = thinLineWidth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1814 context.strokeStyle = 'black'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1815 context.beginPath(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1816 context.arc(0, 0, radiusInner, angleStart, angleEnd, false); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1817 context.globalAlpha = this.alphaArc.current(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1818 context.stroke(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1819 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1820 if ( drawRadial ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1821 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1822 var x1 = radiusInner * Math.cos(angleEnd); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1823 var y1 = radiusInner * Math.sin(angleEnd); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1824 var x2 = gRadius * Math.cos(angleEnd); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1825 var y2 = gRadius * Math.sin(angleEnd); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1826 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1827 context.beginPath(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1828 context.moveTo(x1, y1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1829 context.lineTo(x2, y2); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1830 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1831 // if ( this.getCollapse() )//( selected && this != selectedNode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1832 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1833 context.globalAlpha = this.alphaLine.current(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1834 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1835 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1836 context.stroke(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1837 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1838 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1839 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1840 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1841 this.drawMap = function(child) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1842 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1843 if ( this.parent ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1844 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1845 this.parent.drawMap(child); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1846 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1847 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1848 if ( this.getCollapse() && this != child || this == focusNode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1849 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1850 return; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1851 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1852 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1853 var angleStart = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1854 (child.baseMagnitude - this.baseMagnitude) / this.magnitude * Math.PI * 2 + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1855 rotationOffset; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1856 var angleEnd = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1857 (child.baseMagnitude - this.baseMagnitude + child.magnitude) / |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1858 this.magnitude * Math.PI * 2 + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1859 rotationOffset; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1860 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1861 var box = this.getMapPosition(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1862 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1863 context.save(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1864 context.fillStyle = 'black'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1865 context.textAlign = 'end'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1866 context.textBaseline = 'middle'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1867 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1868 var textX = box.x - mapRadius - mapBuffer; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1869 var percentage = getPercentage(child.magnitude / this.magnitude); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1870 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1871 var highlight = this == selectedNode || this == highlightedNode; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1872 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1873 if ( highlight ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1874 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1875 context.font = fontBold; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1876 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1877 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1878 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1879 context.font = fontNormal; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1880 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1881 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1882 context.fillText(percentage + '% of', textX, box.y - mapRadius / 3); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1883 context.fillText(this.name, textX, box.y + mapRadius / 3); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1884 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1885 if ( highlight ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1886 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1887 context.font = fontNormal; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1888 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1889 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1890 if ( this == highlightedNode && this != selectedNode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1891 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1892 context.fillStyle = 'rgb(245, 245, 245)'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1893 // context.fillStyle = 'rgb(200, 200, 200)'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1894 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1895 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1896 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1897 context.fillStyle = 'rgb(255, 255, 255)'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1898 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1899 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1900 context.beginPath(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1901 context.arc(box.x, box.y, mapRadius, 0, Math.PI * 2, true); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1902 context.closePath(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1903 context.fill(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1904 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1905 if ( this == selectedNode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1906 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1907 context.lineWidth = 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1908 context.fillStyle = 'rgb(100, 100, 100)'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1909 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1910 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1911 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1912 if ( this == highlightedNode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1913 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1914 context.lineWidth = .2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1915 context.fillStyle = 'rgb(190, 190, 190)'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1916 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1917 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1918 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1919 context.lineWidth = .2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1920 context.fillStyle = 'rgb(200, 200, 200)'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1921 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1922 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1923 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1924 var maxDepth = this.getMaxDepth(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1925 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1926 if ( ! compress && maxDepth > maxPossibleDepth + this.getDepth() - 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1927 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1928 maxDepth = maxPossibleDepth + this.getDepth() - 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1929 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1930 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1931 if ( this.getDepth() < selectedNode.getDepth() ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1932 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1933 if ( child.getDepth() - 1 >= maxDepth ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1934 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1935 maxDepth = child.getDepth(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1936 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1937 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1938 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1939 var radiusInner; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1940 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1941 if ( compress ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1942 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1943 radiusInner = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1944 // Math.atan(child.getDepth() - this.getDepth()) / |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1945 // Math.PI * 2 * .9; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1946 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1947 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1948 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1949 radiusInner = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1950 (child.getDepth() - this.getDepth()) / |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1951 (maxDepth - this.getDepth() + 1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1952 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1953 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1954 context.stroke(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1955 context.beginPath(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1956 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1957 if ( radiusInner == 0 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1958 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1959 context.moveTo(box.x, box.y); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1960 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1961 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1962 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1963 context.arc(box.x, box.y, mapRadius * radiusInner, angleEnd, angleStart, true); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1964 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1965 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1966 context.arc(box.x, box.y, mapRadius, angleStart, angleEnd, false); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1967 context.closePath(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1968 context.fill(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1969 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1970 if ( this == highlightedNode && this != selectedNode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1971 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1972 context.lineWidth = 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1973 context.stroke(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1974 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1975 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1976 context.restore(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1977 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1978 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1979 this.drawReferenceRings = function(childRadiusInner) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1980 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1981 if ( snapshotMode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1982 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1983 svg += |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1984 '<circle cx="' + centerX + '" cy="' + centerY + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1985 '" r="' + childRadiusInner + '"/>'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1986 svg += |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1987 '<circle cx="' + centerX + '" cy="' + centerY + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1988 '" r="' + gRadius + '"/>'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1989 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1990 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1991 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1992 context.globalAlpha = 1 - this.alphaLine.current();//this.getUncollapsed().alphaLine.current(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1993 context.beginPath(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1994 context.arc(0, 0, childRadiusInner, 0, Math.PI * 2, false); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1995 context.stroke(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1996 context.beginPath(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1997 context.arc(0, 0, gRadius, 0, Math.PI * 2, false); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1998 context.stroke(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
1999 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2000 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2001 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2002 this.getCollapse = function() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2003 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2004 return ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2005 collapse && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2006 this.collapse && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2007 this.depth != maxAbsoluteDepth |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2008 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2009 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2010 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2011 this.getDepth = function() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2012 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2013 if ( collapse ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2014 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2015 return this.depthCollapsed; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2016 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2017 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2018 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2019 return this.depth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2020 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2021 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2022 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2023 this.getMagnitude = function() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2024 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2025 return this.attributes[magnitudeIndex][currentDataset]; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2026 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2027 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2028 this.getMapPosition = function() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2029 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2030 return { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2031 x : (details.offsetLeft + details.clientWidth - mapRadius), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2032 y : ((focusNode.getDepth() - this.getDepth()) * |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2033 (mapBuffer + mapRadius * 2) - mapRadius) + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2034 details.clientHeight + details.offsetTop |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2035 }; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2036 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2037 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2038 this.getMaxDepth = function(limit) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2039 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2040 var max; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2041 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2042 if ( collapse ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2043 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2044 return this.maxDepthCollapsed; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2045 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2046 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2047 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2048 if ( this.maxDepth > maxAbsoluteDepth ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2049 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2050 return maxAbsoluteDepth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2051 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2052 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2053 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2054 return this.maxDepth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2055 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2056 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2057 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2058 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2059 this.getData = function(index, summary) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2060 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2061 var files = new Array(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2062 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2063 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2064 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2065 this.attributes[index] != null && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2066 this.attributes[index][currentDataset] != null && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2067 this.attributes[index][currentDataset] != '' |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2068 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2069 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2070 files.push |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2071 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2072 document.location + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2073 '.files/' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2074 this.attributes[index][currentDataset] |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2075 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2076 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2077 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2078 if ( summary ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2079 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2080 for ( var i = 0; i < this.children.length; i++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2081 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2082 files = files.concat(this.children[i].getData(index, true)); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2083 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2084 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2085 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2086 return files; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2087 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2088 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2089 this.getList = function(index, summary) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2090 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2091 var list; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2092 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2093 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2094 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2095 this.attributes[index] != null && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2096 this.attributes[index][currentDataset] != null |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2097 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2098 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2099 list = this.attributes[index][currentDataset]; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2100 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2101 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2102 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2103 list = new Array(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2104 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2105 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2106 if ( summary ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2107 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2108 for ( var i = 0; i < this.children.length; i++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2109 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2110 list = list.concat(this.children[i].getList(index, true)); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2111 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2112 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2113 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2114 return list; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2115 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2116 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2117 this.getParent = function() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2118 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2119 // returns parent, accounting for collapsing or 0 if doesn't exist |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2120 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2121 var parent = this.parent; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2122 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2123 while ( parent != 0 && parent.getCollapse() ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2124 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2125 parent = parent.parent; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2126 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2127 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2128 return parent; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2129 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2130 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2131 this.getPercentage = function() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2132 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2133 return getPercentage(this.magnitude / selectedNode.magnitude); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2134 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2135 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2136 this.getUnclassifiedPercentage = function() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2137 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2138 var lastChild = this.children[this.children.length - 1]; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2139 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2140 return getPercentage |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2141 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2142 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2143 this.baseMagnitude + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2144 this.magnitude - |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2145 lastChild.magnitude - |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2146 lastChild.baseMagnitude |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2147 ) / this.magnitude |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2148 ) + '%'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2149 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2150 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2151 this.getUnclassifiedText = function() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2152 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2153 return '[unassigned '+ this.name + ']'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2154 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2155 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2156 this.getUncollapsed = function() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2157 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2158 // recurse through collapsed children until uncollapsed node is found |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2159 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2160 if ( this.getCollapse() ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2161 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2162 return this.children[0].getUncollapsed(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2163 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2164 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2165 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2166 return this; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2167 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2168 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2169 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2170 this.hasChildren = function() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2171 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2172 return this.children.length && this.depth < maxAbsoluteDepth && this.magnitude; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2173 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2174 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2175 this.hasParent = function(parent) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2176 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2177 if ( this.parent ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2178 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2179 if ( this.parent == parent ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2180 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2181 return true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2182 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2183 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2184 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2185 return this.parent.hasParent(parent); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2186 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2187 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2188 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2189 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2190 return false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2191 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2192 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2193 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2194 this.maxVisibleDepth = function(maxDepth) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2195 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2196 var childInnerRadius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2197 var depth = this.getDepth() - selectedNode.getDepth() + 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2198 var currentMaxDepth = depth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2199 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2200 if ( this.hasChildren() && depth < maxDepth) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2201 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2202 var lastChild = this.children[this.children.length - 1]; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2203 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2204 if ( this.name == 'Pseudomonadaceae' ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2205 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2206 var x = 3; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2207 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2208 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2209 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2210 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2211 lastChild.baseMagnitude + lastChild.magnitude < |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2212 this.baseMagnitude + this.magnitude |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2213 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2214 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2215 currentMaxDepth++; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2216 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2217 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2218 if ( compress ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2219 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2220 childInnerRadius = compressedRadii[depth - 1]; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2221 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2222 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2223 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2224 childInnerRadius = (depth) / maxDepth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2225 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2226 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2227 for ( var i = 0; i < this.children.length; i++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2228 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2229 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2230 (//true || |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2231 this.children[i].magnitude * |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2232 angleFactor * |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2233 (childInnerRadius + 1) * |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2234 gRadius >= |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2235 minWidth() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2236 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2237 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2238 var childMaxDepth = this.children[i].maxVisibleDepth(maxDepth); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2239 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2240 if ( childMaxDepth > currentMaxDepth ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2241 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2242 currentMaxDepth = childMaxDepth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2243 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2244 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2245 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2246 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2247 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2248 return currentMaxDepth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2249 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2250 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2251 this.resetLabelWidth = function() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2252 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2253 var nameWidthOld = this.nameWidth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2254 |
2
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
2255 if ( true || ! this.radial )//&& fontSize != fontSizeLast ) |
1
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2256 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2257 var dim = context.measureText(this.name); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2258 this.nameWidth = dim.width; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2259 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2260 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2261 if ( fontSize != fontSizeLast && this.labelWidth.end == nameWidthOld * labelWidthFudge ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2262 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2263 // font size changed; adjust start of tween to match |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2264 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2265 this.labelWidth.start = this.nameWidth * labelWidthFudge; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2266 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2267 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2268 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2269 this.labelWidth.start = this.labelWidth.current(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2270 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2271 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2272 this.labelWidth.end = this.nameWidth * labelWidthFudge; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2273 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2274 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2275 this.restrictLabelWidth = function(width) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2276 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2277 if ( width < this.labelWidth.end ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2278 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2279 this.labelWidth.end = width; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2280 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2281 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2282 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2283 this.search = function() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2284 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2285 this.isSearchResult = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2286 this.searchResults = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2287 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2288 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2289 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2290 ! this.getCollapse() && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2291 search.value != '' && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2292 this.name.toLowerCase().indexOf(search.value.toLowerCase()) != -1 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2293 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2294 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2295 this.isSearchResult = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2296 this.searchResults = 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2297 nSearchResults++; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2298 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2299 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2300 for ( var i = 0; i < this.children.length; i++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2301 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2302 this.searchResults += this.children[i].search(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2303 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2304 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2305 return this.searchResults; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2306 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2307 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2308 this.searchResultChildren = function() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2309 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2310 if ( this.isSearchResult ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2311 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2312 return this.searchResults - 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2313 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2314 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2315 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2316 return this.searchResults; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2317 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2318 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2319 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2320 this.setDepth = function(depth, depthCollapsed) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2321 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2322 this.depth = depth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2323 this.depthCollapsed = depthCollapsed; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2324 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2325 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2326 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2327 this.children.length == 1 && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2328 // this.magnitude > 0 && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2329 this.children[0].magnitude == this.magnitude && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2330 ( head.children.length > 1 || this.children[0].children.length ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2331 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2332 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2333 this.collapse = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2334 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2335 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2336 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2337 this.collapse = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2338 depthCollapsed++; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2339 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2340 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2341 for ( var i = 0; i < this.children.length; i++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2342 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2343 this.children[i].setDepth(depth + 1, depthCollapsed); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2344 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2345 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2346 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2347 this.setHighlightStyle = function() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2348 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2349 context.lineWidth = highlightLineWidth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2350 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2351 if ( this.hasChildren() || this != focusNode || this != highlightedNode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2352 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2353 context.strokeStyle = 'black'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2354 context.fillStyle = "rgba(255, 255, 255, .3)"; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2355 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2356 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2357 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2358 context.strokeStyle = 'rgb(90,90,90)'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2359 context.fillStyle = "rgba(155, 155, 155, .3)"; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2360 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2361 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2362 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2363 this.setLabelWidth = function(node) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2364 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2365 if ( ! shorten || this.radial ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2366 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2367 return; // don't need to set width |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2368 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2369 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2370 if ( node.hide ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2371 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2372 alert('wtf'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2373 return; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2374 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2375 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2376 var angle = (this.angleStart.end + this.angleEnd.end) / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2377 var a; // angle difference |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2378 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2379 if ( node == selectedNode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2380 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2381 a = Math.abs(angle - node.angleOther); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2382 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2383 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2384 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2385 a = Math.abs(angle - (node.angleStart.end + node.angleEnd.end) / 2); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2386 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2387 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2388 if ( a == 0 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2389 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2390 return; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2391 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2392 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2393 if ( a > Math.PI ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2394 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2395 a = 2 * Math.PI - a; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2396 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2397 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2398 if ( node.radial || node == selectedNode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2399 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2400 var nodeLabelRadius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2401 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2402 if ( node == selectedNode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2403 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2404 // radial 'other' label |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2405 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2406 nodeLabelRadius = (node.children[0].radiusInner.end + 1) / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2407 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2408 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2409 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2410 nodeLabelRadius = (node.radiusInner.end + 1) / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2411 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2412 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2413 if ( a < Math.PI / 2 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2414 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2415 var r = this.labelRadius.end * gRadius + .5 * fontSize |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2416 var hypotenuse = r / Math.cos(a); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2417 var opposite = r * Math.tan(a); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2418 var fontRadius = .8 * fontSize; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2419 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2420 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2421 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2422 nodeLabelRadius * gRadius < hypotenuse && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2423 this.labelWidth.end / 2 + fontRadius > opposite |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2424 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2425 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2426 this.labelWidth.end = 2 * (opposite - fontRadius); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2427 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2428 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2429 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2430 else if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2431 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2432 this.labelRadius.end == node.labelRadius.end && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2433 a < Math.PI / 4 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2434 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2435 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2436 // same radius with small angle; use circumferential approximation |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2437 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2438 var dist = a * this.labelRadius.end * gRadius - fontSize * (1 - a * 4 / Math.PI) * 1.3; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2439 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2440 if ( this.labelWidth.end < dist ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2441 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2442 node.restrictLabelWidth((dist - this.labelWidth.end / 2) * 2); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2443 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2444 else if ( node.labelWidth.end < dist ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2445 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2446 this.restrictLabelWidth((dist - node.labelWidth.end / 2) * 2); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2447 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2448 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2449 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2450 // both labels reach halfway point; restrict both |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2451 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2452 this.labelWidth.end = dist; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2453 node.labelWidth.end = dist |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2454 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2455 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2456 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2457 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2458 var r1 = this.labelRadius.end * gRadius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2459 var r2 = node.labelRadius.end * gRadius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2460 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2461 // first adjust the radii to account for the height of the font by shifting them |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2462 // toward each other |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2463 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2464 var fontFudge = .35 * fontSize; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2465 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2466 if ( this.labelRadius.end < node.labelRadius.end ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2467 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2468 r1 += fontFudge; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2469 r2 -= fontFudge; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2470 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2471 else if ( this.labelRadius.end > node.labelRadius.end ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2472 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2473 r1 -= fontFudge; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2474 r2 += fontFudge; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2475 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2476 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2477 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2478 r1 -= fontFudge; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2479 r2 -= fontFudge; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2480 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2481 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2482 var r1s = r1 * r1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2483 var r2s = r2 * r2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2484 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2485 // distance between the centers of the two labels |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2486 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2487 var dist = Math.sqrt(r1s + r2s - 2 * r1 * r2 * Math.cos(a)); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2488 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2489 // angle at our label center between our radius and the line to the other label center |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2490 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2491 var b = Math.acos((r1s + dist * dist - r2s) / (2 * r1 * dist)); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2492 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2493 // distance from our label center to the intersection of the two tangents |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2494 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2495 var l1 = Math.sin(a + b - Math.PI / 2) * dist / Math.sin(Math.PI - a); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2496 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2497 // distance from other label center the the intersection of the two tangents |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2498 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2499 var l2 = Math.sin(Math.PI / 2 - b) * dist / Math.sin(Math.PI - a); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2500 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2501 l1 = Math.abs(l1) - .4 * fontSize; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2502 l2 = Math.abs(l2) - .4 * fontSize; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2503 /* |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2504 // amount to shorten the distances because of the height of the font |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2505 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2506 var l3 = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2507 var fontRadius = fontSize * .55; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2508 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2509 if ( l1 < 0 || l2 < 0 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2510 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2511 var l4 = fontRadius / Math.tan(a); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2512 l1 = Math.abs(l1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2513 l2 = Math.abs(l2); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2514 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2515 l1 -= l4; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2516 l2 -= l4; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2517 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2518 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2519 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2520 var c = Math.PI - a; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2521 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2522 l3 = fontRadius * Math.tan(c / 2); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2523 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2524 */ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2525 if ( this.labelWidth.end / 2 > l1 && node.labelWidth.end / 2 > l2 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2526 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2527 // shorten the farthest one from the intersection |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2528 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2529 if ( l1 > l2 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2530 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2531 this.restrictLabelWidth(2 * (l1));// - l3 - fontRadius)); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2532 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2533 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2534 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2535 node.restrictLabelWidth(2 * (l2));// - l3 - fontRadius)); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2536 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2537 }/* |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2538 else if ( this.labelWidth.end / 2 > l1 + l3 && node.labelWidth.end / 2 > l2 - l3 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2539 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2540 node.restrictLabelWidth(2 * (l2 - l3)); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2541 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2542 else if ( this.labelWidth.end / 2 > l1 - l3 && node.labelWidth.end / 2 > l2 + l3 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2543 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2544 this.restrictLabelWidth(2 * (l1 - l3)); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2545 }*/ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2546 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2547 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2548 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2549 this.setMagnitudes = function(baseMagnitude) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2550 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2551 this.magnitude = this.getMagnitude(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2552 this.baseMagnitude = baseMagnitude; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2553 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2554 for ( var i = 0; i < this.children.length; i++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2555 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2556 this.children[i].setMagnitudes(baseMagnitude); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2557 baseMagnitude += this.children[i].magnitude; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2558 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2559 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2560 this.maxChildMagnitude = baseMagnitude; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2561 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2562 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2563 this.setMaxDepths = function() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2564 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2565 this.maxDepth = this.depth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2566 this.maxDepthCollapsed = this.depthCollapsed; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2567 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2568 for ( i in this.children ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2569 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2570 var child = this.children[i]; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2571 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2572 child.setMaxDepths(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2573 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2574 if ( child.maxDepth > this.maxDepth ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2575 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2576 this.maxDepth = child.maxDepth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2577 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2578 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2579 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2580 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2581 child.maxDepthCollapsed > this.maxDepthCollapsed && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2582 (child.depth <= maxAbsoluteDepth || maxAbsoluteDepth == 0) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2583 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2584 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2585 this.maxDepthCollapsed = child.maxDepthCollapsed; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2586 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2587 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2588 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2589 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2590 this.setTargetLabelRadius = function() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2591 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2592 var depth = this.getDepth() - selectedNode.getDepth() + 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2593 var index = depth - 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2594 var labelOffset = labelOffsets[index]; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2595 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2596 if ( this.radial ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2597 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2598 //this.labelRadius.setTarget((this.radiusInner.end + 1) / 2); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2599 var max = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2600 depth == maxDisplayDepth ? |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2601 1 : |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2602 compressedRadii[index + 1]; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2603 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2604 this.labelRadius.setTarget((compressedRadii[index] + max) / 2); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2605 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2606 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2607 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2608 var radiusCenter; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2609 var width; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2610 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2611 if ( compress ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2612 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2613 if ( nLabelOffsets[index] > 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2614 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2615 this.labelRadius.setTarget |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2616 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2617 lerp |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2618 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2619 labelOffset + .75, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2620 0, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2621 nLabelOffsets[index] + .5, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2622 compressedRadii[index], |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2623 compressedRadii[index + 1] |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2624 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2625 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2626 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2627 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2628 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2629 this.labelRadius.setTarget((compressedRadii[index] + compressedRadii[index + 1]) / 2); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2630 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2631 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2632 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2633 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2634 radiusCenter = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2635 nodeRadius * (depth - 1) + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2636 nodeRadius / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2637 width = nodeRadius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2638 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2639 this.labelRadius.setTarget |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2640 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2641 radiusCenter + width * ((labelOffset + 1) / (nLabelOffsets[index] + 1) - .5) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2642 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2643 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2644 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2645 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2646 if ( ! this.hide && ! this.keyed && nLabelOffsets[index] ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2647 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2648 // check last and first labels in each track for overlap |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2649 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2650 for ( var i = 0; i < maxDisplayDepth - 1; i++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2651 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2652 for ( var j = 0; j <= nLabelOffsets[i]; j++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2653 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2654 var last = labelLastNodes[i][j]; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2655 var first = labelFirstNodes[i][j]; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2656 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2657 if ( last ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2658 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2659 if ( j == nLabelOffsets[i] ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2660 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2661 // last is radial |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2662 this.setLabelWidth(last); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2663 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2664 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2665 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2666 last.setLabelWidth(this); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2667 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2668 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2669 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2670 if ( first ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2671 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2672 if ( j == nLabelOffsets[i] ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2673 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2674 this.setLabelWidth(first); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2675 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2676 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2677 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2678 first.setLabelWidth(this); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2679 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2680 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2681 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2682 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2683 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2684 if ( selectedNode.canDisplayLabelOther ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2685 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2686 this.setLabelWidth(selectedNode); // in case there is an 'other' label |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2687 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2688 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2689 if ( this.radial ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2690 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2691 // use the last 'track' of this depth for radial |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2692 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2693 labelLastNodes[index][nLabelOffsets[index]] = this; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2694 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2695 if ( labelFirstNodes[index][nLabelOffsets[index]] == 0 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2696 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2697 labelFirstNodes[index][nLabelOffsets[index]] = this; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2698 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2699 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2700 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2701 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2702 labelLastNodes[index][labelOffset] = this; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2703 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2704 // update offset |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2705 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2706 labelOffsets[index] += 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2707 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2708 if ( labelOffsets[index] > nLabelOffsets[index] ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2709 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2710 labelOffsets[index] -= nLabelOffsets[index]; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2711 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2712 if ( !(nLabelOffsets[index] & 1) ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2713 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2714 labelOffsets[index]--; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2715 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2716 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2717 else if ( labelOffsets[index] == nLabelOffsets[index] ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2718 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2719 labelOffsets[index] -= nLabelOffsets[index]; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2720 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2721 if ( false && !(nLabelOffsets[index] & 1) ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2722 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2723 labelOffsets[index]++; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2724 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2725 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2726 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2727 if ( labelFirstNodes[index][labelOffset] == 0 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2728 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2729 labelFirstNodes[index][labelOffset] = this; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2730 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2731 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2732 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2733 else if ( this.hide ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2734 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2735 this.labelWidth.end = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2736 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2737 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2738 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2739 this.setTargets = function() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2740 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2741 if ( this == selectedNode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2742 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2743 this.setTargetsSelected |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2744 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2745 0, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2746 1, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2747 lightnessBase, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2748 false, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2749 false |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2750 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2751 return; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2752 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2753 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2754 var depthRelative = this.getDepth() - selectedNode.getDepth(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2755 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2756 var parentOfSelected = selectedNode.hasParent(this); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2757 /* ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2758 // ! this.getCollapse() && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2759 this.baseMagnitude <= selectedNode.baseMagnitude && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2760 this.baseMagnitude + this.magnitude >= |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2761 selectedNode.baseMagnitude + selectedNode.magnitude |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2762 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2763 */ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2764 if ( parentOfSelected ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2765 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2766 this.resetLabelWidth(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2767 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2768 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2769 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2770 //context.font = fontNormal; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2771 var dim = context.measureText(this.name); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2772 this.nameWidth = dim.width; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2773 //this.labelWidth.setTarget(this.labelWidth.end); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2774 this.labelWidth.setTarget(0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2775 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2776 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2777 // set angles |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2778 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2779 if ( this.baseMagnitude <= selectedNode.baseMagnitude ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2780 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2781 this.angleStart.setTarget(0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2782 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2783 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2784 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2785 this.angleStart.setTarget(Math.PI * 2); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2786 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2787 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2788 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2789 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2790 parentOfSelected || |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2791 this.baseMagnitude + this.magnitude >= |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2792 selectedNode.baseMagnitude + selectedNode.magnitude |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2793 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2794 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2795 this.angleEnd.setTarget(Math.PI * 2); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2796 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2797 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2798 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2799 this.angleEnd.setTarget(0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2800 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2801 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2802 // children |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2803 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2804 for ( var i = 0; i < this.children.length; i++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2805 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2806 this.children[i].setTargets(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2807 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2808 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2809 if ( this.getDepth() <= selectedNode.getDepth() ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2810 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2811 // collapse in |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2812 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2813 this.radiusInner.setTarget(0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2814 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2815 if ( parentOfSelected ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2816 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2817 this.labelRadius.setTarget |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2818 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2819 (depthRelative) * |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2820 historySpacingFactor * fontSize / gRadius |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2821 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2822 //this.scale.setTarget(1 - (selectedNode.getDepth() - this.getDepth()) / 18); // TEMP |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2823 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2824 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2825 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2826 this.labelRadius.setTarget(0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2827 //this.scale.setTarget(1); // TEMP |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2828 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2829 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2830 else if ( depthRelative + 1 > maxDisplayDepth ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2831 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2832 // collapse out |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2833 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2834 this.radiusInner.setTarget(1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2835 this.labelRadius.setTarget(1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2836 //this.scale.setTarget(1); // TEMP |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2837 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2838 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2839 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2840 // don't collapse |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2841 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2842 if ( compress ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2843 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2844 this.radiusInner.setTarget(compressedRadii[depthRelative - 1]); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2845 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2846 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2847 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2848 this.radiusInner.setTarget(nodeRadius * (depthRelative)); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2849 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2850 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2851 //this.scale.setTarget(1); // TEMP |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2852 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2853 if ( this == selectedNode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2854 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2855 this.labelRadius.setTarget(0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2856 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2857 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2858 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2859 if ( compress ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2860 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2861 this.labelRadius.setTarget |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2862 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2863 (compressedRadii[depthRelative - 1] + compressedRadii[depthRelative]) / 2 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2864 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2865 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2866 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2867 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2868 this.labelRadius.setTarget(nodeRadius * (depthRelative) + nodeRadius / 2); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2869 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2870 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2871 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2872 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2873 // this.r.start = this.r.end; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2874 // this.g.start = this.g.end; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2875 // this.b.start = this.b.end; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2876 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2877 this.r.setTarget(255); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2878 this.g.setTarget(255); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2879 this.b.setTarget(255); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2880 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2881 this.alphaLine.setTarget(0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2882 this.alphaArc.setTarget(0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2883 this.alphaWedge.setTarget(0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2884 this.alphaPattern.setTarget(0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2885 this.alphaOther.setTarget(0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2886 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2887 if ( parentOfSelected && ! this.getCollapse() ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2888 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2889 var alpha = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2890 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2891 1 - |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2892 (selectedNode.getDepth() - this.getDepth()) / |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2893 (Math.floor((compress ? compressedRadii[0] : nodeRadius) * gRadius / (historySpacingFactor * fontSize) - .5) + 1) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2894 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2895 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2896 if ( alpha < 0 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2897 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2898 alpha = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2899 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2900 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2901 this.alphaLabel.setTarget(alpha); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2902 this.radial = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2903 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2904 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2905 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2906 this.alphaLabel.setTarget(0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2907 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2908 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2909 this.hideAlonePrev = this.hideAlone; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2910 this.hidePrev = this.hide; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2911 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2912 if ( parentOfSelected ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2913 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2914 this.hideAlone = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2915 this.hide = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2916 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2917 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2918 if ( this.getParent() == selectedNode.getParent() ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2919 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2920 this.hiddenEnd = null; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2921 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2922 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2923 this.radialPrev = this.radial; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2924 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2925 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2926 this.setTargetsSelected = function(hueMin, hueMax, lightness, hide, nextSiblingHidden) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2927 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2928 var collapse = this.getCollapse(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2929 var depth = this.getDepth() - selectedNode.getDepth() + 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2930 var canDisplayChildLabels = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2931 var lastChild; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2932 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2933 if ( this.hasChildren() )//&& ! hide ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2934 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2935 lastChild = this.children[this.children.length - 1]; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2936 this.hideAlone = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2937 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2938 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2939 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2940 this.hideAlone = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2941 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2942 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2943 // set child wedges |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2944 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2945 for ( var i = 0; i < this.children.length; i++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2946 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2947 this.children[i].setTargetWedge(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2948 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2949 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2950 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2951 ! this.children[i].hide && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2952 ( collapse || depth < maxDisplayDepth ) && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2953 this.depth < maxAbsoluteDepth |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2954 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2955 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2956 canDisplayChildLabels = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2957 this.hideAlone = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2958 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2959 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2960 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2961 if ( this == selectedNode || lastChild && lastChild.angleEnd.end < this.angleEnd.end - .01) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2962 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2963 this.hideAlone = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2964 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2965 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2966 if ( this.hideAlonePrev == undefined ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2967 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2968 this.hideAlonePrev = this.hideAlone; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2969 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2970 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2971 if ( this == selectedNode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2972 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2973 var otherArc = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2974 angleFactor * |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2975 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2976 this.baseMagnitude + this.magnitude - |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2977 lastChild.baseMagnitude - lastChild.magnitude |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2978 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2979 this.canDisplayLabelOther = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2980 otherArc * |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2981 (this.children[0].radiusInner.end + 1) * gRadius >= |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2982 minWidth(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2983 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2984 this.keyUnclassified = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2985 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2986 if ( this.canDisplayLabelOther ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2987 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2988 this.angleOther = Math.PI * 2 - otherArc / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2989 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2990 else if ( otherArc > 0.0000000001 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2991 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2992 this.keyUnclassified = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2993 keys++; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2994 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2995 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2996 this.angleStart.setTarget(0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2997 this.angleEnd.setTarget(Math.PI * 2); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2998 this.radiusInner.setTarget(0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
2999 this.hidePrev = this.hide; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3000 this.hide = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3001 this.hideAlonePrev = this.hideAlone; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3002 this.hideAlone = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3003 this.keyed = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3004 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3005 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3006 if ( hueMax - hueMin > 1 / 12 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3007 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3008 hueMax = hueMin + 1 / 12; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3009 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3010 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3011 // set lightness |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3012 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3013 if ( ! ( hide || this.hideAlone ) ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3014 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3015 if ( useHue() ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3016 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3017 lightness = (lightnessBase + lightnessMax) / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3018 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3019 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3020 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3021 lightness = lightnessBase + (depth - 1) * lightnessFactor; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3022 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3023 if ( lightness > lightnessMax ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3024 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3025 lightness = lightnessMax; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3026 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3027 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3028 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3029 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3030 if ( hide ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3031 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3032 this.hide = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3033 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3034 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3035 if ( this.hidePrev == undefined ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3036 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3037 this.hidePrev = this.hide; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3038 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3039 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3040 var hiddenStart = -1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3041 var hiddenHueNumer = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3042 var hiddenHueDenom = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3043 var i = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3044 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3045 if ( ! this.hide ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3046 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3047 this.hiddenEnd = null; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3048 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3049 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3050 while ( true ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3051 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3052 if ( ! this.hideAlone && ! hide && ( i == this.children.length || ! this.children[i].hide ) ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3053 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3054 // reached a non-hidden child or the end; set targets for |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3055 // previous group of hidden children (if any) using their |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3056 // average hue |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3057 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3058 if ( hiddenStart != -1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3059 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3060 var hiddenHue = hiddenHueDenom ? hiddenHueNumer / hiddenHueDenom : hueMin; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3061 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3062 for ( var j = hiddenStart; j < i; j++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3063 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3064 this.children[j].setTargetsSelected |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3065 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3066 hiddenHue, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3067 null, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3068 lightness, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3069 false, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3070 j < i - 1 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3071 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3072 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3073 this.children[j].hiddenEnd = null; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3074 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3075 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3076 this.children[hiddenStart].hiddenEnd = i - 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3077 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3078 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3079 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3080 if ( i == this.children.length ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3081 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3082 break; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3083 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3084 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3085 var child = this.children[i]; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3086 var childHueMin; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3087 var childHueMax; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3088 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3089 if ( this.magnitude > 0 && ! this.hide && ! this.hideAlone ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3090 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3091 if ( useHue() ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3092 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3093 childHueMin = child.hues[currentDataset]; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3094 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3095 else if ( this == selectedNode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3096 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3097 var min = 0.0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3098 var max = 1.0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3099 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3100 if ( this.children.length > 6 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3101 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3102 childHueMin = lerp((1 - Math.pow(1 - i / this.children.length, 1.4)) * .95, 0, 1, min, max); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3103 childHueMax = lerp((1 - Math.pow(1 - (i + .55) / this.children.length, 1.4)) * .95, 0, 1, min, max); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3104 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3105 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3106 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3107 childHueMin = lerp(i / this.children.length, 0, 1, min, max); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3108 childHueMax = lerp((i + .55) / this.children.length, 0, 1, min, max); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3109 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3110 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3111 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3112 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3113 childHueMin = lerp |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3114 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3115 child.baseMagnitude, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3116 this.baseMagnitude, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3117 this.baseMagnitude + this.magnitude, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3118 hueMin, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3119 hueMax |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3120 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3121 childHueMax = lerp |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3122 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3123 child.baseMagnitude + child.magnitude * .99, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3124 this.baseMagnitude, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3125 this.baseMagnitude + this.magnitude, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3126 hueMin, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3127 hueMax |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3128 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3129 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3130 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3131 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3132 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3133 childHueMin = hueMin; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3134 childHueMax = hueMax; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3135 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3136 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3137 if ( ! this.hideAlone && ! hide && ! this.hide && child.hide ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3138 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3139 if ( hiddenStart == -1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3140 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3141 hiddenStart = i; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3142 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3143 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3144 if ( useHue() ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3145 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3146 hiddenHueNumer += childHueMin * child.magnitude; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3147 hiddenHueDenom += child.magnitude; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3148 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3149 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3150 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3151 hiddenHueNumer += childHueMin; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3152 hiddenHueDenom++; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3153 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3154 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3155 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3156 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3157 hiddenStart = -1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3158 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3159 this.children[i].setTargetsSelected |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3160 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3161 childHueMin, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3162 childHueMax, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3163 lightness, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3164 hide || this.keyed || this.hideAlone || this.hide && ! collapse, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3165 false |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3166 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3167 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3168 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3169 i++; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3170 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3171 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3172 if ( this.hue && this.magnitude ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3173 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3174 this.hue.setTarget(this.hues[currentDataset]); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3175 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3176 if ( this.attributes[magnitudeIndex][lastDataset] == 0 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3177 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3178 this.hue.start = this.hue.end; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3179 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3180 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3181 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3182 this.radialPrev = this.radial; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3183 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3184 if ( this == selectedNode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3185 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3186 this.resetLabelWidth(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3187 this.labelWidth.setTarget(this.nameWidth * labelWidthFudge); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3188 this.alphaWedge.setTarget(0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3189 this.alphaLabel.setTarget(1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3190 this.alphaOther.setTarget(1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3191 this.alphaArc.setTarget(0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3192 this.alphaLine.setTarget(0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3193 this.alphaPattern.setTarget(0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3194 this.r.setTarget(255); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3195 this.g.setTarget(255); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3196 this.b.setTarget(255); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3197 this.radial = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3198 this.labelRadius.setTarget(0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3199 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3200 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3201 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3202 var rgb = hslToRgb |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3203 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3204 hueMin, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3205 saturation, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3206 lightness |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3207 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3208 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3209 this.r.setTarget(rgb.r); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3210 this.g.setTarget(rgb.g); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3211 this.b.setTarget(rgb.b); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3212 this.alphaOther.setTarget(0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3213 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3214 this.alphaWedge.setTarget(1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3215 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3216 if ( this.hide || this.hideAlone ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3217 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3218 this.alphaPattern.setTarget(1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3219 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3220 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3221 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3222 this.alphaPattern.setTarget(0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3223 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3224 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3225 // set radial |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3226 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3227 if ( ! ( hide || this.hide ) )//&& ! this.keyed ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3228 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3229 if ( this.hideAlone ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3230 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3231 this.radial = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3232 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3233 else if ( false && canDisplayChildLabels ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3234 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3235 this.radial = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3236 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3237 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3238 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3239 this.radial = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3240 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3241 if ( this.hasChildren() && depth < maxDisplayDepth ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3242 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3243 var lastChild = this.children[this.children.length - 1]; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3244 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3245 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3246 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3247 lastChild.angleEnd.end == this.angleEnd.end || |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3248 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3249 (this.angleStart.end + this.angleEnd.end) / 2 - |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3250 lastChild.angleEnd.end |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3251 ) * (this.radiusInner.end + 1) * gRadius * 2 < |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3252 minWidth() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3253 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3254 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3255 this.radial = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3256 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3257 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3258 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3259 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3260 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3261 // set alphaLabel |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3262 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3263 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3264 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3265 collapse || |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3266 hide || |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3267 this.hide || |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3268 this.keyed || |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3269 depth > maxDisplayDepth || |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3270 ! this.canDisplayDepth() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3271 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3272 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3273 this.alphaLabel.setTarget(0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3274 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3275 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3276 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3277 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3278 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3279 (this.radial || nLabelOffsets[depth - 2]) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3280 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3281 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3282 this.alphaLabel.setTarget(1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3283 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3284 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3285 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3286 this.alphaLabel.setTarget(0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3287 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3288 if ( this.radialPrev ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3289 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3290 this.alphaLabel.start = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3291 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3292 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3293 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3294 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3295 // set alphaArc |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3296 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3297 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3298 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3299 collapse || |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3300 hide || |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3301 depth > maxDisplayDepth || |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3302 ! this.canDisplayDepth() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3303 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3304 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3305 this.alphaArc.setTarget(0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3306 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3307 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3308 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3309 this.alphaArc.setTarget(1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3310 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3311 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3312 // set alphaLine |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3313 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3314 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3315 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3316 hide || |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3317 this.hide && nextSiblingHidden || |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3318 depth > maxDisplayDepth || |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3319 ! this.canDisplayDepth() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3320 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3321 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3322 this.alphaLine.setTarget(0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3323 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3324 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3325 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3326 this.alphaLine.setTarget(1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3327 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3328 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3329 //if ( ! this.radial ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3330 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3331 this.resetLabelWidth(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3332 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3333 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3334 // set labelRadius target |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3335 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3336 if ( collapse ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3337 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3338 this.labelRadius.setTarget(this.radiusInner.end); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3339 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3340 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3341 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3342 if ( depth > maxDisplayDepth || ! this.canDisplayDepth() ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3343 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3344 this.labelRadius.setTarget(1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3345 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3346 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3347 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3348 this.setTargetLabelRadius(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3349 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3350 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3351 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3352 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3353 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3354 this.setTargetWedge = function() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3355 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3356 var depth = this.getDepth() - selectedNode.getDepth() + 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3357 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3358 // set angles |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3359 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3360 var baseMagnitudeRelative = this.baseMagnitude - selectedNode.baseMagnitude; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3361 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3362 this.angleStart.setTarget(baseMagnitudeRelative * angleFactor); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3363 this.angleEnd.setTarget((baseMagnitudeRelative + this.magnitude) * angleFactor); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3364 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3365 // set radiusInner |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3366 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3367 if ( depth > maxDisplayDepth || ! this.canDisplayDepth() ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3368 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3369 this.radiusInner.setTarget(1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3370 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3371 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3372 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3373 if ( compress ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3374 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3375 this.radiusInner.setTarget(compressedRadii[depth - 2]); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3376 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3377 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3378 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3379 this.radiusInner.setTarget(nodeRadius * (depth - 1)); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3380 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3381 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3382 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3383 if ( this.hide != undefined ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3384 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3385 this.hidePrev = this.hide; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3386 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3387 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3388 if ( this.hideAlone != undefined ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3389 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3390 this.hideAlonePrev = this.hideAlone; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3391 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3392 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3393 // set hide |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3394 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3395 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3396 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3397 (this.angleEnd.end - this.angleStart.end) * |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3398 (this.radiusInner.end * gRadius + gRadius) < |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3399 minWidth() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3400 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3401 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3402 if ( depth == 2 && ! this.getCollapse() && this.depth <= maxAbsoluteDepth ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3403 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3404 this.keyed = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3405 keys++; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3406 this.hide = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3407 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3408 var percentage = this.getPercentage(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3409 this.keyLabel = this.name + ' ' + percentage + '%'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3410 var dim = context.measureText(this.keyLabel); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3411 this.keyNameWidth = dim.width; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3412 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3413 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3414 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3415 this.keyed = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3416 this.hide = depth > 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3417 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3418 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3419 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3420 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3421 this.keyed = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3422 this.hide = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3423 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3424 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3425 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3426 this.shortenLabel = function() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3427 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3428 var label = this.name; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3429 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3430 var labelWidth = this.nameWidth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3431 var maxWidth = this.labelWidth.current(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3432 var minEndLength = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3433 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3434 if ( labelWidth > maxWidth && label.length > minEndLength * 2 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3435 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3436 var endLength = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3437 Math.floor((label.length - 1) * maxWidth / labelWidth / 2); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3438 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3439 if ( endLength < minEndLength ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3440 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3441 endLength = minEndLength; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3442 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3443 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3444 return ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3445 label.substring(0, endLength) + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3446 '...' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3447 label.substring(label.length - endLength)); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3448 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3449 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3450 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3451 return label; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3452 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3453 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3454 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3455 /* this.shouldAddSearchResultsString = function() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3456 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3457 if ( this.isSearchResult ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3458 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3459 return this.searchResults > 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3460 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3461 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3462 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3463 return this.searchResults > 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3464 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3465 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3466 */ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3467 this.sort = function() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3468 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3469 this.children.sort(function(a, b){return b.getMagnitude() - a.getMagnitude()}); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3470 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3471 for (var i = 0; i < this.children.length; i++) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3472 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3473 this.children[i].sort(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3474 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3475 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3476 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3477 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3478 var options; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3479 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3480 function addOptionElement(position, innerHTML, title) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3481 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3482 var div = document.createElement("div"); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3483 // div.style.position = 'absolute'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3484 // div.style.top = position + 'px'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3485 div.innerHTML = innerHTML; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3486 // div.style.display = 'block'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3487 div.style.padding = '2px'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3488 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3489 if ( title ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3490 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3491 div.title = title; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3492 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3493 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3494 options.appendChild(div); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3495 var height = 0;//div.clientHeight; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3496 return position + height; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3497 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3498 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3499 function addOptionElements(hueName, hueDefault) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3500 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3501 options = document.createElement('div'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3502 options.style.position = 'absolute'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3503 options.style.top = '0px'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3504 options.addEventListener('mousedown', function(e) {mouseClick(e)}, false); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3505 // options.onmouseup = function(e) {mouseUp(e)} |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3506 document.body.appendChild(options); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3507 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3508 document.body.style.font = '11px sans-serif'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3509 var position = 5; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3510 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3511 details = document.createElement('div'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3512 details.style.position = 'absolute'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3513 details.style.top = '1%'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3514 details.style.right = '2%'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3515 details.style.textAlign = 'right'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3516 document.body.insertBefore(details, canvas); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3517 // <div id="details" style="position:absolute;top:1%;right:2%;text-align:right;"> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3518 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3519 details.innerHTML = '\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3520 <span id="detailsName" style="font-weight:bold"></span> \ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3521 <input type="button" id="detailsExpand" onclick="expand(focusNode);"\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3522 value="↔" title="Expand this wedge to become the new focus of the chart"/><br/>\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3523 <div id="detailsInfo" style="float:right"></div>'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3524 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3525 keyControl = document.createElement('input'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3526 keyControl.type = 'button'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3527 keyControl.value = showKeys ? 'x' : '…'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3528 keyControl.style.position = ''; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3529 keyControl.style.position = 'fixed'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3530 keyControl.style.visibility = 'hidden'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3531 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3532 document.body.insertBefore(keyControl, canvas); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3533 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3534 var logoElement = document.getElementById('logo'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3535 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3536 if ( logoElement ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3537 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3538 logoImage = logoElement.src; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3539 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3540 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3541 { |
2
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
3542 logoImage = 'http://marbl.github.io/Krona/img/logo-small.png'; |
1
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3543 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3544 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3545 // document.getElementById('options').style.fontSize = '9pt'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3546 position = addOptionElement |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3547 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3548 position, |
2
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
3549 '<a style="margin:2px" target="_blank" href="https://github.com/marbl/Krona/wiki"><img style="vertical-align:middle;" src="' + logoImage + '"/></a><input type="button" id="back" value="←" title="Go back (Shortcut: ←)"/>\ |
1
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3550 <input type="button" id="forward" value="→" title="Go forward (Shortcut: →)"/> \ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3551 Search: <input type="text" id="search"/>\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3552 <input id="searchClear" type="button" value="x" onclick="clearSearch()"/> \ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3553 <span id="searchResults"></span>' |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3554 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3555 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3556 if ( datasets > 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3557 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3558 var size = datasets < datasetSelectSize ? datasets : datasetSelectSize; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3559 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3560 var select = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3561 '<table style="border-collapse:collapse;padding:0px"><tr><td style="padding:0px">' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3562 '<select id="datasets" style="min-width:100px" size="' + size + '" onchange="onDatasetChange()">'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3563 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3564 for ( var i = 0; i < datasetNames.length; i++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3565 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3566 select += '<option>' + datasetNames[i] + '</option>'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3567 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3568 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3569 select += |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3570 '</select></td><td style="vertical-align:top;padding:1px;">' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3571 '<input style="display:block" title="Previous dataset (Shortcut: ↑)" id="prevDataset" type="button" value="↑" onclick="prevDataset()" disabled="true"/>' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3572 '<input title="Next dataset (Shortcut: ↓)" id="nextDataset" type="button" value="↓" onclick="nextDataset()"/><br/></td>' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3573 '<td style="padding-top:1px;vertical-align:top"><input title="Switch to the last dataset that was viewed (Shortcut: TAB)" id="lastDataset" type="button" style="font:11px Times new roman" value="last" onclick="selectLastDataset()"/></td></tr></table>'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3574 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3575 position = addOptionElement(position + 5, select); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3576 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3577 datasetDropDown = document.getElementById('datasets'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3578 datasetButtonLast = document.getElementById('lastDataset'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3579 datasetButtonPrev = document.getElementById('prevDataset'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3580 datasetButtonNext = document.getElementById('nextDataset'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3581 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3582 position += datasetDropDown.clientHeight; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3583 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3584 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3585 position = addOptionElement |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3586 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3587 position + 5, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3588 '<input type="button" id="maxAbsoluteDepthDecrease" value="-"/>\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3589 <span id="maxAbsoluteDepth"></span>\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3590 <input type="button" id="maxAbsoluteDepthIncrease" value="+"/> Max depth', |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3591 'Maximum depth to display, counted from the top level \ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3592 and including collapsed wedges.' |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3593 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3594 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3595 position = addOptionElement |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3596 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3597 position, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3598 '<input type="button" id="fontSizeDecrease" value="-"/>\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3599 <span id="fontSize"></span>\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3600 <input type="button" id="fontSizeIncrease" value="+"/> Font size' |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3601 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3602 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3603 position = addOptionElement |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3604 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3605 position, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3606 '<input type="button" id="radiusDecrease" value="-"/>\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3607 <input type="button" id="radiusIncrease" value="+"/> Chart size' |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3608 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3609 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3610 if ( hueName ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3611 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3612 hueDisplayName = attributes[attributeIndex(hueName)].displayName; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3613 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3614 position = addOptionElement |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3615 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3616 position + 5, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3617 '<input type="checkbox" id="useHue" style="float:left" ' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3618 '/><div>Color by<br/>' + hueDisplayName + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3619 '</div>' |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3620 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3621 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3622 useHueCheckBox = document.getElementById('useHue'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3623 useHueCheckBox.checked = hueDefault; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3624 useHueCheckBox.onclick = handleResize; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3625 useHueCheckBox.onmousedown = suppressEvent; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3626 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3627 /* |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3628 position = addOptionElement |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3629 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3630 position + 5, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3631 ' <input type="checkbox" id="shorten" checked="checked" />Shorten labels</div>', |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3632 'Prevent labels from overlapping by shortening them' |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3633 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3634 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3635 position = addOptionElement |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3636 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3637 position, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3638 ' <input type="checkbox" id="compress" checked="checked" />Compress', |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3639 'Compress wedges if needed to show the entire depth' |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3640 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3641 */ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3642 position = addOptionElement |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3643 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3644 position, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3645 '<input type="checkbox" id="collapse" checked="checked" />Collapse', |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3646 'Collapse wedges that are redundant (entirely composed of another wedge)' |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3647 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3648 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3649 position = addOptionElement |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3650 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3651 position + 5, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3652 '<input type="button" id="snapshot" value="Snapshot"/>', |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3653 'Render the current view as SVG (Scalable Vector Graphics), a publication-\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3654 quality format that can be printed and saved (see Help for browser compatibility)' |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3655 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3656 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3657 position = addOptionElement |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3658 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3659 position + 5, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3660 '<input type="button" id="linkButton" value="Link"/>\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3661 <input type="text" size="30" id="linkText"/>', |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3662 'Show a link to this view that can be copied for bookmarking or sharing' |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3663 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3664 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3665 position = addOptionElement |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3666 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3667 position + 5, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3668 '<input type="button" id="help" value="?"\ |
2
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
3669 onclick="window.open(\'https://github.com/marbl/Krona/wiki/Browsing%20Krona%20charts\', \'help\')"/>', |
1
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3670 'Help' |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3671 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3672 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3673 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3674 function arrow(angleStart, angleEnd, radiusInner) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3675 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3676 if ( context.globalAlpha == 0 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3677 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3678 return; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3679 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3680 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3681 var angleCenter = (angleStart + angleEnd) / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3682 var radiusArrowInner = radiusInner - gRadius / 10;//nodeRadius * gRadius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3683 var radiusArrowOuter = gRadius * 1.1;//(1 + nodeRadius); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3684 var radiusArrowCenter = (radiusArrowInner + radiusArrowOuter) / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3685 var pointLength = (radiusArrowOuter - radiusArrowInner) / 5; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3686 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3687 context.fillStyle = highlightFill; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3688 context.lineWidth = highlightLineWidth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3689 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3690 // First, mask out the first half of the arrow. This will prevent the tips |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3691 // from superimposing if the arrow goes most of the way around the circle. |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3692 // Masking is done by setting the clipping region to the inverse of the |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3693 // half-arrow, which is defined by cutting the half-arrow out of a large |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3694 // rectangle |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3695 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3696 context.beginPath(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3697 context.arc(0, 0, radiusInner, angleCenter, angleEnd, false); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3698 context.lineTo |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3699 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3700 radiusArrowInner * Math.cos(angleEnd), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3701 radiusArrowInner * Math.sin(angleEnd) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3702 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3703 context.lineTo |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3704 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3705 radiusArrowCenter * Math.cos(angleEnd) - pointLength * Math.sin(angleEnd), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3706 radiusArrowCenter * Math.sin(angleEnd) + pointLength * Math.cos(angleEnd) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3707 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3708 context.lineTo |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3709 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3710 radiusArrowOuter * Math.cos(angleEnd), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3711 radiusArrowOuter * Math.sin(angleEnd) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3712 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3713 context.arc(0, 0, gRadius, angleEnd, angleCenter, true); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3714 context.closePath(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3715 context.moveTo(-imageWidth, -imageHeight); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3716 context.lineTo(imageWidth, -imageHeight); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3717 context.lineTo(imageWidth, imageHeight); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3718 context.lineTo(-imageWidth, imageHeight); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3719 context.closePath(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3720 context.save(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3721 context.clip(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3722 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3723 // Next, draw the other half-arrow with the first half masked out |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3724 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3725 context.beginPath(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3726 context.arc(0, 0, radiusInner, angleCenter, angleStart, true); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3727 context.lineTo |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3728 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3729 radiusArrowInner * Math.cos(angleStart), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3730 radiusArrowInner * Math.sin(angleStart) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3731 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3732 context.lineTo |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3733 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3734 radiusArrowCenter * Math.cos(angleStart) + pointLength * Math.sin(angleStart), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3735 radiusArrowCenter * Math.sin(angleStart) - pointLength * Math.cos(angleStart) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3736 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3737 context.lineTo |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3738 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3739 radiusArrowOuter * Math.cos(angleStart), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3740 radiusArrowOuter * Math.sin(angleStart) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3741 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3742 context.arc(0, 0, gRadius, angleStart, angleCenter, false); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3743 context.fill(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3744 context.stroke(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3745 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3746 // Finally, remove the clipping region and draw the first half-arrow. This |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3747 // half is extended slightly to fill the seam. |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3748 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3749 context.restore(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3750 context.beginPath(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3751 context.arc(0, 0, radiusInner, angleCenter - 2 / (2 * Math.PI * radiusInner), angleEnd, false); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3752 context.lineTo |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3753 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3754 radiusArrowInner * Math.cos(angleEnd), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3755 radiusArrowInner * Math.sin(angleEnd) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3756 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3757 context.lineTo |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3758 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3759 radiusArrowCenter * Math.cos(angleEnd) - pointLength * Math.sin(angleEnd), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3760 radiusArrowCenter * Math.sin(angleEnd) + pointLength * Math.cos(angleEnd) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3761 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3762 context.lineTo |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3763 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3764 radiusArrowOuter * Math.cos(angleEnd), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3765 radiusArrowOuter * Math.sin(angleEnd) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3766 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3767 context.arc(0, 0, gRadius, angleEnd, angleCenter - 2 / (2 * Math.PI * gRadius), true); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3768 context.fill(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3769 context.stroke(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3770 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3771 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3772 function attributeIndex(aname) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3773 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3774 for ( var i = 0 ; i < attributes.length; i++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3775 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3776 if ( aname == attributes[i].name ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3777 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3778 return i; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3779 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3780 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3781 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3782 return null; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3783 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3784 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3785 function checkHighlight() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3786 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3787 var lastHighlightedNode = highlightedNode; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3788 var lastHighlightingHidden = highlightingHidden; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3789 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3790 highlightedNode = selectedNode; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3791 resetKeyOffset(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3792 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3793 if ( progress == 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3794 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3795 selectedNode.checkHighlight(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3796 if ( selectedNode.getParent() ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3797 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3798 selectedNode.getParent().checkHighlightCenter(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3799 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3800 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3801 focusNode.checkHighlightMap(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3802 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3803 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3804 if ( highlightedNode != selectedNode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3805 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3806 if ( highlightedNode == focusNode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3807 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3808 // canvas.style.display='none'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3809 // window.resizeBy(1,0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3810 // canvas.style.cursor='ew-resize'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3811 // window.resizeBy(-1,0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3812 // canvas.style.display='inline'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3813 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3814 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3815 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3816 // canvas.style.cursor='pointer'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3817 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3818 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3819 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3820 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3821 // canvas.style.cursor='auto'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3822 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3823 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3824 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3825 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3826 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3827 true || |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3828 highlightedNode != lastHighlightedNode || |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3829 highlightingHidden != highlightingHiddenLast |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3830 ) && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3831 progress == 1 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3832 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3833 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3834 draw(); // TODO: handle in update() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3835 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3836 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3837 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3838 function checkSelectedCollapse() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3839 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3840 var newNode = selectedNode; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3841 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3842 while ( newNode.getCollapse() ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3843 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3844 newNode = newNode.children[0]; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3845 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3846 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3847 if ( newNode.children.length == 0 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3848 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3849 newNode = newNode.getParent(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3850 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3851 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3852 if ( newNode != selectedNode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3853 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3854 selectNode(newNode); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3855 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3856 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3857 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3858 function clearSearch() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3859 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3860 if ( search.value != '' ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3861 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3862 search.value = ''; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3863 onSearchChange(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3864 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3865 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3866 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3867 function createSVG() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3868 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3869 svgNS = "http://www.w3.org/2000/svg"; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3870 var SVG = {}; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3871 SVG.xlinkns = "http://www.w3.org/1999/xlink"; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3872 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3873 var newSVG = document.createElementNS(svgNS, "svg:svg"); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3874 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3875 newSVG.setAttribute("id", "canvas"); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3876 // How big is the canvas in pixels |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3877 newSVG.setAttribute("width", '100%'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3878 newSVG.setAttribute("height", '100%'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3879 // Set the coordinates used by drawings in the canvas |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3880 // newSVG.setAttribute("viewBox", "0 0 " + imageWidth + " " + imageHeight); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3881 // Define the XLink namespace that SVG uses |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3882 newSVG.setAttributeNS |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3883 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3884 "http://www.w3.org/2000/xmlns/", |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3885 "xmlns:xlink", |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3886 SVG.xlinkns |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3887 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3888 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3889 return newSVG; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3890 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3891 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3892 function degrees(radians) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3893 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3894 return radians * 180 / Math.PI; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3895 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3896 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3897 function draw() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3898 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3899 tweenFrames++; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3900 //resize(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3901 // context.fillRect(0, 0, imageWidth, imageHeight); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3902 context.clearRect(0, 0, imageWidth, imageHeight); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3903 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3904 context.font = fontNormal; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3905 context.textBaseline = 'middle'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3906 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3907 //context.strokeStyle = 'rgba(0, 0, 0, 0.3)'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3908 context.translate(centerX, centerY); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3909 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3910 resetKeyOffset(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3911 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3912 head.draw(false, false); // draw pie slices |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3913 head.draw(true, false); // draw labels |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3914 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3915 var pathRoot = selectedNode; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3916 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3917 if ( focusNode != 0 && focusNode != selectedNode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3918 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3919 context.globalAlpha = 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3920 focusNode.drawHighlight(true); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3921 pathRoot = focusNode; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3922 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3923 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3924 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3925 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3926 highlightedNode && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3927 highlightedNode.getDepth() >= selectedNode.getDepth() && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3928 highlightedNode != focusNode |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3929 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3930 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3931 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3932 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3933 progress == 1 && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3934 highlightedNode != selectedNode && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3935 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3936 highlightedNode != focusNode || |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3937 focusNode.children.length > 0 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3938 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3939 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3940 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3941 context.globalAlpha = 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3942 highlightedNode.drawHighlight(true); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3943 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3944 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3945 //pathRoot = highlightedNode; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3946 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3947 else if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3948 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3949 progress == 1 && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3950 highlightedNode.getDepth() < selectedNode.getDepth() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3951 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3952 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3953 context.globalAlpha = 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3954 highlightedNode.drawHighlightCenter(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3955 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3956 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3957 if ( quickLook && false) // TEMP |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3958 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3959 context.globalAlpha = 1 - progress / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3960 selectedNode.drawHighlight(true); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3961 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3962 else if ( progress < 1 )//&& zoomOut() ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3963 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3964 if ( !zoomOut)//() ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3965 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3966 context.globalAlpha = selectedNode.alphaLine.current(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3967 selectedNode.drawHighlight(true); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3968 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3969 else if ( selectedNodeLast ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3970 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3971 context.globalAlpha = 1 - 4 * Math.pow(progress - .5, 2); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3972 selectedNodeLast.drawHighlight(false); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3973 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3974 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3975 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3976 drawDatasetName(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3977 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3978 //drawHistory(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3979 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3980 context.translate(-centerX, -centerY); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3981 context.globalAlpha = 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3982 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3983 mapRadius = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3984 (imageHeight / 2 - details.clientHeight - details.offsetTop) / |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3985 (pathRoot.getDepth() - 1) * 3 / 4 / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3986 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3987 if ( mapRadius > maxMapRadius ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3988 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3989 mapRadius = maxMapRadius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3990 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3991 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3992 mapBuffer = mapRadius / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3993 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3994 //context.font = fontNormal; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3995 pathRoot.drawMap(pathRoot); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3996 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3997 if ( hueDisplayName && useHue() ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3998 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
3999 drawLegend(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4000 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4001 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4002 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4003 function drawBubble(angle, radius, width, radial, flip) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4004 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4005 var height = fontSize * 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4006 var x; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4007 var y; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4008 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4009 width = width + fontSize; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4010 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4011 if ( radial ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4012 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4013 y = -fontSize; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4014 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4015 if ( flip ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4016 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4017 x = radius - width + fontSize / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4018 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4019 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4020 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4021 x = radius - fontSize / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4022 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4023 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4024 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4025 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4026 x = -width / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4027 y = -radius - fontSize; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4028 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4029 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4030 if ( snapshotMode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4031 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4032 drawBubbleSVG(x + centerX, y + centerY, width, height, fontSize, angle); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4033 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4034 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4035 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4036 drawBubbleCanvas(x, y, width, height, fontSize, angle); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4037 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4038 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4039 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4040 function drawBubbleCanvas(x, y, width, height, radius, rotation) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4041 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4042 context.strokeStyle = 'black'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4043 context.lineWidth = highlightLineWidth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4044 context.fillStyle = 'rgba(255, 255, 255, .75)'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4045 context.rotate(rotation); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4046 roundedRectangle(x, y, width, fontSize * 2, fontSize); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4047 context.fill(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4048 context.stroke(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4049 context.rotate(-rotation); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4050 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4051 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4052 function drawBubbleSVG(x, y, width, height, radius, rotation) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4053 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4054 svg += |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4055 '<rect x="' + x + '" y="' + y + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4056 '" width="' + width + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4057 '" height="' + height + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4058 '" rx="' + radius + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4059 '" ry="' + radius + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4060 '" fill="rgba(255, 255, 255, .75)' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4061 '" class="highlight" ' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4062 'transform="rotate(' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4063 degrees(rotation) + ',' + centerX + ',' + centerY + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4064 ')"/>'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4065 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4066 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4067 function drawDatasetName() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4068 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4069 var alpha = datasetAlpha.current(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4070 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4071 if ( alpha > 0 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4072 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4073 var radius = gRadius * compressedRadii[0] / -2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4074 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4075 if ( alpha > 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4076 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4077 alpha = 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4078 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4079 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4080 context.globalAlpha = alpha; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4081 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4082 drawBubble(0, -radius, datasetWidths[currentDataset], false, false); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4083 drawText(datasetNames[currentDataset], 0, radius, 0, 'center', true); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4084 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4085 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4086 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4087 function drawHistory() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4088 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4089 var alpha = 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4090 context.textAlign = 'center'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4091 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4092 for ( var i = 0; i < nodeHistoryPosition && alpha > 0; i++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4093 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4094 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4095 context.globalAlpha = alpha - historyAlphaDelta * tweenFactor; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4096 context.fillText |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4097 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4098 nodeHistory[nodeHistoryPosition - i - 1].name, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4099 0, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4100 (i + tweenFactor) * historySpacingFactor * fontSize - 1 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4101 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4102 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4103 if ( alpha > 0 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4104 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4105 alpha -= historyAlphaDelta; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4106 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4107 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4108 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4109 context.globalAlpha = 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4110 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4111 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4112 function drawLegend() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4113 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4114 var left = imageWidth * .01; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4115 var width = imageHeight * .0265; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4116 var height = imageHeight * .15; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4117 var top = imageHeight - fontSize * 3.5 - height; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4118 var textLeft = left + width + fontSize / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4119 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4120 context.fillStyle = 'black'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4121 context.textAlign = 'start'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4122 context.font = fontNormal; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4123 // context.fillText(valueStartText, textLeft, top + height); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4124 // context.fillText(valueEndText, textLeft, top); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4125 context.fillText(hueDisplayName, left, imageHeight - fontSize * 1.5); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4126 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4127 var gradient = context.createLinearGradient(0, top + height, 0, top); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4128 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4129 for ( var i = 0; i < hueStopPositions.length; i++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4130 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4131 gradient.addColorStop(hueStopPositions[i], hueStopHsl[i]); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4132 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4133 var textY = top + (1 - hueStopPositions[i]) * height; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4134 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4135 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4136 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4137 i == 0 || |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4138 i == hueStopPositions.length - 1 || |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4139 textY > top + fontSize && textY < top + height - fontSize |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4140 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4141 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4142 context.fillText(hueStopText[i], textLeft, textY); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4143 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4144 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4145 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4146 context.fillStyle = gradient; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4147 context.fillRect(left, top, width, height); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4148 context.lineWidth = thinLineWidth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4149 context.strokeRect(left, top, width, height); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4150 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4151 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4152 function drawLegendSVG() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4153 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4154 var left = imageWidth * .01; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4155 var width = imageHeight * .0265; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4156 var height = imageHeight * .15; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4157 var top = imageHeight - fontSize * 3.5 - height; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4158 var textLeft = left + width + fontSize / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4159 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4160 var text = ''; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4161 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4162 text += svgText(hueDisplayName, left, imageHeight - fontSize * 1.5); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4163 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4164 var svgtest = '<linearGradient id="gradient" x1="0%" y1="100%" x2="0%" y2="0%">'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4165 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4166 for ( var i = 0; i < hueStopPositions.length; i++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4167 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4168 svgtest += |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4169 '<stop offset="' + round(hueStopPositions[i] * 100) + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4170 '%" style="stop-color:' + hueStopHsl[i] + '"/>'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4171 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4172 var textY = top + (1 - hueStopPositions[i]) * height; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4173 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4174 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4175 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4176 i == 0 || |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4177 i == hueStopPositions.length - 1 || |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4178 textY > top + fontSize && textY < top + height - fontSize |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4179 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4180 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4181 text += svgText(hueStopText[i], textLeft, textY); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4182 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4183 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4184 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4185 svgtest += '</linearGradient>'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4186 //alert(svgtest); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4187 svg += svgtest; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4188 svg += |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4189 '<rect style="fill:url(#gradient)" x="' + left + '" y="' + top + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4190 '" width="' + width + '" height="' + height + '"/>'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4191 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4192 svg += text; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4193 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4194 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4195 function drawSearchHighlights(label, bubbleX, bubbleY, rotation, center) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4196 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4197 var index = -1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4198 var labelLength = label.length; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4199 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4200 bubbleX -= fontSize / 4; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4201 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4202 do |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4203 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4204 index = label.toLowerCase().indexOf(search.value.toLowerCase(), index + 1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4205 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4206 if ( index != -1 && index < labelLength ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4207 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4208 var dim = context.measureText(label.substr(0, index)); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4209 var x = bubbleX + dim.width; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4210 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4211 dim = context.measureText(label.substr(index, search.value.length)); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4212 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4213 var y = bubbleY - fontSize * 3 / 4; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4214 var width = dim.width + fontSize / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4215 var height = fontSize * 3 / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4216 var radius = fontSize / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4217 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4218 if ( snapshotMode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4219 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4220 if ( center ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4221 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4222 x += centerX; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4223 y += centerY; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4224 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4225 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4226 svg += |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4227 '<rect x="' + x + '" y="' + y + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4228 '" width="' + width + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4229 '" height="' + height + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4230 '" rx="' + radius + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4231 '" ry="' + radius + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4232 '" class="searchHighlight' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4233 '" transform="rotate(' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4234 degrees(rotation) + ',' + centerX + ',' + centerY + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4235 ')"/>'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4236 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4237 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4238 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4239 context.fillStyle = 'rgb(255, 255, 100)'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4240 context.rotate(rotation); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4241 roundedRectangle(x, y, width, height, radius); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4242 context.fill(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4243 context.rotate(-rotation); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4244 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4245 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4246 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4247 while ( index != -1 && index < labelLength ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4248 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4249 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4250 function drawText(text, x, y, angle, anchor, bold, color) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4251 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4252 if ( color == undefined ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4253 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4254 color = 'black'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4255 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4256 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4257 if ( snapshotMode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4258 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4259 svg += |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4260 '<text x="' + (centerX + x) + '" y="' + (centerY + y) + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4261 '" text-anchor="' + anchor + '" style="font-color:' + color + ';font-weight:' + (bold ? 'bold' : 'normal') + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4262 '" transform="rotate(' + degrees(angle) + ',' + centerX + ',' + centerY + ')">' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4263 text + '</text>'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4264 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4265 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4266 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4267 context.fillStyle = color; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4268 context.textAlign = anchor; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4269 context.font = bold ? fontBold : fontNormal; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4270 context.rotate(angle); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4271 context.fillText(text, x, y); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4272 context.rotate(-angle); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4273 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4274 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4275 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4276 function drawTextPolar |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4277 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4278 text, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4279 innerText, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4280 angle, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4281 radius, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4282 radial, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4283 bubble, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4284 bold, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4285 searchResult, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4286 searchResults |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4287 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4288 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4289 var anchor; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4290 var textX; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4291 var textY; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4292 var spacer; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4293 var totalText = text; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4294 var flip; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4295 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4296 if ( snapshotMode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4297 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4298 spacer = '   '; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4299 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4300 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4301 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4302 spacer = ' '; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4303 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4304 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4305 if ( radial ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4306 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4307 flip = angle < 3 * Math.PI / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4308 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4309 if ( flip ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4310 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4311 angle -= Math.PI; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4312 radius = -radius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4313 anchor = 'end'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4314 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4315 if ( innerText ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4316 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4317 totalText = text + spacer + innerText; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4318 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4319 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4320 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4321 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4322 anchor = 'start'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4323 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4324 if ( innerText ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4325 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4326 totalText = innerText + spacer + text; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4327 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4328 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4329 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4330 textX = radius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4331 textY = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4332 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4333 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4334 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4335 flip = angle < Math.PI || angle > 2 * Math.PI; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4336 var label; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4337 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4338 anchor = snapshotMode ? 'middle' : 'center'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4339 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4340 if ( flip ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4341 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4342 angle -= Math.PI; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4343 radius = -radius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4344 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4345 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4346 angle += Math.PI / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4347 textX = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4348 textY = -radius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4349 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4350 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4351 if ( bubble ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4352 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4353 var textActual = totalText; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4354 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4355 if ( innerText && snapshotMode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4356 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4357 if ( flip ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4358 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4359 textActual = text + ' ' + innerText; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4360 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4361 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4362 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4363 textActual = innerText + ' ' + text; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4364 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4365 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4366 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4367 if ( searchResults ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4368 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4369 textActual = textActual + searchResultString(searchResults); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4370 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4371 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4372 var textWidth = measureText(textActual, bold); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4373 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4374 var x = textX; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4375 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4376 if ( anchor == 'end' ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4377 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4378 x -= textWidth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4379 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4380 else if ( anchor != 'start' ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4381 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4382 // centered |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4383 x -= textWidth / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4384 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4385 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4386 drawBubble(angle, radius, textWidth, radial, flip); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4387 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4388 if ( searchResult ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4389 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4390 drawSearchHighlights |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4391 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4392 textActual, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4393 x, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4394 textY, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4395 angle, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4396 true |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4397 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4398 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4399 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4400 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4401 if ( searchResults ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4402 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4403 totalText = totalText + searchResultString(searchResults); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4404 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4405 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4406 drawText(totalText, textX, textY, angle, anchor, bold); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4407 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4408 return flip; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4409 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4410 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4411 function drawTick(start, length, angle) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4412 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4413 if ( snapshotMode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4414 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4415 svg += |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4416 '<line x1="' + (centerX + start) + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4417 '" y1="' + centerY + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4418 '" x2="' + (centerX + start + length) + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4419 '" y2="' + centerY + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4420 '" class="tick" transform="rotate(' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4421 degrees(angle) + ',' + centerX + ',' + centerY + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4422 ')"/>'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4423 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4424 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4425 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4426 context.rotate(angle); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4427 context.beginPath(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4428 context.moveTo(start, 0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4429 context.lineTo(start + length, 0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4430 context.lineWidth = thinLineWidth * 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4431 context.stroke(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4432 context.rotate(-angle); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4433 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4434 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4435 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4436 function drawWedge |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4437 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4438 angleStart, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4439 angleEnd, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4440 radiusInner, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4441 radiusOuter, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4442 color, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4443 patternAlpha, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4444 highlight |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4445 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4446 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4447 if ( context.globalAlpha == 0 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4448 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4449 return; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4450 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4451 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4452 if ( snapshotMode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4453 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4454 if ( angleEnd == angleStart + Math.PI * 2 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4455 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4456 // fudge to prevent overlap, which causes arc ambiguity |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4457 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4458 angleEnd -= .1 / gRadius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4459 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4460 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4461 var longArc = angleEnd - angleStart > Math.PI ? 1 : 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4462 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4463 var x1 = centerX + radiusInner * Math.cos(angleStart); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4464 var y1 = centerY + radiusInner * Math.sin(angleStart); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4465 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4466 var x2 = centerX + gRadius * Math.cos(angleStart); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4467 var y2 = centerY + gRadius * Math.sin(angleStart); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4468 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4469 var x3 = centerX + gRadius * Math.cos(angleEnd); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4470 var y3 = centerY + gRadius * Math.sin(angleEnd); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4471 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4472 var x4 = centerX + radiusInner * Math.cos(angleEnd); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4473 var y4 = centerY + radiusInner * Math.sin(angleEnd); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4474 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4475 var dArray = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4476 [ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4477 " M ", x1, ",", y1, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4478 " L ", x2, ",", y2, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4479 " A ", gRadius, ",", gRadius, " 0 ", longArc, ",1 ", x3, ",", y3, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4480 " L ", x4, ",", y4, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4481 " A ", radiusInner, ",", radiusInner, " 0 ", longArc, " 0 ", x1, ",", y1, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4482 " Z " |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4483 ]; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4484 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4485 svg += |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4486 '<path class="'+ (highlight ? 'highlight' : 'wedge') + '" fill="' + color + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4487 '" d="' + dArray.join('') + '"/>'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4488 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4489 if ( patternAlpha > 0 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4490 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4491 svg += |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4492 '<path class="wedge" fill="url(#hiddenPattern)" d="' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4493 dArray.join('') + '"/>'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4494 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4495 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4496 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4497 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4498 // fudge to prevent seams during animation |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4499 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4500 angleEnd += 1 / gRadius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4501 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4502 context.fillStyle = color; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4503 context.beginPath(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4504 context.arc(0, 0, radiusInner, angleStart, angleEnd, false); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4505 context.arc(0, 0, radiusOuter, angleEnd, angleStart, true); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4506 context.closePath(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4507 context.fill(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4508 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4509 if ( patternAlpha > 0 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4510 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4511 context.save(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4512 context.clip(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4513 context.globalAlpha = patternAlpha; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4514 context.fillStyle = hiddenPattern; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4515 context.fill(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4516 context.restore(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4517 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4518 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4519 if ( highlight ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4520 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4521 context.lineWidth = highlight ? highlightLineWidth : thinLineWidth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4522 context.strokeStyle = 'black'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4523 context.stroke(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4524 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4525 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4526 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4527 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4528 function expand(node) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4529 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4530 selectNode(node); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4531 updateView(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4532 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4533 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4534 function focusLost() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4535 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4536 mouseX = -1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4537 mouseY = -1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4538 checkHighlight(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4539 document.body.style.cursor = 'auto'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4540 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4541 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4542 function fontSizeDecrease() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4543 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4544 if ( fontSize > 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4545 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4546 fontSize--; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4547 updateViewNeeded = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4548 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4549 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4550 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4551 function fontSizeIncrease() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4552 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4553 fontSize++; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4554 updateViewNeeded = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4555 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4556 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4557 function getGetString(name, value, bool) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4558 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4559 return name + '=' + (bool ? value ? 'true' : 'false' : value); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4560 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4561 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4562 function hideLink() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4563 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4564 hide(linkText); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4565 show(linkButton); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4566 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4567 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4568 function show(object) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4569 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4570 object.style.display = 'inline'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4571 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4572 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4573 function hide(object) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4574 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4575 object.style.display = 'none'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4576 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4577 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4578 function showLink() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4579 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4580 var urlHalves = String(document.location).split('?'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4581 var newGetVariables = new Array(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4582 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4583 newGetVariables.push |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4584 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4585 getGetString('dataset', currentDataset, false), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4586 getGetString('node', selectedNode.id, false), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4587 getGetString('collapse', collapse, true), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4588 getGetString('color', useHue(), true), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4589 getGetString('depth', maxAbsoluteDepth - 1, false), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4590 getGetString('font', fontSize, false), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4591 getGetString('key', showKeys, true) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4592 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4593 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4594 hide(linkButton); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4595 show(linkText); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4596 linkText.value = urlHalves[0] + '?' + getVariables.concat(newGetVariables).join('&'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4597 //linkText.disabled = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4598 linkText.focus(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4599 linkText.select(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4600 //linkText.disabled = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4601 // document.location = urlHalves[0] + '?' + getVariables.join('&'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4602 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4603 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4604 function getFirstChild(element) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4605 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4606 element = element.firstChild; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4607 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4608 if ( element && element.nodeType != 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4609 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4610 element = getNextSibling(element); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4611 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4612 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4613 return element; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4614 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4615 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4616 function getNextSibling(element) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4617 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4618 do |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4619 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4620 element = element.nextSibling; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4621 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4622 while ( element && element.nodeType != 1 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4623 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4624 return element; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4625 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4626 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4627 function getPercentage(fraction) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4628 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4629 return round(fraction * 100); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4630 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4631 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4632 function hslText(hue) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4633 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4634 if ( 1 || snapshotMode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4635 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4636 // Safari doesn't seem to allow hsl() in SVG |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4637 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4638 var rgb = hslToRgb(hue, saturation, (lightnessBase + lightnessMax) / 2); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4639 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4640 return rgbText(rgb.r, rgb.g, rgb.b); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4641 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4642 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4643 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4644 var hslArray = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4645 [ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4646 'hsl(', |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4647 Math.floor(hue * 360), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4648 ',', |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4649 Math.floor(saturation * 100), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4650 '%,', |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4651 Math.floor((lightnessBase + lightnessMax) * 50), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4652 '%)' |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4653 ]; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4654 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4655 return hslArray.join(''); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4656 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4657 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4658 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4659 function hslToRgb(h, s, l) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4660 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4661 var m1, m2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4662 var r, g, b; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4663 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4664 if (s == 0) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4665 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4666 r = g = b = Math.floor((l * 255)); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4667 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4668 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4669 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4670 if (l <= 0.5) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4671 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4672 m2 = l * (s + 1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4673 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4674 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4675 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4676 m2 = l + s - l * s; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4677 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4678 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4679 m1 = l * 2 - m2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4680 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4681 r = Math.floor(hueToRgb(m1, m2, h + 1 / 3)); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4682 g = Math.floor(hueToRgb(m1, m2, h)); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4683 b = Math.floor(hueToRgb(m1, m2, h - 1/3)); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4684 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4685 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4686 return {r: r, g: g, b: b}; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4687 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4688 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4689 function hueToRgb(m1, m2, hue) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4690 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4691 var v; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4692 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4693 while (hue < 0) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4694 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4695 hue += 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4696 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4697 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4698 while (hue > 1) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4699 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4700 hue -= 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4701 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4702 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4703 if (6 * hue < 1) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4704 v = m1 + (m2 - m1) * hue * 6; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4705 else if (2 * hue < 1) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4706 v = m2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4707 else if (3 * hue < 2) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4708 v = m1 + (m2 - m1) * (2/3 - hue) * 6; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4709 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4710 v = m1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4711 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4712 return 255 * v; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4713 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4714 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4715 function interpolateHue(hueStart, hueEnd, valueStart, valueEnd) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4716 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4717 // since the gradient will be RGB based, we need to add stops to hit all the |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4718 // colors in the hue spectrum |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4719 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4720 hueStopPositions = new Array(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4721 hueStopHsl = new Array(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4722 hueStopText = new Array(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4723 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4724 hueStopPositions.push(0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4725 hueStopHsl.push(hslText(hueStart)); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4726 hueStopText.push(round(valueStart)); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4727 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4728 for |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4729 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4730 var i = (hueStart > hueEnd ? 5 / 6 : 1 / 6); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4731 (hueStart > hueEnd ? i > 0 : i < 1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4732 i += (hueStart > hueEnd ? -1 : 1) / 6 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4733 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4734 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4735 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4736 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4737 hueStart > hueEnd ? |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4738 i > hueEnd && i < hueStart : |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4739 i > hueStart && i < hueEnd |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4740 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4741 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4742 hueStopPositions.push(lerp(i, hueStart, hueEnd, 0, 1)); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4743 hueStopHsl.push(hslText(i)); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4744 hueStopText.push(round(lerp |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4745 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4746 i, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4747 hueStart, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4748 hueEnd, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4749 valueStart, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4750 valueEnd |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4751 ))); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4752 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4753 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4754 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4755 hueStopPositions.push(1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4756 hueStopHsl.push(hslText(hueEnd)); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4757 hueStopText.push(round(valueEnd)); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4758 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4759 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4760 function keyLineAngle(angle, keyAngle, bendRadius, keyX, keyY, pointsX, pointsY) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4761 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4762 if ( angle < Math.PI / 2 && keyY < bendRadius * Math.sin(angle) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4763 || angle > Math.PI / 2 && keyY < bendRadius) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4764 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4765 return Math.asin(keyY / bendRadius); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4766 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4767 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4768 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4769 // find the angle of the normal to a tangent line that goes to |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4770 // the label |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4771 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4772 var textDist = Math.sqrt |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4773 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4774 Math.pow(keyX, 2) + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4775 Math.pow(keyY, 2) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4776 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4777 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4778 var tanAngle = Math.acos(bendRadius / textDist) + keyAngle; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4779 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4780 if ( angle < tanAngle || angle < Math.PI / 2 )//|| labelLeft < centerX ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4781 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4782 // angle doesn't reach far enough for tangent; collapse and |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4783 // connect directly to label |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4784 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4785 if ( keyY / Math.tan(angle) > 0 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4786 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4787 pointsX.push(keyY / Math.tan(angle)); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4788 pointsY.push(keyY); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4789 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4790 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4791 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4792 pointsX.push(bendRadius * Math.cos(angle)); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4793 pointsY.push(bendRadius * Math.sin(angle)); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4794 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4795 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4796 return angle; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4797 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4798 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4799 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4800 return tanAngle; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4801 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4802 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4803 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4804 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4805 function keyOffset() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4806 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4807 return imageHeight - (keys - currentKey + 1) * (keySize + keyBuffer) + keyBuffer - margin; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4808 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4809 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4810 function lerp(value, fromStart, fromEnd, toStart, toEnd) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4811 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4812 return (value - fromStart) * |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4813 (toEnd - toStart) / |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4814 (fromEnd - fromStart) + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4815 toStart; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4816 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4817 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4818 function createCanvas() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4819 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4820 canvas = document.createElement('canvas'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4821 document.body.appendChild(canvas); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4822 context = canvas.getContext('2d'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4823 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4824 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4825 function load() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4826 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4827 document.body.style.overflow = "hidden"; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4828 document.body.style.margin = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4829 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4830 createCanvas(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4831 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4832 if ( context == undefined ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4833 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4834 document.body.innerHTML = '\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4835 <br/>This browser does not support HTML5 (see \ |
2
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
4836 <a href="https://github.com/marbl/Krona/wiki/Browser%20support">Browser support</a>).\ |
1
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4837 '; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4838 return; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4839 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4840 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4841 if ( typeof context.fillText != 'function' ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4842 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4843 document.body.innerHTML = '\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4844 <br/>This browser does not support HTML5 canvas text (see \ |
2
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
4845 <a href="https://github.com/marbl/Krona/wiki/Browser%20support">Browser support</a>).\ |
1
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4846 '; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4847 return; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4848 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4849 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4850 resize(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4851 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4852 var kronaElement = document.getElementsByTagName('krona')[0]; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4853 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4854 var magnitudeName; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4855 var hueName; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4856 var hueDefault; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4857 var hueStart; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4858 var hueEnd; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4859 var valueStart; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4860 var valueEnd; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4861 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4862 if ( kronaElement.getAttribute('collapse') != undefined ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4863 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4864 collapse = kronaElement.getAttribute('collapse') == 'true'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4865 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4866 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4867 if ( kronaElement.getAttribute('key') != undefined ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4868 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4869 showKeys = kronaElement.getAttribute('key') == 'true'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4870 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4871 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4872 for |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4873 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4874 var element = getFirstChild(kronaElement); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4875 element; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4876 element = getNextSibling(element) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4877 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4878 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4879 switch ( element.tagName.toLowerCase() ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4880 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4881 case 'attributes': |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4882 magnitudeName = element.getAttribute('magnitude'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4883 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4884 for |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4885 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4886 var attributeElement = getFirstChild(element); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4887 attributeElement; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4888 attributeElement = getNextSibling(attributeElement) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4889 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4890 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4891 var tag = attributeElement.tagName.toLowerCase(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4892 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4893 if ( tag == 'attribute' ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4894 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4895 var attribute = new Attribute(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4896 attribute.name = attributeElement.firstChild.nodeValue.toLowerCase(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4897 attribute.displayName = attributeElement.getAttribute('display'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4898 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4899 if ( attributeElement.getAttribute('hrefBase') ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4900 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4901 attribute.hrefBase = attributeElement.getAttribute('hrefBase'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4902 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4903 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4904 if ( attributeElement.getAttribute('target') ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4905 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4906 attribute.target = attributeElement.getAttribute('target'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4907 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4908 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4909 if ( attribute.name == magnitudeName ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4910 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4911 magnitudeIndex = attributes.length; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4912 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4913 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4914 if ( attributeElement.getAttribute('listAll') ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4915 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4916 attribute.listAll = attributeElement.getAttribute('listAll').toLowerCase(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4917 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4918 else if ( attributeElement.getAttribute('listNode') ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4919 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4920 attribute.listNode = attributeElement.getAttribute('listNode').toLowerCase(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4921 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4922 else if ( attributeElement.getAttribute('dataAll') ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4923 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4924 attribute.dataAll = attributeElement.getAttribute('dataAll').toLowerCase(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4925 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4926 else if ( attributeElement.getAttribute('dataNode') ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4927 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4928 attribute.dataNode = attributeElement.getAttribute('dataNode').toLowerCase(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4929 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4930 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4931 if ( attributeElement.getAttribute('postUrl') ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4932 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4933 attribute.postUrl = attributeElement.getAttribute('postUrl'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4934 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4935 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4936 if ( attributeElement.getAttribute('postVar') ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4937 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4938 attribute.postVar = attributeElement.getAttribute('postVar'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4939 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4940 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4941 if ( attributeElement.getAttribute('mono') ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4942 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4943 attribute.mono = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4944 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4945 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4946 attributes.push(attribute); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4947 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4948 else if ( tag == 'list' ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4949 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4950 var attribute = new Attribute(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4951 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4952 attribute.name = attributeElement.firstChild.nodeValue; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4953 attribute.list = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4954 attributes.push(attribute); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4955 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4956 else if ( tag == 'data' ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4957 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4958 var attribute = new Attribute(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4959 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4960 attribute.name = attributeElement.firstChild.nodeValue; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4961 attribute.data = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4962 attributes.push(attribute); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4963 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4964 var enableScript = document.createElement('script'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4965 var date = new Date(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4966 enableScript.src = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4967 attributeElement.getAttribute('enable') + '?' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4968 date.getTime(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4969 document.body.appendChild(enableScript); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4970 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4971 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4972 break; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4973 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4974 case 'color': |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4975 hueName = element.getAttribute('attribute'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4976 hueStart = Number(element.getAttribute('hueStart')) / 360; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4977 hueEnd = Number(element.getAttribute('hueEnd')) / 360; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4978 valueStart = Number(element.getAttribute('valueStart')); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4979 valueEnd = Number(element.getAttribute('valueEnd')); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4980 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4981 interpolateHue(hueStart, hueEnd, valueStart, valueEnd); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4982 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4983 if ( element.getAttribute('default') == 'true' ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4984 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4985 hueDefault = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4986 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4987 break; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4988 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4989 case 'datasets': |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4990 datasetNames = new Array(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4991 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4992 for ( j = getFirstChild(element); j; j = getNextSibling(j) ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4993 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4994 datasetNames.push(j.firstChild.nodeValue); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4995 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4996 datasets = datasetNames.length; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4997 break; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4998 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
4999 case 'node': |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5000 head = loadTreeDOM |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5001 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5002 element, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5003 magnitudeName, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5004 hueName, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5005 hueStart, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5006 hueEnd, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5007 valueStart, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5008 valueEnd |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5009 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5010 break; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5011 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5012 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5013 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5014 // get GET options |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5015 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5016 var urlHalves = String(document.location).split('?'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5017 var datasetDefault = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5018 var maxDepthDefault; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5019 var nodeDefault = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5020 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5021 if ( urlHalves[1] ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5022 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5023 var vars = urlHalves[1].split('&'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5024 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5025 for ( i = 0; i < vars.length; i++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5026 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5027 var pair = vars[i].split('='); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5028 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5029 switch ( pair[0] ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5030 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5031 case 'collapse': |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5032 collapse = pair[1] == 'true'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5033 break; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5034 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5035 case 'color': |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5036 hueDefault = pair[1] == 'true'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5037 break; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5038 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5039 case 'dataset': |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5040 datasetDefault = Number(pair[1]); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5041 break; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5042 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5043 case 'depth': |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5044 maxDepthDefault = Number(pair[1]) + 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5045 break; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5046 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5047 case 'key': |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5048 showKeys = pair[1] == 'true'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5049 break; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5050 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5051 case 'font': |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5052 fontSize = Number(pair[1]); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5053 break; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5054 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5055 case 'node': |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5056 nodeDefault = Number(pair[1]); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5057 break; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5058 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5059 default: |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5060 getVariables.push(pair[0] + '=' + pair[1]); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5061 break; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5062 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5063 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5064 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5065 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5066 addOptionElements(hueName, hueDefault); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5067 setCallBacks(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5068 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5069 head.sort(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5070 maxAbsoluteDepth = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5071 selectDataset(datasetDefault); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5072 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5073 if ( maxDepthDefault && maxDepthDefault < head.maxDepth ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5074 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5075 maxAbsoluteDepth = maxDepthDefault; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5076 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5077 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5078 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5079 maxAbsoluteDepth = head.maxDepth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5080 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5081 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5082 selectNode(nodes[nodeDefault]); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5083 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5084 setInterval(update, 20); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5085 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5086 window.onresize = handleResize; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5087 updateMaxAbsoluteDepth(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5088 updateViewNeeded = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5089 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5090 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5091 function loadTreeDOM |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5092 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5093 domNode, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5094 magnitudeName, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5095 hueName, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5096 hueStart, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5097 hueEnd, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5098 valueStart, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5099 valueEnd |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5100 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5101 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5102 var newNode = new Node(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5103 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5104 newNode.name = domNode.getAttribute('name'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5105 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5106 if ( domNode.getAttribute('href') ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5107 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5108 newNode.href = domNode.getAttribute('href'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5109 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5110 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5111 if ( hueName ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5112 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5113 newNode.hues = new Array(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5114 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5115 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5116 for ( var i = getFirstChild(domNode); i; i = getNextSibling(i) ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5117 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5118 switch ( i.tagName.toLowerCase() ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5119 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5120 case 'node': |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5121 var newChild = loadTreeDOM |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5122 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5123 i, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5124 magnitudeName, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5125 hueName, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5126 hueStart, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5127 hueEnd, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5128 valueStart, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5129 valueEnd |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5130 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5131 newChild.parent = newNode; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5132 newNode.children.push(newChild); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5133 break; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5134 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5135 default: |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5136 var attributeName = i.tagName.toLowerCase(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5137 var index = attributeIndex(attributeName); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5138 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5139 newNode.attributes[index] = new Array(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5140 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5141 for ( var j = getFirstChild(i); j; j = getNextSibling(j) ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5142 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5143 if ( attributes[index] == undefined ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5144 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5145 var x = 5; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5146 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5147 if ( attributes[index].list ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5148 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5149 newNode.attributes[index].push(new Array()); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5150 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5151 for ( var k = getFirstChild(j); k; k = getNextSibling(k) ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5152 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5153 newNode.attributes[index][newNode.attributes[index].length - 1].push(k.firstChild.nodeValue); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5154 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5155 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5156 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5157 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5158 var value = j.firstChild ? j.firstChild.nodeValue : ''; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5159 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5160 if ( j.getAttribute('href') ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5161 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5162 var target; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5163 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5164 if ( attributes[index].target ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5165 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5166 target = ' target="' + attributes[index].target + '"'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5167 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5168 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5169 value = '<a href="' + attributes[index].hrefBase + j.getAttribute('href') + '"' + target + '>' + value + '</a>'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5170 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5171 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5172 newNode.attributes[index].push(value); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5173 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5174 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5175 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5176 if ( attributeName == magnitudeName || attributeName == hueName ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5177 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5178 for ( j = 0; j < datasets; j++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5179 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5180 var value = newNode.attributes[index][j] == undefined ? 0 : Number(newNode.attributes[index][j]); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5181 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5182 newNode.attributes[index][j] = value; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5183 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5184 if ( attributeName == hueName ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5185 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5186 var hue = lerp |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5187 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5188 value, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5189 valueStart, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5190 valueEnd, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5191 hueStart, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5192 hueEnd |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5193 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5194 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5195 if ( hue < hueStart == hueStart < hueEnd ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5196 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5197 hue = hueStart; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5198 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5199 else if ( hue > hueEnd == hueStart < hueEnd ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5200 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5201 hue = hueEnd; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5202 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5203 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5204 newNode.hues[j] = hue; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5205 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5206 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5207 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5208 if ( attributeName == hueName ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5209 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5210 newNode.hue = new Tween(newNode.hues[0], newNode.hues[0]); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5211 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5212 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5213 break; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5214 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5215 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5216 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5217 return newNode; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5218 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5219 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5220 function maxAbsoluteDepthDecrease() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5221 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5222 if ( maxAbsoluteDepth > 2 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5223 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5224 maxAbsoluteDepth--; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5225 head.setMaxDepths(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5226 handleResize(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5227 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5228 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5229 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5230 function maxAbsoluteDepthIncrease() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5231 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5232 if ( maxAbsoluteDepth < head.maxDepth ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5233 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5234 maxAbsoluteDepth++; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5235 head.setMaxDepths(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5236 handleResize(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5237 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5238 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5239 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5240 function measureText(text, bold) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5241 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5242 context.font = bold ? fontBold : fontNormal; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5243 var dim = context.measureText(text); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5244 return dim.width; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5245 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5246 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5247 function min(a, b) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5248 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5249 return a < b ? a : b; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5250 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5251 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5252 function minWidth() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5253 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5254 // Min wedge width (at center) for displaying a node (or for displaying a |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5255 // label if it's at the highest level being viewed, multiplied by 2 to make |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5256 // further calculations simpler |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5257 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5258 return (fontSize * 2.3); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5259 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5260 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5261 function mouseMove(e) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5262 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5263 mouseX = e.pageX; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5264 mouseY = e.pageY - headerHeight; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5265 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5266 if ( head && ! quickLook ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5267 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5268 checkHighlight(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5269 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5270 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5271 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5272 function mouseClick(e) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5273 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5274 if ( highlightedNode == focusNode && focusNode != selectedNode || selectedNode.hasParent(highlightedNode) ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5275 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5276 if ( highlightedNode.hasChildren() ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5277 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5278 expand(highlightedNode); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5279 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5280 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5281 else if ( progress == 1 )//( highlightedNode != selectedNode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5282 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5283 setFocus(highlightedNode); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5284 // document.body.style.cursor='ew-resize'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5285 draw(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5286 checkHighlight(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5287 var date = new Date(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5288 mouseDownTime = date.getTime(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5289 mouseDown = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5290 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5291 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5292 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5293 function mouseUp(e) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5294 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5295 if ( quickLook ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5296 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5297 navigateBack(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5298 quickLook = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5299 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5300 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5301 mouseDown = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5302 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5303 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5304 function navigateBack() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5305 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5306 if ( nodeHistoryPosition > 0 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5307 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5308 nodeHistory[nodeHistoryPosition] = selectedNode; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5309 nodeHistoryPosition--; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5310 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5311 if ( nodeHistory[nodeHistoryPosition].collapse ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5312 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5313 collapseCheckBox.checked = collapse = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5314 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5315 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5316 setSelectedNode(nodeHistory[nodeHistoryPosition]); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5317 updateDatasetButtons(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5318 updateView(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5319 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5320 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5321 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5322 function navigateUp() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5323 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5324 if ( selectedNode.getParent() ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5325 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5326 selectNode(selectedNode.getParent()); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5327 updateView(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5328 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5329 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5330 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5331 function navigateForward() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5332 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5333 if ( nodeHistoryPosition < nodeHistory.length - 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5334 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5335 nodeHistoryPosition++; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5336 var newNode = nodeHistory[nodeHistoryPosition]; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5337 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5338 if ( newNode.collapse ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5339 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5340 collapseCheckBox.checked = collapse = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5341 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5342 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5343 if ( nodeHistoryPosition == nodeHistory.length - 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5344 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5345 // this will ensure the forward button is disabled |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5346 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5347 nodeHistory.length = nodeHistoryPosition; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5348 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5349 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5350 setSelectedNode(newNode); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5351 updateDatasetButtons(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5352 updateView(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5353 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5354 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5355 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5356 function nextDataset() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5357 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5358 var newDataset = currentDataset; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5359 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5360 do |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5361 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5362 if ( newDataset == datasets - 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5363 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5364 newDataset = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5365 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5366 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5367 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5368 newDataset++; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5369 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5370 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5371 while ( datasetDropDown.options[newDataset].disabled ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5372 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5373 selectDataset(newDataset); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5374 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5375 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5376 function onDatasetChange() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5377 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5378 selectDataset(datasetDropDown.selectedIndex); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5379 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5380 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5381 function onKeyDown(event) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5382 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5383 if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5384 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5385 event.keyCode == 37 && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5386 document.activeElement.id != 'search' && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5387 document.activeElement.id != 'linkText' |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5388 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5389 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5390 navigateBack(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5391 event.preventDefault(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5392 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5393 else if |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5394 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5395 event.keyCode == 39 && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5396 document.activeElement.id != 'search' && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5397 document.activeElement.id != 'linkText' |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5398 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5399 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5400 navigateForward(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5401 event.preventDefault(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5402 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5403 else if ( event.keyCode == 38 && datasets > 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5404 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5405 prevDataset(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5406 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5407 //if ( document.activeElement.id == 'datasets' ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5408 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5409 event.preventDefault(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5410 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5411 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5412 else if ( event.keyCode == 40 && datasets > 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5413 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5414 nextDataset(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5415 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5416 //if ( document.activeElement.id == 'datasets' ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5417 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5418 event.preventDefault(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5419 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5420 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5421 else if ( event.keyCode == 9 && datasets > 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5422 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5423 selectLastDataset(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5424 event.preventDefault(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5425 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5426 else if ( event.keyCode == 83 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5427 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5428 progress += .2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5429 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5430 else if ( event.keyCode == 66 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5431 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5432 progress -= .2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5433 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5434 else if ( event.keyCode == 70 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5435 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5436 progress = 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5437 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5438 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5439 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5440 function onKeyPress(event) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5441 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5442 if ( event.keyCode == 38 && datasets > 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5443 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5444 // prevDataset(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5445 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5446 //if ( document.activeElement.id == 'datasets' ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5447 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5448 event.preventDefault(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5449 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5450 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5451 else if ( event.keyCode == 40 && datasets > 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5452 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5453 // nextDataset(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5454 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5455 //if ( document.activeElement.id == 'datasets' ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5456 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5457 event.preventDefault(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5458 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5459 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5460 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5461 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5462 function onKeyUp(event) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5463 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5464 if ( event.keyCode == 27 && document.activeElement.id == 'search' ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5465 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5466 search.value = ''; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5467 onSearchChange(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5468 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5469 else if ( event.keyCode == 38 && datasets > 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5470 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5471 // prevDataset(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5472 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5473 //if ( document.activeElement.id == 'datasets' ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5474 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5475 event.preventDefault(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5476 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5477 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5478 else if ( event.keyCode == 40 && datasets > 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5479 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5480 // nextDataset(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5481 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5482 //if ( document.activeElement.id == 'datasets' ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5483 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5484 event.preventDefault(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5485 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5486 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5487 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5488 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5489 function onSearchChange() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5490 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5491 nSearchResults = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5492 head.search(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5493 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5494 if ( search.value == '' ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5495 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5496 searchResults.innerHTML = ''; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5497 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5498 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5499 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5500 searchResults.innerHTML = nSearchResults + ' results'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5501 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5502 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5503 setFocus(selectedNode); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5504 draw(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5505 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5506 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5507 function post(url, variable, value, postWindow) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5508 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5509 var form = document.createElement('form'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5510 var input = document.createElement('input'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5511 var inputDataset = document.createElement('input'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5512 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5513 form.appendChild(input); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5514 form.appendChild(inputDataset); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5515 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5516 form.method = "POST"; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5517 form.action = url; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5518 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5519 if ( postWindow == undefined ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5520 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5521 form.target = '_blank'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5522 postWindow = window; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5523 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5524 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5525 input.type = 'hidden'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5526 input.name = variable; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5527 input.value = value; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5528 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5529 inputDataset.type = 'hidden'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5530 inputDataset.name = 'dataset'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5531 inputDataset.value = currentDataset; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5532 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5533 postWindow.document.body.appendChild(form); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5534 form.submit(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5535 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5536 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5537 function prevDataset() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5538 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5539 var newDataset = currentDataset; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5540 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5541 do |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5542 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5543 if ( newDataset == 0 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5544 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5545 newDataset = datasets - 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5546 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5547 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5548 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5549 newDataset--; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5550 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5551 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5552 while ( datasetDropDown.options[newDataset].disabled ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5553 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5554 selectDataset(newDataset); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5555 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5556 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5557 function radiusDecrease() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5558 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5559 if ( bufferFactor < .309 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5560 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5561 bufferFactor += .03; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5562 updateViewNeeded = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5563 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5564 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5565 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5566 function radiusIncrease() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5567 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5568 if ( bufferFactor > .041 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5569 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5570 bufferFactor -= .03; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5571 updateViewNeeded = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5572 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5573 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5574 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5575 function resetKeyOffset() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5576 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5577 currentKey = 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5578 keyMinTextLeft = centerX + gRadius + buffer - buffer / (keys + 1) / 2 + fontSize / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5579 keyMinAngle = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5580 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5581 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5582 function rgbText(r, g, b) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5583 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5584 var rgbArray = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5585 [ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5586 "rgb(", |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5587 Math.floor(r), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5588 ",", |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5589 Math.floor(g), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5590 ",", |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5591 Math.floor(b), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5592 ")" |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5593 ]; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5594 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5595 return rgbArray.join(''); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5596 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5597 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5598 function round(number) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5599 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5600 if ( number >= 1 || number <= -1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5601 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5602 return number.toFixed(0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5603 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5604 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5605 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5606 return number.toPrecision(1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5607 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5608 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5609 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5610 function roundedRectangle(x, y, width, height, radius) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5611 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5612 if ( radius * 2 > width ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5613 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5614 radius = width / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5615 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5616 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5617 if ( radius * 2 > height ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5618 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5619 radius = height / 2; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5620 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5621 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5622 context.beginPath(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5623 context.arc(x + radius, y + radius, radius, Math.PI, Math.PI * 3 / 2, false); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5624 context.lineTo(x + width - radius, y); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5625 context.arc(x + width - radius, y + radius, radius, Math.PI * 3 / 2, Math.PI * 2, false); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5626 context.lineTo(x + width, y + height - radius); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5627 context.arc(x + width - radius, y + height - radius, radius, 0, Math.PI / 2, false); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5628 context.lineTo(x + radius, y + height); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5629 context.arc(x + radius, y + height - radius, radius, Math.PI / 2, Math.PI, false); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5630 context.lineTo(x, y + radius); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5631 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5632 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5633 function passClick(e) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5634 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5635 mouseClick(e); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5636 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5637 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5638 function searchResultString(results) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5639 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5640 var searchResults = this.searchResults; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5641 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5642 if ( this.isSearchResult ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5643 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5644 // don't count ourselves |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5645 searchResults--; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5646 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5647 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5648 return ' - ' + results + (results > 1 ? ' results' : ' result'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5649 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5650 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5651 function setCallBacks() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5652 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5653 canvas.onselectstart = function(){return false;} // prevent unwanted highlighting |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5654 options.onselectstart = function(){return false;} // prevent unwanted highlighting |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5655 document.onmousemove = mouseMove; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5656 window.onblur = focusLost; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5657 window.onmouseout = focusLost; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5658 document.onkeyup = onKeyUp; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5659 document.onkeydown = onKeyDown; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5660 canvas.onmousedown = mouseClick; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5661 document.onmouseup = mouseUp; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5662 keyControl.onclick = toggleKeys; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5663 collapseCheckBox = document.getElementById('collapse'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5664 collapseCheckBox.checked = collapse; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5665 collapseCheckBox.onclick = handleResize; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5666 collapseCheckBox.onmousedown = suppressEvent; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5667 maxAbsoluteDepthText = document.getElementById('maxAbsoluteDepth'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5668 maxAbsoluteDepthButtonDecrease = document.getElementById('maxAbsoluteDepthDecrease'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5669 maxAbsoluteDepthButtonIncrease = document.getElementById('maxAbsoluteDepthIncrease'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5670 maxAbsoluteDepthButtonDecrease.onclick = maxAbsoluteDepthDecrease; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5671 maxAbsoluteDepthButtonIncrease.onclick = maxAbsoluteDepthIncrease; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5672 maxAbsoluteDepthButtonDecrease.onmousedown = suppressEvent; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5673 maxAbsoluteDepthButtonIncrease.onmousedown = suppressEvent; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5674 fontSizeText = document.getElementById('fontSize'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5675 fontSizeButtonDecrease = document.getElementById('fontSizeDecrease'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5676 fontSizeButtonIncrease = document.getElementById('fontSizeIncrease'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5677 fontSizeButtonDecrease.onclick = fontSizeDecrease; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5678 fontSizeButtonIncrease.onclick = fontSizeIncrease; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5679 fontSizeButtonDecrease.onmousedown = suppressEvent; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5680 fontSizeButtonIncrease.onmousedown = suppressEvent; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5681 radiusButtonDecrease = document.getElementById('radiusDecrease'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5682 radiusButtonIncrease = document.getElementById('radiusIncrease'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5683 radiusButtonDecrease.onclick = radiusDecrease; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5684 radiusButtonIncrease.onclick = radiusIncrease; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5685 radiusButtonDecrease.onmousedown = suppressEvent; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5686 radiusButtonIncrease.onmousedown = suppressEvent; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5687 maxAbsoluteDepth = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5688 backButton = document.getElementById('back'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5689 backButton.onclick = navigateBack; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5690 backButton.onmousedown = suppressEvent; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5691 forwardButton = document.getElementById('forward'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5692 forwardButton.onclick = navigateForward; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5693 forwardButton.onmousedown = suppressEvent; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5694 snapshotButton = document.getElementById('snapshot'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5695 snapshotButton.onclick = snapshot; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5696 snapshotButton.onmousedown = suppressEvent; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5697 detailsName = document.getElementById('detailsName'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5698 detailsExpand = document.getElementById('detailsExpand'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5699 detailsInfo = document.getElementById('detailsInfo'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5700 search = document.getElementById('search'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5701 search.onkeyup = onSearchChange; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5702 search.onmousedown = suppressEvent; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5703 searchResults = document.getElementById('searchResults'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5704 useHueDiv = document.getElementById('useHueDiv'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5705 linkButton = document.getElementById('linkButton'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5706 linkButton.onclick = showLink; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5707 linkButton.onmousedown = suppressEvent; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5708 linkText = document.getElementById('linkText'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5709 linkText.onblur = hideLink; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5710 linkText.onmousedown = suppressEvent; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5711 hide(linkText); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5712 var helpButton = document.getElementById('help'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5713 helpButton.onmousedown = suppressEvent; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5714 var searchClear = document.getElementById('searchClear'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5715 searchClear.onmousedown = suppressEvent; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5716 if ( datasets > 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5717 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5718 datasetDropDown.onmousedown = suppressEvent; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5719 var prevDatasetButton = document.getElementById('prevDataset'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5720 prevDatasetButton.onmousedown = suppressEvent; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5721 var nextDatasetButton = document.getElementById('nextDataset'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5722 nextDatasetButton.onmousedown = suppressEvent; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5723 var lastDatasetButton = document.getElementById('lastDataset'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5724 lastDatasetButton.onmousedown = suppressEvent; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5725 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5726 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5727 image = document.getElementById('hiddenImage'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5728 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5729 if ( image.complete ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5730 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5731 hiddenPattern = context.createPattern(image, 'repeat'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5732 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5733 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5734 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5735 image.onload = function() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5736 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5737 hiddenPattern = context.createPattern(image, 'repeat'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5738 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5739 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5740 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5741 var loadingImageElement = document.getElementById('loadingImage'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5742 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5743 if ( loadingImageElement ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5744 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5745 loadingImage = loadingImageElement.src; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5746 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5747 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5748 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5749 function selectDataset(newDataset) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5750 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5751 lastDataset = currentDataset; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5752 currentDataset = newDataset |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5753 if ( datasets > 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5754 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5755 datasetDropDown.selectedIndex = currentDataset; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5756 updateDatasetButtons(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5757 datasetAlpha.start = 1.5; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5758 datasetChanged = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5759 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5760 head.setMagnitudes(0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5761 head.setDepth(1, 1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5762 head.setMaxDepths(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5763 handleResize(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5764 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5765 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5766 function selectLastDataset() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5767 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5768 selectDataset(lastDataset); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5769 handleResize(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5770 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5771 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5772 function selectNode(newNode) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5773 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5774 if ( selectedNode != newNode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5775 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5776 // truncate history at current location to create a new branch |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5777 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5778 nodeHistory.length = nodeHistoryPosition; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5779 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5780 if ( selectedNode != 0 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5781 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5782 nodeHistory.push(selectedNode); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5783 nodeHistoryPosition++; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5784 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5785 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5786 setSelectedNode(newNode); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5787 //updateView(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5788 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5789 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5790 updateDatasetButtons(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5791 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5792 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5793 function setFocus(node) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5794 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5795 if ( node == focusNode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5796 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5797 // return; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5798 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5799 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5800 focusNode = node; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5801 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5802 if ( node.href ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5803 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5804 detailsName.innerHTML = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5805 '<a target="_blank" href="' + node.href + '">' + node.name + '</a>'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5806 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5807 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5808 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5809 detailsName.innerHTML = node.name; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5810 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5811 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5812 var table = '<table>'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5813 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5814 table += '<tr><td></td></tr>'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5815 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5816 for ( var i = 0; i < node.attributes.length; i++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5817 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5818 if ( attributes[i].displayName && node.attributes[i] != undefined ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5819 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5820 var index = node.attributes[i].length == 1 && attributes[i].mono ? 0 : currentDataset; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5821 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5822 if ( typeof node.attributes[i][currentDataset] == 'number' || node.attributes[i][index] != undefined && node.attributes[i][currentDataset] != '' ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5823 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5824 var value = node.attributes[i][index]; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5825 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5826 if ( attributes[i].listNode != undefined ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5827 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5828 value = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5829 '<a href="" onclick="showList(' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5830 attributeIndex(attributes[i].listNode) + ',' + i + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5831 ',false);return false;" title="Show list">' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5832 value + '</a>'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5833 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5834 else if ( attributes[i].listAll != undefined ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5835 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5836 value = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5837 '<a href="" onclick="showList(' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5838 attributeIndex(attributes[i].listAll) + ',' + i + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5839 ',true);return false;" title="Show list">' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5840 value + '</a>'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5841 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5842 else if ( attributes[i].dataNode != undefined && dataEnabled ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5843 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5844 value = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5845 '<a href="" onclick="showData(' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5846 attributeIndex(attributes[i].dataNode) + ',' + i + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5847 ',false);return false;" title="Show data">' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5848 value + '</a>'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5849 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5850 else if ( attributes[i].dataAll != undefined && dataEnabled ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5851 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5852 value = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5853 '<a href="" onclick="showData(' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5854 attributeIndex(attributes[i].dataAll) + ',' + i + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5855 ',true);return false;" title="Show data">' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5856 value + '</a>'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5857 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5858 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5859 table += |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5860 '<tr><td><strong>' + attributes[i].displayName + ':</strong></td><td>' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5861 value + '</td></tr>'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5862 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5863 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5864 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5865 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5866 table += '</table>'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5867 detailsInfo.innerHTML = table; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5868 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5869 detailsExpand.disabled = !focusNode.hasChildren() || focusNode == selectedNode; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5870 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5871 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5872 function setSelectedNode(newNode) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5873 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5874 if ( selectedNode && selectedNode.hasParent(newNode) ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5875 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5876 zoomOut = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5877 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5878 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5879 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5880 zoomOut = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5881 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5882 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5883 selectedNodeLast = selectedNode; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5884 selectedNode = newNode; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5885 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5886 //if ( focusNode != selectedNode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5887 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5888 setFocus(selectedNode); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5889 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5890 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5891 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5892 function waitForData(dataWindow, target, title, time, postUrl, postVar) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5893 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5894 if ( nodeData.length == target ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5895 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5896 if ( postUrl != undefined ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5897 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5898 for ( var i = 0; i < nodeData.length; i++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5899 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5900 nodeData[i] = nodeData[i].replace(/\n/g, ','); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5901 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5902 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5903 var postString = nodeData.join(''); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5904 postString = postString.slice(0, -1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5905 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5906 dataWindow.document.body.removeChild(dataWindow.document.getElementById('loading')); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5907 document.body.removeChild(document.getElementById('data')); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5908 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5909 post(postUrl, postVar, postString, dataWindow); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5910 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5911 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5912 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5913 //dataWindow.document.body.removeChild(dataWindow.document.getElementById('loading')); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5914 //document.body.removeChild(document.getElementById('data')); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5915 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5916 dataWindow.document.open(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5917 dataWindow.document.write('<pre>' + nodeData.join('') + '</pre>'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5918 dataWindow.document.close(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5919 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5920 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5921 dataWindow.document.title = title; // replace after document.write() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5922 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5923 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5924 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5925 var date = new Date(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5926 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5927 if ( date.getTime() - time > 10000 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5928 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5929 dataWindow.document.body.removeChild(dataWindow.document.getElementById('loading')); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5930 document.body.removeChild(document.getElementById('data')); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5931 dataWindow.document.body.innerHTML = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5932 'Timed out loading supplemental files for:<br/>' + document.location; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5933 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5934 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5935 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5936 setTimeout(function() {waitForData(dataWindow, target, title, time, postUrl, postVar);}, 100); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5937 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5938 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5939 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5940 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5941 function data(newData) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5942 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5943 nodeData.push(newData); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5944 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5945 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5946 function enableData() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5947 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5948 dataEnabled = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5949 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5950 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5951 function showData(indexData, indexAttribute, summary) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5952 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5953 var dataWindow = window.open('', '_blank'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5954 var title = 'Krona - ' + attributes[indexAttribute].displayName + ' - ' + focusNode.name; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5955 dataWindow.document.title = title; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5956 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5957 nodeData = new Array(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5958 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5959 if ( dataWindow && dataWindow.document && dataWindow.document.body != null ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5960 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5961 //var loadImage = document.createElement('img'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5962 //loadImage.src = "file://localhost/Users/ondovb/Krona/KronaTools/img/loading.gif"; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5963 //loadImage.id = "loading"; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5964 //loadImage.alt = "Loading..."; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5965 //dataWindow.document.body.appendChild(loadImage); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5966 dataWindow.document.body.innerHTML = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5967 '<img id="loading" src="' + loadingImage + '" alt="Loading..."></img>'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5968 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5969 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5970 var scripts = document.createElement('div'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5971 scripts.id = 'data'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5972 document.body.appendChild(scripts); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5973 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5974 var files = focusNode.getData(indexData, summary); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5975 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5976 var date = new Date(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5977 var time = date.getTime(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5978 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5979 for ( var i = 0; i < files.length; i++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5980 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5981 var script = document.createElement('script'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5982 script.src = files[i] + '?' + time; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5983 scripts.appendChild(script); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5984 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5985 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5986 waitForData(dataWindow, files.length, title, time, attributes[indexAttribute].postUrl, attributes[indexAttribute].postVar); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5987 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5988 return false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5989 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5990 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5991 function showList(indexList, indexAttribute, summary) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5992 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5993 var list = focusNode.getList(indexList, summary); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5994 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5995 if ( attributes[indexAttribute].postUrl != undefined ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5996 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5997 post(attributes[indexAttribute].postUrl, attributes[indexAttribute].postVar, list.join(',')); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5998 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
5999 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6000 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6001 var dataWindow = window.open('', '_blank'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6002 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6003 if ( true || navigator.appName == 'Microsoft Internet Explorer' ) // :( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6004 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6005 dataWindow.document.open(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6006 dataWindow.document.write('<pre>' + list.join('\n') + '</pre>'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6007 dataWindow.document.close(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6008 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6009 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6010 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6011 var pre = document.createElement('pre'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6012 dataWindow.document.body.appendChild(pre); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6013 pre.innerHTML = list; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6014 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6015 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6016 dataWindow.document.title = 'Krona - ' + attributes[indexAttribute].displayName + ' - ' + focusNode.name; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6017 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6018 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6019 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6020 function snapshot() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6021 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6022 svg = svgHeader(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6023 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6024 resetKeyOffset(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6025 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6026 snapshotMode = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6027 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6028 selectedNode.draw(false, true); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6029 selectedNode.draw(true, true); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6030 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6031 if ( focusNode != 0 && focusNode != selectedNode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6032 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6033 context.globalAlpha = 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6034 focusNode.drawHighlight(true); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6035 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6036 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6037 if ( hueDisplayName && useHue() ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6038 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6039 drawLegendSVG(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6040 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6041 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6042 snapshotMode = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6043 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6044 svg += svgFooter(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6045 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6046 snapshotWindow = window.open |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6047 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6048 'data:image/svg+xml;charset=utf-8,' + encodeURIComponent(svg), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6049 '_blank' |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6050 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6051 /* var data = window.open('data:text/plain;charset=utf-8,hello', '_blank'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6052 var data = window.open('', '_blank'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6053 data.document.open('text/plain'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6054 data.document.write('hello'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6055 data.document.close(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6056 var button = document.createElement('input'); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6057 button.type = 'button'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6058 button.value = 'save'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6059 button.onclick = save; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6060 data.document.body.appendChild(button); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6061 // snapshotWindow.document.write(svg); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6062 // snapshotWindow.document.close(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6063 */ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6064 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6065 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6066 function save() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6067 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6068 alert(document.body.innerHTML); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6069 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6070 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6071 function spacer() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6072 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6073 if ( snapshotMode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6074 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6075 return '   '; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6076 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6077 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6078 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6079 return ' '; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6080 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6081 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6082 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6083 function suppressEvent(e) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6084 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6085 e.cancelBubble = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6086 if (e.stopPropagation) e.stopPropagation(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6087 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6088 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6089 function svgFooter() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6090 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6091 return '</svg>'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6092 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6093 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6094 function svgHeader() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6095 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6096 var patternWidth = fontSize * .6;//radius / 50; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6097 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6098 return '\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6099 <?xml version="1.0" standalone="no"?>\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6100 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" \ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6101 "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6102 <svg width="' + imageWidth + '" height="' + imageHeight + '" version="1.1"\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6103 xmlns="http://www.w3.org/2000/svg">\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6104 <title>Krona (snapshot) - ' + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6105 (datasets > 1 ? datasetNames[currentDataset] + ' - ' : '') + selectedNode.name + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6106 '</title>\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6107 <defs>\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6108 <style type="text/css">\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6109 text {font-size: ' + fontSize + 'px; font-family: ' + fontFamily + '; dominant-baseline:central}\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6110 path {stroke-width:' + thinLineWidth * fontSize / 12 + ';}\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6111 path.wedge {stroke:none}\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6112 path.line {fill:none;stroke:black;}\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6113 line {stroke:black;stroke-width:' + thinLineWidth * fontSize / 12 + ';}\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6114 line.tick {stroke-width:' + thinLineWidth * fontSize / 6 + ';}\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6115 line.pattern {stroke-width:' + thinLineWidth * fontSize / 18 + ';}\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6116 circle {fill:none;stroke:black;stroke-width:' + thinLineWidth * fontSize / 12 + ';}\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6117 rect {stroke:black;stroke-width:' + thinLineWidth * fontSize / 12 + ';}\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6118 .highlight {stroke:black;stroke-width:'+ highlightLineWidth * fontSize / 12 + ';}\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6119 .searchHighlight {fill:rgb(255, 255, 100);stroke:none;}\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6120 </style>\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6121 <pattern id="hiddenPattern" patternUnits="userSpaceOnUse" \ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6122 x="0" y="0" width="' + patternWidth + '" height="' + patternWidth + '">\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6123 <line class="pattern" x1="0" y1="0" x2="' + patternWidth / 2 + '" y2="' + patternWidth / 2 + '"/>\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6124 <line class="pattern" x1="' + patternWidth / 2 + '" y1="' + patternWidth + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6125 '" x2="' + patternWidth + '" y2="' + patternWidth / 2 + '"/>\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6126 </pattern>\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6127 </defs>\ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6128 '; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6129 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6130 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6131 function svgText(text, x, y, anchor, bold, color) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6132 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6133 if ( typeof(anchor) == 'undefined' ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6134 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6135 anchor = 'start'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6136 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6137 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6138 if ( color == undefined ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6139 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6140 color = 'black'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6141 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6142 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6143 return '<text x="' + x + '" y="' + y + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6144 '" style="font-color:' + color + ';font-weight:' + (bold ? 'bold' : 'normal') + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6145 '" text-anchor="' + anchor + '">' + text + '</text>'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6146 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6147 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6148 function toggleKeys() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6149 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6150 if ( showKeys ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6151 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6152 keyControl.value = '…'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6153 showKeys = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6154 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6155 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6156 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6157 keyControl.value = 'x'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6158 showKeys = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6159 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6160 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6161 updateKeyControl(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6162 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6163 if ( progress == 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6164 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6165 draw(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6166 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6167 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6168 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6169 function update() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6170 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6171 if ( ! head ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6172 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6173 return; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6174 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6175 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6176 if ( mouseDown && focusNode != selectedNode ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6177 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6178 var date = new Date(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6179 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6180 if ( date.getTime() - mouseDownTime > quickLookHoldLength ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6181 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6182 if ( focusNode.hasChildren() ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6183 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6184 expand(focusNode); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6185 quickLook = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6186 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6187 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6188 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6189 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6190 if ( updateViewNeeded ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6191 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6192 resize(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6193 mouseX = -1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6194 mouseY = -1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6195 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6196 collapse = collapseCheckBox.checked; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6197 compress = true;//compressCheckBox.checked; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6198 shorten = true;//shortenCheckBox.checked; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6199 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6200 checkSelectedCollapse(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6201 updateMaxAbsoluteDepth(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6202 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6203 if ( focusNode.getCollapse() || focusNode.depth > maxAbsoluteDepth ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6204 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6205 setFocus(selectedNode); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6206 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6207 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6208 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6209 setFocus(focusNode); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6210 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6211 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6212 updateView(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6213 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6214 updateViewNeeded = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6215 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6216 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6217 var date = new Date(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6218 progress = (date.getTime() - tweenStartTime) / tweenLength; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6219 // progress += .01; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6220 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6221 if ( progress >= 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6222 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6223 progress = 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6224 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6225 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6226 if ( progress != progressLast ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6227 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6228 tweenFactor =// progress; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6229 (1 / (1 + Math.exp(-tweenCurvature * (progress - .5))) - .5) / |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6230 (tweenMax - .5) / 2 + .5; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6231 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6232 if ( progress == 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6233 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6234 snapshotButton.disabled = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6235 zoomOut = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6236 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6237 //updateKeyControl(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6238 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6239 if ( ! quickLook ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6240 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6241 //checkHighlight(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6242 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6243 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6244 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6245 if ( fpsDisplay ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6246 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6247 fpsDisplay.innerHTML = 'fps: ' + Math.round(tweenFrames * 1000 / tweenLength); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6248 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6249 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6250 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6251 draw(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6252 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6253 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6254 progressLast = progress; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6255 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6256 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6257 function updateDatasetButtons() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6258 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6259 if ( datasets == 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6260 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6261 return; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6262 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6263 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6264 var node = selectedNode ? selectedNode : head; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6265 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6266 datasetButtonLast.disabled = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6267 node.attributes[magnitudeIndex][lastDataset] == 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6268 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6269 datasetButtonPrev.disabled = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6270 datasetButtonNext.disabled = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6271 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6272 for ( var i = 0; i < datasets; i++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6273 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6274 var disable = node.attributes[magnitudeIndex][i] == 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6275 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6276 datasetDropDown.options[i].disabled = disable; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6277 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6278 if ( ! disable ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6279 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6280 if ( i != currentDataset ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6281 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6282 datasetButtonPrev.disabled = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6283 datasetButtonNext.disabled = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6284 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6285 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6286 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6287 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6288 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6289 function updateDatasetWidths() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6290 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6291 if ( datasets > 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6292 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6293 for ( var i = 0; i < datasets; i++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6294 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6295 context.font = fontBold; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6296 var dim = context.measureText(datasetNames[i]); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6297 datasetWidths[i] = dim.width; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6298 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6299 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6300 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6301 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6302 function updateKeyControl() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6303 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6304 if ( keys == 0 )//|| progress != 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6305 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6306 keyControl.style.visibility = 'hidden'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6307 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6308 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6309 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6310 keyControl.style.visibility = 'visible'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6311 keyControl.style.right = margin + 'px'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6312 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6313 if ( showKeys ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6314 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6315 keyControl.style.top = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6316 imageHeight - |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6317 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6318 keys * (keySize + keyBuffer) - |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6319 keyBuffer + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6320 margin + |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6321 keyControl.clientHeight * 1.5 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6322 ) + 'px'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6323 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6324 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6325 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6326 keyControl.style.top = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6327 (imageHeight - margin - keyControl.clientHeight) + 'px'; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6328 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6329 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6330 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6331 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6332 function updateView() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6333 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6334 if ( selectedNode.depth > maxAbsoluteDepth - 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6335 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6336 maxAbsoluteDepth = selectedNode.depth + 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6337 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6338 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6339 highlightedNode = selectedNode; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6340 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6341 angleFactor = 2 * Math.PI / (selectedNode.magnitude); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6342 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6343 maxPossibleDepth = Math.floor(gRadius / (fontSize * minRingWidthFactor)); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6344 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6345 if ( maxPossibleDepth < 4 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6346 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6347 maxPossibleDepth = 4; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6348 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6349 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6350 var minRadiusInner = fontSize * 8 / gRadius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6351 var minRadiusFirst = fontSize * 6 / gRadius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6352 var minRadiusOuter = fontSize * 5 / gRadius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6353 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6354 if ( .25 < minRadiusInner ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6355 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6356 minRadiusInner = .25; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6357 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6358 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6359 if ( .15 < minRadiusFirst ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6360 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6361 minRadiusFirst = .15; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6362 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6363 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6364 if ( .15 < minRadiusOuter ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6365 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6366 minRadiusOuter = .15; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6367 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6368 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6369 // visibility of nodes depends on the depth they are displayed at, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6370 // so we need to set the max depth assuming they can all be displayed |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6371 // and iterate it down based on the deepest child node we can display |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6372 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6373 var maxDepth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6374 var newMaxDepth = selectedNode.getMaxDepth() - selectedNode.getDepth() + 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6375 // |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6376 do |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6377 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6378 maxDepth = newMaxDepth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6379 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6380 if ( ! compress && maxDepth > maxPossibleDepth ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6381 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6382 maxDepth = maxPossibleDepth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6383 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6384 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6385 if ( compress ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6386 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6387 compressedRadii = new Array(maxDepth); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6388 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6389 compressedRadii[0] = minRadiusInner; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6390 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6391 var offset = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6392 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6393 while |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6394 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6395 lerp |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6396 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6397 Math.atan(offset + 2), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6398 Math.atan(offset + 1), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6399 Math.atan(maxDepth + offset - 1), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6400 minRadiusInner, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6401 1 - minRadiusOuter |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6402 ) - minRadiusInner > minRadiusFirst && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6403 offset < 10 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6404 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6405 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6406 offset++; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6407 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6408 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6409 offset--; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6410 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6411 for ( var i = 1; i < maxDepth; i++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6412 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6413 compressedRadii[i] = lerp |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6414 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6415 Math.atan(i + offset), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6416 Math.atan(offset), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6417 Math.atan(maxDepth + offset - 1), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6418 minRadiusInner, |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6419 1 - minRadiusOuter |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6420 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6421 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6422 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6423 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6424 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6425 nodeRadius = 1 / maxDepth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6426 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6427 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6428 newMaxDepth = selectedNode.maxVisibleDepth(maxDepth); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6429 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6430 if ( compress ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6431 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6432 if ( newMaxDepth <= maxPossibleDepth ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6433 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6434 // compress |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6435 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6436 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6437 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6438 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6439 if ( newMaxDepth > maxPossibleDepth ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6440 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6441 newMaxDepth = maxPossibleDepth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6442 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6443 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6444 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6445 while ( newMaxDepth < maxDepth ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6446 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6447 maxDisplayDepth = maxDepth; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6448 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6449 lightnessFactor = (lightnessMax - lightnessBase) / (maxDepth > 8 ? 8 : maxDepth); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6450 keys = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6451 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6452 nLabelOffsets = new Array(maxDisplayDepth - 1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6453 labelOffsets = new Array(maxDisplayDepth - 1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6454 labelLastNodes = new Array(maxDisplayDepth - 1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6455 labelFirstNodes = new Array(maxDisplayDepth - 1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6456 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6457 for ( var i = 0; i < maxDisplayDepth - 1; i++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6458 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6459 if ( compress ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6460 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6461 if ( i == maxDisplayDepth - 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6462 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6463 nLabelOffsets[i] = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6464 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6465 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6466 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6467 var width = |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6468 (compressedRadii[i + 1] - compressedRadii[i]) * |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6469 gRadius; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6470 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6471 nLabelOffsets[i] = Math.floor(width / fontSize / 1.2); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6472 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6473 if ( nLabelOffsets[i] > 2 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6474 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6475 nLabelOffsets[i] = min |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6476 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6477 Math.floor(width / fontSize / 1.75), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6478 5 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6479 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6480 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6481 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6482 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6483 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6484 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6485 nLabelOffsets[i] = Math.max |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6486 ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6487 Math.floor(Math.sqrt((nodeRadius * gRadius / fontSize)) * 1.5), |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6488 3 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6489 ); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6490 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6491 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6492 labelOffsets[i] = Math.floor((nLabelOffsets[i] - 1) / 2); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6493 labelLastNodes[i] = new Array(nLabelOffsets[i] + 1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6494 labelFirstNodes[i] = new Array(nLabelOffsets[i] + 1); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6495 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6496 for ( var j = 0; j <= nLabelOffsets[i]; j++ ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6497 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6498 // these arrays will allow nodes with neighboring labels to link to |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6499 // each other to determine max label length |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6500 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6501 labelLastNodes[i][j] = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6502 labelFirstNodes[i][j] = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6503 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6504 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6505 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6506 fontSizeText.innerHTML = fontSize; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6507 fontNormal = fontSize + 'px ' + fontFamily; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6508 context.font = fontNormal; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6509 fontBold = 'bold ' + fontSize + 'px ' + fontFamily; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6510 tickLength = fontSize * .7; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6511 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6512 head.setTargets(0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6513 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6514 keySize = ((imageHeight - margin * 3) * 1 / 2) / keys * 3 / 4; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6515 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6516 if ( keySize > fontSize * maxKeySizeFactor ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6517 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6518 keySize = fontSize * maxKeySizeFactor; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6519 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6520 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6521 keyBuffer = keySize / 3; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6522 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6523 fontSizeLast = fontSize; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6524 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6525 if ( datasetChanged ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6526 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6527 datasetChanged = false; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6528 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6529 else |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6530 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6531 datasetAlpha.start = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6532 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6533 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6534 var date = new Date(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6535 tweenStartTime = date.getTime(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6536 progress = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6537 tweenFrames = 0; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6538 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6539 updateKeyControl(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6540 updateDatasetWidths(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6541 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6542 document.title = 'Krona - ' + selectedNode.name; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6543 updateNavigationButtons(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6544 snapshotButton.disabled = true; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6545 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6546 maxAbsoluteDepthText.innerHTML = maxAbsoluteDepth - 1; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6547 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6548 maxAbsoluteDepthButtonDecrease.disabled = (maxAbsoluteDepth == 2); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6549 maxAbsoluteDepthButtonIncrease.disabled = (maxAbsoluteDepth == head.maxDepth); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6550 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6551 if ( collapse != collapseLast && search.value != '' ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6552 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6553 onSearchChange(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6554 collapseLast = collapse; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6555 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6556 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6557 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6558 function updateMaxAbsoluteDepth() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6559 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6560 while ( selectedNode.depth > maxAbsoluteDepth - 1 ) |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6561 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6562 selectedNode = selectedNode.getParent(); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6563 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6564 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6565 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6566 function updateNavigationButtons() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6567 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6568 backButton.disabled = (nodeHistoryPosition == 0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6569 // upButton.disabled = (selectedNode.getParent() == 0); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6570 forwardButton.disabled = (nodeHistoryPosition == nodeHistory.length); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6571 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6572 |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6573 function useHue() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6574 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6575 return useHueCheckBox && useHueCheckBox.checked; |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6576 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6577 /* |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6578 function zoomOut() |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6579 { |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6580 return ( |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6581 selectedNodeLast != 0 && |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6582 selectedNodeLast.getDepth() < selectedNode.getDepth()); |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6583 } |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6584 */ |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6585 </script> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6586 </head> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6587 <body> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6588 <img id="hiddenImage" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9oLCBQhNQwWVnsAAAAidEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVAgb24gYSBNYWOHqHdDAAABE0lEQVQYGQEIAff+AwAAABkAAAAAAAAA+gAAAAAAAAAAAAAAAAAAAAAAAAAMAwAAAAAAAAANAAAAAAAAAPoAAAAAAAAADAAAAAYAAAD0AwAAAPoAAAAAAAAAAAAAAPoAAAAMAAAADQAAAPoAAAD6AAAAAAAAAAAAAAAAAAAAAAwAAAAZAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAABkAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAGQAAAAwAAAAAAAAADAAAAAwAAAAABAAAAAAAAAAAAAAA8wAAAPQAAAAAAAAAAAAAAA0AAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAZRssKC5OpXwYAAAAASUVORK5CYII=" style="display:none"/> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6589 <img id="loadingImage" src="data:image/gif;base64,R0lGODlhEAAQAPIAAP///wAAAMLCwkJCQgAAAGJiYoKCgpKSkiH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAEAAQAAADMwi63P4wyklrE2MIOggZnAdOmGYJRbExwroUmcG2LmDEwnHQLVsYOd2mBzkYDAdKa+dIAAAh+QQJCgAAACwAAAAAEAAQAAADNAi63P5OjCEgG4QMu7DmikRxQlFUYDEZIGBMRVsaqHwctXXf7WEYB4Ag1xjihkMZsiUkKhIAIfkECQoAAAAsAAAAABAAEAAAAzYIujIjK8pByJDMlFYvBoVjHA70GU7xSUJhmKtwHPAKzLO9HMaoKwJZ7Rf8AYPDDzKpZBqfvwQAIfkECQoAAAAsAAAAABAAEAAAAzMIumIlK8oyhpHsnFZfhYumCYUhDAQxRIdhHBGqRoKw0R8DYlJd8z0fMDgsGo/IpHI5TAAAIfkECQoAAAAsAAAAABAAEAAAAzIIunInK0rnZBTwGPNMgQwmdsNgXGJUlIWEuR5oWUIpz8pAEAMe6TwfwyYsGo/IpFKSAAAh+QQJCgAAACwAAAAAEAAQAAADMwi6IMKQORfjdOe82p4wGccc4CEuQradylesojEMBgsUc2G7sDX3lQGBMLAJibufbSlKAAAh+QQJCgAAACwAAAAAEAAQAAADMgi63P7wCRHZnFVdmgHu2nFwlWCI3WGc3TSWhUFGxTAUkGCbtgENBMJAEJsxgMLWzpEAACH5BAkKAAAALAAAAAAQABAAAAMyCLrc/jDKSatlQtScKdceCAjDII7HcQ4EMTCpyrCuUBjCYRgHVtqlAiB1YhiCnlsRkAAAOwAAAAAAAAAAAA==" style="display:none"/> |
2
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
6590 <img id="logo" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAAAeCAYAAADJjPsHAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAAAsTAAALEwEAmpwYAAABWWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS40LjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgpMwidZAAAPBUlEQVRoBe1aWXBVVRZdyXuZZ0LmBAkkIYEwz9AlBEtGW0qkLemi6LbkA6fyjw8/tMofP8TCAZBSLOxGmraqm5bBQgER6YZGWmbCYAAJYQiEhIS8DG9M73XiTt+83BdebLCkygP33XvPsM8+e1zn3ER0SMGv5YGRgNPKaSAQsL4iIiLCXN0qf3yhnu103dsYOzq/1vVNAhF38zAqhUqwFru6vrRb+96rZ/LEy1qUb71b2x7U5y6F0buOHTuGtrY2REZGmsWPGDECiYmJ5lkXrcpi/6NHj6K9vd3055iWlhYMHjwYDz30ULcx90s4qiDlzW4eUSP4v7c+duN+qXVOVYDf78cnn3yCEydOGCVRIWvXrjXPyrz25fsXX3yBN998EykpKYiOjsbZs2fx9NNPY/z48dr9vt6tvPiE9/qmJly/eRNulwvw+BEXm4isnEyk9ktGTEyM4cU65r4ydx+Jd+UwWmB6ejoKCwsRGxsLKoxeY1e++eYbfPjhhxg2bBiioqJw48YNPPvss1i2bJkRzv0WjNJvE+8+fvo0znz3HWKuXEGWz4sTF2pQPdWBokE5aD8ehURvDoaXjkH5iKFITk36WTzfTmb3qq5LYSRIL/P5fPB6vWZh1klUSIcPH8bq1auRnZ1twsy1a9cwatQoozBacm+KtqPHOtJW+nzvLXxpv6pLl7D7H5tRVF2NuRn9kdIvDbGJCYjzRCJmghNjRmfjTmMbXM0N+Lbyr/j3+hzMnvEYSoeViCE6Qhoj57cWnU/rlFe+k8/eeNUxoe5WWkrPercb101h7EAiwYVKcDgcJuy98847SE1NhdPpxK1bt1BWVobnn3++K4yG8spgmrpQFYi+B/ezvmvfA+JRJz/+GAtyspBVOkQMLQCv34cOjwdu8bK2Fi9amtukvgMpackYN6MfGsob8en291FxcyGmPDwJ0VHRYSlN+VK58F3rlDflS9/vdu+NFsda24Np9VBYcAe+U1mXL1/GypUrTQikJzU0NJjw+dJLL5k81hfPss7BxRO41NXVGdqZmZlGkMFC0PdvBeickdz6h/LOcNza7gYxbED+oYMhvMMosDNS+MXj/fC4I5GSnoyKxQn4+tNNZvrfTJssRhcVUmkqNOVVleQRo6ChMhrFx8ebNMI25U/7h7pb+zU3N4MXaZEG0wudobec26vCqAQW5qi3334bbrfbeFJ9fT1yc3Px8ssvG4bvpixl8qaAAgIbGsDt27exePFis2iCG4ZWMjx06FAsWbLEGIGO0/vlq1fxnXjWH4eWItIRiXYPldUpLKJB8hGQCOETL/N5PcbDqEAxObS3tiEmNgbTnhqKPX/6OzIyM1BWPgQRHf/zGJ2H6/zoo4/Meu/cuYN58+Zh3LhxOHDgAPbt24crki+Jpgm4iouLMXv2bGO8Ot4IzeZH22tqarBnzx5UVVUZw6dxscTFxSEjIwNjxozB9OnTjWx0jJILqTASoaZbW1vx7rvvGg8gg/SGgoIC0LOysrLCzlmckNZ56NAho5jGxkaUl5fjzJkzOHfuHOhZnOuqKEUtTJmk9dEKd33+OeYkJUh7NNpFqJ3KokrEq0RRgYDB74YnzuX1MTc6TbsDTrjbPUhIjMfIuRnYveNL5OZnIy0trUeIo+JPnToF8kh+Ro8eja1bt2LVqlVGqNzqJCcnG+8gANu/fz9ef/11DBo0KKSnqeCJpt944w2jcNIgnzQQIm2W8+fP4+DBg6isrMQLL7zQQ2k9YCCFQ4YTEhKMF9DSvv/++y6Lp3c9+eSTyM/PN0IMN2eRGfaly3PBAwYMwO7duw2DbKPHcV9HyyJK1QXyznL24kUkHz+GAZlZaBPBQzyjQxQU6BCvkhwWKd0ccvkkRLa0uyRA+oVGwHibX4wv4Ot8b21pQ3ZBJvwF13HudJWslfWdc5iJ5IcyII+86PF79+41kYGG+sgjjxgFumT7wPXQ0Gjc27dvN8M5NrjoWjhm/fr1Jv8zQtH4qeSKigqDuKk8rr2oqAg7d+40+2LSsvLXw8O0kRNv2LABF0VQZIoWzsJFMDQQGdIqlBnTGMYP6XChHEc0yhAwf/58E1qPHz9uBGRH5uzJkyiXnCHiNWMNn/QquZxCr7G1Bdsl5J6Pj4X3RAoOXatG0YR0QY9JRqAOAUmRzkg4nA5RSADpmT4cPXIYZcOHIDUltceUNFrySnDF/ErFPfPMMyYVUDZHjhwxHse10FNo1PRIGmSwTPSd3kXv4cEC97vLly/HdDFQpgj2IQJfs2aNmbNfv364JEh4ypQp3SKA084iSIAxmglR3ZanGHzmRc/gKciMGTN6MNdj5SEqNI8xtFL5LBSKUYQ8ky9dqEtCZYMsNlvCl9cr8V6EyTYqy2GU1Yo/EwQ9OhOPFRYiKsKBa1dv4OtdW1E8pwVp6UlwN99B41UvGq+3oe6mRA9nPhy1V9Bwqx4pySndhGKYsfxQeYsWLTKC1uoJEyYYGVDwjEYqLyosuFCpLETUmzZtMvmaRkD5aShk+6RJk7B582ajeObzJjkMUBmwnaWHh7FSOzEJUlHcUE+ePBmM12QuLy8PGzduNAzk5OR09efYcAqVwXAwcOBAlJaWmiEUCuvtDKhV+iY0NcIpfNDqO6gwGcWQSG85IKBo4MxZeFSsMVEMigIqKSsWXuPwl20rkZ6TjiZ/LlwxeYgpLkLcMDkBSU9F02db0NbsMrTs+CYvzC8M34ViCCyUDQvbGNaYk2nEDIsKHkwHmx/KjhfHaeF6CGzoncznlDe9moX0VBfav+toSiv0ToZM4pawtXTpUpSUlBh0xKRI8MFJaA3PPfdcV4izE7bSs96VNkGLWphaobWfPtPD4oR5h1T4RFmyii7BEdZfFsOaKXE/SQQXIzlAS0lpEZy7y1FXVoGUvGykJMYJuhQqotAOQZl+Gedxt3fR0nF6J58UWlJSklmj1uud4IiGFm5R4TOX/fDDD7hw4QJqa2vNM5EjlUZl9pZqbD2MjJIRegHjLF2ZhWDjtddeMwug1zExjh071riyMhMO86RPy2I+5PNdC61aLvpVp4CoMAqqk8+IiEizSM0FpEe60RJWEjNS4cvtL3lO4H5LKyJEWRGSxxyiLLoWkaV6jR0fbKMA7fikkfU21kpP5cMQyrBIw2cOZ9ijQTCUTpw40eRL9VS7OW0VRkboQcwvI0eONELiYJ4dzpo1C1999RX69+9vwAj3VdyLUIHKlJXRUM8UfChBBI+JF+G65DhJF8KxnItKixGlZDZdR/X16yiSEMuiC62pvozamFhke2UDLcIRxCGeJaBD+vjFMyNbXIgWj9T+ZnDQT1/WFDS061VpEJi8+uqrZivB7QQRIXMhv3Aw7HIjzgN17lfJk15dhOTBFtar9ZMQi3VBc+fONRNReBQ4N9Xbtm3r0c9U9PLDRWis7qWbaYqVeVzJSWbvRbcwyqJnyMUQOSEtFUcFVh8S620Ui73T3ITK0yexZt0qRBXkIkL6+d1yPiqApUM21RznleiRdMeFeDl/DMPH78Zir+2UH3nmFw7NY3SKF1980RweEB8QFzAXUvYqb7s00UNhJKxFLZrvOikJL1iwwFgB6wn5uakkJGfpDFnm8f/+0TmTJFGnFpegVvZqDvE0CpzexT2YVwwnVSzz8YAPlWvfx4Y1q7F21Xr87b1DKI1YAN+/jsB1u04sU8Kn7HPk0BGOiA40yclKQXyCnOCndgmorwyrYHsbp/Jk+ONpDr2I6JvQnriAReVMz+KxFxGijgumHdnbpKHapsveobCw0OQ4Emb8JWokI32J68HMhHpnbiqRcHxKNr2QTbLfKKszr3F+twgjRQTxRG4eBpw5gKaqLEwYOBdDCkdjun8mGrbtQrurEbJYCY0es9FuP30GQwYNNhYfap2h+NH6UELVduudczCi0KCJvqvlKwOBBwvrecrDzTeBHmXI/nZfTSKtk7IThcMBdu7Idk5I1124cCF46sH+BA+cnCDkbkVpcxzp3a2YPqKUUgnPjcOHo6buJqK58B89zEB8afeI0jwSTqKT0+SjZYKgQTkK87UhJ68E82KF1+270OZqkpwVh9uCyAbduo3BZaXGmu34CIdPjutNXlwb+1DG9BpuYXiiQ3TJ7QKPuj6X47YdO3ZgxYoVJrVommB/QnwtqqduIZGokGCDsJPeop10EO+6OB6GcqNHOEqkw9i8bt06s5dQJq3j+Ex6pEv6ZJwWFE5hkE4QD6qYMwc7BelxsZGCDP0GfBCAdF40Jr94EOd3CsCIckZLTnAjL78Ev43/HZp27oWr/hbc+w9imuzZ0gU4qYCsfJBPWjx55do4n11hKONXCwqWctN0YCc3jp85c6bJVQyNVBpp8+D7rbfewq5du8yx19SpU433MZfxZIROYS3dUOJAQVkUvMZQu8VQGGSMfQjzuRiOYeEZGI9eeFcaqmC2kx5RJ62SIZVIM5yicw6Rc7cri36Pzz74APMHFwpUdxjPMvmMeU020YEOn1GWM0oQoZwTci6vzy1foEfi8etOvLdiOZY+tQQlcqoSJyjNLpKwjvmFpxdUCs9NretQnon0KGBGHBo7QRhLcF++U4nM96+88gq2bNmC0/KlnAZLdMjjOToAETgPmxkueTRFY+A727V0/RGOVoR7JwPBjHGsWpddW7i0Q/WjobhFMLv3/RNVGzdgVnoa0iQce+Rglx8weSR1tL4KNdnLMLZgMrwBjxhOjED/aDS21OM/l75EZqkf06ZVGCUQVv+cxSozggtGGhoUt0QEI3bFOobt3TzMbkCoOrWaYMUEv4ca/1Pqafk8yXh02sNigWliqZ+hWKyxWCB/goSY6OgogwDjYuORGJ8MV3sTWtubUXmpEjWBg5hYMQKjRow3Y4M/4fwUfvo6xiozRhdrhAll6MHy/Mke1ldm72V/k6skVNXKAeph2U5UySl37JUa9Hd7cLGhGs3ZT6AoqxT1nhp44+swqDQXI4ePQV5OPuIT4k24DhbEveQvHFpUkFVJ4fLzQCqMAuFiqTif5IHbkrxrJcRck3M5V2OT1LUiISkWOVn5yOifhbTUfmazHyV5jSHoQS4PrMJU6GqphPdUIBM50SNRIpXDPyVgKKUFh2vFSvuXeH/gFfZLFOr95Om/oU8Q/VMT+NIAAAAASUVORK5CYII=" style="display:none"/> |
1
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6591 <noscript>Javascript must be enabled to view this page.</noscript> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6592 <div style="display:none"> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6593 <krona collapse="true" key="true"> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6594 <attributes magnitude="count"> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6595 <list>members</list> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6596 <attribute display="Reads" listAll="members">count</attribute> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6597 <attribute display="Unassigned" listNode="members">unassigned</attribute> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6598 <attribute display="Rank" mono="true">rank</attribute> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6599 </attributes> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6600 <datasets> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6601 <dataset>0</dataset> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6602 </datasets> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6603 <node name="Root"> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6604 <count><val>100</val></count> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6605 <node name="Eukaryota"> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6606 <count><val>94</val></count> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6607 <rank><val>superkingdom</val></rank> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6608 <node name="Metazoa"> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6609 <rank><val>kingdom</val></rank> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6610 <count><val>94</val></count> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6611 <node name="Chordata"> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6612 <rank><val>phylum</val></rank> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6613 <count><val>94</val></count> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6614 <node name="Craniata"> |
2
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
6615 <rank><val>subphylum</val></rank> |
1
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6616 <count><val>94</val></count> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6617 <node name="Gnathostomata"> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6618 <count><val>94</val></count> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6619 <rank><val>superclass</val></rank> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6620 <node name="Mammalia"> |
2
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
6621 <count><val>94</val></count> |
1
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6622 <rank><val>class</val></rank> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6623 <node name="Euarchontoglires"> |
2
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
6624 <rank><val>superorder</val></rank> |
1
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6625 <count><val>94</val></count> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6626 <node name="Rodentia"> |
2
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
6627 <members> |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
6628 <vals><val>IA_1-144417</val><val>IA_1-278966</val><val>IA_1-314709</val><val>IA_1-324951</val><val>IA_1-27817</val><val>IA_1-95255</val><val>IA_1-104173</val><val>IA_1-135979</val><val>IA_1-139090</val><val>IA_1-139090</val><val>IA_1-139090</val><val>IA_1-144996</val><val>IA_1-160446</val><val>IA_1-160446</val><val>IA_1-160446</val><val>IA_1-160446</val><val>IA_1-160446</val><val>IA_1-160446</val><val>IA_1-160446</val><val>IA_1-160446</val><val>IA_1-161439</val><val>IA_1-190855</val><val>IA_1-190855</val><val>IA_1-190855</val><val>IA_1-190855</val><val>IA_1-190855</val><val>IA_1-190855</val><val>IA_1-190855</val><val>IA_1-190855</val><val>IA_1-190855</val><val>IA_1-190855</val><val>IA_1-190855</val><val>IA_1-190855</val><val>IA_1-190855</val><val>IA_1-190855</val><val>IA_1-190855</val><val>IA_1-190855</val><val>IA_1-190855</val><val>IA_1-190855</val><val>IA_1-190855</val><val>IA_1-190855</val><val>IA_1-190855</val><val>IA_1-205154</val><val>IA_1-205154</val><val>IA_1-205154</val><val>IA_1-205154</val><val>IA_1-205154</val><val>IA_1-205154</val><val>IA_1-205154</val><val>IA_1-205154</val><val>IA_1-205154</val><val>IA_1-205154</val><val>IA_1-216231</val><val>IA_1-236286</val><val>IA_1-236286</val><val>IA_1-236286</val><val>IA_1-236286</val><val>IA_1-236286</val><val>IA_1-236286</val><val>IA_1-236286</val><val>IA_1-236286</val><val>IA_1-236286</val><val>IA_1-236286</val><val>IA_1-236286</val><val>IA_1-236286</val><val>IA_1-237681</val><val>IA_1-250166</val><val>IA_1-254274</val><val>IA_1-254274</val><val>IA_1-27817</val><val>IA_1-29000</val><val>IA_1-291427</val><val>IA_1-291427</val><val>IA_1-293054</val><val>IA_1-293054</val><val>IA_1-296315</val><val>IA_1-296315</val><val>IA_1-310974</val><val>IA_1-310974</val><val>IA_1-311282</val><val>IA_1-311282</val><val>IA_1-322295</val><val>IA_1-42600</val><val>IA_1-45102</val><val>IA_1-45102</val><val>IA_1-48105</val><val>IA_1-48105</val><val>IA_1-57254</val><val>IA_1-61975</val><val>IA_1-61975</val><val>IA_1-66943</val><val>IA_1-68288</val><val>IA_1-82334</val><val>IA_1-95526</val></vals> |
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
6629 </members> |
1
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6630 <rank><val>order</val></rank> |
2
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
6631 <count><val>94</val></count> |
1
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6632 </node> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6633 </node> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6634 </node> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6635 </node> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6636 </node> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6637 </node> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6638 </node> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6639 </node> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6640 <node name="Bacteria"> |
2
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
6641 <count><val>6</val></count> |
1
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6642 <rank><val>superkingdom</val></rank> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6643 <node name="Proteobacteria"> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6644 <count><val>6</val></count> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6645 <rank><val>phylum</val></rank> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6646 <node name="Gammaproteobacteria"> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6647 <count><val>6</val></count> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6648 <rank><val>class</val></rank> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6649 <node name="Enterobacteriales"> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6650 <count><val>6</val></count> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6651 <rank><val>order</val></rank> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6652 <node name="Enterobacteriaceae"> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6653 <count><val>6</val></count> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6654 <rank><val>family</val></rank> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6655 <node name="Shigella"> |
2
50f204c82159
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit 70d4a2d1563e834d8394dce8017a1f0b7ad74f23
iuc
parents:
1
diff
changeset
|
6656 <count><val>6</val></count> |
1
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6657 <rank><val>genus</val></rank> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6658 <node name="Shigella flexneri"> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6659 <count><val>6</val></count> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6660 <rank><val>species</val></rank> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6661 <members> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6662 <vals><val>IA_1-79371</val><val>IA_1-84488</val><val>IA_1-270826</val><val>IA_1-285361</val><val>IA_1-93958</val><val>IA_1-99821</val></vals> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6663 </members> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6664 </node> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6665 </node> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6666 </node> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6667 </node> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6668 </node> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6669 </node> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6670 </node> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6671 </node> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6672 </krona> |
09552faff9c0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/taxonomy_krona_chart commit e4c2b31a732b57cc0210070afeaa2dfeca1e1eb4
iuc
parents:
diff
changeset
|
6673 </div></body></html> |