Mercurial > repos > iuc > mmseqs2_easy_linclust_clustering
annotate test-data/taxo_result.html @ 0:9f6869226de1 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
| author | iuc | 
|---|---|
| date | Thu, 27 Mar 2025 14:37:56 +0000 | 
| parents | |
| children | 
| rev | line source | 
|---|---|
| 0 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 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"> | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3 <head> | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4 <meta charset="utf-8"/> | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5 <link rel="shortcut icon" href="data:image/x-icon;base64,AAABAAMAICAAAAEAIAAoEQAANgAAABgYAAABACAAuAkAAF4RAAAQEAAAAQAgAGgEAAAWGwAAKAAAACAAAABAAAAAAQAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8o7u7udcXFxbCqqqrblpaW9HBwcP2YmJj0q6ur28bGxrDw8PB1////KAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD4+PhMtLS0um9vcf9RUVH/VVVZ/1tbbv9ZWXP/UVFR/3pkb/9zY2v/WVZX/1FRUf93dXb/ubm5uvj4+EwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8ctLS0q1tbXf9XV17/YWCQ/2tpu/9wbtL/b27T/2lovv9RUVH/0Yiu//CVxf/vlsT/z4it/5lxhv9dWFv/YV9g/7y8vKv///8cAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA6urqSXZ2eelVVVn/ZmWc/3Jx0v9zctb/cnHV/3Fw1P9wb9P/amm+/1FRUf/OhKz/7JHB/+6Twv/uk8L/75TE/+mTwP+ldo//WFVX/39+f+nu7u5JAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOHh4VZfX2H/XV1y/3Nxyv93ddn/dnTY/3Vz1/90ctf/c3HW/3Fw1P9rar//UVFR/82Cqf/qjr7/65DA/+2Swf/uk8P/75XF//GXxv/cjrj/cmJq/2VjZP/Y2NhWAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADk5ORDW1td/2Fggf94d9j/eXfb/3h22v93dtr/dnXZ/3Rz1/9zctb/c3HV/21swf9RUVH/yX+l/+aKuv/ojLz/6Y6+/+qPv//skcH/75XE//GXxv/TirH/VFRS/1lZWP/s7OxDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA7u7uD2ZmaN9gX3z/e3nc/3t53f96eNz/eXfb/3d22v92ddn/dnTY/3Vz1/91dNj/bm3D/1FRUf/IfKP/5Yi5/+WJuf/nirv/6Y29/+uPv//skcH/1Ymx/1dWVf9naFv/cHFf/29vbd////8PAAAAAAAAAAAAAAAAAAAAAAAAAACRkJGcWlpn/3t52f98et7/e3ne/3t53f96eNz/eXfc/3h22/92ddn/dXTY/3Z02P9wbsP/UVFR/8V5of/ihbb/44a3/+WIuP/nirr/6Y6+/9KFrf9XVVX/Z2hb/8XJgv/FyoL/X19Z/5+fn5wAAAAAAAAAAAAAAAAAAAAA1tbWOFFRUv91c8D/f33h/3584P99e9//fHre/3t53f96eNz/eXfb/3h22v94dtr/d3XZ/3FvxP9RUVH/wnWd/9+Asf/gg7P/4oS1/+WIuf/OgKr/V1VV/2doWv/Dx4D/zdKF/8/Vhv+rrnb/UlJR/9/f3zgAAAAAAAAAAAAAAAB/f4ClY2KC/4F+4v+AfeH/fnzg/3173/98et7/fHre/3t53f95eNz/eXfb/3l32/93dtr/cXDF/1FRUf/BdJz/3H2v/9+Bsv/hg7T/y32m/1dVVP9naFr/wseB/83Shf/O04X/z9SG/9LXhv9zdWH/jY2LpQAAAAAAAAAA4+PjElFRUf95dsb/gX/j/4B+4v9/feH/fnzg/3174P98et//fHre/3t53f97ed7/enjd/3Jwwf9jY5H/UVFR/41jeP/DdJ3/3H2u/8h5ov9XVVT/Z2ha/8PIgf/M0YX/ztOF/9DVhv/R1ob/1NmH/7K2eP9SUlL/8fHxEgAAAACqqqpgXVxq/4OB5f+CgOT/gX/j/4B+4v9/feH/f33h/3584P99e9//fHre/3l31f9gX33/UVFRv2xscIBmZmaAbmpsgFFRUb99YG//V1VU/2doWv/EyIH/zdKG/87Thv/P1Yb/0daG/9LXhv/U2of/1NmG/19gWf+3t7dgAAAAAHt7fJ5oZ5X/hILm/4OB5f+CgOT/gX7j/4F+4/9/feH/fnzg/3584P98etv/XFxu/2xsbqDf399AAAAAAAAAAAAAAAAA29vbQFtZW6BVVVP/wseB/87Thf/O04X/z9SF/9DVhv/S14b/09mH/9Xbh//Y3oj/hohm/4iIiJ4AAAAAWlpdzHRytf+Fgub/hILm/4OB5f+CgOT/goDk/4F/4/+AfuL/f33h/2hnm/9fX2G/7+/vIAAAAAAAAAAAAAAAAAAAAAAAAAAA5+fnIFxcWb+bnnD/0NWG/9HWhv/S14b/0teG/9PZhv/V2of/2N2I/9nfiP+jpnL/ZWVjzAAAAABRUVHsfHvM/4aE6P+Fgub/hIHl/4SC5v+DgeX/goDk/4F/4/+Bf+P/Wlpk/6+vr0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAp6enQGprXv/S14b/0teG/9PZh//V2of/1tyI/9jeiP/Y3of/2uCI/7m9ev9SUlLsAAAAAFFRUfuBftb/h4To/4aE6P+Fg+f/hYLm/4SB5f+DgeX/g4Hl/3982/9RUVH/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVFRT/9HXhv/V2of/1duH/9bch//X3Yf/2N6H/9rgiP/c4oj/w8l+/1FRUfsAAAAAUVFR+4KA2P+Ihur/h4To/4eE6P+Gg+f/hYLm/4SC5v+Egub/gH7d/1FRUf8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABSUlH/ztOE/9bciP/X3Yf/2d+I/9nfiP/a4Ij/2+GI/93jiP/EyH7/UVFR+wAAAABRUVHsf33O/4mH6/+Iher/iIXq/4eF6f+GhOj/hoPn/4WC5v+Fgub/W1pk/6+vr0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAk5OTQFJSUf9SUlH/bm9d/5SXbP+6v3v/2N6H/9zjiP/e5Yn/3uWJ/7zBev9RUVHsAAAAAFpaXcx3dbj/iofr/4qH6/+Jhur/iIXp/4eE6P+Ihen/hoTo/4aE6P9rap7/X19hv+/v7yAAAAAAAAAAAAAAAAAAAAAAAAAAAOfn5yBbXFy/ZJZ7/2ebgP9ab2T/V1pW/1FRUf9WVlP/enxh/6Kmcf/Kz4D/qKty/2VnY8wAAAAAe3t8nmtql/+LiOz/i4nt/4qI7P+Jhur/iYbq/4iG6v+Ihur/h4To/4WC4/9eXnD/bGxwoN/f30AAAAAAAAAAAAAAAADb29tAZGhmoFxwZf931KT/e9mp/4Hfrv+D4bD/fc2j/2qTff9baWH/VldU/1FRUf9TU1H/d3d0ngAAAACqqqpgXl5r/42L7/+Mie3/i4js/4uI7P+Kh+v/iYbq/4mG6v+Ihen/iIXp/4SC4P9kZIH/UVFRv2xscIBmaGaAam5sgFFRUb9efW7/dM6f/3nXp/9+3Kv/gd6t/4bjsv+I5rX/i+i3/5DtvP+T777/g8ej/1JUU/+ioqJgAAAAAOPj4xJRUVH/gX/P/42K7v+Mie3/jInt/4uI7P+Lie3/iojs/4uI7P+Kh+v/iYbq/4mG6v9+fM3/ZmWM/1FRUf9ikHn/b76V/3bUpP9516b/e9mp/4Derf+E4bD/huOz/4nmtf+O67r/kOy7/5TxwP+DxaL/UlNS//Hx8RIAAAAAAAAAAH9/gKVnZob/jovw/46L8P+Niu7/jInt/4yJ7f+LiOz/i4js/4uI7P+Kh+v/iofr/4qI7P95eMD/UVFR/3PInP9516f/fNqp/3zaqf9+3Kz/gd+u/4bjsv+I5bT/iue2/43quf+S777/lfHA/2V7b/+KioqlAAAAAAAAAAAAAAAA1tbWOFFRUv+Afsv/j4zw/46L7/+Oi+//jYru/42K7v+Miu7/jIru/4yJ7f+Mie3/i4js/3p4wP9RUVH/dsug/3vZqf9+3Kv/gd6u/4Pgr/+F47L/iOa1/4vot/+O67n/kO28/5XxwP+BwZ//U1RT/+Tk5DgAAAAAAAAAAAAAAAAAAAAAkZGRnF1caf+Niun/kI3x/4+M8P+PjPD/jovv/46L7/+Niu7/jYru/42K7v+Niu7/fHnC/1FRUf95zqL/gd6u/4Hfrv+E4bD/huOy/4jltP+L6Lf/jeq5/5DtvP+T777/j+O2/1tjXv+dn5+cAAAAAAAAAAAAAAAAAAAAAAAAAADu7u4PZmZp32Zlgv+QjfD/kI3x/5CN8f+PjPD/j4zw/4+M8P+PjPD/jovv/46L7/98esP/UVFR/3/Spv+E4bD/heOy/4Xjsv+I5rX/i+i3/47ruv+Q7bz/ku+9/5Ltvf9keG3/c3Vz3////w8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADk5ORDXFxe/2hniP+Qje//kY3x/5GN8f+QjfH/kI3x/5CN8f+QjfH/kI3x/317w/9RUVH/f9So/4jltP+I5bT/i+i3/4vot/+O67n/j+y7/5Lvvf+R6br/Zn1x/2BiYf/s7OxDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADh4eFWX19h/2Jid/+KiOH/ko/z/5KP8/+RjvL/kY7y/5GO8v+RjvL/fnzF/1FRUf+F2a3/i+i3/47ruf+O67n/kO27/5Dtu/+S777/iteu/2FwaP9oamn/6urqVgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADu7u5Jd3d56VZWWv91c6v/kI7u/5OQ9P+TkPT/ko/z/5KP8/9/fcX/UVFR/4jbrv+Q7bz/kOy7/5Dsu/+S773/kOi6/3Oiif9TVVT/gYOC6fHx8UkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8ctLS0q1tbXf9ZWWD/cG6e/4aD1P+Tj/L/lJH1/4F+x/9RUVH/i9+y/5Lvvf+Q67v/hMql/26Xgf9WWlj/X2Fg/8DAwKv///8cAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA+Pj4TLS0tLpwb3L/UVFR/1ZWWv9jYnb/YWB2/1FRUf9lgHH/Y3Vr/1VXVv9RUVH/dHZ1/7+/v7r8/PxMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///yju7u51xcXFsKqqqtuWlpb0cHBw/ZiYmPSrq6vbxsbGsPDw8HX///8oAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAABgAAAAwAAAAAQAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///wEAAAABAAAAAP///wi6urdDubmxj6ennsuQkIzvc3Nz/YSIh/WWoZzWrrezoLe6t1X///8TAAAAAAAAAACAgIACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AQAAAAAAAAAAx8fDQJeYkLV4eH39WlmM/19dpP9dX6b/WFRr/611j/+/fJ//om2I/4N3ff+Jko7Ntri2XgAAAAAAAAAAgICAAgAAAAAAAAAAAAAAAAAAAAD///8BAAAAAP///wOfn5t9c3N29GRjn/9oZ8P/c3LU/XVy3P9rbdH/YVt8/9eIrv/5mcz/75bE/t+Mt/67epz/fnN5/4uTkKP///8WAAAAAAAAAAIAAAAAAAAAAP///wEAAAAA////A5iYkZJoaH3/bWvB/3h23Px4dt3+dHPX/3Rx1v9sbcv/YFp6/82ApP/rj8D/65DA//KVxv/1mcn83424/5t1iP98gX7A////FwAAAACAgIACAAAAAAAAAAIAAAAAkJCHdWZlf/9zcs7/fHrj/Hh32/92ddn/dXTX/3Zz2P9vcM//YFt7/8t9of/pi73/54u7/+eNvf/vk8P/7ZbE/pxsh/xLVU7/iomJqAAAAAAAAAAA////AQAAAACfn5Y4ZmV07XZ0zv9+fOX8enjc/3p43P94dtv/dnXZ/3d12f9xcdD/YFp6/8h5nf/mh7r/44e3/+qMvf/ljrv/jV59/3F+V/68wH3/gYNp/4uIlWcAAAAAAAAAAv///wJ3d22pc3G6/4KA5/t9e9//fHre/3t53f96eNz/eHbZ/3l23P50dNb9Ylx+/ch2m/3jg7b+44W2/+CItv+NXXz/bnpW/8XIgv/Y3Yv8ur57/3Fxbtni4uIaAAAAAHl5XTdoZ4b4f3zb/4F+5P5+fN//fXvf/3x63v96edz/ennf/nt54P9xccb/Xlxy/7Rvj//gf7P/3IKw/olZeP9te1b/xsqD/9DVh//P1IX/09iG/pWYcf9nZ3NtAAAAAISEb35ycLb/hYPr/YB+4f9/feH/fnzh/3173/99e+L+enjX/2dmmfhlZXiwYGBiknJkaqGVZ37pg11x/3eBXP7GyoP/0NWH/87Uhf/R1ob/2eCK+8HFff9tbXWv////BG9vdb16eMn/hYPq/4F/4/+BfuP/gH7i/4B94v59e93/Y2KO+ISEbX7y8uQTAAAAAP///weAjo5aT1tP5L7Cf//T2Ij+ztOF/9HWhv/S14b/2d+K/s3Sgv+BgnLcg4OSI11deeaBf9r/hYPo/4OB5P+DgeX/gX/i/4OB6v10c77/cXFjmv///wIAAAAAAAAAAAAAAAAAAAAAeHN9apuecP/U2Yf/0teG/tPZhv/V24f/2uCJ/tTahv+KjGj6AABINV9egfuGg+P/hoTp/4WC5v+EgeX/goDk/4WD6/1wbq//WFgAQwAAAAAzMzMFAAAAAVVVVQMAAAAAAABjEoiLZ/Df5Y7/2d+J/dfch//W3If/2d+H/9vhif6ZnW3/AAA5P19egvuHheX/iIXq/4eE6P+Gg+f/hILl/4eE7P1xb7D/WFgAQwAAAAAzMzMFAAAAAVVVVQMAAAAAAABVEnd1WvDEx37/y9GD/dnfif/g54z/4OeL/97kiv6anWz/AAA1P15eeuaFg93/ioft/4iF6f+Hhen/hoPn/4mG7/14d8L/cXFimv///wMAAAAAAAAAAAAAAAAAAAAAenV3a1dyZf9QY1//bGVW/pORY/+trnD/xch7/tTZhP+Pkmn6AABINXBwdb1/fc7/jYry/4mH6v+Jhur/iIbp/4iG6/6Gg+X/Z2aT+IKEaX7y8uQTAAAAAP///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/9zYmxtAAAAAP///wJ3d2qpfXvF/5KP9vyNiu7/jYru/4yJ7f+Miu7/i4jr/46L8P6FgN79XmZ5/XTMm/1+3q7+f9ys/4Lgr/+G5LP/iue2/4zot/+V9cL8iNWs/3BxcNni4uIaAAAAAAAAAACfn5I4aGd17YeE3v+Ukfj8jovu/46L7/+Oi+//jYru/46M8f+FgNv/XmV3/3jMnf+D4rH/g+Cw/4fks/+K57b/jem4/5TywP6Q57n/bYh5/5KIjWcAAAAAAAAAAgAAAAIAAAAAkJCFdWtqhf+IheL/lZL5/JCN8P+PjO//j4zv/5GO8/+Hgt3/X2Z4/33Rof+I5rb/h+Sz/4nmtf+N6rn/lPPB/pHruvxxm4T/h3yDqAAAAAAAAAAA////Af///wEAAAAA////A5aWj5JtbIP/g4DW/5SR9vyVkvj+kY7y/5KP9P+Ig97/X2d4/4DUpf+N6rn/jeq4/5Lwvv+U88D8h9qu/3KVgv+Lgoe/////FwAAAACAgIACAAAAAAAAAAD///8BAAAAAP///wOfn5l9dHR39HVzsf+Fg97/k4/x/ZiW/v+Nh+f/YWl7/4ngrv+W+MX/kuy8/onesP52uZb/dH54/5aOk6P///8WAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAA////AQAAAAAAAAAAx8fDQJWVjbV5eX79amic/3h2vv93crf/WV9r/3W1kP95vZn/aZ2C/3eCfP+Ui5DNu7i7XgAAAAAAAAAAgICAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///wEAAAABAAAAAP///wi6urdDuLitj6WmmcuPj4rvc3Nz/YiEh/Whlp3Wt66zoLq3ulX///8TAAAAAAAAAAD///8CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgICAAgAAAAAAAAAAtLSiR5WVkqiOjprkcXF5/ZKGivSdmJvLjZuVe9zz6BYAAAAAAAAAAwAAAAAAAAAAgICAAgAAAAD//+8Qh4eDqHR0ov9sasP/Z2fR/11blP/Xhar/542+/8mIqv+RgIjon6iiVQAAAAAAAAACAAAAAAAAAADt7dsOenqBz3Ryx/91c978eHbc+3V02/5lYpr/14Sp//GTxv30lcf775XE/5BvhP99h4pmAAAAAAAAAAMAAAAAdHR2oHh2zv9+fOX5eXfa/3Z01/91dNv+ZmKc/NF9ov3miLr/7pHA/8F2pPyOjGn/jpFw/YiCoy8AAAAAhIRaPnNyr/+Bfuj9fHrc/3t53f95d9z+e3nk/2lmoP/ReaD/7Im9/rZrmf97hF3/z9WF+83Shv98fXW1AAAAAHNyfZ2CgOH/goDm+3583/99e+D+fHrf/25tr/FbYHO0nWyBzalpjP+Gi2T/y9GE/9HVh/7X3Yj/oKNz+mJclidwb5nbhoPp/4OB5P6BfuP+gH7l/25tpO6QlFFFAAAAAI7/4wlQZl6jwcaB/9TZiP3O1IX/2+GJ/cDFgf9gXXBga2ql+omG7P+EgeT/hILo+4WD5v9lZXKLAAAAAAAkbQcAAAAAAACAFqywdvbh6I7/196J/t3kivvT2If/V1lTe21rpvqLiO//hoPn/4aE6vuIhen/ZWVyiwAAAAAkAG0HAAAAAAAAaBaBfl72tLJy/8vNfP7g5oj72d+J/1lZU3tycZvbjIrv/4qH6/6Ihun+iYbt/3JxqO6MkENFAAAAAP854wlxfHSjaLaS/2Wtjv1rlXv/hZBr/ZiecP9qamhgc3N/nY2K6/+NivH7iofr/4uI7P6Kh+v/d3W38WJic7Rmk3nNcsSa/4Dhrv+J6bX/iui3/ovqvP9nl4X6gzRvJ4CASj57erj/kY73/YyJ6/+Mie3/jIrt/o6K9P9ucaD/dtKc/4DhsP6B3q7/h+Ky/5DwvfuU7b3/fIqAtQAAAAAAAAAAdHR0oIqH3/+Ukfv5jovu/42L7f+Pi/D+bHCe/HrSnv2F4rP/h+Oz/5DvvPyS8b//dpuH/Z1yjS8AAAAAAAAAAO3t2w57e4TPiIXb/5KP+PyUkvj7lJD2/m5yoP+C2qb/kO+9/ZHzv/uN6bn/f6iR/5mHlGYAAAAAAAAAA4CAgAIAAAAA///vEIaGgaiAf7H/iIbe/42I8P9rb53/g9yn/4nktf+GyKT/gJGH6KiTn1UAAAAAAAAAAgAAAAAAAAAAgICAAgAAAAAAAAAAsLCXR5WVkKiTkZ/kc3R7/YWTivSXnJnLno+Ze//o8xYAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=="/> | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6 <script id="notfound">window.onload=function(){document.body.innerHTML=""}</script> | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 7 <script language="javascript" type="text/javascript"> | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 8 {//----------------------------------------------------------------------------- | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 9 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 10 // PURPOSE | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 11 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 12 // Krona is a flexible tool for exploring the relative proportions of | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 13 // hierarchical data, such as metagenomic classifications, using a | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 14 // radial, space-filling display. It is implemented using HTML5 and | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 15 // JavaScript, allowing charts to be explored locally or served over the | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 16 // Internet, requiring only a current version of any major web | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 17 // browser. Krona charts can be created using an Excel template or from | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 18 // common bioinformatic formats using the provided conversion scripts. | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 19 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 20 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 21 // COPYRIGHT LICENSE | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 22 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 23 // Copyright (c) 2011, Battelle National Biodefense Institute (BNBI); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 24 // all rights reserved. Authored by: Brian Ondov, Nicholas Bergman, and | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 25 // Adam Phillippy | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 26 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 27 // This Software was prepared for the Department of Homeland Security | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 28 // (DHS) by the Battelle National Biodefense Institute, LLC (BNBI) as | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 29 // part of contract HSHQDC-07-C-00020 to manage and operate the National | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 30 // Biodefense Analysis and Countermeasures Center (NBACC), a Federally | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 31 // Funded Research and Development Center. | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 32 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 33 // Redistribution and use in source and binary forms, with or without | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 34 // modification, are permitted provided that the following conditions are | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 35 // met: | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 36 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 37 // * Redistributions of source code must retain the above copyright | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 38 // notice, this list of conditions and the following disclaimer. | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 39 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 40 // * Redistributions in binary form must reproduce the above copyright | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 41 // notice, this list of conditions and the following disclaimer in the | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 42 // documentation and/or other materials provided with the distribution. | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 43 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 44 // * Neither the name of the Battelle National Biodefense Institute nor | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 45 // the names of its contributors may be used to endorse or promote | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 46 // products derived from this software without specific prior written | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 47 // permission. | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 48 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 49 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 50 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 51 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 52 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 53 // HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 54 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 55 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 56 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 57 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 58 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 59 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 60 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 61 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 62 // TRADEMARK LICENSE | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 63 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 64 // KRONA(TM) is a trademark of the Department of Homeland Security, and use | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 65 // of the trademark is subject to the following conditions: | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 66 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 67 // * Distribution of the unchanged, official code/software using the | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 68 // KRONA(TM) mark is hereby permitted by the Department of Homeland | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 69 // Security, provided that the software is distributed without charge | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 70 // and modification. | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 71 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 72 // * Distribution of altered source code/software using the KRONA(TM) mark | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 73 // is not permitted unless written permission has been granted by the | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 74 // Department of Homeland Security. | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 75 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 76 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 77 // FOR MORE INFORMATION VISIT | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 78 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 79 // https://github.com/marbl/Krona/wiki/ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 80 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 81 //----------------------------------------------------------------------------- | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 82 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 83 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 84 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 85 var canvas; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 86 var context; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 87 var svg; // for snapshot mode | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 88 var collapse = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 89 var collapseCheckBox; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 90 var collapseLast; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 91 var compress; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 92 var compressCheckBox; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 93 var maxAbsoluteDepthText; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 94 var maxAbsoluteDepthButtonDecrease; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 95 var maxAbsoluteDepthButtonIncrease; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 96 var fontSize = 11; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 97 var fontSizeText; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 98 var fontSizeButtonDecrease; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 99 var fontSizeButtonIncrease; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 100 var fontSizeLast; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 101 var radiusButtonDecrease; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 102 var radiusButtonIncrease; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 103 var shorten; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 104 var shortenCheckBox; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 105 var maxAbsoluteDepth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 106 var backButton; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 107 var upButton; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 108 var forwardButton; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 109 var snapshotButton; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 110 var snapshotMode = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 111 var details; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 112 var detailsName; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 113 var search; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 114 var searchResults; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 115 var nSearchResults; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 116 var useHueCheckBox; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 117 var useHueDiv; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 118 var datasetDropDown; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 119 var datasetButtonLast; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 120 var datasetButtonPrev; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 121 var datasetButtonNext; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 122 var keyControl; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 123 var showKeys = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 124 var linkButton; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 125 var linkText; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 126 var frame; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 127 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 128 // Node references. Note that the meanings of 'selected' and 'focused' are | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 129 // swapped in the docs. | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 130 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 131 var head; // the root of the entire tree | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 132 var selectedNode = 0; // the root of the current view | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 133 var focusNode = 0; // a node chosen for more info (single-click) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 134 var highlightedNode = 0; // mouse hover node | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 135 var highlightingHidden = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 136 var nodes = new Array(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 137 var currentNodeID = 0; // to iterate while loading | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 138 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 139 var nodeHistory = new Array(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 140 var nodeHistoryPosition = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 141 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 142 var dataEnabled = false; // true when supplemental files are present | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 143 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 144 // store non-Krona GET variables so they can be passed on to links | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 145 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 146 var getVariables = new Array(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 147 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 148 // selectedNodeLast is separate from the history, since we need to check | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 149 // properties of the last node viewed when browsing through the history | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 150 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 151 var selectedNodeLast = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 152 var zoomOut = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 153 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 154 // temporary zoom-in while holding the mouse button on a wedge | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 155 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 156 var quickLook = false; // true when in quick look state | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 157 var mouseDown = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 158 var mouseDownTime; // to detect mouse button hold | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 159 var quickLookHoldLength = 200; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 160 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 161 var imageWidth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 162 var imageHeight; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 163 var centerX; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 164 var centerY; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 165 var gRadius; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 166 var updateViewNeeded = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 167 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 168 // Determines the angle that the pie chart starts at. 90 degrees makes the | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 169 // center label consistent with the children. | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 170 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 171 var rotationOffset = Math.PI / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 172 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 173 var buffer; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 174 var bufferFactor = .1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 175 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 176 // The maps are the small pie charts showing the current slice being viewed. | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 177 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 178 var mapBuffer = 10; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 179 var mapRadius = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 180 var maxMapRadius = 25; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 181 var mapWidth = 150; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 182 var maxLabelOverhang = Math.PI * 4.18; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 183 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 184 // Keys are the labeled boxes for slices in the highest level that are too thin | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 185 // to label. | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 186 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 187 var maxKeySizeFactor = 2; // will be multiplied by font size | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 188 var keySize; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 189 var keys; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 190 var keyBuffer = 10; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 191 var currentKey; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 192 var keyMinTextLeft; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 193 var keyMinAngle; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 194 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 195 var minRingWidthFactor = 5; // will be multiplied by font size | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 196 var maxPossibleDepth; // the theoretical max that can be displayed | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 197 var maxDisplayDepth; // the actual depth that will be displayed | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 198 var headerHeight = 0;//document.getElementById('options').clientHeight; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 199 var historySpacingFactor = 1.6; // will be multiplied by font size | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 200 var historyAlphaDelta = .25; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 201 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 202 // appearance | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 203 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 204 var lineOpacity = 0.3; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 205 var saturation = 0.5; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 206 var lightnessBase = 0.6; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 207 var lightnessMax = .8; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 208 var thinLineWidth = .3; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 209 var highlightLineWidth = 1.5; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 210 var labelBoxBuffer = 6; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 211 var labelBoxRounding = 15; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 212 var labelWidthFudge = 1.05; // The width of unshortened labels are set slightly | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 213 // longer than the name width so the animation | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 214 // finishes faster. | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 215 var fontNormal; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 216 var fontBold; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 217 var fontFamily = 'sans-serif'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 218 //var fontFaceBold = 'bold Arial'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 219 var nodeRadius; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 220 var angleFactor; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 221 var tickLength; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 222 var compressedRadii; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 223 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 224 // colors | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 225 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 226 var highlightFill = 'rgba(255, 255, 255, .3)'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 227 var colorUnclassified = 'rgb(220,220,220)'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 228 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 229 // label staggering | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 230 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 231 var labelOffsets; // will store the current offset at each depth | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 232 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 233 // This will store pointers to the last node that had a label in each offset (or "track") of a | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 234 // each depth. These will be used to shorten neighboring labels that would overlap. | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 235 // The [nLabelNodes] index will store the last node with a radial label. | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 236 // labelFirstNodes is the same, but to check for going all the way around and | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 237 // overlapping the first labels. | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 238 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 239 var labelLastNodes; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 240 var labelFirstNodes; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 241 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 242 var nLabelOffsets = 3; // the number of offsets to use | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 243 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 244 var mouseX = -1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 245 var mouseY = -1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 246 var mouseXRel = -1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 247 var mouseYRel = -1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 248 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 249 // tweening | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 250 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 251 var progress = 0; // for tweening; goes from 0 to 1. | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 252 var progressLast = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 253 var tweenFactor = 0; // progress converted by a curve for a smoother effect. | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 254 var tweenLength = 850; // in ms | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 255 var tweenCurvature = 13; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 256 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 257 // tweenMax is used to scale the sigmoid function so its range is [0,1] for the | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 258 // domain [0,1] | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 259 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 260 var tweenMax = 1 / (1 + Math.exp(-tweenCurvature / 2)); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 261 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 262 var tweenStartTime; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 263 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 264 // for framerate debug | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 265 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 266 var tweenFrames = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 267 var fpsDisplay = document.getElementById('frameRate'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 268 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 269 // Arrays to translate xml attribute names into displayable attribute names | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 270 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 271 var attributes = new Array(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 272 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 273 var magnitudeIndex; // the index of attribute arrays used for magnitude | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 274 var membersAssignedIndex; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 275 var membersSummaryIndex; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 276 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 277 // For defining gradients | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 278 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 279 var hueDisplayName; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 280 var hueStopPositions; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 281 var hueStopHues; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 282 var hueStopText; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 283 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 284 // multiple datasets | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 285 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 286 var currentDataset = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 287 var lastDataset = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 288 var datasets = 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 289 var datasetNames; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 290 var datasetSelectSize = 30; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 291 var datasetAlpha = new Tween(0, 0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 292 var datasetWidths = new Array(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 293 var datasetChanged; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 294 var datasetSelectWidth = 50; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 295 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 296 window.onload = load; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 297 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 298 var image; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 299 var hiddenPattern; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 300 var loadingImage; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 301 var logoImage; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 302 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 303 function backingScale() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 304 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 305 if ('devicePixelRatio' in window) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 306 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 307 if (window.devicePixelRatio > 1) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 308 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 309 return window.devicePixelRatio; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 310 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 311 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 312 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 313 return 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 314 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 315 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 316 function resize() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 317 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 318 imageWidth = window.innerWidth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 319 imageHeight = window.innerHeight; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 320 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 321 if ( ! snapshotMode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 322 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 323 context.canvas.width = imageWidth * backingScale(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 324 context.canvas.height = imageHeight * backingScale(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 325 context.canvas.style.width = imageWidth + "px" | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 326 context.canvas.style.height = imageHeight + "px" | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 327 context.scale(backingScale(), backingScale()); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 328 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 329 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 330 if ( datasetDropDown ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 331 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 332 var ratio = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 333 (datasetDropDown.offsetTop + datasetDropDown.clientHeight) * 2 / | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 334 imageHeight; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 335 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 336 if ( ratio > 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 337 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 338 ratio = 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 339 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 340 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 341 ratio = Math.sqrt(ratio); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 342 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 343 datasetSelectWidth = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 344 (datasetDropDown.offsetLeft + datasetDropDown.clientWidth) * ratio; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 345 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 346 var leftMargin = datasets > 1 ? datasetSelectWidth + 30 : 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 347 var minDimension = imageWidth - mapWidth - leftMargin > imageHeight ? | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 348 imageHeight : | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 349 imageWidth - mapWidth - leftMargin; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 350 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 351 maxMapRadius = minDimension * .03; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 352 buffer = minDimension * bufferFactor; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 353 margin = minDimension * .015; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 354 centerX = (imageWidth - mapWidth - leftMargin) / 2 + leftMargin; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 355 centerY = imageHeight / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 356 gRadius = minDimension / 2 - buffer; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 357 //context.font = '11px sans-serif'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 358 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 359 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 360 function handleResize() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 361 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 362 updateViewNeeded = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 363 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 364 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 365 function Attribute() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 366 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 367 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 368 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 369 function Tween(start, end) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 370 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 371 this.start = start; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 372 this.end = end; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 373 this.current = this.start; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 374 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 375 this.current = function() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 376 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 377 if ( progress == 1 || this.start == this.end ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 378 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 379 return this.end; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 380 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 381 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 382 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 383 return this.start + tweenFactor * (this.end - this.start); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 384 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 385 }; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 386 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 387 this.setTarget = function(target) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 388 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 389 this.start = this.current(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 390 this.end = target; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 391 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 392 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 393 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 394 function Node() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 395 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 396 this.id = currentNodeID; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 397 currentNodeID++; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 398 nodes[this.id] = this; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 399 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 400 this.angleStart = new Tween(Math.PI, 0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 401 this.angleEnd = new Tween(Math.PI, 0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 402 this.radiusInner = new Tween(1, 1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 403 this.labelRadius = new Tween(1, 1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 404 this.labelWidth = new Tween(0, 0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 405 this.scale = new Tween(1, 1); // TEMP | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 406 this.radiusOuter = new Tween(1, 1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 407 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 408 this.r = new Tween(255, 255); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 409 this.g = new Tween(255, 255); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 410 this.b = new Tween(255, 255); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 411 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 412 this.alphaLabel = new Tween(0, 1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 413 this.alphaLine = new Tween(0, 1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 414 this.alphaArc = new Tween(0, 0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 415 this.alphaWedge = new Tween(0, 1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 416 this.alphaOther = new Tween(0, 1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 417 this.alphaPattern = new Tween(0, 0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 418 this.children = Array(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 419 this.parent = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 420 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 421 this.attributes = new Array(attributes.length); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 422 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 423 this.addChild = function(child) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 424 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 425 this.children.push(child); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 426 }; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 427 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 428 this.addLabelNode = function(depth, labelOffset) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 429 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 430 if ( labelHeadNodes[depth][labelOffset] == 0 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 431 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 432 // this will become the head node for this list | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 433 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 434 labelHeadNodes[depth][labelOffset] = this; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 435 this.labelPrev = this; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 436 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 437 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 438 var head = labelHeadNodes[depth][labelOffset]; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 439 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 440 this.labelNext = head; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 441 this.labelPrev = head.labelPrev; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 442 head.labelPrev.labelNext = this; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 443 head.labelPrev = this; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 444 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 445 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 446 this.canDisplayDepth = function() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 447 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 448 // whether this node is at a depth that can be displayed, according | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 449 // to the max absolute depth | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 450 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 451 return this.depth <= maxAbsoluteDepth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 452 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 453 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 454 this.canDisplayHistory = function() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 455 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 456 var radiusInner; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 457 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 458 if ( compress ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 459 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 460 radiusInner = compressedRadii[0]; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 461 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 462 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 463 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 464 radiusInner = nodeRadius; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 465 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 466 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 467 return ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 468 -this.labelRadius.end * gRadius + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 469 historySpacingFactor * fontSize / 2 < | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 470 radiusInner * gRadius | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 471 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 472 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 473 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 474 this.canDisplayLabelCurrent = function() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 475 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 476 return ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 477 (this.angleEnd.current() - this.angleStart.current()) * | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 478 (this.radiusInner.current() * gRadius + gRadius) >= | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 479 minWidth()); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 480 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 481 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 482 this.checkHighlight = function() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 483 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 484 if ( this.children.length == 0 && this == focusNode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 485 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 486 //return false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 487 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 488 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 489 if ( this.hide ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 490 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 491 return false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 492 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 493 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 494 if ( this.radiusInner.end == 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 495 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 496 // compressed to the outside; don't check | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 497 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 498 return false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 499 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 500 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 501 var highlighted = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 502 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 503 var angleStartCurrent = this.angleStart.current() + rotationOffset; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 504 var angleEndCurrent = this.angleEnd.current() + rotationOffset; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 505 var radiusInner = this.radiusInner.current() * gRadius; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 506 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 507 for ( var i = 0; i < this.children.length; i++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 508 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 509 highlighted = this.children[i].checkHighlight(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 510 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 511 if ( highlighted ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 512 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 513 return true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 514 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 515 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 516 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 517 if ( this.radial ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 518 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 519 var angleText = (angleStartCurrent + angleEndCurrent) / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 520 var radiusText = (gRadius + radiusInner) / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 521 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 522 context.rotate(angleText); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 523 context.beginPath(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 524 context.moveTo(radiusText, -fontSize); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 525 context.lineTo(radiusText, fontSize); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 526 context.lineTo(radiusText + centerX, fontSize); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 527 context.lineTo(radiusText + centerX, -fontSize); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 528 context.closePath(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 529 context.rotate(-angleText); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 530 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 531 if ( context.isPointInPath(mouseXRel, mouseYRel) ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 532 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 533 var label = String(this.getPercentage()) + '%' + ' ' + this.name; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 534 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 535 if ( this.searchResultChildren() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 536 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 537 label += searchResultString(this.searchResultChildren()); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 538 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 539 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 540 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 541 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 542 Math.sqrt((mouseXRel) * (mouseXRel) + (mouseYRel) * (mouseYRel)) / backingScale() < | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 543 radiusText + measureText(label) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 544 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 545 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 546 highlighted = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 547 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 548 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 549 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 550 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 551 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 552 for ( var i = 0; i < this.hiddenLabels.length; i++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 553 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 554 var hiddenLabel = this.hiddenLabels[i]; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 555 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 556 context.rotate(hiddenLabel.angle); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 557 context.beginPath(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 558 context.moveTo(gRadius, -fontSize); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 559 context.lineTo(gRadius, fontSize); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 560 context.lineTo(gRadius + centerX, fontSize); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 561 context.lineTo(gRadius + centerX, -fontSize); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 562 context.closePath(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 563 context.rotate(-hiddenLabel.angle); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 564 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 565 if ( context.isPointInPath(mouseXRel, mouseYRel) ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 566 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 567 var label = String(hiddenLabel.value) + ' more'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 568 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 569 if ( hiddenLabel.search ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 570 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 571 label += searchResultString(hiddenLabel.search); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 572 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 573 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 574 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 575 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 576 Math.sqrt((mouseXRel) * (mouseXRel) + (mouseYRel) * (mouseYRel)) / backingScale() < | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 577 gRadius + fontSize + measureText(label) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 578 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 579 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 580 highlighted = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 581 break; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 582 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 583 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 584 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 585 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 586 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 587 if ( ! highlighted && this != selectedNode && ! this.getCollapse() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 588 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 589 context.beginPath(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 590 context.arc(0, 0, radiusInner, angleStartCurrent, angleEndCurrent, false); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 591 context.arc(0, 0, gRadius, angleEndCurrent, angleStartCurrent, true); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 592 context.closePath(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 593 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 594 if ( context.isPointInPath(mouseXRel, mouseYRel) ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 595 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 596 highlighted = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 597 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 598 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 599 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 600 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 601 ! highlighted && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 602 (angleEndCurrent - angleStartCurrent) * | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 603 (radiusInner + gRadius) < | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 604 minWidth() && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 605 this.getDepth() == selectedNode.getDepth() + 1 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 606 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 607 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 608 if ( showKeys && this.checkHighlightKey() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 609 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 610 highlighted = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 611 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 612 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 613 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 614 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 615 if ( highlighted ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 616 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 617 if ( this != highlightedNode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 618 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 619 // document.body.style.cursor='pointer'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 620 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 621 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 622 highlightedNode = this; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 623 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 624 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 625 return highlighted; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 626 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 627 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 628 this.checkHighlightCenter = function() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 629 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 630 if ( ! this.canDisplayHistory() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 631 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 632 return; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 633 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 634 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 635 var cx = centerX; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 636 var cy = centerY - this.labelRadius.end * gRadius; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 637 //var dim = context.measureText(this.name); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 638 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 639 var width = this.nameWidth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 640 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 641 if ( this.searchResultChildren() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 642 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 643 var results = searchResultString(this.searchResultChildren()); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 644 var dim = context.measureText(results); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 645 width += dim.width; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 646 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 647 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 648 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 649 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 650 mouseX > cx - width / 2 && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 651 mouseX < cx + width / 2 && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 652 mouseY > cy - historySpacingFactor * fontSize / 2 && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 653 mouseY < cy + historySpacingFactor * fontSize / 2 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 654 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 655 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 656 highlightedNode = this; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 657 return; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 658 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 659 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 660 if ( this.getParent() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 661 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 662 this.getParent().checkHighlightCenter(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 663 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 664 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 665 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 666 this.checkHighlightKey = function() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 667 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 668 var offset = keyOffset(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 669 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 670 var xMin = imageWidth - keySize - margin - this.keyNameWidth - keyBuffer; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 671 var xMax = imageWidth - margin; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 672 var yMin = offset; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 673 var yMax = offset + keySize; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 674 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 675 currentKey++; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 676 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 677 return ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 678 mouseX > xMin && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 679 mouseX < xMax && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 680 mouseY > yMin && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 681 mouseY < yMax); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 682 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 683 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 684 this.checkHighlightMap = function() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 685 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 686 if ( this.parent ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 687 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 688 this.parent.checkHighlightMap(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 689 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 690 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 691 if ( this.getCollapse() || this == focusNode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 692 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 693 return; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 694 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 695 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 696 var box = this.getMapPosition(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 697 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 698 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 699 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 700 mouseX > box.x - mapRadius && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 701 mouseX < box.x + mapRadius && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 702 mouseY > box.y - mapRadius && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 703 mouseY < box.y + mapRadius | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 704 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 705 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 706 highlightedNode = this; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 707 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 708 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 709 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 710 /* this.collapse = function() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 711 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 712 for (var i = 0; i < this.children.length; i++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 713 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 714 this.children[i] = this.children[i].collapse(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 715 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 716 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 717 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 718 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 719 this.children.length == 1 && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 720 this.children[0].magnitude == this.magnitude | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 721 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 722 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 723 this.children[0].parent = this.parent; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 724 this.children[0].getDepth() = this.parent.getDepth() + 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 725 return this.children[0]; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 726 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 727 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 728 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 729 return this; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 730 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 731 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 732 */ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 733 this.draw = function(labelMode, selected, searchHighlighted) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 734 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 735 var depth = this.getDepth() - selectedNode.getDepth() + 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 736 // var hidden = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 737 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 738 if ( selectedNode == this ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 739 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 740 selected = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 741 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 742 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 743 var angleStartCurrent = this.angleStart.current() + rotationOffset; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 744 var angleEndCurrent = this.angleEnd.current() + rotationOffset; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 745 var radiusInner = this.radiusInner.current() * gRadius; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 746 var canDisplayLabelCurrent = this.canDisplayLabelCurrent(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 747 var hiddenSearchResults = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 748 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 749 /* if ( ! this.hide ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 750 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 751 for ( var i = 0; i < this.children.length; i++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 752 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 753 if ( this.children[i].hide && this.children[i].searchResults ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 754 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 755 hiddenSearchResults = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 756 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 757 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 758 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 759 */ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 760 var drawChildren = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 761 ( ! this.hide || ! this.hidePrev && progress < 1 ) && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 762 ( ! this.hideAlone || ! this.hideAlonePrev && progress < 1 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 763 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 764 // if ( this.alphaWedge.current() > 0 || this.alphaLabel.current() > 0 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 765 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 766 var lastChildAngleEnd = angleStartCurrent; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 767 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 768 if ( this.hasChildren() )//canDisplayChildren ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 769 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 770 lastChildAngleEnd = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 771 this.children[this.children.length - 1].angleEnd.current() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 772 + rotationOffset; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 773 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 774 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 775 if ( labelMode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 776 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 777 var drawRadial = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 778 !( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 779 this.parent && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 780 this.parent != selectedNode && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 781 angleEndCurrent == this.parent.angleEnd.current() + rotationOffset | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 782 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 783 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 784 //if ( angleStartCurrent != angleEndCurrent ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 785 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 786 this.drawLines(angleStartCurrent, angleEndCurrent, radiusInner, drawRadial, selected); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 787 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 788 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 789 var alphaOtherCurrent = this.alphaOther.current(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 790 var childRadiusInner; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 791 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 792 if ( this == selectedNode || alphaOtherCurrent ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 793 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 794 childRadiusInner = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 795 this.children.length ? | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 796 this.children[this.children.length - 1].radiusInner.current() * gRadius | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 797 : radiusInner | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 798 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 799 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 800 if ( this == selectedNode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 801 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 802 this.drawReferenceRings(childRadiusInner); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 803 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 804 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 805 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 806 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 807 selected && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 808 ! searchHighlighted && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 809 this != selectedNode && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 810 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 811 this.isSearchResult || | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 812 this.hideAlone && this.searchResultChildren() || | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 813 false | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 814 // this.hide && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 815 // this.containsSearchResult | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 816 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 817 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 818 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 819 context.globalAlpha = this.alphaWedge.current(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 820 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 821 drawWedge | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 822 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 823 angleStartCurrent, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 824 angleEndCurrent, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 825 radiusInner, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 826 gRadius, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 827 highlightFill, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 828 0, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 829 true | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 830 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 831 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 832 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 833 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 834 this.keyed && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 835 ! showKeys && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 836 this.searchResults && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 837 ! searchHighlighted && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 838 this != highlightedNode && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 839 this != focusNode | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 840 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 841 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 842 var angle = (angleEndCurrent + angleStartCurrent) / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 843 this.drawLabel(angle, true, false, true, true); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 844 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 845 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 846 //this.drawHighlight(false); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 847 searchHighlighted = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 848 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 849 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 850 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 851 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 852 this == selectedNode || | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 853 // true | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 854 //(canDisplayLabelCurrent) && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 855 this != highlightedNode && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 856 this != focusNode | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 857 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 858 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 859 if ( this.radial != this.radialPrev && this.alphaLabel.end == 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 860 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 861 context.globalAlpha = tweenFactor; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 862 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 863 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 864 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 865 context.globalAlpha = this.alphaLabel.current(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 866 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 867 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 868 this.drawLabel | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 869 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 870 (angleStartCurrent + angleEndCurrent) / 2, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 871 this.hideAlone && this.searchResultChildren() || | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 872 (this.isSearchResult || hiddenSearchResults) && selected, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 873 this == selectedNode && ! this.radial, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 874 selected, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 875 this.radial | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 876 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 877 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 878 if ( this.radial != this.radialPrev && this.alphaLabel.start == 1 && progress < 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 879 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 880 context.globalAlpha = 1 - tweenFactor; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 881 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 882 this.drawLabel | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 883 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 884 (angleStartCurrent + angleEndCurrent) / 2, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 885 (this.isSearchResult || hiddenSearchResults) && selected, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 886 this == selectedNodeLast && ! this.radialPrev, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 887 selected, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 888 this.radialPrev | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 889 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 890 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 891 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 892 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 893 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 894 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 895 alphaOtherCurrent && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 896 lastChildAngleEnd != null | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 897 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 898 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 899 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 900 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 901 (angleEndCurrent - lastChildAngleEnd) * | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 902 (childRadiusInner + gRadius) >= | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 903 minWidth() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 904 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 905 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 906 //context.font = fontNormal; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 907 context.globalAlpha = this.alphaOther.current(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 908 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 909 drawTextPolar | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 910 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 911 this.getUnclassifiedText(), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 912 this.getUnclassifiedPercentage(), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 913 (lastChildAngleEnd + angleEndCurrent) / 2, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 914 (childRadiusInner + gRadius) / 2, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 915 true, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 916 false, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 917 false, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 918 0, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 919 0 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 920 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 921 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 922 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 923 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 924 if ( this == selectedNode && this.keyUnclassified && showKeys ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 925 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 926 this.drawKey | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 927 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 928 (lastChildAngleEnd + angleEndCurrent) / 2, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 929 false, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 930 false | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 931 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 932 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 933 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 934 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 935 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 936 var alphaWedgeCurrent = this.alphaWedge.current(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 937 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 938 if ( alphaWedgeCurrent || this.alphaOther.current() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 939 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 940 var currentR = this.r.current(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 941 var currentG = this.g.current(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 942 var currentB = this.b.current(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 943 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 944 var fill = rgbText(currentR, currentG, currentB); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 945 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 946 var radiusOuter; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 947 var lastChildAngle; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 948 var truncateWedge = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 949 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 950 (this.hasChildren() || this == selectedNode ) && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 951 ! this.keyed && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 952 (compress || depth < maxDisplayDepth) && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 953 drawChildren | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 954 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 955 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 956 if ( truncateWedge ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 957 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 958 radiusOuter = this.children.length ? this.children[0].radiusInner.current() * gRadius : radiusInner; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 959 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 960 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 961 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 962 radiusOuter = gRadius; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 963 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 964 /* | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 965 if ( this.hasChildren() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 966 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 967 radiusOuter = this.children[0].getUncollapsed().radiusInner.current() * gRadius + 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 968 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 969 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 970 { // TEMP | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 971 radiusOuter = radiusInner + nodeRadius * gRadius; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 972 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 973 if ( radiusOuter > gRadius ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 974 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 975 radiusOuter = gRadius; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 976 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 977 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 978 */ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 979 context.globalAlpha = alphaWedgeCurrent; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 980 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 981 if ( radiusInner != radiusOuter || truncateWedge ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 982 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 983 drawWedge | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 984 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 985 angleStartCurrent, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 986 angleEndCurrent, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 987 radiusInner, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 988 radiusOuter,//this.radiusOuter.current() * gRadius, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 989 //'rgba(0, 200, 0, .1)', | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 990 fill, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 991 this.alphaPattern.current() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 992 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 993 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 994 if ( truncateWedge ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 995 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 996 // fill in the extra space if the sum of our childrens' | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 997 // magnitudes is less than ours | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 998 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 999 if ( lastChildAngleEnd < angleEndCurrent )//&& false) // TEMP | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1000 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1001 if ( radiusOuter > 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1002 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1003 // overlap slightly to hide the seam | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1004 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1005 // radiusOuter -= 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1006 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1007 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1008 if ( alphaWedgeCurrent < 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1009 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1010 context.globalAlpha = this.alphaOther.current(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1011 drawWedge | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1012 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1013 lastChildAngleEnd, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1014 angleEndCurrent, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1015 radiusOuter, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1016 gRadius, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1017 colorUnclassified, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1018 0 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1019 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1020 context.globalAlpha = alphaWedgeCurrent; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1021 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1022 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1023 drawWedge | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1024 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1025 lastChildAngleEnd, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1026 angleEndCurrent, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1027 radiusOuter, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1028 gRadius,//this.radiusOuter.current() * gRadius, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1029 //'rgba(200, 0, 0, .1)', | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1030 fill, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1031 this.alphaPattern.current() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1032 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1033 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1034 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1035 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1036 if ( radiusOuter < gRadius ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1037 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1038 // patch up the seam | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1039 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1040 context.beginPath(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1041 context.arc(0, 0, radiusOuter, angleStartCurrent/*lastChildAngleEnd*/, angleEndCurrent, false); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1042 context.strokeStyle = fill; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1043 context.lineWidth = 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1044 context.stroke(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1045 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1046 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1047 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1048 if ( this.keyed && selected && showKeys )//&& progress == 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1049 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1050 this.drawKey | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1051 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1052 (angleStartCurrent + angleEndCurrent) / 2, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1053 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1054 this == highlightedNode || | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1055 this == focusNode || | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1056 this.searchResults | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1057 ), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1058 this == highlightedNode || this == focusNode | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1059 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1060 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1061 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1062 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1063 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1064 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1065 this.hiddenLabels = Array(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1066 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1067 if ( drawChildren ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1068 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1069 // draw children | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1070 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1071 for ( var i = 0; i < this.children.length; i++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1072 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1073 if ( this.drawHiddenChildren(i, selected, labelMode, searchHighlighted) ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1074 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1075 i = this.children[i].hiddenEnd; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1076 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1077 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1078 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1079 this.children[i].draw(labelMode, selected, searchHighlighted); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1080 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1081 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1082 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1083 }; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1084 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1085 this.drawHiddenChildren = function | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1086 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1087 firstHiddenChild, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1088 selected, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1089 labelMode, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1090 searchHighlighted | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1091 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1092 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1093 var firstChild = this.children[firstHiddenChild]; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1094 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1095 if ( firstChild.hiddenEnd == null || firstChild.radiusInner.current() == 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1096 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1097 return false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1098 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1099 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1100 for ( var i = firstHiddenChild; i < firstChild.hiddenEnd; i++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1101 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1102 if ( ! this.children[i].hide || ! this.children[i].hidePrev && progress < 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1103 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1104 return false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1105 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1106 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1107 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1108 var angleStart = firstChild.angleStart.current() + rotationOffset; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1109 var lastChild = this.children[firstChild.hiddenEnd]; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1110 var angleEnd = lastChild.angleEnd.current() + rotationOffset; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1111 var radiusInner = gRadius * firstChild.radiusInner.current(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1112 var hiddenChildren = firstChild.hiddenEnd - firstHiddenChild + 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1113 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1114 if ( labelMode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1115 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1116 var hiddenSearchResults = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1117 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1118 for ( var i = firstHiddenChild; i <= firstChild.hiddenEnd; i++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1119 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1120 hiddenSearchResults += this.children[i].searchResults; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1121 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1122 if ( this.children[i].magnitude == 0 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1123 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1124 hiddenChildren--; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1125 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1126 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1127 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1128 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1129 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1130 selected && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1131 (angleEnd - angleStart) * | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1132 (gRadius + gRadius) >= | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1133 minWidth() || | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1134 this == highlightedNode && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1135 hiddenChildren || | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1136 hiddenSearchResults | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1137 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1138 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1139 context.globalAlpha = this.alphaWedge.current(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1140 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1141 this.drawHiddenLabel | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1142 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1143 angleStart, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1144 angleEnd, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1145 hiddenChildren, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1146 hiddenSearchResults | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1147 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1148 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1149 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1150 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1151 var drawWedges = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1152 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1153 for ( var i = firstHiddenChild; i <= firstChild.hiddenEnd; i++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1154 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1155 // all hidden children must be completely hidden to draw together | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1156 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1157 if ( this.children[i].alphaPattern.current() != this.children[i].alphaWedge.current() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1158 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1159 drawWedges = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1160 break; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1161 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1162 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1163 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1164 if ( labelMode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1165 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1166 if ( drawWedges ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1167 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1168 var drawRadial = (angleEnd < this.angleEnd.current() + rotationOffset); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1169 this.drawLines(angleStart, angleEnd, radiusInner, drawRadial); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1170 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1171 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1172 if ( hiddenSearchResults && ! searchHighlighted ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1173 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1174 drawWedge | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1175 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1176 angleStart, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1177 angleEnd, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1178 radiusInner, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1179 gRadius,//this.radiusOuter.current() * gRadius, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1180 highlightFill, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1181 0, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1182 true | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1183 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1184 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1185 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1186 else if ( drawWedges ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1187 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1188 context.globalAlpha = this.alphaWedge.current(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1189 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1190 var fill = rgbText | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1191 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1192 firstChild.r.current(), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1193 firstChild.g.current(), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1194 firstChild.b.current() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1195 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1196 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1197 drawWedge | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1198 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1199 angleStart, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1200 angleEnd, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1201 radiusInner, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1202 gRadius,//this.radiusOuter.current() * gRadius, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1203 fill, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1204 context.globalAlpha, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1205 false | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1206 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1207 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1208 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1209 return drawWedges; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1210 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1211 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1212 this.drawHiddenLabel = function(angleStart, angleEnd, value, hiddenSearchResults) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1213 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1214 var textAngle = (angleStart + angleEnd) / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1215 var labelRadius = gRadius + fontSize;//(radiusInner + radius) / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1216 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1217 var hiddenLabel = Array(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1218 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1219 hiddenLabel.value = value; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1220 hiddenLabel.angle = textAngle; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1221 hiddenLabel.search = hiddenSearchResults; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1222 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1223 this.hiddenLabels.push(hiddenLabel); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1224 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1225 drawTick(gRadius - fontSize * .75, fontSize * 1.5, textAngle); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1226 drawTextPolar | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1227 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1228 value.toString() + ' more', | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1229 0, // inner text | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1230 textAngle, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1231 labelRadius, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1232 true, // radial | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1233 hiddenSearchResults, // bubble | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1234 this == highlightedNode || this == focusNode, // bold | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1235 false, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1236 hiddenSearchResults | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1237 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1238 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1239 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1240 this.drawHighlight = function(bold) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1241 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1242 var angleStartCurrent = this.angleStart.current() + rotationOffset; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1243 var angleEndCurrent = this.angleEnd.current() + rotationOffset; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1244 var radiusInner = this.radiusInner.current() * gRadius; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1245 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1246 //this.setHighlightStyle(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1247 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1248 if ( this == focusNode && this == highlightedNode && this.hasChildren() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1249 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1250 // context.fillStyle = "rgba(255, 255, 255, .3)"; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1251 arrow | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1252 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1253 angleStartCurrent, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1254 angleEndCurrent, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1255 radiusInner | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1256 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1257 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1258 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1259 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1260 drawWedge | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1261 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1262 angleStartCurrent, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1263 angleEndCurrent, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1264 radiusInner, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1265 gRadius, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1266 highlightFill, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1267 0, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1268 true | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1269 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1270 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1271 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1272 // check if hidden children should be highlighted | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1273 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1274 for ( var i = 0; i < this.children.length; i++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1275 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1276 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1277 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1278 this.children[i].getDepth() - selectedNode.getDepth() + 1 <= | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1279 maxDisplayDepth && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1280 this.children[i].hiddenEnd != null | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1281 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1282 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1283 var firstChild = this.children[i]; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1284 var lastChild = this.children[firstChild.hiddenEnd]; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1285 var hiddenAngleStart = firstChild.angleStart.current() + rotationOffset; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1286 var hiddenAngleEnd = lastChild.angleEnd.current() + rotationOffset; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1287 var hiddenRadiusInner = gRadius * firstChild.radiusInner.current(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1288 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1289 drawWedge | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1290 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1291 hiddenAngleStart, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1292 hiddenAngleEnd, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1293 hiddenRadiusInner, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1294 gRadius, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1295 'rgba(255, 255, 255, .3)', | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1296 0, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1297 true | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1298 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1299 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1300 if ( false && ! this.searchResults ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1301 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1302 this.drawHiddenLabel | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1303 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1304 hiddenAngleStart, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1305 hiddenAngleEnd, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1306 firstChild.hiddenEnd - i + 1 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1307 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1308 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1309 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1310 i = firstChild.hiddenEnd; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1311 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1312 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1313 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1314 // context.strokeStyle = 'black'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1315 context.fillStyle = 'black'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1316 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1317 var highlight = ! ( progress < 1 && zoomOut && this == selectedNodeLast ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1318 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1319 var angle = (angleEndCurrent + angleStartCurrent) / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1320 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1321 if ( ! (this.keyed && showKeys) ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1322 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1323 this.drawLabel(angle, true, bold, true, this.radial); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1324 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1325 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1326 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1327 this.drawHighlightCenter = function() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1328 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1329 if ( ! this.canDisplayHistory() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1330 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1331 return; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1332 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1333 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1334 context.lineWidth = highlightLineWidth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1335 context.strokeStyle = 'black'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1336 context.fillStyle = "rgba(255, 255, 255, .6)"; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1337 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1338 context.fillStyle = 'black'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1339 this.drawLabel(3 * Math.PI / 2, true, true, false); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1340 context.font = fontNormal; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1341 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1342 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1343 this.drawKey = function(angle, highlight, bold) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1344 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1345 var offset = keyOffset(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1346 var color; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1347 var colorText = this.magnitude == 0 ? 'gray' : 'black'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1348 var patternAlpha = this.alphaPattern.end; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1349 var boxLeft = imageWidth - keySize - margin; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1350 var textY = offset + keySize / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1351 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1352 var label; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1353 var keyNameWidth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1354 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1355 if ( this == selectedNode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1356 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1357 color = colorUnclassified; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1358 label = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1359 this.getUnclassifiedText() + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1360 ' ' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1361 this.getUnclassifiedPercentage(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1362 keyNameWidth = measureText(label, false); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1363 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1364 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1365 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1366 label = this.keyLabel; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1367 color = rgbText(this.r.end, this.g.end, this.b.end); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1368 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1369 if ( highlight ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1370 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1371 if ( this.searchResultChildren() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1372 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1373 label = label + searchResultString(this.searchResultChildren()); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1374 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1375 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1376 keyNameWidth = measureText(label, bold); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1377 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1378 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1379 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1380 keyNameWidth = this.keyNameWidth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1381 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1382 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1383 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1384 var textLeft = boxLeft - keyBuffer - keyNameWidth - fontSize / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1385 var labelLeft = textLeft; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1386 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1387 if ( labelLeft > keyMinTextLeft - fontSize / 2 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1388 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1389 keyMinTextLeft -= fontSize / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1390 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1391 if ( keyMinTextLeft < centerX - gRadius + fontSize / 2 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1392 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1393 keyMinTextLeft = centerX - gRadius + fontSize / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1394 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1395 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1396 labelLeft = keyMinTextLeft; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1397 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1398 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1399 var lineX = new Array(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1400 var lineY = new Array(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1401 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1402 var bendRadius; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1403 var keyAngle = Math.atan((textY - centerY) / (labelLeft - centerX)); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1404 var arcAngle; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1405 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1406 if ( keyAngle < 0 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1407 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1408 keyAngle += Math.PI; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1409 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1410 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1411 if ( keyMinAngle == 0 || angle < keyMinAngle ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1412 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1413 keyMinAngle = angle; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1414 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1415 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1416 if ( angle > Math.PI && keyMinAngle > Math.PI ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1417 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1418 // allow lines to come underneath the chart | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1419 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1420 angle -= Math.PI * 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1421 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1422 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1423 lineX.push(Math.cos(angle) * gRadius); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1424 lineY.push(Math.sin(angle) * gRadius); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1425 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1426 if ( angle < keyAngle && textY > centerY + Math.sin(angle) * (gRadius + buffer * (currentKey - 1) / (keys + 1) / 2 + buffer / 2) ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1427 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1428 bendRadius = gRadius + buffer - buffer * currentKey / (keys + 1) / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1429 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1430 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1431 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1432 bendRadius = gRadius + buffer * currentKey / (keys + 1) / 2 + buffer / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1433 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1434 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1435 var outside = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1436 Math.sqrt | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1437 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1438 Math.pow(labelLeft - centerX, 2) + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1439 Math.pow(textY - centerY, 2) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1440 ) > bendRadius; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1441 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1442 if ( ! outside ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1443 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1444 arcAngle = Math.asin((textY - centerY) / bendRadius); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1445 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1446 keyMinTextLeft = min(keyMinTextLeft, centerX + bendRadius * Math.cos(arcAngle) - fontSize / 2); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1447 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1448 if ( labelLeft < textLeft && textLeft > centerX + bendRadius * Math.cos(arcAngle) ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1449 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1450 lineX.push(textLeft - centerX); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1451 lineY.push(textY - centerY); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1452 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1453 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1454 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1455 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1456 keyMinTextLeft = min(keyMinTextLeft, labelLeft - fontSize / 2); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1457 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1458 if ( angle < keyAngle ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1459 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1460 // flip everything over y = x | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1461 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1462 arcAngle = Math.PI / 2 - keyLineAngle | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1463 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1464 Math.PI / 2 - angle, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1465 Math.PI / 2 - keyAngle, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1466 bendRadius, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1467 textY - centerY, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1468 labelLeft - centerX, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1469 lineY, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1470 lineX | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1471 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1472 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1473 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1474 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1475 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1476 arcAngle = keyLineAngle | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1477 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1478 angle, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1479 keyAngle, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1480 bendRadius, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1481 labelLeft - centerX, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1482 textY - centerY, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1483 lineX, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1484 lineY | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1485 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1486 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1487 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1488 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1489 if ( labelLeft > centerX + bendRadius * Math.cos(arcAngle) || | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1490 textY > centerY + bendRadius * Math.sin(arcAngle) + .01) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1491 // if ( outside || ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1492 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1493 lineX.push(labelLeft - centerX); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1494 lineY.push(textY - centerY); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1495 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1496 if ( textLeft != labelLeft ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1497 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1498 lineX.push(textLeft - centerX); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1499 lineY.push(textY - centerY); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1500 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1501 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1502 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1503 context.globalAlpha = this.alphaWedge.current(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1504 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1505 if ( snapshotMode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1506 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1507 var labelSVG; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1508 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1509 if ( this == selectedNode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1510 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1511 labelSVG = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1512 this.getUnclassifiedText() + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1513 spacer() + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1514 this.getUnclassifiedPercentage(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1515 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1516 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1517 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1518 labelSVG = this.name + spacer() + this.getPercentage() + '%'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1519 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1520 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1521 svg += | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1522 '<rect fill="' + color + '" ' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1523 'x="' + boxLeft + '" y="' + offset + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1524 '" width="' + keySize + '" height="' + keySize + '"/>'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1525 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1526 if ( patternAlpha ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1527 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1528 svg += | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1529 '<rect fill="url(#hiddenPattern)" style="stroke:none" ' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1530 'x="' + boxLeft + '" y="' + offset + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1531 '" width="' + keySize + '" height="' + keySize + '"/>'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1532 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1533 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1534 svg += | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1535 '<path class="line' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1536 (highlight ? ' highlight' : '') + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1537 '" d="M ' + (lineX[0] + centerX) + ',' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1538 (lineY[0] + centerY); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1539 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1540 if ( angle != arcAngle ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1541 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1542 svg += | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1543 ' L ' + (centerX + bendRadius * Math.cos(angle)) + ',' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1544 (centerY + bendRadius * Math.sin(angle)) + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1545 ' A ' + bendRadius + ',' + bendRadius + ' 0 ' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1546 '0,' + (angle > arcAngle ? '0' : '1') + ' ' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1547 (centerX + bendRadius * Math.cos(arcAngle)) + ',' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1548 (centerY + bendRadius * Math.sin(arcAngle)); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1549 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1550 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1551 for ( var i = 1; i < lineX.length; i++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1552 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1553 svg += | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1554 ' L ' + (centerX + lineX[i]) + ',' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1555 (centerY + lineY[i]); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1556 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1557 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1558 svg += '"/>'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1559 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1560 if ( highlight ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1561 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1562 if ( this.searchResultChildren() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1563 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1564 labelSVG = labelSVG + searchResultString(this.searchResultChildren()); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1565 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1566 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1567 drawBubbleSVG | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1568 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1569 boxLeft - keyBuffer - keyNameWidth - fontSize / 2, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1570 textY - fontSize, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1571 keyNameWidth + fontSize, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1572 fontSize * 2, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1573 fontSize, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1574 0 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1575 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1576 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1577 if ( this.isSearchResult ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1578 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1579 drawSearchHighlights | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1580 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1581 label, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1582 boxLeft - keyBuffer - keyNameWidth, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1583 textY, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1584 0 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1585 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1586 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1587 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1588 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1589 svg += svgText(labelSVG, boxLeft - keyBuffer, textY, 'end', bold, colorText); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1590 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1591 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1592 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1593 context.fillStyle = color; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1594 context.translate(-centerX, -centerY); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1595 context.strokeStyle = 'black'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1596 context.globalAlpha = 1;//this.alphaWedge.current(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1597 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1598 context.fillRect(boxLeft, offset, keySize, keySize); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1599 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1600 if ( patternAlpha ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1601 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1602 context.globalAlpha = patternAlpha; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1603 context.fillStyle = hiddenPattern; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1604 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1605 // make clipping box for Firefox performance | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1606 context.beginPath(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1607 context.moveTo(boxLeft, offset); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1608 context.lineTo(boxLeft + keySize, offset); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1609 context.lineTo(boxLeft + keySize, offset + keySize); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1610 context.lineTo(boxLeft, offset + keySize); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1611 context.closePath(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1612 context.save(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1613 context.clip(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1614 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1615 context.fillRect(boxLeft, offset, keySize, keySize); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1616 context.fillRect(boxLeft, offset, keySize, keySize); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1617 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1618 context.restore(); // remove clipping region | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1619 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1620 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1621 if ( highlight ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1622 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1623 this.setHighlightStyle(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1624 context.fillRect(boxLeft, offset, keySize, keySize); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1625 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1626 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1627 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1628 context.lineWidth = thinLineWidth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1629 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1630 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1631 context.strokeRect(boxLeft, offset, keySize, keySize); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1632 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1633 if ( lineX.length ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1634 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1635 context.beginPath(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1636 context.moveTo(lineX[0] + centerX, lineY[0] + centerY); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1637 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1638 context.arc(centerX, centerY, bendRadius, angle, arcAngle, angle > arcAngle); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1639 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1640 for ( var i = 1; i < lineX.length; i++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1641 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1642 context.lineTo(lineX[i] + centerX, lineY[i] + centerY); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1643 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1644 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1645 context.globalAlpha = this == selectedNode ? | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1646 this.children[0].alphaWedge.current() : | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1647 this.alphaWedge.current(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1648 context.lineWidth = highlight ? highlightLineWidth : thinLineWidth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1649 context.stroke(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1650 context.globalAlpha = 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1651 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1652 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1653 if ( highlight ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1654 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1655 drawBubbleCanvas | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1656 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1657 boxLeft - keyBuffer - keyNameWidth - fontSize / 2, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1658 textY - fontSize, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1659 keyNameWidth + fontSize, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1660 fontSize * 2, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1661 fontSize, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1662 0 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1663 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1664 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1665 if ( this.isSearchResult ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1666 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1667 drawSearchHighlights | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1668 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1669 label, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1670 boxLeft - keyBuffer - keyNameWidth, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1671 textY, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1672 0 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1673 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1674 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1675 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1676 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1677 drawText(label, boxLeft - keyBuffer, offset + keySize / 2, 0, 'end', bold, colorText); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1678 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1679 context.translate(centerX, centerY); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1680 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1681 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1682 currentKey++; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1683 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1684 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1685 this.drawLabel = function(angle, bubble, bold, selected, radial) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1686 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1687 if ( context.globalAlpha == 0 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1688 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1689 return; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1690 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1691 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1692 var innerText; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1693 var label; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1694 var radius; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1695 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1696 if ( radial ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1697 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1698 radius = (this.radiusInner.current() + 1) * gRadius / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1699 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1700 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1701 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1702 radius = this.labelRadius.current() * gRadius; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1703 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1704 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1705 if ( radial && (selected || bubble ) ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1706 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1707 var percentage = this.getPercentage(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1708 innerText = percentage + '%'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1709 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1710 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1711 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1712 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1713 ! radial && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1714 this != selectedNode && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1715 ! bubble && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1716 ( !zoomOut || this != selectedNodeLast) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1717 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1718 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1719 label = this.shortenLabel(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1720 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1721 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1722 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1723 label = this.name; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1724 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1725 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1726 var flipped = drawTextPolar | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1727 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1728 label, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1729 innerText, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1730 angle, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1731 radius, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1732 radial, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1733 bubble, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1734 bold, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1735 // this.isSearchResult && this.shouldAddSearchResultsString() && (!selected || this == selectedNode || highlight), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1736 this.isSearchResult && (!selected || this == selectedNode || bubble), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1737 (this.hideAlone || !selected || this == selectedNode ) ? this.searchResultChildren() : 0 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1738 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1739 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1740 var depth = this.getDepth() - selectedNode.getDepth() + 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1741 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1742 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1743 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1744 ! radial && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1745 ! bubble && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1746 this != selectedNode && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1747 this.angleEnd.end != this.angleStart.end && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1748 nLabelOffsets[depth - 2] > 2 && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1749 this.labelWidth.current() > (this.angleEnd.end - this.angleStart.end) * Math.abs(radius) && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1750 ! ( zoomOut && this == selectedNodeLast ) && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1751 this.labelRadius.end > 0 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1752 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1753 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1754 // name extends beyond wedge; draw tick mark towards the central | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1755 // radius for easier identification | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1756 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1757 var radiusCenter = compress ? | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1758 (compressedRadii[depth - 1] + compressedRadii[depth - 2]) / 2 : | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1759 (depth - .5) * nodeRadius; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1760 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1761 if ( this.labelRadius.end > radiusCenter ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1762 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1763 if ( flipped ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1764 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1765 drawTick(radius - tickLength * 1.4 , tickLength, angle); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1766 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1767 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1768 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1769 drawTick(radius - tickLength * 1.7, tickLength, angle); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1770 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1771 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1772 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1773 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1774 if ( flipped ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1775 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1776 drawTick(radius + tickLength * .7, tickLength, angle); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1777 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1778 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1779 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1780 drawTick(radius + tickLength * .4, tickLength, angle); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1781 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1782 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1783 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1784 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1785 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1786 this.drawLines = function(angleStart, angleEnd, radiusInner, drawRadial, selected) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1787 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1788 if ( snapshotMode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1789 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1790 if ( this != selectedNode) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1791 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1792 if ( angleEnd == angleStart + Math.PI * 2 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1793 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1794 // fudge to prevent overlap, which causes arc ambiguity | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1795 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1796 angleEnd -= .1 / gRadius; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1797 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1798 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1799 var longArc = angleEnd - angleStart > Math.PI ? 1 : 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1800 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1801 var x1 = centerX + radiusInner * Math.cos(angleStart); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1802 var y1 = centerY + radiusInner * Math.sin(angleStart); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1803 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1804 var x2 = centerX + gRadius * Math.cos(angleStart); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1805 var y2 = centerY + gRadius * Math.sin(angleStart); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1806 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1807 var x3 = centerX + gRadius * Math.cos(angleEnd); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1808 var y3 = centerY + gRadius * Math.sin(angleEnd); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1809 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1810 var x4 = centerX + radiusInner * Math.cos(angleEnd); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1811 var y4 = centerY + radiusInner * Math.sin(angleEnd); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1812 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1813 if ( this.alphaArc.end ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1814 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1815 var dArray = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1816 [ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1817 " M ", x4, ",", y4, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1818 " A ", radiusInner, ",", radiusInner, " 0 ", longArc, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1819 " 0 ", x1, ",", y1 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1820 ]; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1821 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1822 svg += '<path class="line" d="' + dArray.join('') + '"/>'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1823 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1824 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1825 if ( drawRadial && this.alphaLine.end ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1826 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1827 svg += '<line x1="' + x3 + '" y1="' + y3 + '" x2="' + x4 + '" y2="' + y4 + '"/>'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1828 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1829 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1830 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1831 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1832 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1833 context.lineWidth = thinLineWidth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1834 context.strokeStyle = 'black'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1835 context.beginPath(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1836 context.arc(0, 0, radiusInner, angleStart, angleEnd, false); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1837 context.globalAlpha = this.alphaArc.current(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1838 context.stroke(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1839 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1840 if ( drawRadial ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1841 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1842 var x1 = radiusInner * Math.cos(angleEnd); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1843 var y1 = radiusInner * Math.sin(angleEnd); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1844 var x2 = gRadius * Math.cos(angleEnd); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1845 var y2 = gRadius * Math.sin(angleEnd); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1846 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1847 context.beginPath(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1848 context.moveTo(x1, y1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1849 context.lineTo(x2, y2); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1850 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1851 // if ( this.getCollapse() )//( selected && this != selectedNode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1852 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1853 context.globalAlpha = this.alphaLine.current(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1854 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1855 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1856 context.stroke(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1857 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1858 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1859 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1860 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1861 this.drawMap = function(child) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1862 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1863 if ( this.parent ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1864 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1865 this.parent.drawMap(child); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1866 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1867 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1868 if ( this.getCollapse() && this != child || this == focusNode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1869 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1870 return; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1871 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1872 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1873 var angleStart = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1874 (child.baseMagnitude - this.baseMagnitude) / this.magnitude * Math.PI * 2 + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1875 rotationOffset; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1876 var angleEnd = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1877 (child.baseMagnitude - this.baseMagnitude + child.magnitude) / | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1878 this.magnitude * Math.PI * 2 + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1879 rotationOffset; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1880 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1881 var box = this.getMapPosition(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1882 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1883 context.save(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1884 context.fillStyle = 'black'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1885 context.textAlign = 'end'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1886 context.textBaseline = 'middle'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1887 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1888 var textX = box.x - mapRadius - mapBuffer; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1889 var percentage = getPercentage(child.magnitude / this.magnitude); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1890 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1891 var highlight = this == selectedNode || this == highlightedNode; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1892 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1893 if ( highlight ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1894 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1895 context.font = fontBold; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1896 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1897 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1898 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1899 context.font = fontNormal; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1900 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1901 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1902 context.fillText(percentage + '% of', textX, box.y - mapRadius / 3); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1903 context.fillText(this.name, textX, box.y + mapRadius / 3); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1904 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1905 if ( highlight ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1906 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1907 context.font = fontNormal; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1908 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1909 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1910 if ( this == highlightedNode && this != selectedNode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1911 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1912 context.fillStyle = 'rgb(245, 245, 245)'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1913 // context.fillStyle = 'rgb(200, 200, 200)'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1914 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1915 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1916 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1917 context.fillStyle = 'rgb(255, 255, 255)'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1918 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1919 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1920 context.beginPath(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1921 context.arc(box.x, box.y, mapRadius, 0, Math.PI * 2, true); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1922 context.closePath(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1923 context.fill(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1924 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1925 if ( this == selectedNode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1926 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1927 context.lineWidth = 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1928 context.fillStyle = 'rgb(100, 100, 100)'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1929 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1930 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1931 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1932 if ( this == highlightedNode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1933 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1934 context.lineWidth = .2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1935 context.fillStyle = 'rgb(190, 190, 190)'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1936 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1937 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1938 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1939 context.lineWidth = .2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1940 context.fillStyle = 'rgb(200, 200, 200)'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1941 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1942 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1943 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1944 var maxDepth = this.getMaxDepth(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1945 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1946 if ( ! compress && maxDepth > maxPossibleDepth + this.getDepth() - 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1947 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1948 maxDepth = maxPossibleDepth + this.getDepth() - 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1949 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1950 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1951 if ( this.getDepth() < selectedNode.getDepth() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1952 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1953 if ( child.getDepth() - 1 >= maxDepth ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1954 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1955 maxDepth = child.getDepth(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1956 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1957 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1958 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1959 var radiusInner; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1960 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1961 if ( compress ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1962 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1963 radiusInner = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1964 // Math.atan(child.getDepth() - this.getDepth()) / | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1965 // Math.PI * 2 * .9; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1966 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1967 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1968 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1969 radiusInner = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1970 (child.getDepth() - this.getDepth()) / | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1971 (maxDepth - this.getDepth() + 1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1972 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1973 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1974 context.stroke(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1975 context.beginPath(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1976 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1977 if ( radiusInner == 0 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1978 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1979 context.moveTo(box.x, box.y); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1980 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1981 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1982 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1983 context.arc(box.x, box.y, mapRadius * radiusInner, angleEnd, angleStart, true); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1984 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1985 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1986 context.arc(box.x, box.y, mapRadius, angleStart, angleEnd, false); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1987 context.closePath(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1988 context.fill(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1989 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1990 if ( this == highlightedNode && this != selectedNode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1991 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1992 context.lineWidth = 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1993 context.stroke(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1994 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1995 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1996 context.restore(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1997 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1998 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 1999 this.drawReferenceRings = function(childRadiusInner) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2000 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2001 if ( snapshotMode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2002 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2003 svg += | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2004 '<circle cx="' + centerX + '" cy="' + centerY + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2005 '" r="' + childRadiusInner + '"/>'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2006 svg += | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2007 '<circle cx="' + centerX + '" cy="' + centerY + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2008 '" r="' + gRadius + '"/>'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2009 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2010 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2011 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2012 context.globalAlpha = 1 - this.alphaLine.current();//this.getUncollapsed().alphaLine.current(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2013 context.beginPath(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2014 context.arc(0, 0, childRadiusInner, 0, Math.PI * 2, false); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2015 context.stroke(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2016 context.beginPath(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2017 context.arc(0, 0, gRadius, 0, Math.PI * 2, false); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2018 context.stroke(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2019 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2020 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2021 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2022 this.getCollapse = function() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2023 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2024 return ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2025 collapse && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2026 this.collapse && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2027 this.depth != maxAbsoluteDepth | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2028 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2029 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2030 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2031 this.getDepth = function() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2032 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2033 if ( collapse ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2034 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2035 return this.depthCollapsed; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2036 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2037 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2038 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2039 return this.depth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2040 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2041 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2042 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2043 this.getMagnitude = function() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2044 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2045 return this.attributes[magnitudeIndex][currentDataset]; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2046 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2047 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2048 this.getMapPosition = function() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2049 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2050 return { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2051 x : (details.offsetLeft + details.clientWidth - mapRadius), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2052 y : ((focusNode.getDepth() - this.getDepth()) * | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2053 (mapBuffer + mapRadius * 2) - mapRadius) + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2054 details.clientHeight + details.offsetTop | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2055 }; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2056 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2057 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2058 this.getMaxDepth = function(limit) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2059 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2060 var max; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2061 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2062 if ( collapse ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2063 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2064 return this.maxDepthCollapsed; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2065 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2066 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2067 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2068 if ( this.maxDepth > maxAbsoluteDepth ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2069 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2070 return maxAbsoluteDepth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2071 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2072 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2073 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2074 return this.maxDepth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2075 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2076 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2077 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2078 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2079 this.getData = function(index, summary) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2080 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2081 var files = new Array(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2082 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2083 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2084 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2085 this.attributes[index] != null && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2086 this.attributes[index][currentDataset] != null && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2087 this.attributes[index][currentDataset] != '' | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2088 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2089 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2090 files.push | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2091 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2092 document.location + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2093 '.files/' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2094 this.attributes[index][currentDataset] | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2095 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2096 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2097 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2098 if ( summary ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2099 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2100 for ( var i = 0; i < this.children.length; i++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2101 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2102 files = files.concat(this.children[i].getData(index, true)); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2103 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2104 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2105 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2106 return files; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2107 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2108 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2109 this.getList = function(index, summary) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2110 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2111 var list; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2112 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2113 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2114 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2115 this.attributes[index] != null && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2116 this.attributes[index][currentDataset] != null | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2117 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2118 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2119 list = this.attributes[index][currentDataset]; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2120 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2121 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2122 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2123 list = new Array(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2124 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2125 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2126 if ( summary ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2127 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2128 for ( var i = 0; i < this.children.length; i++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2129 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2130 list = list.concat(this.children[i].getList(index, true)); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2131 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2132 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2133 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2134 return list; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2135 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2136 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2137 this.getParent = function() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2138 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2139 // returns parent, accounting for collapsing or 0 if doesn't exist | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2140 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2141 var parent = this.parent; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2142 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2143 while ( parent != 0 && parent.getCollapse() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2144 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2145 parent = parent.parent; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2146 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2147 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2148 return parent; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2149 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2150 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2151 this.getPercentage = function() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2152 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2153 return getPercentage(this.magnitude / selectedNode.magnitude); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2154 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2155 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2156 this.getUnclassifiedPercentage = function() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2157 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2158 if ( this.children.length ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2159 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2160 var lastChild = this.children[this.children.length - 1]; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2161 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2162 return getPercentage | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2163 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2164 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2165 this.baseMagnitude + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2166 this.magnitude - | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2167 lastChild.magnitude - | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2168 lastChild.baseMagnitude | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2169 ) / this.magnitude | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2170 ) + '%'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2171 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2172 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2173 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2174 return '100%'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2175 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2176 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2177 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2178 this.getUnclassifiedText = function() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2179 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2180 return '[other '+ this.name + ']'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2181 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2182 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2183 this.getUncollapsed = function() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2184 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2185 // recurse through collapsed children until uncollapsed node is found | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2186 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2187 if ( this.getCollapse() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2188 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2189 return this.children[0].getUncollapsed(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2190 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2191 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2192 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2193 return this; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2194 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2195 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2196 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2197 this.hasChildren = function() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2198 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2199 return this.children.length && this.depth < maxAbsoluteDepth && this.magnitude; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2200 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2201 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2202 this.hasParent = function(parent) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2203 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2204 if ( this.parent ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2205 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2206 if ( this.parent == parent ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2207 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2208 return true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2209 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2210 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2211 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2212 return this.parent.hasParent(parent); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2213 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2214 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2215 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2216 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2217 return false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2218 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2219 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2220 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2221 this.maxVisibleDepth = function(maxDepth) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2222 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2223 var childInnerRadius; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2224 var depth = this.getDepth() - selectedNode.getDepth() + 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2225 var currentMaxDepth = depth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2226 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2227 if ( this.hasChildren() && depth < maxDepth) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2228 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2229 var lastChild = this.children[this.children.length - 1]; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2230 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2231 if ( this.name == 'Pseudomonadaceae' ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2232 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2233 var x = 3; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2234 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2235 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2236 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2237 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2238 lastChild.baseMagnitude + lastChild.magnitude < | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2239 this.baseMagnitude + this.magnitude | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2240 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2241 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2242 currentMaxDepth++; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2243 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2244 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2245 if ( compress ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2246 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2247 childInnerRadius = compressedRadii[depth - 1]; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2248 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2249 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2250 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2251 childInnerRadius = (depth) / maxDepth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2252 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2253 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2254 for ( var i = 0; i < this.children.length; i++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2255 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2256 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2257 (//true || | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2258 this.children[i].magnitude * | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2259 angleFactor * | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2260 (childInnerRadius + 1) * | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2261 gRadius >= | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2262 minWidth() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2263 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2264 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2265 var childMaxDepth = this.children[i].maxVisibleDepth(maxDepth); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2266 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2267 if ( childMaxDepth > currentMaxDepth ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2268 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2269 currentMaxDepth = childMaxDepth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2270 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2271 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2272 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2273 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2274 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2275 return currentMaxDepth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2276 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2277 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2278 this.resetLabelWidth = function() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2279 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2280 var nameWidthOld = this.nameWidth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2281 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2282 if ( true || ! this.radial )//&& fontSize != fontSizeLast ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2283 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2284 var dim = context.measureText(this.name); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2285 this.nameWidth = dim.width; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2286 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2287 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2288 if ( fontSize != fontSizeLast && this.labelWidth.end == nameWidthOld * labelWidthFudge ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2289 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2290 // font size changed; adjust start of tween to match | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2291 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2292 this.labelWidth.start = this.nameWidth * labelWidthFudge; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2293 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2294 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2295 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2296 this.labelWidth.start = this.labelWidth.current(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2297 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2298 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2299 this.labelWidth.end = this.nameWidth * labelWidthFudge; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2300 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2301 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2302 this.restrictLabelWidth = function(width) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2303 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2304 if ( width < this.labelWidth.end ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2305 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2306 this.labelWidth.end = width; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2307 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2308 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2309 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2310 this.search = function() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2311 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2312 this.isSearchResult = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2313 this.searchResults = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2314 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2315 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2316 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2317 ! this.getCollapse() && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2318 search.value != '' && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2319 this.name.toLowerCase().indexOf(search.value.toLowerCase()) != -1 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2320 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2321 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2322 this.isSearchResult = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2323 this.searchResults = 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2324 nSearchResults++; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2325 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2326 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2327 for ( var i = 0; i < this.children.length; i++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2328 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2329 this.searchResults += this.children[i].search(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2330 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2331 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2332 return this.searchResults; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2333 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2334 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2335 this.searchResultChildren = function() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2336 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2337 if ( this.isSearchResult ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2338 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2339 return this.searchResults - 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2340 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2341 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2342 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2343 return this.searchResults; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2344 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2345 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2346 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2347 this.setDepth = function(depth, depthCollapsed) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2348 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2349 this.depth = depth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2350 this.depthCollapsed = depthCollapsed; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2351 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2352 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2353 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2354 this.children.length == 1 && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2355 // this.magnitude > 0 && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2356 this.children[0].magnitude == this.magnitude && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2357 ( head.children.length > 1 || this.children[0].children.length ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2358 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2359 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2360 this.collapse = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2361 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2362 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2363 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2364 this.collapse = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2365 depthCollapsed++; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2366 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2367 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2368 for ( var i = 0; i < this.children.length; i++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2369 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2370 this.children[i].setDepth(depth + 1, depthCollapsed); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2371 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2372 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2373 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2374 this.setHighlightStyle = function() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2375 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2376 context.lineWidth = highlightLineWidth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2377 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2378 if ( this.hasChildren() || this != focusNode || this != highlightedNode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2379 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2380 context.strokeStyle = 'black'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2381 context.fillStyle = "rgba(255, 255, 255, .3)"; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2382 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2383 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2384 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2385 context.strokeStyle = 'rgb(90,90,90)'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2386 context.fillStyle = "rgba(155, 155, 155, .3)"; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2387 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2388 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2389 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2390 this.setLabelWidth = function(node) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2391 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2392 if ( ! shorten || this.radial ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2393 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2394 return; // don't need to set width | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2395 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2396 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2397 if ( node.hide ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2398 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2399 alert('wtf'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2400 return; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2401 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2402 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2403 var angle = (this.angleStart.end + this.angleEnd.end) / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2404 var a; // angle difference | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2405 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2406 if ( node == selectedNode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2407 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2408 a = Math.abs(angle - node.angleOther); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2409 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2410 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2411 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2412 a = Math.abs(angle - (node.angleStart.end + node.angleEnd.end) / 2); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2413 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2414 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2415 if ( a == 0 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2416 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2417 return; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2418 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2419 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2420 if ( a > Math.PI ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2421 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2422 a = 2 * Math.PI - a; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2423 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2424 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2425 if ( node.radial || node == selectedNode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2426 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2427 var nodeLabelRadius; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2428 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2429 if ( node == selectedNode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2430 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2431 // radial 'other' label | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2432 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2433 nodeLabelRadius = (node.children[0].radiusInner.end + 1) / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2434 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2435 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2436 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2437 nodeLabelRadius = (node.radiusInner.end + 1) / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2438 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2439 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2440 if ( a < Math.PI / 2 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2441 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2442 var r = this.labelRadius.end * gRadius + .5 * fontSize | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2443 var hypotenuse = r / Math.cos(a); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2444 var opposite = r * Math.tan(a); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2445 var fontRadius = .8 * fontSize; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2446 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2447 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2448 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2449 nodeLabelRadius * gRadius < hypotenuse && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2450 this.labelWidth.end / 2 + fontRadius > opposite | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2451 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2452 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2453 this.labelWidth.end = 2 * (opposite - fontRadius); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2454 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2455 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2456 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2457 else if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2458 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2459 this.labelRadius.end == node.labelRadius.end && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2460 a < Math.PI / 4 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2461 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2462 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2463 // same radius with small angle; use circumferential approximation | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2464 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2465 var dist = a * this.labelRadius.end * gRadius - fontSize * (1 - a * 4 / Math.PI) * 1.3; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2466 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2467 if ( this.labelWidth.end < dist ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2468 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2469 node.restrictLabelWidth((dist - this.labelWidth.end / 2) * 2); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2470 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2471 else if ( node.labelWidth.end < dist ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2472 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2473 this.restrictLabelWidth((dist - node.labelWidth.end / 2) * 2); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2474 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2475 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2476 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2477 // both labels reach halfway point; restrict both | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2478 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2479 this.labelWidth.end = dist; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2480 node.labelWidth.end = dist | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2481 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2482 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2483 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2484 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2485 var r1 = this.labelRadius.end * gRadius; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2486 var r2 = node.labelRadius.end * gRadius; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2487 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2488 // first adjust the radii to account for the height of the font by shifting them | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2489 // toward each other | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2490 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2491 var fontFudge = .35 * fontSize; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2492 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2493 if ( this.labelRadius.end < node.labelRadius.end ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2494 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2495 r1 += fontFudge; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2496 r2 -= fontFudge; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2497 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2498 else if ( this.labelRadius.end > node.labelRadius.end ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2499 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2500 r1 -= fontFudge; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2501 r2 += fontFudge; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2502 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2503 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2504 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2505 r1 -= fontFudge; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2506 r2 -= fontFudge; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2507 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2508 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2509 var r1s = r1 * r1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2510 var r2s = r2 * r2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2511 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2512 // distance between the centers of the two labels | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2513 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2514 var dist = Math.sqrt(r1s + r2s - 2 * r1 * r2 * Math.cos(a)); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2515 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2516 // angle at our label center between our radius and the line to the other label center | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2517 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2518 var b = Math.acos((r1s + dist * dist - r2s) / (2 * r1 * dist)); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2519 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2520 // distance from our label center to the intersection of the two tangents | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2521 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2522 var l1 = Math.sin(a + b - Math.PI / 2) * dist / Math.sin(Math.PI - a); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2523 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2524 // distance from other label center the the intersection of the two tangents | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2525 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2526 var l2 = Math.sin(Math.PI / 2 - b) * dist / Math.sin(Math.PI - a); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2527 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2528 l1 = Math.abs(l1) - .4 * fontSize; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2529 l2 = Math.abs(l2) - .4 * fontSize; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2530 /* | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2531 // amount to shorten the distances because of the height of the font | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2532 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2533 var l3 = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2534 var fontRadius = fontSize * .55; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2535 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2536 if ( l1 < 0 || l2 < 0 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2537 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2538 var l4 = fontRadius / Math.tan(a); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2539 l1 = Math.abs(l1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2540 l2 = Math.abs(l2); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2541 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2542 l1 -= l4; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2543 l2 -= l4; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2544 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2545 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2546 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2547 var c = Math.PI - a; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2548 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2549 l3 = fontRadius * Math.tan(c / 2); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2550 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2551 */ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2552 if ( this.labelWidth.end / 2 > l1 && node.labelWidth.end / 2 > l2 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2553 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2554 // shorten the farthest one from the intersection | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2555 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2556 if ( l1 > l2 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2557 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2558 this.restrictLabelWidth(2 * (l1));// - l3 - fontRadius)); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2559 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2560 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2561 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2562 node.restrictLabelWidth(2 * (l2));// - l3 - fontRadius)); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2563 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2564 }/* | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2565 else if ( this.labelWidth.end / 2 > l1 + l3 && node.labelWidth.end / 2 > l2 - l3 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2566 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2567 node.restrictLabelWidth(2 * (l2 - l3)); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2568 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2569 else if ( this.labelWidth.end / 2 > l1 - l3 && node.labelWidth.end / 2 > l2 + l3 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2570 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2571 this.restrictLabelWidth(2 * (l1 - l3)); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2572 }*/ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2573 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2574 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2575 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2576 this.setMagnitudes = function(baseMagnitude) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2577 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2578 this.magnitude = this.getMagnitude(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2579 this.baseMagnitude = baseMagnitude; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2580 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2581 for ( var i = 0; i < this.children.length; i++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2582 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2583 this.children[i].setMagnitudes(baseMagnitude); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2584 baseMagnitude += this.children[i].magnitude; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2585 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2586 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2587 this.maxChildMagnitude = baseMagnitude; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2588 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2589 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2590 this.setMaxDepths = function() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2591 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2592 this.maxDepth = this.depth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2593 this.maxDepthCollapsed = this.depthCollapsed; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2594 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2595 for ( i in this.children ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2596 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2597 var child = this.children[i]; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2598 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2599 child.setMaxDepths(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2600 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2601 if ( child.maxDepth > this.maxDepth ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2602 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2603 this.maxDepth = child.maxDepth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2604 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2605 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2606 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2607 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2608 child.maxDepthCollapsed > this.maxDepthCollapsed && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2609 (child.depth <= maxAbsoluteDepth || maxAbsoluteDepth == 0) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2610 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2611 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2612 this.maxDepthCollapsed = child.maxDepthCollapsed; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2613 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2614 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2615 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2616 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2617 this.setTargetLabelRadius = function() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2618 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2619 var depth = this.getDepth() - selectedNode.getDepth() + 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2620 var index = depth - 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2621 var labelOffset = labelOffsets[index]; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2622 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2623 if ( this.radial ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2624 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2625 //this.labelRadius.setTarget((this.radiusInner.end + 1) / 2); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2626 var max = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2627 depth == maxDisplayDepth ? | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2628 1 : | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2629 compressedRadii[index + 1]; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2630 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2631 this.labelRadius.setTarget((compressedRadii[index] + max) / 2); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2632 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2633 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2634 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2635 var radiusCenter; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2636 var width; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2637 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2638 if ( compress ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2639 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2640 if ( nLabelOffsets[index] > 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2641 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2642 this.labelRadius.setTarget | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2643 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2644 lerp | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2645 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2646 labelOffset + .75, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2647 0, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2648 nLabelOffsets[index] + .5, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2649 compressedRadii[index], | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2650 compressedRadii[index + 1] | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2651 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2652 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2653 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2654 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2655 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2656 this.labelRadius.setTarget((compressedRadii[index] + compressedRadii[index + 1]) / 2); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2657 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2658 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2659 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2660 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2661 radiusCenter = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2662 nodeRadius * (depth - 1) + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2663 nodeRadius / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2664 width = nodeRadius; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2665 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2666 this.labelRadius.setTarget | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2667 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2668 radiusCenter + width * ((labelOffset + 1) / (nLabelOffsets[index] + 1) - .5) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2669 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2670 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2671 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2672 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2673 if ( ! this.hide && ! this.keyed && nLabelOffsets[index] ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2674 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2675 // check last and first labels in each track for overlap | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2676 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2677 for ( var i = 0; i < maxDisplayDepth - 1; i++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2678 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2679 for ( var j = 0; j <= nLabelOffsets[i]; j++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2680 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2681 var last = labelLastNodes[i][j]; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2682 var first = labelFirstNodes[i][j]; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2683 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2684 if ( last ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2685 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2686 if ( j == nLabelOffsets[i] ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2687 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2688 // last is radial | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2689 this.setLabelWidth(last); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2690 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2691 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2692 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2693 last.setLabelWidth(this); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2694 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2695 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2696 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2697 if ( first ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2698 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2699 if ( j == nLabelOffsets[i] ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2700 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2701 this.setLabelWidth(first); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2702 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2703 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2704 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2705 first.setLabelWidth(this); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2706 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2707 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2708 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2709 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2710 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2711 if ( selectedNode.canDisplayLabelOther ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2712 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2713 this.setLabelWidth(selectedNode); // in case there is an 'other' label | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2714 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2715 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2716 if ( this.radial ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2717 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2718 // use the last 'track' of this depth for radial | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2719 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2720 labelLastNodes[index][nLabelOffsets[index]] = this; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2721 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2722 if ( labelFirstNodes[index][nLabelOffsets[index]] == 0 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2723 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2724 labelFirstNodes[index][nLabelOffsets[index]] = this; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2725 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2726 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2727 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2728 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2729 labelLastNodes[index][labelOffset] = this; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2730 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2731 // update offset | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2732 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2733 labelOffsets[index] += 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2734 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2735 if ( labelOffsets[index] > nLabelOffsets[index] ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2736 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2737 labelOffsets[index] -= nLabelOffsets[index]; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2738 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2739 if ( !(nLabelOffsets[index] & 1) ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2740 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2741 labelOffsets[index]--; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2742 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2743 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2744 else if ( labelOffsets[index] == nLabelOffsets[index] ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2745 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2746 labelOffsets[index] -= nLabelOffsets[index]; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2747 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2748 if ( false && !(nLabelOffsets[index] & 1) ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2749 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2750 labelOffsets[index]++; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2751 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2752 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2753 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2754 if ( labelFirstNodes[index][labelOffset] == 0 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2755 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2756 labelFirstNodes[index][labelOffset] = this; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2757 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2758 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2759 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2760 else if ( this.hide ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2761 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2762 this.labelWidth.end = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2763 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2764 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2765 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2766 this.setTargets = function() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2767 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2768 if ( this == selectedNode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2769 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2770 this.setTargetsSelected | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2771 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2772 0, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2773 1, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2774 lightnessBase, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2775 false, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2776 false | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2777 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2778 return; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2779 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2780 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2781 var depthRelative = this.getDepth() - selectedNode.getDepth(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2782 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2783 var parentOfSelected = selectedNode.hasParent(this); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2784 /* ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2785 // ! this.getCollapse() && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2786 this.baseMagnitude <= selectedNode.baseMagnitude && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2787 this.baseMagnitude + this.magnitude >= | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2788 selectedNode.baseMagnitude + selectedNode.magnitude | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2789 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2790 */ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2791 if ( parentOfSelected ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2792 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2793 this.resetLabelWidth(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2794 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2795 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2796 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2797 //context.font = fontNormal; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2798 var dim = context.measureText(this.name); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2799 this.nameWidth = dim.width; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2800 //this.labelWidth.setTarget(this.labelWidth.end); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2801 this.labelWidth.setTarget(0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2802 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2803 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2804 // set angles | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2805 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2806 if ( this.baseMagnitude <= selectedNode.baseMagnitude ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2807 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2808 this.angleStart.setTarget(0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2809 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2810 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2811 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2812 this.angleStart.setTarget(Math.PI * 2); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2813 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2814 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2815 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2816 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2817 parentOfSelected || | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2818 this.baseMagnitude + this.magnitude >= | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2819 selectedNode.baseMagnitude + selectedNode.magnitude | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2820 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2821 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2822 this.angleEnd.setTarget(Math.PI * 2); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2823 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2824 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2825 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2826 this.angleEnd.setTarget(0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2827 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2828 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2829 // children | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2830 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2831 for ( var i = 0; i < this.children.length; i++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2832 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2833 this.children[i].setTargets(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2834 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2835 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2836 if ( this.getDepth() <= selectedNode.getDepth() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2837 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2838 // collapse in | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2839 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2840 this.radiusInner.setTarget(0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2841 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2842 if ( parentOfSelected ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2843 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2844 this.labelRadius.setTarget | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2845 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2846 (depthRelative) * | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2847 historySpacingFactor * fontSize / gRadius | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2848 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2849 //this.scale.setTarget(1 - (selectedNode.getDepth() - this.getDepth()) / 18); // TEMP | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2850 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2851 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2852 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2853 this.labelRadius.setTarget(0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2854 //this.scale.setTarget(1); // TEMP | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2855 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2856 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2857 else if ( depthRelative + 1 > maxDisplayDepth ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2858 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2859 // collapse out | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2860 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2861 this.radiusInner.setTarget(1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2862 this.labelRadius.setTarget(1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2863 //this.scale.setTarget(1); // TEMP | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2864 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2865 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2866 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2867 // don't collapse | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2868 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2869 if ( compress ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2870 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2871 this.radiusInner.setTarget(compressedRadii[depthRelative - 1]); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2872 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2873 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2874 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2875 this.radiusInner.setTarget(nodeRadius * (depthRelative)); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2876 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2877 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2878 //this.scale.setTarget(1); // TEMP | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2879 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2880 if ( this == selectedNode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2881 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2882 this.labelRadius.setTarget(0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2883 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2884 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2885 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2886 if ( compress ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2887 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2888 this.labelRadius.setTarget | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2889 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2890 (compressedRadii[depthRelative - 1] + compressedRadii[depthRelative]) / 2 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2891 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2892 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2893 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2894 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2895 this.labelRadius.setTarget(nodeRadius * (depthRelative) + nodeRadius / 2); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2896 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2897 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2898 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2899 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2900 // this.r.start = this.r.end; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2901 // this.g.start = this.g.end; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2902 // this.b.start = this.b.end; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2903 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2904 this.r.setTarget(255); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2905 this.g.setTarget(255); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2906 this.b.setTarget(255); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2907 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2908 this.alphaLine.setTarget(0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2909 this.alphaArc.setTarget(0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2910 this.alphaWedge.setTarget(0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2911 this.alphaPattern.setTarget(0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2912 this.alphaOther.setTarget(0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2913 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2914 if ( parentOfSelected && ! this.getCollapse() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2915 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2916 var alpha = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2917 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2918 1 - | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2919 (selectedNode.getDepth() - this.getDepth()) / | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2920 (Math.floor((compress ? compressedRadii[0] : nodeRadius) * gRadius / (historySpacingFactor * fontSize) - .5) + 1) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2921 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2922 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2923 if ( alpha < 0 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2924 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2925 alpha = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2926 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2927 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2928 this.alphaLabel.setTarget(alpha); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2929 this.radial = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2930 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2931 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2932 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2933 this.alphaLabel.setTarget(0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2934 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2935 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2936 this.hideAlonePrev = this.hideAlone; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2937 this.hidePrev = this.hide; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2938 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2939 if ( parentOfSelected ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2940 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2941 this.hideAlone = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2942 this.hide = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2943 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2944 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2945 if ( this.getParent() == selectedNode.getParent() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2946 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2947 this.hiddenEnd = null; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2948 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2949 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2950 this.radialPrev = this.radial; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2951 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2952 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2953 this.setTargetsSelected = function(hueMin, hueMax, lightness, hide, nextSiblingHidden) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2954 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2955 var collapse = this.getCollapse(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2956 var depth = this.getDepth() - selectedNode.getDepth() + 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2957 var canDisplayChildLabels = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2958 var lastChild; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2959 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2960 if ( this.hasChildren() )//&& ! hide ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2961 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2962 lastChild = this.children[this.children.length - 1]; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2963 this.hideAlone = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2964 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2965 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2966 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2967 this.hideAlone = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2968 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2969 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2970 // set child wedges | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2971 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2972 for ( var i = 0; i < this.children.length; i++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2973 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2974 this.children[i].setTargetWedge(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2975 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2976 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2977 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2978 ! this.children[i].hide && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2979 ( collapse || depth < maxDisplayDepth ) && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2980 this.depth < maxAbsoluteDepth | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2981 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2982 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2983 canDisplayChildLabels = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2984 this.hideAlone = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2985 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2986 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2987 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2988 if ( this == selectedNode || lastChild && lastChild.angleEnd.end < this.angleEnd.end - .01) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2989 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2990 this.hideAlone = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2991 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2992 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2993 if ( this.hideAlonePrev == undefined ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2994 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2995 this.hideAlonePrev = this.hideAlone; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2996 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2997 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2998 if ( this == selectedNode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 2999 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3000 var otherArc = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3001 this.children.length ? | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3002 angleFactor * | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3003 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3004 this.baseMagnitude + this.magnitude - | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3005 lastChild.baseMagnitude - lastChild.magnitude | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3006 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3007 : this.baseMagnitude + this.magnitude; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3008 this.canDisplayLabelOther = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3009 this.children.length ? | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3010 otherArc * | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3011 (this.children[0].radiusInner.end + 1) * gRadius >= | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3012 minWidth() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3013 : true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3014 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3015 this.keyUnclassified = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3016 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3017 if ( this.canDisplayLabelOther ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3018 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3019 this.angleOther = Math.PI * 2 - otherArc / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3020 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3021 else if ( otherArc > 0.0000000001 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3022 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3023 this.keyUnclassified = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3024 keys++; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3025 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3026 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3027 this.angleStart.setTarget(0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3028 this.angleEnd.setTarget(Math.PI * 2); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3029 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3030 if ( this.children.length ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3031 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3032 this.radiusInner.setTarget(0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3033 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3034 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3035 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3036 this.radiusInner.setTarget(compressedRadii[0]); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3037 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3038 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3039 this.hidePrev = this.hide; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3040 this.hide = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3041 this.hideAlonePrev = this.hideAlone; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3042 this.hideAlone = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3043 this.keyed = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3044 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3045 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3046 if ( hueMax - hueMin > 1 / 12 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3047 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3048 hueMax = hueMin + 1 / 12; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3049 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3050 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3051 // set lightness | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3052 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3053 if ( ! ( hide || this.hideAlone ) ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3054 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3055 if ( useHue() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3056 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3057 lightness = (lightnessBase + lightnessMax) / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3058 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3059 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3060 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3061 lightness = lightnessBase + (depth - 1) * lightnessFactor; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3062 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3063 if ( lightness > lightnessMax ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3064 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3065 lightness = lightnessMax; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3066 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3067 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3068 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3069 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3070 if ( hide ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3071 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3072 this.hide = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3073 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3074 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3075 if ( this.hidePrev == undefined ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3076 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3077 this.hidePrev = this.hide; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3078 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3079 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3080 var hiddenStart = -1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3081 var hiddenHueNumer = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3082 var hiddenHueDenom = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3083 var i = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3084 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3085 if ( ! this.hide ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3086 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3087 this.hiddenEnd = null; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3088 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3089 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3090 while ( true ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3091 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3092 if ( ! this.hideAlone && ! hide && ( i == this.children.length || ! this.children[i].hide ) ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3093 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3094 // reached a non-hidden child or the end; set targets for | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3095 // previous group of hidden children (if any) using their | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3096 // average hue | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3097 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3098 if ( hiddenStart != -1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3099 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3100 var hiddenHue = hiddenHueDenom ? hiddenHueNumer / hiddenHueDenom : hueMin; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3101 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3102 for ( var j = hiddenStart; j < i; j++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3103 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3104 this.children[j].setTargetsSelected | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3105 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3106 hiddenHue, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3107 null, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3108 lightness, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3109 false, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3110 j < i - 1 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3111 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3112 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3113 this.children[j].hiddenEnd = null; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3114 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3115 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3116 this.children[hiddenStart].hiddenEnd = i - 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3117 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3118 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3119 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3120 if ( i == this.children.length ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3121 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3122 break; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3123 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3124 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3125 var child = this.children[i]; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3126 var childHueMin; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3127 var childHueMax; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3128 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3129 if ( this.magnitude > 0 && ! this.hide && ! this.hideAlone ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3130 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3131 if ( useHue() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3132 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3133 childHueMin = child.hues[currentDataset]; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3134 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3135 else if ( this == selectedNode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3136 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3137 var min = 0.0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3138 var max = 1.0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3139 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3140 if ( this.children.length > 6 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3141 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3142 childHueMin = lerp((1 - Math.pow(1 - i / this.children.length, 1.4)) * .95, 0, 1, min, max); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3143 childHueMax = lerp((1 - Math.pow(1 - (i + .55) / this.children.length, 1.4)) * .95, 0, 1, min, max); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3144 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3145 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3146 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3147 childHueMin = lerp(i / this.children.length, 0, 1, min, max); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3148 childHueMax = lerp((i + .55) / this.children.length, 0, 1, min, max); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3149 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3150 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3151 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3152 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3153 childHueMin = lerp | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3154 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3155 child.baseMagnitude, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3156 this.baseMagnitude, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3157 this.baseMagnitude + this.magnitude, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3158 hueMin, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3159 hueMax | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3160 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3161 childHueMax = lerp | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3162 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3163 child.baseMagnitude + child.magnitude * .99, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3164 this.baseMagnitude, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3165 this.baseMagnitude + this.magnitude, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3166 hueMin, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3167 hueMax | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3168 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3169 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3170 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3171 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3172 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3173 childHueMin = hueMin; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3174 childHueMax = hueMax; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3175 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3176 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3177 if ( ! this.hideAlone && ! hide && ! this.hide && child.hide ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3178 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3179 if ( hiddenStart == -1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3180 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3181 hiddenStart = i; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3182 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3183 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3184 if ( useHue() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3185 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3186 hiddenHueNumer += childHueMin * child.magnitude; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3187 hiddenHueDenom += child.magnitude; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3188 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3189 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3190 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3191 hiddenHueNumer += childHueMin; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3192 hiddenHueDenom++; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3193 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3194 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3195 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3196 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3197 hiddenStart = -1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3198 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3199 this.children[i].setTargetsSelected | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3200 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3201 childHueMin, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3202 childHueMax, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3203 lightness, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3204 hide || this.keyed || this.hideAlone || this.hide && ! collapse, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3205 false | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3206 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3207 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3208 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3209 i++; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3210 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3211 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3212 if ( this.hue && this.magnitude ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3213 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3214 this.hue.setTarget(this.hues[currentDataset]); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3215 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3216 if ( this.attributes[magnitudeIndex][lastDataset] == 0 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3217 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3218 this.hue.start = this.hue.end; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3219 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3220 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3221 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3222 this.radialPrev = this.radial; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3223 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3224 if ( this == selectedNode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3225 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3226 this.resetLabelWidth(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3227 this.labelWidth.setTarget(this.nameWidth * labelWidthFudge); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3228 this.alphaWedge.setTarget(0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3229 this.alphaLabel.setTarget(1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3230 this.alphaOther.setTarget(1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3231 this.alphaArc.setTarget(0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3232 this.alphaLine.setTarget(0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3233 this.alphaPattern.setTarget(0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3234 this.r.setTarget(255); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3235 this.g.setTarget(255); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3236 this.b.setTarget(255); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3237 this.radial = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3238 this.labelRadius.setTarget(0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3239 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3240 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3241 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3242 var rgb = hslToRgb | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3243 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3244 hueMin, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3245 saturation, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3246 lightness | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3247 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3248 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3249 this.r.setTarget(rgb.r); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3250 this.g.setTarget(rgb.g); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3251 this.b.setTarget(rgb.b); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3252 this.alphaOther.setTarget(0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3253 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3254 this.alphaWedge.setTarget(1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3255 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3256 if ( this.hide || this.hideAlone ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3257 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3258 this.alphaPattern.setTarget(1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3259 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3260 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3261 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3262 this.alphaPattern.setTarget(0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3263 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3264 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3265 // set radial | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3266 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3267 if ( ! ( hide || this.hide ) )//&& ! this.keyed ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3268 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3269 if ( this.hideAlone ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3270 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3271 this.radial = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3272 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3273 else if ( false && canDisplayChildLabels ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3274 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3275 this.radial = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3276 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3277 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3278 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3279 this.radial = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3280 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3281 if ( this.hasChildren() && depth < maxDisplayDepth ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3282 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3283 var lastChild = this.children[this.children.length - 1]; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3284 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3285 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3286 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3287 lastChild.angleEnd.end == this.angleEnd.end || | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3288 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3289 (this.angleStart.end + this.angleEnd.end) / 2 - | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3290 lastChild.angleEnd.end | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3291 ) * (this.radiusInner.end + 1) * gRadius * 2 < | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3292 minWidth() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3293 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3294 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3295 this.radial = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3296 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3297 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3298 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3299 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3300 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3301 // set alphaLabel | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3302 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3303 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3304 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3305 collapse || | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3306 hide || | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3307 this.hide || | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3308 this.keyed || | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3309 depth > maxDisplayDepth || | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3310 ! this.canDisplayDepth() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3311 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3312 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3313 this.alphaLabel.setTarget(0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3314 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3315 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3316 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3317 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3318 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3319 (this.radial || nLabelOffsets[depth - 2]) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3320 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3321 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3322 this.alphaLabel.setTarget(1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3323 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3324 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3325 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3326 this.alphaLabel.setTarget(0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3327 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3328 if ( this.radialPrev ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3329 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3330 this.alphaLabel.start = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3331 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3332 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3333 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3334 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3335 // set alphaArc | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3336 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3337 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3338 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3339 collapse || | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3340 hide || | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3341 depth > maxDisplayDepth || | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3342 ! this.canDisplayDepth() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3343 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3344 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3345 this.alphaArc.setTarget(0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3346 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3347 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3348 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3349 this.alphaArc.setTarget(1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3350 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3351 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3352 // set alphaLine | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3353 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3354 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3355 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3356 hide || | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3357 this.hide && nextSiblingHidden || | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3358 depth > maxDisplayDepth || | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3359 ! this.canDisplayDepth() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3360 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3361 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3362 this.alphaLine.setTarget(0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3363 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3364 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3365 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3366 this.alphaLine.setTarget(1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3367 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3368 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3369 //if ( ! this.radial ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3370 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3371 this.resetLabelWidth(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3372 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3373 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3374 // set labelRadius target | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3375 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3376 if ( collapse ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3377 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3378 this.labelRadius.setTarget(this.radiusInner.end); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3379 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3380 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3381 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3382 if ( depth > maxDisplayDepth || ! this.canDisplayDepth() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3383 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3384 this.labelRadius.setTarget(1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3385 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3386 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3387 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3388 this.setTargetLabelRadius(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3389 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3390 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3391 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3392 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3393 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3394 this.setTargetWedge = function() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3395 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3396 var depth = this.getDepth() - selectedNode.getDepth() + 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3397 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3398 // set angles | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3399 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3400 var baseMagnitudeRelative = this.baseMagnitude - selectedNode.baseMagnitude; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3401 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3402 this.angleStart.setTarget(baseMagnitudeRelative * angleFactor); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3403 this.angleEnd.setTarget((baseMagnitudeRelative + this.magnitude) * angleFactor); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3404 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3405 // set radiusInner | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3406 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3407 if ( depth > maxDisplayDepth || ! this.canDisplayDepth() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3408 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3409 this.radiusInner.setTarget(1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3410 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3411 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3412 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3413 if ( compress ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3414 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3415 this.radiusInner.setTarget(compressedRadii[depth - 2]); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3416 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3417 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3418 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3419 this.radiusInner.setTarget(nodeRadius * (depth - 1)); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3420 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3421 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3422 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3423 if ( this.hide != undefined ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3424 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3425 this.hidePrev = this.hide; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3426 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3427 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3428 if ( this.hideAlone != undefined ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3429 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3430 this.hideAlonePrev = this.hideAlone; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3431 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3432 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3433 // set hide | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3434 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3435 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3436 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3437 (this.angleEnd.end - this.angleStart.end) * | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3438 (this.radiusInner.end * gRadius + gRadius) < | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3439 minWidth() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3440 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3441 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3442 if ( depth == 2 && ! this.getCollapse() && this.depth <= maxAbsoluteDepth ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3443 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3444 this.keyed = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3445 keys++; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3446 this.hide = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3447 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3448 var percentage = this.getPercentage(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3449 this.keyLabel = this.name + ' ' + percentage + '%'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3450 var dim = context.measureText(this.keyLabel); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3451 this.keyNameWidth = dim.width; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3452 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3453 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3454 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3455 this.keyed = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3456 this.hide = depth > 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3457 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3458 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3459 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3460 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3461 this.keyed = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3462 this.hide = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3463 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3464 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3465 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3466 this.shortenLabel = function() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3467 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3468 var label = this.name; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3469 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3470 var labelWidth = this.nameWidth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3471 var maxWidth = this.labelWidth.current(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3472 var minEndLength = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3473 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3474 if ( labelWidth > maxWidth && label.length > minEndLength * 2 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3475 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3476 var endLength = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3477 Math.floor((label.length - 1) * maxWidth / labelWidth / 2); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3478 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3479 if ( endLength < minEndLength ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3480 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3481 endLength = minEndLength; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3482 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3483 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3484 return ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3485 label.substring(0, endLength) + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3486 '...' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3487 label.substring(label.length - endLength)); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3488 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3489 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3490 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3491 return label; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3492 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3493 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3494 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3495 /* this.shouldAddSearchResultsString = function() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3496 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3497 if ( this.isSearchResult ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3498 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3499 return this.searchResults > 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3500 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3501 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3502 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3503 return this.searchResults > 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3504 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3505 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3506 */ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3507 this.sort = function() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3508 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3509 this.children.sort(function(a, b){return b.getMagnitude() - a.getMagnitude()}); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3510 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3511 for (var i = 0; i < this.children.length; i++) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3512 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3513 this.children[i].sort(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3514 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3515 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3516 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3517 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3518 var options; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3519 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3520 function addOptionElement(position, innerHTML, title) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3521 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3522 var div = document.createElement("div"); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3523 // div.style.position = 'absolute'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3524 // div.style.top = position + 'px'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3525 div.innerHTML = innerHTML; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3526 // div.style.display = 'block'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3527 div.style.padding = '2px'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3528 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3529 if ( title ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3530 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3531 div.title = title; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3532 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3533 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3534 options.appendChild(div); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3535 var height = 0;//div.clientHeight; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3536 return position + height; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3537 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3538 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3539 function addOptionElements(hueName, hueDefault) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3540 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3541 options = document.createElement('div'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3542 options.style.position = 'absolute'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3543 options.style.top = '0px'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3544 options.addEventListener('mousedown', function(e) {mouseClick(e)}, false); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3545 // options.onmouseup = function(e) {mouseUp(e)} | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3546 document.body.appendChild(options); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3547 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3548 document.body.style.font = '11px sans-serif'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3549 var position = 5; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3550 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3551 details = document.createElement('div'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3552 details.style.position = 'absolute'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3553 details.style.top = '1%'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3554 details.style.right = '2%'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3555 details.style.textAlign = 'right'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3556 document.body.insertBefore(details, canvas); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3557 // <div id="details" style="position:absolute;top:1%;right:2%;text-align:right;"> | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3558 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3559 details.innerHTML = '\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3560 <span id="detailsName" style="font-weight:bold"></span> \ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3561 <input type="button" id="detailsExpand" onclick="expand(focusNode);"\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3562 value="↔" title="Expand this wedge to become the new focus of the chart"/><br/>\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3563 <div id="detailsInfo" style="float:right"></div>'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3564 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3565 keyControl = document.createElement('input'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3566 keyControl.type = 'button'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3567 keyControl.value = showKeys ? 'x' : '…'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3568 keyControl.style.position = ''; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3569 keyControl.style.position = 'fixed'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3570 keyControl.style.visibility = 'hidden'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3571 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3572 document.body.insertBefore(keyControl, canvas); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3573 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3574 var logoElement = document.getElementById('logo'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3575 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3576 if ( logoElement ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3577 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3578 logoImage = logoElement.src; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3579 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3580 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3581 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3582 logoImage = 'http://marbl.github.io/Krona/img/logo-med.png'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3583 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3584 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3585 // document.getElementById('options').style.fontSize = '9pt'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3586 position = addOptionElement | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3587 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3588 position, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3589 '<a style="margin:2px" target="_blank" href="https://github.com/marbl/Krona/wiki"><img style="vertical-align:middle;width:108px;height:30px;" src="' + logoImage + '" alt="Logo of Krona"/></a><input type="button" id="back" value="←" title="Go back (Shortcut: ←)"/>\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3590 <input type="button" id="forward" value="→" title="Go forward (Shortcut: →)"/> \ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3591  Search: <input type="text" id="search"/>\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3592 <input id="searchClear" type="button" value="x" onclick="clearSearch()"/> \ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3593 <span id="searchResults"></span>' | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3594 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3595 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3596 if ( datasets > 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3597 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3598 var size = datasets < datasetSelectSize ? datasets : datasetSelectSize; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3599 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3600 var select = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3601 '<table style="border-collapse:collapse;padding:0px"><tr><td style="padding:0px">' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3602 '<select id="datasets" style="min-width:100px" size="' + size + '" onchange="onDatasetChange()">'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3603 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3604 for ( var i = 0; i < datasetNames.length; i++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3605 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3606 select += '<option>' + datasetNames[i] + '</option>'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3607 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3608 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3609 select += | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3610 '</select></td><td style="vertical-align:top;padding:1px;">' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3611 '<input style="display:block" title="Previous dataset (Shortcut: ↑)" id="prevDataset" type="button" value="↑" onclick="prevDataset()" disabled="true"/>' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3612 '<input title="Next dataset (Shortcut: ↓)" id="nextDataset" type="button" value="↓" onclick="nextDataset()"/><br/></td>' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3613 '<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>'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3614 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3615 position = addOptionElement(position + 5, select); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3616 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3617 datasetDropDown = document.getElementById('datasets'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3618 datasetButtonLast = document.getElementById('lastDataset'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3619 datasetButtonPrev = document.getElementById('prevDataset'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3620 datasetButtonNext = document.getElementById('nextDataset'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3621 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3622 position += datasetDropDown.clientHeight; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3623 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3624 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3625 position = addOptionElement | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3626 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3627 position + 5, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3628 '<input type="button" id="maxAbsoluteDepthDecrease" value="-"/>\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3629 <span id="maxAbsoluteDepth"></span>\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3630  <input type="button" id="maxAbsoluteDepthIncrease" value="+"/> Max depth', | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3631 'Maximum depth to display, counted from the top level \ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3632 and including collapsed wedges.' | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3633 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3634 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3635 position = addOptionElement | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3636 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3637 position, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3638 '<input type="button" id="fontSizeDecrease" value="-"/>\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3639 <span id="fontSize"></span>\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3640  <input type="button" id="fontSizeIncrease" value="+"/> Font size' | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3641 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3642 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3643 position = addOptionElement | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3644 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3645 position, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3646 '<input type="button" id="radiusDecrease" value="-"/>\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3647 <input type="button" id="radiusIncrease" value="+"/> Chart size' | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3648 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3649 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3650 if ( hueName ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3651 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3652 hueDisplayName = attributes[attributeIndex(hueName)].displayName; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3653 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3654 position = addOptionElement | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3655 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3656 position + 5, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3657 '<input type="checkbox" id="useHue" style="float:left" ' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3658 '/><div>Color by<br/>' + hueDisplayName + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3659 '</div>' | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3660 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3661 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3662 useHueCheckBox = document.getElementById('useHue'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3663 useHueCheckBox.checked = hueDefault; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3664 useHueCheckBox.onclick = handleResize; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3665 useHueCheckBox.onmousedown = suppressEvent; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3666 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3667 /* | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3668 position = addOptionElement | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3669 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3670 position + 5, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3671 ' <input type="checkbox" id="shorten" checked="checked" />Shorten labels</div>', | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3672 'Prevent labels from overlapping by shortening them' | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3673 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3674 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3675 position = addOptionElement | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3676 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3677 position, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3678 ' <input type="checkbox" id="compress" checked="checked" />Compress', | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3679 'Compress wedges if needed to show the entire depth' | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3680 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3681 */ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3682 position = addOptionElement | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3683 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3684 position, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3685 '<input type="checkbox" id="collapse" checked="checked" />Collapse', | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3686 'Collapse wedges that are redundant (entirely composed of another wedge)' | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3687 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3688 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3689 position = addOptionElement | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3690 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3691 position + 5, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3692 '<input type="button" id="snapshot" value="Snapshot"/>', | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3693 'Render the current view as SVG (Scalable Vector Graphics), a publication-\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3694 quality format that can be printed and saved (see Help for browser compatibility)' | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3695 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3696 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3697 position = addOptionElement | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3698 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3699 position + 5, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3700 '<input type="button" id="linkButton" value="Link"/>\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3701 <input type="text" size="30" id="linkText"/>', | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3702 'Show a link to this view that can be copied for bookmarking or sharing' | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3703 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3704 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3705 position = addOptionElement | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3706 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3707 position + 5, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3708 '<input type="button" id="help" value="?"\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3709 onclick="window.open(\'https://github.com/marbl/Krona/wiki/Browsing%20Krona%20charts\', \'help\')"/>', | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3710 'Help' | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3711 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3712 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3713 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3714 function arrow(angleStart, angleEnd, radiusInner) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3715 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3716 if ( context.globalAlpha == 0 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3717 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3718 return; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3719 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3720 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3721 var angleCenter = (angleStart + angleEnd) / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3722 var radiusArrowInner = radiusInner - gRadius / 10;//nodeRadius * gRadius; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3723 var radiusArrowOuter = gRadius * 1.1;//(1 + nodeRadius); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3724 var radiusArrowCenter = (radiusArrowInner + radiusArrowOuter) / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3725 var pointLength = (radiusArrowOuter - radiusArrowInner) / 5; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3726 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3727 context.fillStyle = highlightFill; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3728 context.lineWidth = highlightLineWidth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3729 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3730 // First, mask out the first half of the arrow. This will prevent the tips | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3731 // from superimposing if the arrow goes most of the way around the circle. | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3732 // Masking is done by setting the clipping region to the inverse of the | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3733 // half-arrow, which is defined by cutting the half-arrow out of a large | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3734 // rectangle | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3735 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3736 context.beginPath(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3737 context.arc(0, 0, radiusInner, angleCenter, angleEnd, false); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3738 context.lineTo | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3739 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3740 radiusArrowInner * Math.cos(angleEnd), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3741 radiusArrowInner * Math.sin(angleEnd) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3742 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3743 context.lineTo | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3744 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3745 radiusArrowCenter * Math.cos(angleEnd) - pointLength * Math.sin(angleEnd), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3746 radiusArrowCenter * Math.sin(angleEnd) + pointLength * Math.cos(angleEnd) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3747 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3748 context.lineTo | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3749 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3750 radiusArrowOuter * Math.cos(angleEnd), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3751 radiusArrowOuter * Math.sin(angleEnd) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3752 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3753 context.arc(0, 0, gRadius, angleEnd, angleCenter, true); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3754 context.closePath(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3755 context.moveTo(-imageWidth, -imageHeight); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3756 context.lineTo(imageWidth, -imageHeight); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3757 context.lineTo(imageWidth, imageHeight); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3758 context.lineTo(-imageWidth, imageHeight); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3759 context.closePath(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3760 context.save(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3761 context.clip(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3762 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3763 // Next, draw the other half-arrow with the first half masked out | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3764 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3765 context.beginPath(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3766 context.arc(0, 0, radiusInner, angleCenter, angleStart, true); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3767 context.lineTo | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3768 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3769 radiusArrowInner * Math.cos(angleStart), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3770 radiusArrowInner * Math.sin(angleStart) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3771 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3772 context.lineTo | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3773 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3774 radiusArrowCenter * Math.cos(angleStart) + pointLength * Math.sin(angleStart), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3775 radiusArrowCenter * Math.sin(angleStart) - pointLength * Math.cos(angleStart) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3776 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3777 context.lineTo | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3778 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3779 radiusArrowOuter * Math.cos(angleStart), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3780 radiusArrowOuter * Math.sin(angleStart) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3781 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3782 context.arc(0, 0, gRadius, angleStart, angleCenter, false); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3783 context.fill(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3784 context.stroke(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3785 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3786 // Finally, remove the clipping region and draw the first half-arrow. This | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3787 // half is extended slightly to fill the seam. | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3788 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3789 context.restore(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3790 context.beginPath(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3791 context.arc(0, 0, radiusInner, angleCenter - 2 / (2 * Math.PI * radiusInner), angleEnd, false); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3792 context.lineTo | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3793 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3794 radiusArrowInner * Math.cos(angleEnd), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3795 radiusArrowInner * Math.sin(angleEnd) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3796 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3797 context.lineTo | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3798 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3799 radiusArrowCenter * Math.cos(angleEnd) - pointLength * Math.sin(angleEnd), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3800 radiusArrowCenter * Math.sin(angleEnd) + pointLength * Math.cos(angleEnd) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3801 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3802 context.lineTo | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3803 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3804 radiusArrowOuter * Math.cos(angleEnd), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3805 radiusArrowOuter * Math.sin(angleEnd) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3806 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3807 context.arc(0, 0, gRadius, angleEnd, angleCenter - 2 / (2 * Math.PI * gRadius), true); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3808 context.fill(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3809 context.stroke(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3810 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3811 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3812 function attributeIndex(aname) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3813 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3814 for ( var i = 0 ; i < attributes.length; i++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3815 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3816 if ( aname == attributes[i].name ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3817 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3818 return i; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3819 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3820 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3821 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3822 return null; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3823 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3824 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3825 function checkHighlight() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3826 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3827 var lastHighlightedNode = highlightedNode; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3828 var lastHighlightingHidden = highlightingHidden; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3829 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3830 highlightedNode = selectedNode; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3831 resetKeyOffset(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3832 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3833 if ( progress == 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3834 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3835 selectedNode.checkHighlight(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3836 if ( selectedNode.getParent() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3837 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3838 selectedNode.getParent().checkHighlightCenter(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3839 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3840 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3841 focusNode.checkHighlightMap(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3842 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3843 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3844 if ( highlightedNode != selectedNode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3845 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3846 if ( highlightedNode == focusNode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3847 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3848 // canvas.style.display='none'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3849 // window.resizeBy(1,0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3850 // canvas.style.cursor='ew-resize'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3851 // window.resizeBy(-1,0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3852 // canvas.style.display='inline'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3853 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3854 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3855 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3856 // canvas.style.cursor='pointer'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3857 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3858 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3859 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3860 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3861 // canvas.style.cursor='auto'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3862 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3863 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3864 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3865 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3866 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3867 true || | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3868 highlightedNode != lastHighlightedNode || | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3869 highlightingHidden != highlightingHiddenLast | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3870 ) && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3871 progress == 1 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3872 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3873 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3874 draw(); // TODO: handle in update() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3875 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3876 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3877 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3878 function checkSelectedCollapse() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3879 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3880 var newNode = selectedNode; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3881 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3882 while ( newNode.getCollapse() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3883 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3884 newNode = newNode.children[0]; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3885 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3886 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3887 if ( newNode.children.length == 0 && newNode.getParent() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3888 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3889 newNode = newNode.getParent(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3890 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3891 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3892 if ( newNode != selectedNode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3893 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3894 selectNode(newNode); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3895 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3896 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3897 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3898 function clearSearch() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3899 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3900 if ( search.value != '' ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3901 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3902 search.value = ''; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3903 onSearchChange(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3904 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3905 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3906 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3907 function createSVG() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3908 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3909 svgNS = "http://www.w3.org/2000/svg"; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3910 var SVG = {}; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3911 SVG.xlinkns = "http://www.w3.org/1999/xlink"; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3912 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3913 var newSVG = document.createElementNS(svgNS, "svg:svg"); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3914 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3915 newSVG.setAttribute("id", "canvas"); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3916 // How big is the canvas in pixels | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3917 newSVG.setAttribute("width", '100%'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3918 newSVG.setAttribute("height", '100%'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3919 // Set the coordinates used by drawings in the canvas | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3920 // newSVG.setAttribute("viewBox", "0 0 " + imageWidth + " " + imageHeight); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3921 // Define the XLink namespace that SVG uses | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3922 newSVG.setAttributeNS | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3923 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3924 "http://www.w3.org/2000/xmlns/", | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3925 "xmlns:xlink", | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3926 SVG.xlinkns | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3927 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3928 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3929 return newSVG; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3930 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3931 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3932 function degrees(radians) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3933 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3934 return radians * 180 / Math.PI; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3935 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3936 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3937 function draw() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3938 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3939 tweenFrames++; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3940 //resize(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3941 // context.fillRect(0, 0, imageWidth, imageHeight); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3942 context.clearRect(0, 0, imageWidth, imageHeight); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3943 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3944 context.font = fontNormal; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3945 context.textBaseline = 'middle'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3946 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3947 //context.strokeStyle = 'rgba(0, 0, 0, 0.3)'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3948 context.translate(centerX, centerY); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3949 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3950 resetKeyOffset(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3951 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3952 head.draw(false, false); // draw pie slices | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3953 head.draw(true, false); // draw labels | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3954 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3955 var pathRoot = selectedNode; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3956 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3957 if ( focusNode != 0 && focusNode != selectedNode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3958 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3959 context.globalAlpha = 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3960 focusNode.drawHighlight(true); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3961 pathRoot = focusNode; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3962 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3963 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3964 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3965 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3966 highlightedNode && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3967 highlightedNode.getDepth() >= selectedNode.getDepth() && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3968 highlightedNode != focusNode | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3969 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3970 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3971 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3972 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3973 progress == 1 && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3974 highlightedNode != selectedNode && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3975 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3976 highlightedNode != focusNode || | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3977 focusNode.children.length > 0 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3978 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3979 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3980 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3981 context.globalAlpha = 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3982 highlightedNode.drawHighlight(true); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3983 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3984 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3985 //pathRoot = highlightedNode; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3986 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3987 else if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3988 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3989 progress == 1 && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3990 highlightedNode.getDepth() < selectedNode.getDepth() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3991 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3992 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3993 context.globalAlpha = 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3994 highlightedNode.drawHighlightCenter(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3995 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3996 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3997 if ( quickLook && false) // TEMP | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3998 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 3999 context.globalAlpha = 1 - progress / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4000 selectedNode.drawHighlight(true); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4001 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4002 else if ( progress < 1 )//&& zoomOut() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4003 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4004 if ( !zoomOut)//() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4005 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4006 context.globalAlpha = selectedNode.alphaLine.current(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4007 selectedNode.drawHighlight(true); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4008 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4009 else if ( selectedNodeLast ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4010 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4011 context.globalAlpha = 1 - 4 * Math.pow(progress - .5, 2); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4012 selectedNodeLast.drawHighlight(false); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4013 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4014 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4015 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4016 drawDatasetName(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4017 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4018 //drawHistory(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4019 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4020 context.translate(-centerX, -centerY); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4021 context.globalAlpha = 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4022 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4023 mapRadius = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4024 (imageHeight / 2 - details.clientHeight - details.offsetTop) / | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4025 (pathRoot.getDepth() - 1) * 3 / 4 / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4026 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4027 if ( mapRadius > maxMapRadius ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4028 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4029 mapRadius = maxMapRadius; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4030 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4031 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4032 mapBuffer = mapRadius / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4033 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4034 //context.font = fontNormal; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4035 pathRoot.drawMap(pathRoot); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4036 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4037 if ( hueDisplayName && useHue() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4038 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4039 drawLegend(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4040 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4041 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4042 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4043 function drawBubble(angle, radius, width, radial, flip) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4044 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4045 var height = fontSize * 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4046 var x; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4047 var y; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4048 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4049 width = width + fontSize; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4050 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4051 if ( radial ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4052 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4053 y = -fontSize; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4054 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4055 if ( flip ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4056 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4057 x = radius - width + fontSize / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4058 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4059 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4060 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4061 x = radius - fontSize / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4062 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4063 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4064 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4065 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4066 x = -width / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4067 y = -radius - fontSize; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4068 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4069 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4070 if ( snapshotMode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4071 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4072 drawBubbleSVG(x + centerX, y + centerY, width, height, fontSize, angle); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4073 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4074 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4075 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4076 drawBubbleCanvas(x, y, width, height, fontSize, angle); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4077 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4078 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4079 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4080 function drawBubbleCanvas(x, y, width, height, radius, rotation) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4081 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4082 context.strokeStyle = 'black'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4083 context.lineWidth = highlightLineWidth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4084 context.fillStyle = 'rgba(255, 255, 255, .75)'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4085 context.rotate(rotation); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4086 roundedRectangle(x, y, width, fontSize * 2, fontSize); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4087 context.fill(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4088 context.stroke(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4089 context.rotate(-rotation); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4090 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4091 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4092 function drawBubbleSVG(x, y, width, height, radius, rotation) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4093 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4094 svg += | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4095 '<rect x="' + x + '" y="' + y + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4096 '" width="' + width + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4097 '" height="' + height + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4098 '" rx="' + radius + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4099 '" ry="' + radius + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4100 '" fill="rgba(255, 255, 255, .75)' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4101 '" class="highlight" ' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4102 'transform="rotate(' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4103 degrees(rotation) + ',' + centerX + ',' + centerY + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4104 ')"/>'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4105 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4106 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4107 function drawDatasetName() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4108 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4109 var alpha = datasetAlpha.current(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4110 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4111 if ( alpha > 0 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4112 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4113 var radius = gRadius * compressedRadii[0] / -2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4114 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4115 if ( alpha > 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4116 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4117 alpha = 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4118 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4119 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4120 context.globalAlpha = alpha; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4121 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4122 drawBubble(0, -radius, datasetWidths[currentDataset], false, false); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4123 drawText(datasetNames[currentDataset], 0, radius, 0, 'center', true); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4124 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4125 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4126 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4127 function drawHistory() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4128 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4129 var alpha = 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4130 context.textAlign = 'center'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4131 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4132 for ( var i = 0; i < nodeHistoryPosition && alpha > 0; i++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4133 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4134 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4135 context.globalAlpha = alpha - historyAlphaDelta * tweenFactor; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4136 context.fillText | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4137 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4138 nodeHistory[nodeHistoryPosition - i - 1].name, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4139 0, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4140 (i + tweenFactor) * historySpacingFactor * fontSize - 1 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4141 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4142 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4143 if ( alpha > 0 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4144 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4145 alpha -= historyAlphaDelta; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4146 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4147 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4148 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4149 context.globalAlpha = 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4150 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4151 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4152 function drawLegend() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4153 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4154 var left = imageWidth * .01; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4155 var width = imageHeight * .0265; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4156 var height = imageHeight * .15; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4157 var top = imageHeight - fontSize * 3.5 - height; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4158 var textLeft = left + width + fontSize / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4159 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4160 context.fillStyle = 'black'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4161 context.textAlign = 'start'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4162 context.font = fontNormal; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4163 // context.fillText(valueStartText, textLeft, top + height); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4164 // context.fillText(valueEndText, textLeft, top); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4165 context.fillText(hueDisplayName, left, imageHeight - fontSize * 1.5); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4166 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4167 var gradient = context.createLinearGradient(0, top + height, 0, top); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4168 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4169 for ( var i = 0; i < hueStopPositions.length; i++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4170 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4171 gradient.addColorStop(hueStopPositions[i], hueStopHsl[i]); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4172 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4173 var textY = top + (1 - hueStopPositions[i]) * height; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4174 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4175 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4176 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4177 i == 0 || | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4178 i == hueStopPositions.length - 1 || | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4179 textY > top + fontSize && textY < top + height - fontSize | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4180 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4181 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4182 context.fillText(hueStopText[i], textLeft, textY); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4183 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4184 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4185 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4186 context.fillStyle = gradient; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4187 context.fillRect(left, top, width, height); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4188 context.lineWidth = thinLineWidth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4189 context.strokeRect(left, top, width, height); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4190 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4191 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4192 function drawLegendSVG() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4193 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4194 var left = imageWidth * .01; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4195 var width = imageHeight * .0265; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4196 var height = imageHeight * .15; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4197 var top = imageHeight - fontSize * 3.5 - height; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4198 var textLeft = left + width + fontSize / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4199 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4200 var text = ''; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4201 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4202 text += svgText(hueDisplayName, left, imageHeight - fontSize * 1.5); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4203 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4204 var svgtest = '<linearGradient id="gradient" x1="0%" y1="100%" x2="0%" y2="0%">'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4205 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4206 for ( var i = 0; i < hueStopPositions.length; i++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4207 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4208 svgtest += | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4209 '<stop offset="' + round(hueStopPositions[i] * 100) + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4210 '%" style="stop-color:' + hueStopHsl[i] + '"/>'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4211 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4212 var textY = top + (1 - hueStopPositions[i]) * height; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4213 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4214 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4215 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4216 i == 0 || | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4217 i == hueStopPositions.length - 1 || | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4218 textY > top + fontSize && textY < top + height - fontSize | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4219 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4220 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4221 text += svgText(hueStopText[i], textLeft, textY); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4222 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4223 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4224 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4225 svgtest += '</linearGradient>'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4226 //alert(svgtest); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4227 svg += svgtest; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4228 svg += | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4229 '<rect style="fill:url(#gradient)" x="' + left + '" y="' + top + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4230 '" width="' + width + '" height="' + height + '"/>'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4231 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4232 svg += text; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4233 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4234 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4235 function drawSearchHighlights(label, bubbleX, bubbleY, rotation, center) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4236 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4237 var index = -1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4238 var labelLength = label.length; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4239 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4240 bubbleX -= fontSize / 4; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4241 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4242 do | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4243 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4244 index = label.toLowerCase().indexOf(search.value.toLowerCase(), index + 1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4245 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4246 if ( index != -1 && index < labelLength ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4247 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4248 var dim = context.measureText(label.substr(0, index)); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4249 var x = bubbleX + dim.width; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4250 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4251 dim = context.measureText(label.substr(index, search.value.length)); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4252 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4253 var y = bubbleY - fontSize * 3 / 4; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4254 var width = dim.width + fontSize / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4255 var height = fontSize * 3 / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4256 var radius = fontSize / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4257 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4258 if ( snapshotMode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4259 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4260 if ( center ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4261 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4262 x += centerX; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4263 y += centerY; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4264 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4265 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4266 svg += | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4267 '<rect x="' + x + '" y="' + y + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4268 '" width="' + width + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4269 '" height="' + height + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4270 '" rx="' + radius + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4271 '" ry="' + radius + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4272 '" class="searchHighlight' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4273 '" transform="rotate(' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4274 degrees(rotation) + ',' + centerX + ',' + centerY + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4275 ')"/>'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4276 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4277 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4278 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4279 context.fillStyle = 'rgb(255, 255, 100)'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4280 context.rotate(rotation); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4281 roundedRectangle(x, y, width, height, radius); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4282 context.fill(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4283 context.rotate(-rotation); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4284 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4285 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4286 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4287 while ( index != -1 && index < labelLength ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4288 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4289 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4290 function drawText(text, x, y, angle, anchor, bold, color) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4291 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4292 if ( color == undefined ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4293 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4294 color = 'black'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4295 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4296 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4297 if ( snapshotMode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4298 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4299 svg += | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4300 '<text x="' + (centerX + x) + '" y="' + (centerY + y) + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4301 '" text-anchor="' + anchor + '" style="font-color:' + color + ';font-weight:' + (bold ? 'bold' : 'normal') + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4302 '" transform="rotate(' + degrees(angle) + ',' + centerX + ',' + centerY + ')">' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4303 text + '</text>'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4304 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4305 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4306 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4307 context.fillStyle = color; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4308 context.textAlign = anchor; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4309 context.font = bold ? fontBold : fontNormal; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4310 context.rotate(angle); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4311 context.fillText(text, x, y); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4312 context.rotate(-angle); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4313 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4314 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4315 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4316 function drawTextPolar | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4317 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4318 text, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4319 innerText, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4320 angle, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4321 radius, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4322 radial, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4323 bubble, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4324 bold, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4325 searchResult, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4326 searchResults | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4327 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4328 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4329 var anchor; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4330 var textX; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4331 var textY; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4332 var spacer; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4333 var totalText = text; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4334 var flip; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4335 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4336 if ( snapshotMode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4337 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4338 spacer = '   '; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4339 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4340 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4341 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4342 spacer = ' '; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4343 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4344 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4345 if ( radial ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4346 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4347 flip = angle < 3 * Math.PI / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4348 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4349 if ( flip ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4350 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4351 angle -= Math.PI; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4352 radius = -radius; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4353 anchor = 'end'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4354 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4355 if ( innerText ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4356 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4357 totalText = text + spacer + innerText; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4358 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4359 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4360 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4361 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4362 anchor = 'start'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4363 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4364 if ( innerText ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4365 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4366 totalText = innerText + spacer + text; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4367 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4368 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4369 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4370 textX = radius; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4371 textY = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4372 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4373 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4374 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4375 flip = angle < Math.PI || angle > 2 * Math.PI; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4376 var label; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4377 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4378 anchor = snapshotMode ? 'middle' : 'center'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4379 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4380 if ( flip ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4381 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4382 angle -= Math.PI; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4383 radius = -radius; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4384 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4385 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4386 angle += Math.PI / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4387 textX = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4388 textY = -radius; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4389 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4390 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4391 if ( bubble ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4392 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4393 var textActual = totalText; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4394 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4395 if ( innerText && snapshotMode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4396 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4397 if ( flip ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4398 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4399 textActual = text + ' ' + innerText; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4400 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4401 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4402 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4403 textActual = innerText + ' ' + text; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4404 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4405 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4406 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4407 if ( searchResults ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4408 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4409 textActual = textActual + searchResultString(searchResults); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4410 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4411 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4412 var textWidth = measureText(textActual, bold); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4413 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4414 var x = textX; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4415 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4416 if ( anchor == 'end' ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4417 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4418 x -= textWidth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4419 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4420 else if ( anchor != 'start' ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4421 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4422 // centered | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4423 x -= textWidth / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4424 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4425 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4426 drawBubble(angle, radius, textWidth, radial, flip); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4427 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4428 if ( searchResult ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4429 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4430 drawSearchHighlights | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4431 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4432 textActual, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4433 x, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4434 textY, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4435 angle, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4436 true | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4437 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4438 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4439 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4440 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4441 if ( searchResults ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4442 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4443 totalText = totalText + searchResultString(searchResults); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4444 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4445 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4446 drawText(totalText, textX, textY, angle, anchor, bold); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4447 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4448 return flip; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4449 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4450 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4451 function drawTick(start, length, angle) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4452 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4453 if ( snapshotMode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4454 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4455 svg += | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4456 '<line x1="' + (centerX + start) + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4457 '" y1="' + centerY + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4458 '" x2="' + (centerX + start + length) + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4459 '" y2="' + centerY + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4460 '" class="tick" transform="rotate(' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4461 degrees(angle) + ',' + centerX + ',' + centerY + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4462 ')"/>'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4463 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4464 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4465 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4466 context.rotate(angle); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4467 context.beginPath(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4468 context.moveTo(start, 0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4469 context.lineTo(start + length, 0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4470 context.lineWidth = thinLineWidth * 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4471 context.stroke(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4472 context.rotate(-angle); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4473 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4474 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4475 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4476 function drawWedge | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4477 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4478 angleStart, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4479 angleEnd, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4480 radiusInner, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4481 radiusOuter, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4482 color, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4483 patternAlpha, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4484 highlight | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4485 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4486 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4487 if ( context.globalAlpha == 0 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4488 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4489 return; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4490 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4491 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4492 if ( snapshotMode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4493 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4494 if ( angleEnd == angleStart + Math.PI * 2 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4495 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4496 // fudge to prevent overlap, which causes arc ambiguity | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4497 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4498 angleEnd -= .1 / gRadius; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4499 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4500 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4501 var longArc = angleEnd - angleStart > Math.PI ? 1 : 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4502 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4503 var x1 = centerX + radiusInner * Math.cos(angleStart); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4504 var y1 = centerY + radiusInner * Math.sin(angleStart); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4505 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4506 var x2 = centerX + gRadius * Math.cos(angleStart); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4507 var y2 = centerY + gRadius * Math.sin(angleStart); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4508 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4509 var x3 = centerX + gRadius * Math.cos(angleEnd); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4510 var y3 = centerY + gRadius * Math.sin(angleEnd); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4511 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4512 var x4 = centerX + radiusInner * Math.cos(angleEnd); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4513 var y4 = centerY + radiusInner * Math.sin(angleEnd); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4514 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4515 var dArray = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4516 [ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4517 " M ", x1, ",", y1, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4518 " L ", x2, ",", y2, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4519 " A ", gRadius, ",", gRadius, " 0 ", longArc, ",1 ", x3, ",", y3, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4520 " L ", x4, ",", y4, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4521 " A ", radiusInner, ",", radiusInner, " 0 ", longArc, " 0 ", x1, ",", y1, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4522 " Z " | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4523 ]; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4524 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4525 svg += | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4526 '<path class="'+ (highlight ? 'highlight' : 'wedge') + '" fill="' + color + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4527 '" d="' + dArray.join('') + '"/>'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4528 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4529 if ( patternAlpha > 0 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4530 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4531 svg += | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4532 '<path class="wedge" fill="url(#hiddenPattern)" d="' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4533 dArray.join('') + '"/>'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4534 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4535 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4536 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4537 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4538 // fudge to prevent seams during animation | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4539 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4540 angleEnd += 1 / gRadius; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4541 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4542 context.fillStyle = color; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4543 context.beginPath(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4544 context.arc(0, 0, radiusInner, angleStart, angleEnd, false); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4545 context.arc(0, 0, radiusOuter, angleEnd, angleStart, true); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4546 context.closePath(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4547 context.fill(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4548 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4549 if ( patternAlpha > 0 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4550 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4551 context.save(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4552 context.clip(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4553 context.globalAlpha = patternAlpha; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4554 context.fillStyle = hiddenPattern; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4555 context.fill(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4556 context.restore(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4557 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4558 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4559 if ( highlight ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4560 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4561 context.lineWidth = highlight ? highlightLineWidth : thinLineWidth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4562 context.strokeStyle = 'black'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4563 context.stroke(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4564 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4565 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4566 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4567 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4568 function expand(node) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4569 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4570 selectNode(node); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4571 updateView(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4572 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4573 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4574 function focusLost() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4575 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4576 mouseX = -1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4577 mouseY = -1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4578 checkHighlight(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4579 document.body.style.cursor = 'auto'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4580 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4581 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4582 function fontSizeDecrease() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4583 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4584 if ( fontSize > 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4585 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4586 fontSize--; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4587 updateViewNeeded = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4588 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4589 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4590 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4591 function fontSizeIncrease() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4592 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4593 fontSize++; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4594 updateViewNeeded = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4595 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4596 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4597 function getGetString(name, value, bool) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4598 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4599 return name + '=' + (bool ? value ? 'true' : 'false' : value); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4600 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4601 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4602 function hideLink() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4603 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4604 hide(linkText); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4605 show(linkButton); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4606 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4607 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4608 function show(object) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4609 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4610 object.style.display = 'inline'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4611 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4612 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4613 function hide(object) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4614 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4615 object.style.display = 'none'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4616 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4617 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4618 function showLink() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4619 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4620 var urlHalves = String(document.location).split('?'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4621 var newGetVariables = new Array(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4622 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4623 newGetVariables.push | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4624 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4625 getGetString('dataset', currentDataset, false), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4626 getGetString('node', selectedNode.id, false), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4627 getGetString('collapse', collapse, true), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4628 getGetString('color', useHue(), true), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4629 getGetString('depth', maxAbsoluteDepth - 1, false), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4630 getGetString('font', fontSize, false), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4631 getGetString('key', showKeys, true) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4632 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4633 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4634 hide(linkButton); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4635 show(linkText); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4636 linkText.value = urlHalves[0] + '?' + getVariables.concat(newGetVariables).join('&'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4637 //linkText.disabled = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4638 linkText.focus(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4639 linkText.select(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4640 //linkText.disabled = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4641 // document.location = urlHalves[0] + '?' + getVariables.join('&'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4642 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4643 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4644 function getFirstChild(element) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4645 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4646 element = element.firstChild; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4647 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4648 if ( element && element.nodeType != 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4649 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4650 element = getNextSibling(element); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4651 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4652 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4653 return element; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4654 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4655 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4656 function getNextSibling(element) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4657 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4658 do | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4659 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4660 element = element.nextSibling; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4661 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4662 while ( element && element.nodeType != 1 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4663 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4664 return element; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4665 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4666 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4667 function getPercentage(fraction) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4668 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4669 return round(fraction * 100); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4670 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4671 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4672 function hslText(hue) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4673 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4674 if ( 1 || snapshotMode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4675 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4676 // Safari doesn't seem to allow hsl() in SVG | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4677 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4678 var rgb = hslToRgb(hue, saturation, (lightnessBase + lightnessMax) / 2); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4679 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4680 return rgbText(rgb.r, rgb.g, rgb.b); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4681 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4682 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4683 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4684 var hslArray = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4685 [ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4686 'hsl(', | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4687 Math.floor(hue * 360), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4688 ',', | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4689 Math.floor(saturation * 100), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4690 '%,', | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4691 Math.floor((lightnessBase + lightnessMax) * 50), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4692 '%)' | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4693 ]; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4694 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4695 return hslArray.join(''); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4696 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4697 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4698 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4699 function hslToRgb(h, s, l) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4700 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4701 var m1, m2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4702 var r, g, b; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4703 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4704 if (s == 0) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4705 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4706 r = g = b = Math.floor((l * 255)); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4707 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4708 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4709 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4710 if (l <= 0.5) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4711 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4712 m2 = l * (s + 1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4713 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4714 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4715 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4716 m2 = l + s - l * s; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4717 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4718 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4719 m1 = l * 2 - m2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4720 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4721 r = Math.floor(hueToRgb(m1, m2, h + 1 / 3)); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4722 g = Math.floor(hueToRgb(m1, m2, h)); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4723 b = Math.floor(hueToRgb(m1, m2, h - 1/3)); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4724 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4725 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4726 return {r: r, g: g, b: b}; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4727 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4728 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4729 function hueToRgb(m1, m2, hue) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4730 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4731 var v; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4732 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4733 while (hue < 0) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4734 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4735 hue += 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4736 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4737 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4738 while (hue > 1) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4739 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4740 hue -= 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4741 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4742 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4743 if (6 * hue < 1) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4744 v = m1 + (m2 - m1) * hue * 6; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4745 else if (2 * hue < 1) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4746 v = m2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4747 else if (3 * hue < 2) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4748 v = m1 + (m2 - m1) * (2/3 - hue) * 6; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4749 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4750 v = m1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4751 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4752 return 255 * v; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4753 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4754 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4755 function interpolateHue(hueStart, hueEnd, valueStart, valueEnd) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4756 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4757 // since the gradient will be RGB based, we need to add stops to hit all the | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4758 // colors in the hue spectrum | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4759 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4760 hueStopPositions = new Array(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4761 hueStopHsl = new Array(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4762 hueStopText = new Array(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4763 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4764 hueStopPositions.push(0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4765 hueStopHsl.push(hslText(hueStart)); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4766 hueStopText.push(round(valueStart)); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4767 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4768 for | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4769 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4770 var i = (hueStart > hueEnd ? 5 / 6 : 1 / 6); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4771 (hueStart > hueEnd ? i > 0 : i < 1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4772 i += (hueStart > hueEnd ? -1 : 1) / 6 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4773 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4774 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4775 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4776 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4777 hueStart > hueEnd ? | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4778 i > hueEnd && i < hueStart : | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4779 i > hueStart && i < hueEnd | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4780 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4781 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4782 hueStopPositions.push(lerp(i, hueStart, hueEnd, 0, 1)); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4783 hueStopHsl.push(hslText(i)); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4784 hueStopText.push(round(lerp | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4785 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4786 i, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4787 hueStart, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4788 hueEnd, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4789 valueStart, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4790 valueEnd | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4791 ))); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4792 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4793 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4794 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4795 hueStopPositions.push(1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4796 hueStopHsl.push(hslText(hueEnd)); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4797 hueStopText.push(round(valueEnd)); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4798 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4799 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4800 function keyLineAngle(angle, keyAngle, bendRadius, keyX, keyY, pointsX, pointsY) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4801 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4802 if ( angle < Math.PI / 2 && keyY < bendRadius * Math.sin(angle) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4803 || angle > Math.PI / 2 && keyY < bendRadius) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4804 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4805 return Math.asin(keyY / bendRadius); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4806 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4807 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4808 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4809 // find the angle of the normal to a tangent line that goes to | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4810 // the label | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4811 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4812 var textDist = Math.sqrt | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4813 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4814 Math.pow(keyX, 2) + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4815 Math.pow(keyY, 2) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4816 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4817 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4818 var tanAngle = Math.acos(bendRadius / textDist) + keyAngle; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4819 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4820 if ( angle < tanAngle || angle < Math.PI / 2 )//|| labelLeft < centerX ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4821 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4822 // angle doesn't reach far enough for tangent; collapse and | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4823 // connect directly to label | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4824 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4825 if ( keyY / Math.tan(angle) > 0 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4826 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4827 pointsX.push(keyY / Math.tan(angle)); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4828 pointsY.push(keyY); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4829 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4830 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4831 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4832 pointsX.push(bendRadius * Math.cos(angle)); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4833 pointsY.push(bendRadius * Math.sin(angle)); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4834 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4835 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4836 return angle; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4837 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4838 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4839 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4840 return tanAngle; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4841 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4842 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4843 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4844 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4845 function keyOffset() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4846 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4847 return imageHeight - (keys - currentKey + 1) * (keySize + keyBuffer) + keyBuffer - margin; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4848 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4849 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4850 function lerp(value, fromStart, fromEnd, toStart, toEnd) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4851 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4852 return (value - fromStart) * | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4853 (toEnd - toStart) / | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4854 (fromEnd - fromStart) + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4855 toStart; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4856 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4857 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4858 function createCanvas() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4859 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4860 canvas = document.createElement('canvas'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4861 document.body.appendChild(canvas); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4862 context = canvas.getContext('2d'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4863 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4864 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4865 function load() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4866 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4867 document.body.style.overflow = "hidden"; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4868 document.body.style.margin = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4869 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4870 createCanvas(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4871 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4872 if ( context == undefined ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4873 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4874 document.body.innerHTML = '\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4875 <br/>This browser does not support HTML5 (see \ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4876 <a href="https://github.com/marbl/Krona/wiki/Browser%20support">Browser support</a>).\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4877 '; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4878 return; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4879 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4880 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4881 if ( typeof context.fillText != 'function' ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4882 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4883 document.body.innerHTML = '\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4884 <br/>This browser does not support HTML5 canvas text (see \ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4885 <a href="https://github.com/marbl/Krona/wiki/Browser%20support">Browser support</a>).\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4886 '; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4887 return; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4888 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4889 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4890 resize(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4891 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4892 var kronaElement = document.getElementsByTagName('krona')[0]; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4893 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4894 var magnitudeName; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4895 var hueName; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4896 var hueDefault; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4897 var hueStart; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4898 var hueEnd; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4899 var valueStart; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4900 var valueEnd; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4901 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4902 if ( kronaElement.getAttribute('collapse') != undefined ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4903 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4904 collapse = kronaElement.getAttribute('collapse') == 'true'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4905 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4906 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4907 if ( kronaElement.getAttribute('key') != undefined ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4908 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4909 showKeys = kronaElement.getAttribute('key') == 'true'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4910 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4911 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4912 for | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4913 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4914 var element = getFirstChild(kronaElement); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4915 element; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4916 element = getNextSibling(element) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4917 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4918 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4919 switch ( element.tagName.toLowerCase() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4920 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4921 case 'attributes': | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4922 magnitudeName = element.getAttribute('magnitude'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4923 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4924 for | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4925 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4926 var attributeElement = getFirstChild(element); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4927 attributeElement; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4928 attributeElement = getNextSibling(attributeElement) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4929 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4930 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4931 var tag = attributeElement.tagName.toLowerCase(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4932 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4933 if ( tag == 'attribute' ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4934 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4935 var attribute = new Attribute(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4936 attribute.name = attributeElement.firstChild.nodeValue.toLowerCase(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4937 attribute.displayName = attributeElement.getAttribute('display'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4938 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4939 if ( attributeElement.getAttribute('hrefBase') ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4940 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4941 attribute.hrefBase = attributeElement.getAttribute('hrefBase'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4942 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4943 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4944 if ( attributeElement.getAttribute('target') ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4945 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4946 attribute.target = attributeElement.getAttribute('target'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4947 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4948 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4949 if ( attribute.name == magnitudeName ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4950 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4951 magnitudeIndex = attributes.length; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4952 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4953 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4954 if ( attributeElement.getAttribute('listAll') ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4955 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4956 attribute.listAll = attributeElement.getAttribute('listAll').toLowerCase(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4957 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4958 else if ( attributeElement.getAttribute('listNode') ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4959 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4960 attribute.listNode = attributeElement.getAttribute('listNode').toLowerCase(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4961 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4962 else if ( attributeElement.getAttribute('dataAll') ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4963 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4964 attribute.dataAll = attributeElement.getAttribute('dataAll').toLowerCase(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4965 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4966 else if ( attributeElement.getAttribute('dataNode') ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4967 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4968 attribute.dataNode = attributeElement.getAttribute('dataNode').toLowerCase(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4969 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4970 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4971 if ( attributeElement.getAttribute('postUrl') ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4972 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4973 attribute.postUrl = attributeElement.getAttribute('postUrl'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4974 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4975 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4976 if ( attributeElement.getAttribute('postVar') ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4977 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4978 attribute.postVar = attributeElement.getAttribute('postVar'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4979 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4980 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4981 if ( attributeElement.getAttribute('mono') ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4982 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4983 attribute.mono = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4984 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4985 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4986 attributes.push(attribute); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4987 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4988 else if ( tag == 'list' ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4989 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4990 var attribute = new Attribute(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4991 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4992 attribute.name = attributeElement.firstChild.nodeValue; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4993 attribute.list = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4994 attributes.push(attribute); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4995 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4996 else if ( tag == 'data' ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4997 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4998 var attribute = new Attribute(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 4999 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5000 attribute.name = attributeElement.firstChild.nodeValue; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5001 attribute.data = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5002 attributes.push(attribute); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5003 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5004 var enableScript = document.createElement('script'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5005 var date = new Date(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5006 enableScript.src = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5007 attributeElement.getAttribute('enable') + '?' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5008 date.getTime(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5009 document.body.appendChild(enableScript); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5010 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5011 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5012 break; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5013 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5014 case 'color': | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5015 hueName = element.getAttribute('attribute'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5016 hueStart = Number(element.getAttribute('hueStart')) / 360; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5017 hueEnd = Number(element.getAttribute('hueEnd')) / 360; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5018 valueStart = Number(element.getAttribute('valueStart')); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5019 valueEnd = Number(element.getAttribute('valueEnd')); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5020 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5021 interpolateHue(hueStart, hueEnd, valueStart, valueEnd); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5022 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5023 if ( element.getAttribute('default') == 'true' ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5024 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5025 hueDefault = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5026 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5027 break; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5028 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5029 case 'datasets': | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5030 datasetNames = new Array(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5031 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5032 for ( j = getFirstChild(element); j; j = getNextSibling(j) ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5033 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5034 datasetNames.push(j.firstChild.nodeValue); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5035 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5036 datasets = datasetNames.length; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5037 break; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5038 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5039 case 'node': | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5040 head = loadTreeDOM | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5041 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5042 element, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5043 magnitudeName, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5044 hueName, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5045 hueStart, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5046 hueEnd, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5047 valueStart, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5048 valueEnd | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5049 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5050 break; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5051 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5052 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5053 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5054 // get GET options | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5055 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5056 var urlHalves = String(document.location).split('?'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5057 var datasetDefault = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5058 var maxDepthDefault; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5059 var nodeDefault = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5060 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5061 if ( urlHalves[1] ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5062 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5063 var vars = urlHalves[1].split('&'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5064 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5065 for ( i = 0; i < vars.length; i++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5066 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5067 var pair = vars[i].split('='); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5068 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5069 switch ( pair[0] ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5070 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5071 case 'collapse': | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5072 collapse = pair[1] == 'true'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5073 break; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5074 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5075 case 'color': | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5076 hueDefault = pair[1] == 'true'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5077 break; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5078 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5079 case 'dataset': | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5080 datasetDefault = Number(pair[1]); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5081 break; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5082 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5083 case 'depth': | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5084 maxDepthDefault = Number(pair[1]) + 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5085 break; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5086 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5087 case 'key': | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5088 showKeys = pair[1] == 'true'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5089 break; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5090 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5091 case 'font': | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5092 fontSize = Number(pair[1]); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5093 break; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5094 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5095 case 'node': | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5096 nodeDefault = Number(pair[1]); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5097 break; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5098 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5099 default: | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5100 getVariables.push(pair[0] + '=' + pair[1]); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5101 break; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5102 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5103 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5104 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5105 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5106 addOptionElements(hueName, hueDefault); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5107 setCallBacks(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5108 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5109 head.sort(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5110 maxAbsoluteDepth = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5111 selectDataset(datasetDefault); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5112 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5113 if ( maxDepthDefault && maxDepthDefault < head.maxDepth ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5114 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5115 maxAbsoluteDepth = maxDepthDefault; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5116 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5117 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5118 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5119 maxAbsoluteDepth = head.maxDepth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5120 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5121 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5122 selectNode(nodes[nodeDefault]); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5123 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5124 setInterval(update, 20); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5125 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5126 window.onresize = handleResize; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5127 updateMaxAbsoluteDepth(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5128 updateViewNeeded = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5129 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5130 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5131 function loadTreeDOM | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5132 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5133 domNode, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5134 magnitudeName, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5135 hueName, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5136 hueStart, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5137 hueEnd, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5138 valueStart, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5139 valueEnd | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5140 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5141 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5142 var newNode = new Node(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5143 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5144 newNode.name = domNode.getAttribute('name'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5145 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5146 if ( domNode.getAttribute('href') ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5147 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5148 newNode.href = domNode.getAttribute('href'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5149 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5150 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5151 if ( hueName ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5152 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5153 newNode.hues = new Array(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5154 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5155 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5156 for ( var i = getFirstChild(domNode); i; i = getNextSibling(i) ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5157 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5158 switch ( i.tagName.toLowerCase() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5159 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5160 case 'node': | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5161 var newChild = loadTreeDOM | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5162 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5163 i, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5164 magnitudeName, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5165 hueName, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5166 hueStart, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5167 hueEnd, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5168 valueStart, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5169 valueEnd | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5170 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5171 newChild.parent = newNode; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5172 newNode.children.push(newChild); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5173 break; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5174 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5175 default: | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5176 var attributeName = i.tagName.toLowerCase(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5177 var index = attributeIndex(attributeName); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5178 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5179 newNode.attributes[index] = new Array(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5180 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5181 for ( var j = getFirstChild(i); j; j = getNextSibling(j) ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5182 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5183 if ( attributes[index] == undefined ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5184 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5185 var x = 5; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5186 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5187 if ( attributes[index].list ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5188 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5189 newNode.attributes[index].push(new Array()); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5190 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5191 for ( var k = getFirstChild(j); k; k = getNextSibling(k) ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5192 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5193 newNode.attributes[index][newNode.attributes[index].length - 1].push(k.firstChild.nodeValue); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5194 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5195 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5196 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5197 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5198 var value = j.firstChild ? j.firstChild.nodeValue : ''; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5199 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5200 if ( j.getAttribute('href') ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5201 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5202 var target; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5203 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5204 if ( attributes[index].target ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5205 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5206 target = ' target="' + attributes[index].target + '"'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5207 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5208 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5209 value = '<a href="' + attributes[index].hrefBase + j.getAttribute('href') + '"' + target + '>' + value + '</a>'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5210 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5211 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5212 newNode.attributes[index].push(value); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5213 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5214 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5215 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5216 if ( attributeName == magnitudeName || attributeName == hueName ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5217 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5218 for ( j = 0; j < datasets; j++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5219 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5220 var value = newNode.attributes[index][j] == undefined ? 0 : Number(newNode.attributes[index][j]); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5221 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5222 newNode.attributes[index][j] = value; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5223 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5224 if ( attributeName == hueName ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5225 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5226 var hue = lerp | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5227 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5228 value, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5229 valueStart, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5230 valueEnd, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5231 hueStart, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5232 hueEnd | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5233 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5234 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5235 if ( hue < hueStart == hueStart < hueEnd ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5236 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5237 hue = hueStart; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5238 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5239 else if ( hue > hueEnd == hueStart < hueEnd ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5240 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5241 hue = hueEnd; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5242 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5243 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5244 newNode.hues[j] = hue; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5245 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5246 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5247 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5248 if ( attributeName == hueName ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5249 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5250 newNode.hue = new Tween(newNode.hues[0], newNode.hues[0]); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5251 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5252 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5253 break; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5254 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5255 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5256 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5257 return newNode; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5258 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5259 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5260 function maxAbsoluteDepthDecrease() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5261 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5262 if ( maxAbsoluteDepth > 2 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5263 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5264 maxAbsoluteDepth--; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5265 head.setMaxDepths(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5266 handleResize(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5267 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5268 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5269 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5270 function maxAbsoluteDepthIncrease() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5271 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5272 if ( maxAbsoluteDepth < head.maxDepth ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5273 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5274 maxAbsoluteDepth++; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5275 head.setMaxDepths(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5276 handleResize(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5277 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5278 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5279 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5280 function measureText(text, bold) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5281 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5282 context.font = bold ? fontBold : fontNormal; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5283 var dim = context.measureText(text); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5284 return dim.width; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5285 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5286 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5287 function min(a, b) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5288 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5289 return a < b ? a : b; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5290 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5291 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5292 function minWidth() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5293 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5294 // Min wedge width (at center) for displaying a node (or for displaying a | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5295 // label if it's at the highest level being viewed, multiplied by 2 to make | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5296 // further calculations simpler | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5297 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5298 return (fontSize * 2.3); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5299 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5300 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5301 function mouseMove(e) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5302 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5303 mouseX = e.pageX; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5304 mouseY = e.pageY - headerHeight; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5305 mouseXRel = (mouseX - centerX) * backingScale() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5306 mouseYRel = (mouseY - centerY) * backingScale() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5307 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5308 if ( head && ! quickLook ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5309 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5310 checkHighlight(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5311 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5312 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5313 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5314 function mouseClick(e) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5315 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5316 if ( highlightedNode == focusNode && focusNode != selectedNode || selectedNode.hasParent(highlightedNode) ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5317 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5318 if ( highlightedNode.hasChildren() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5319 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5320 expand(highlightedNode); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5321 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5322 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5323 else if ( progress == 1 )//( highlightedNode != selectedNode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5324 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5325 setFocus(highlightedNode); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5326 // document.body.style.cursor='ew-resize'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5327 draw(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5328 checkHighlight(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5329 var date = new Date(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5330 mouseDownTime = date.getTime(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5331 mouseDown = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5332 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5333 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5334 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5335 function mouseUp(e) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5336 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5337 if ( quickLook ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5338 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5339 navigateBack(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5340 quickLook = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5341 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5342 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5343 mouseDown = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5344 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5345 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5346 function navigateBack() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5347 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5348 if ( nodeHistoryPosition > 0 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5349 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5350 nodeHistory[nodeHistoryPosition] = selectedNode; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5351 nodeHistoryPosition--; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5352 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5353 if ( nodeHistory[nodeHistoryPosition].collapse ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5354 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5355 collapseCheckBox.checked = collapse = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5356 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5357 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5358 setSelectedNode(nodeHistory[nodeHistoryPosition]); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5359 updateDatasetButtons(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5360 updateView(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5361 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5362 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5363 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5364 function navigateUp() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5365 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5366 if ( selectedNode.getParent() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5367 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5368 selectNode(selectedNode.getParent()); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5369 updateView(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5370 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5371 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5372 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5373 function navigateForward() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5374 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5375 if ( nodeHistoryPosition < nodeHistory.length - 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5376 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5377 nodeHistoryPosition++; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5378 var newNode = nodeHistory[nodeHistoryPosition]; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5379 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5380 if ( newNode.collapse ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5381 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5382 collapseCheckBox.checked = collapse = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5383 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5384 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5385 if ( nodeHistoryPosition == nodeHistory.length - 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5386 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5387 // this will ensure the forward button is disabled | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5388 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5389 nodeHistory.length = nodeHistoryPosition; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5390 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5391 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5392 setSelectedNode(newNode); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5393 updateDatasetButtons(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5394 updateView(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5395 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5396 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5397 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5398 function nextDataset() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5399 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5400 var newDataset = currentDataset; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5401 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5402 do | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5403 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5404 if ( newDataset == datasets - 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5405 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5406 newDataset = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5407 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5408 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5409 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5410 newDataset++; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5411 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5412 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5413 while ( datasetDropDown.options[newDataset].disabled ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5414 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5415 selectDataset(newDataset); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5416 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5417 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5418 function onDatasetChange() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5419 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5420 selectDataset(datasetDropDown.selectedIndex); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5421 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5422 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5423 function onKeyDown(event) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5424 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5425 if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5426 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5427 event.keyCode == 37 && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5428 document.activeElement.id != 'search' && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5429 document.activeElement.id != 'linkText' | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5430 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5431 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5432 navigateBack(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5433 event.preventDefault(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5434 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5435 else if | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5436 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5437 event.keyCode == 39 && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5438 document.activeElement.id != 'search' && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5439 document.activeElement.id != 'linkText' | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5440 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5441 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5442 navigateForward(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5443 event.preventDefault(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5444 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5445 else if ( event.keyCode == 38 && datasets > 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5446 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5447 prevDataset(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5448 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5449 //if ( document.activeElement.id == 'datasets' ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5450 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5451 event.preventDefault(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5452 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5453 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5454 else if ( event.keyCode == 40 && datasets > 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5455 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5456 nextDataset(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5457 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5458 //if ( document.activeElement.id == 'datasets' ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5459 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5460 event.preventDefault(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5461 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5462 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5463 else if ( event.keyCode == 9 && datasets > 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5464 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5465 selectLastDataset(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5466 event.preventDefault(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5467 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5468 else if ( event.keyCode == 83 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5469 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5470 progress += .2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5471 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5472 else if ( event.keyCode == 66 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5473 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5474 progress -= .2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5475 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5476 else if ( event.keyCode == 70 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5477 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5478 progress = 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5479 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5480 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5481 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5482 function onKeyPress(event) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5483 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5484 if ( event.keyCode == 38 && datasets > 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5485 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5486 // prevDataset(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5487 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5488 //if ( document.activeElement.id == 'datasets' ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5489 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5490 event.preventDefault(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5491 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5492 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5493 else if ( event.keyCode == 40 && datasets > 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5494 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5495 // nextDataset(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5496 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5497 //if ( document.activeElement.id == 'datasets' ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5498 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5499 event.preventDefault(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5500 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5501 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5502 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5503 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5504 function onKeyUp(event) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5505 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5506 if ( event.keyCode == 27 && document.activeElement.id == 'search' ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5507 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5508 search.value = ''; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5509 onSearchChange(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5510 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5511 else if ( event.keyCode == 38 && datasets > 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5512 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5513 // prevDataset(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5514 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5515 //if ( document.activeElement.id == 'datasets' ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5516 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5517 event.preventDefault(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5518 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5519 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5520 else if ( event.keyCode == 40 && datasets > 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5521 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5522 // nextDataset(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5523 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5524 //if ( document.activeElement.id == 'datasets' ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5525 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5526 event.preventDefault(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5527 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5528 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5529 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5530 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5531 function onSearchChange() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5532 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5533 nSearchResults = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5534 head.search(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5535 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5536 if ( search.value == '' ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5537 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5538 searchResults.innerHTML = ''; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5539 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5540 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5541 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5542 searchResults.innerHTML = nSearchResults + ' results'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5543 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5544 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5545 setFocus(selectedNode); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5546 draw(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5547 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5548 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5549 function post(url, variable, value, postWindow) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5550 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5551 var form = document.createElement('form'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5552 var input = document.createElement('input'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5553 var inputDataset = document.createElement('input'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5554 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5555 form.appendChild(input); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5556 form.appendChild(inputDataset); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5557 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5558 form.method = "POST"; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5559 form.action = url; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5560 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5561 if ( postWindow == undefined ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5562 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5563 form.target = '_blank'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5564 postWindow = window; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5565 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5566 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5567 input.type = 'hidden'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5568 input.name = variable; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5569 input.value = value; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5570 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5571 inputDataset.type = 'hidden'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5572 inputDataset.name = 'dataset'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5573 inputDataset.value = currentDataset; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5574 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5575 postWindow.document.body.appendChild(form); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5576 form.submit(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5577 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5578 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5579 function prevDataset() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5580 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5581 var newDataset = currentDataset; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5582 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5583 do | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5584 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5585 if ( newDataset == 0 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5586 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5587 newDataset = datasets - 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5588 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5589 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5590 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5591 newDataset--; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5592 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5593 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5594 while ( datasetDropDown.options[newDataset].disabled ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5595 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5596 selectDataset(newDataset); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5597 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5598 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5599 function radiusDecrease() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5600 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5601 if ( bufferFactor < .309 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5602 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5603 bufferFactor += .03; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5604 updateViewNeeded = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5605 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5606 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5607 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5608 function radiusIncrease() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5609 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5610 if ( bufferFactor > .041 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5611 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5612 bufferFactor -= .03; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5613 updateViewNeeded = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5614 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5615 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5616 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5617 function resetKeyOffset() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5618 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5619 currentKey = 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5620 keyMinTextLeft = centerX + gRadius + buffer - buffer / (keys + 1) / 2 + fontSize / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5621 keyMinAngle = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5622 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5623 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5624 function rgbText(r, g, b) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5625 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5626 var rgbArray = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5627 [ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5628 "rgb(", | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5629 Math.floor(r), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5630 ",", | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5631 Math.floor(g), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5632 ",", | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5633 Math.floor(b), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5634 ")" | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5635 ]; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5636 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5637 return rgbArray.join(''); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5638 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5639 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5640 function round(number) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5641 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5642 if ( number >= 1 || number <= -1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5643 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5644 return number.toFixed(0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5645 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5646 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5647 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5648 return number.toPrecision(1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5649 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5650 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5651 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5652 function roundedRectangle(x, y, width, height, radius) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5653 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5654 if ( radius * 2 > width ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5655 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5656 radius = width / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5657 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5658 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5659 if ( radius * 2 > height ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5660 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5661 radius = height / 2; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5662 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5663 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5664 context.beginPath(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5665 context.arc(x + radius, y + radius, radius, Math.PI, Math.PI * 3 / 2, false); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5666 context.lineTo(x + width - radius, y); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5667 context.arc(x + width - radius, y + radius, radius, Math.PI * 3 / 2, Math.PI * 2, false); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5668 context.lineTo(x + width, y + height - radius); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5669 context.arc(x + width - radius, y + height - radius, radius, 0, Math.PI / 2, false); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5670 context.lineTo(x + radius, y + height); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5671 context.arc(x + radius, y + height - radius, radius, Math.PI / 2, Math.PI, false); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5672 context.lineTo(x, y + radius); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5673 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5674 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5675 function passClick(e) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5676 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5677 mouseClick(e); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5678 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5679 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5680 function searchResultString(results) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5681 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5682 var searchResults = this.searchResults; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5683 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5684 if ( this.isSearchResult ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5685 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5686 // don't count ourselves | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5687 searchResults--; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5688 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5689 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5690 return ' - ' + results + (results > 1 ? ' results' : ' result'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5691 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5692 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5693 function setCallBacks() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5694 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5695 canvas.onselectstart = function(){return false;} // prevent unwanted highlighting | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5696 options.onselectstart = function(){return false;} // prevent unwanted highlighting | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5697 document.onmousemove = mouseMove; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5698 window.onblur = focusLost; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5699 window.onmouseout = focusLost; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5700 document.onkeyup = onKeyUp; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5701 document.onkeydown = onKeyDown; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5702 canvas.onmousedown = mouseClick; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5703 document.onmouseup = mouseUp; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5704 keyControl.onclick = toggleKeys; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5705 collapseCheckBox = document.getElementById('collapse'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5706 collapseCheckBox.checked = collapse; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5707 collapseCheckBox.onclick = handleResize; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5708 collapseCheckBox.onmousedown = suppressEvent; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5709 maxAbsoluteDepthText = document.getElementById('maxAbsoluteDepth'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5710 maxAbsoluteDepthButtonDecrease = document.getElementById('maxAbsoluteDepthDecrease'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5711 maxAbsoluteDepthButtonIncrease = document.getElementById('maxAbsoluteDepthIncrease'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5712 maxAbsoluteDepthButtonDecrease.onclick = maxAbsoluteDepthDecrease; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5713 maxAbsoluteDepthButtonIncrease.onclick = maxAbsoluteDepthIncrease; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5714 maxAbsoluteDepthButtonDecrease.onmousedown = suppressEvent; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5715 maxAbsoluteDepthButtonIncrease.onmousedown = suppressEvent; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5716 fontSizeText = document.getElementById('fontSize'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5717 fontSizeButtonDecrease = document.getElementById('fontSizeDecrease'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5718 fontSizeButtonIncrease = document.getElementById('fontSizeIncrease'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5719 fontSizeButtonDecrease.onclick = fontSizeDecrease; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5720 fontSizeButtonIncrease.onclick = fontSizeIncrease; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5721 fontSizeButtonDecrease.onmousedown = suppressEvent; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5722 fontSizeButtonIncrease.onmousedown = suppressEvent; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5723 radiusButtonDecrease = document.getElementById('radiusDecrease'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5724 radiusButtonIncrease = document.getElementById('radiusIncrease'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5725 radiusButtonDecrease.onclick = radiusDecrease; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5726 radiusButtonIncrease.onclick = radiusIncrease; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5727 radiusButtonDecrease.onmousedown = suppressEvent; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5728 radiusButtonIncrease.onmousedown = suppressEvent; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5729 maxAbsoluteDepth = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5730 backButton = document.getElementById('back'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5731 backButton.onclick = navigateBack; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5732 backButton.onmousedown = suppressEvent; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5733 forwardButton = document.getElementById('forward'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5734 forwardButton.onclick = navigateForward; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5735 forwardButton.onmousedown = suppressEvent; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5736 snapshotButton = document.getElementById('snapshot'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5737 snapshotButton.onclick = snapshot; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5738 snapshotButton.onmousedown = suppressEvent; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5739 detailsName = document.getElementById('detailsName'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5740 detailsExpand = document.getElementById('detailsExpand'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5741 detailsInfo = document.getElementById('detailsInfo'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5742 search = document.getElementById('search'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5743 search.onkeyup = onSearchChange; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5744 search.onmousedown = suppressEvent; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5745 searchResults = document.getElementById('searchResults'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5746 useHueDiv = document.getElementById('useHueDiv'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5747 linkButton = document.getElementById('linkButton'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5748 linkButton.onclick = showLink; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5749 linkButton.onmousedown = suppressEvent; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5750 linkText = document.getElementById('linkText'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5751 linkText.onblur = hideLink; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5752 linkText.onmousedown = suppressEvent; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5753 hide(linkText); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5754 var helpButton = document.getElementById('help'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5755 helpButton.onmousedown = suppressEvent; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5756 var searchClear = document.getElementById('searchClear'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5757 searchClear.onmousedown = suppressEvent; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5758 if ( datasets > 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5759 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5760 datasetDropDown.onmousedown = suppressEvent; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5761 var prevDatasetButton = document.getElementById('prevDataset'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5762 prevDatasetButton.onmousedown = suppressEvent; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5763 var nextDatasetButton = document.getElementById('nextDataset'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5764 nextDatasetButton.onmousedown = suppressEvent; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5765 var lastDatasetButton = document.getElementById('lastDataset'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5766 lastDatasetButton.onmousedown = suppressEvent; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5767 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5768 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5769 image = document.getElementById('hiddenImage'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5770 image.onload = function() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5771 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5772 hiddenPattern = context.createPattern(image, 'repeat'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5773 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5774 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5775 var loadingImageElement = document.getElementById('loadingImage'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5776 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5777 if ( loadingImageElement ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5778 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5779 loadingImage = loadingImageElement.src; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5780 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5781 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5782 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5783 function selectDataset(newDataset) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5784 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5785 lastDataset = currentDataset; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5786 currentDataset = newDataset | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5787 if ( datasets > 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5788 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5789 datasetDropDown.selectedIndex = currentDataset; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5790 updateDatasetButtons(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5791 datasetAlpha.start = 1.5; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5792 datasetChanged = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5793 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5794 head.setMagnitudes(0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5795 head.setDepth(1, 1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5796 head.setMaxDepths(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5797 handleResize(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5798 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5799 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5800 function selectLastDataset() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5801 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5802 selectDataset(lastDataset); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5803 handleResize(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5804 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5805 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5806 function selectNode(newNode) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5807 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5808 if ( selectedNode != newNode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5809 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5810 // truncate history at current location to create a new branch | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5811 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5812 nodeHistory.length = nodeHistoryPosition; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5813 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5814 if ( selectedNode != 0 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5815 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5816 nodeHistory.push(selectedNode); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5817 nodeHistoryPosition++; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5818 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5819 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5820 setSelectedNode(newNode); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5821 //updateView(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5822 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5823 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5824 updateDatasetButtons(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5825 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5826 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5827 function setFocus(node) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5828 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5829 if ( node == focusNode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5830 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5831 // return; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5832 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5833 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5834 focusNode = node; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5835 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5836 if ( node.href ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5837 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5838 detailsName.innerHTML = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5839 '<a target="_blank" href="' + node.href + '">' + node.name + '</a>'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5840 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5841 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5842 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5843 detailsName.innerHTML = node.name; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5844 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5845 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5846 var table = '<table>'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5847 //TODO: use CSS margins instead of an additional column | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5848 table += '<tr><td></td><td></td></tr>'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5849 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5850 for ( var i = 0; i < node.attributes.length; i++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5851 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5852 if ( attributes[i].displayName && node.attributes[i] != undefined ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5853 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5854 var index = node.attributes[i].length == 1 && attributes[i].mono ? 0 : currentDataset; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5855 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5856 if ( typeof node.attributes[i][currentDataset] == 'number' || node.attributes[i][index] != undefined && node.attributes[i][currentDataset] != '' ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5857 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5858 var value = node.attributes[i][index]; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5859 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5860 if ( attributes[i].listNode != undefined ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5861 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5862 value = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5863 '<a href="" onclick="showList(' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5864 attributeIndex(attributes[i].listNode) + ',' + i + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5865 ',false);return false;" title="Show list">' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5866 value + '</a>'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5867 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5868 else if ( attributes[i].listAll != undefined ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5869 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5870 value = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5871 '<a href="" onclick="showList(' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5872 attributeIndex(attributes[i].listAll) + ',' + i + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5873 ',true);return false;" title="Show list">' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5874 value + '</a>'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5875 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5876 else if ( attributes[i].dataNode != undefined && dataEnabled ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5877 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5878 value = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5879 '<a href="" onclick="showData(' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5880 attributeIndex(attributes[i].dataNode) + ',' + i + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5881 ',false);return false;" title="Show data">' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5882 value + '</a>'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5883 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5884 else if ( attributes[i].dataAll != undefined && dataEnabled ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5885 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5886 value = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5887 '<a href="" onclick="showData(' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5888 attributeIndex(attributes[i].dataAll) + ',' + i + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5889 ',true);return false;" title="Show data">' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5890 value + '</a>'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5891 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5892 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5893 table += | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5894 '<tr><td><strong>' + attributes[i].displayName + ':</strong></td><td>' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5895 value + '</td></tr>'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5896 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5897 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5898 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5899 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5900 table += '</table>'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5901 detailsInfo.innerHTML = table; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5902 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5903 detailsExpand.disabled = !focusNode.hasChildren() || focusNode == selectedNode; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5904 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5905 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5906 function setSelectedNode(newNode) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5907 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5908 if ( selectedNode && selectedNode.hasParent(newNode) ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5909 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5910 zoomOut = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5911 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5912 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5913 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5914 zoomOut = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5915 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5916 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5917 selectedNodeLast = selectedNode; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5918 selectedNode = newNode; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5919 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5920 //if ( focusNode != selectedNode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5921 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5922 setFocus(selectedNode); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5923 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5924 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5925 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5926 function waitForData(dataWindow, target, title, time, postUrl, postVar) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5927 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5928 if ( nodeData.length == target ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5929 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5930 if ( postUrl != undefined ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5931 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5932 for ( var i = 0; i < nodeData.length; i++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5933 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5934 nodeData[i] = nodeData[i].replace(/\n/g, ','); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5935 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5936 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5937 var postString = nodeData.join(''); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5938 postString = postString.slice(0, -1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5939 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5940 dataWindow.document.body.removeChild(dataWindow.document.getElementById('loading')); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5941 document.body.removeChild(document.getElementById('data')); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5942 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5943 post(postUrl, postVar, postString, dataWindow); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5944 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5945 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5946 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5947 //dataWindow.document.body.removeChild(dataWindow.document.getElementById('loading')); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5948 //document.body.removeChild(document.getElementById('data')); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5949 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5950 dataWindow.document.open(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5951 dataWindow.document.write('<pre>' + nodeData.join('') + '</pre>'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5952 dataWindow.document.close(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5953 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5954 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5955 dataWindow.document.title = title; // replace after document.write() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5956 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5957 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5958 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5959 var date = new Date(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5960 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5961 if ( date.getTime() - time > 10000 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5962 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5963 dataWindow.document.body.removeChild(dataWindow.document.getElementById('loading')); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5964 document.body.removeChild(document.getElementById('data')); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5965 dataWindow.document.body.innerHTML = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5966 'Timed out loading supplemental files for:<br/>' + document.location; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5967 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5968 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5969 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5970 setTimeout(function() {waitForData(dataWindow, target, title, time, postUrl, postVar);}, 100); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5971 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5972 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5973 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5974 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5975 function data(newData) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5976 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5977 nodeData.push(newData); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5978 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5979 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5980 function enableData() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5981 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5982 dataEnabled = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5983 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5984 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5985 function showData(indexData, indexAttribute, summary) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5986 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5987 var dataWindow = window.open('', '_blank'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5988 var title = 'Krona - ' + attributes[indexAttribute].displayName + ' - ' + focusNode.name; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5989 dataWindow.document.title = title; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5990 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5991 nodeData = new Array(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5992 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5993 if ( dataWindow && dataWindow.document && dataWindow.document.body != null ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5994 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5995 //var loadImage = document.createElement('img'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5996 //loadImage.src = "file://localhost/Users/ondovb/Krona/KronaTools/img/loading.gif"; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5997 //loadImage.id = "loading"; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5998 //loadImage.alt = "Loading..."; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 5999 //dataWindow.document.body.appendChild(loadImage); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6000 dataWindow.document.body.innerHTML = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6001 '<img id="loading" src="' + loadingImage + '" alt="Loading..."></img>'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6002 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6003 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6004 var scripts = document.createElement('div'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6005 scripts.id = 'data'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6006 document.body.appendChild(scripts); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6007 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6008 var files = focusNode.getData(indexData, summary); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6009 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6010 var date = new Date(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6011 var time = date.getTime(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6012 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6013 for ( var i = 0; i < files.length; i++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6014 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6015 var script = document.createElement('script'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6016 script.src = files[i] + '?' + time; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6017 scripts.appendChild(script); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6018 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6019 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6020 waitForData(dataWindow, files.length, title, time, attributes[indexAttribute].postUrl, attributes[indexAttribute].postVar); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6021 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6022 return false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6023 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6024 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6025 function showList(indexList, indexAttribute, summary) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6026 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6027 var list = focusNode.getList(indexList, summary); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6028 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6029 if ( attributes[indexAttribute].postUrl != undefined ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6030 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6031 post(attributes[indexAttribute].postUrl, attributes[indexAttribute].postVar, list.join(',')); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6032 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6033 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6034 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6035 var dataWindow = window.open('', '_blank'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6036 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6037 if ( true || navigator.appName == 'Microsoft Internet Explorer' ) // :( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6038 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6039 dataWindow.document.open(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6040 dataWindow.document.write('<pre>' + list.join('\n') + '</pre>'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6041 dataWindow.document.close(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6042 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6043 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6044 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6045 var pre = document.createElement('pre'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6046 dataWindow.document.body.appendChild(pre); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6047 pre.innerHTML = list; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6048 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6049 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6050 dataWindow.document.title = 'Krona - ' + attributes[indexAttribute].displayName + ' - ' + focusNode.name; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6051 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6052 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6053 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6054 function snapshot() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6055 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6056 svg = svgHeader(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6057 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6058 resetKeyOffset(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6059 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6060 snapshotMode = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6061 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6062 selectedNode.draw(false, true); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6063 selectedNode.draw(true, true); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6064 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6065 if ( focusNode != 0 && focusNode != selectedNode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6066 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6067 context.globalAlpha = 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6068 focusNode.drawHighlight(true); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6069 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6070 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6071 if ( hueDisplayName && useHue() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6072 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6073 drawLegendSVG(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6074 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6075 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6076 snapshotMode = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6077 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6078 svg += svgFooter(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6079 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6080 var snapshotWindow = window.open('', '_blank', '', 'replace=false'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6081 snapshotWindow.document.write('<html><body><a href="data:image/svg+xml,' + encodeURIComponent(svg) + '" download="snapshot.svg">Download Snapshot</a></html></body>'); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6082 snapshotWindow.document.write(svg); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6083 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6084 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6085 function save() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6086 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6087 alert(document.body.innerHTML); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6088 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6089 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6090 function spacer() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6091 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6092 if ( snapshotMode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6093 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6094 return '   '; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6095 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6096 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6097 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6098 return ' '; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6099 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6100 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6101 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6102 function suppressEvent(e) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6103 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6104 e.cancelBubble = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6105 if (e.stopPropagation) e.stopPropagation(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6106 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6107 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6108 function svgFooter() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6109 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6110 return '</svg>'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6111 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6112 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6113 function svgHeader() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6114 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6115 var patternWidth = fontSize * .6;//radius / 50; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6116 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6117 return '\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6118 <?xml version="1.0" standalone="no"?>\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6119 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" \ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6120 "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6121 <svg width="' + imageWidth + '" height="' + imageHeight + '" version="1.1"\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6122 xmlns="http://www.w3.org/2000/svg">\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6123 <title>Krona (snapshot) - ' + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6124 (datasets > 1 ? datasetNames[currentDataset] + ' - ' : '') + selectedNode.name + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6125 '</title>\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6126 <defs>\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6127 <style type="text/css">\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6128 text {font-size: ' + fontSize + 'px; font-family: ' + fontFamily + '; dominant-baseline:central}\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6129 path {stroke-width:' + thinLineWidth * fontSize / 12 + ';}\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6130 path.wedge {stroke:none}\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6131 path.line {fill:none;stroke:black;}\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6132 line {stroke:black;stroke-width:' + thinLineWidth * fontSize / 12 + ';}\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6133 line.tick {stroke-width:' + thinLineWidth * fontSize / 6 + ';}\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6134 line.pattern {stroke-width:' + thinLineWidth * fontSize / 18 + ';}\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6135 circle {fill:none;stroke:black;stroke-width:' + thinLineWidth * fontSize / 12 + ';}\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6136 rect {stroke:black;stroke-width:' + thinLineWidth * fontSize / 12 + ';}\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6137 .highlight {stroke:black;stroke-width:'+ highlightLineWidth * fontSize / 12 + ';}\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6138 .searchHighlight {fill:rgb(255, 255, 100);stroke:none;}\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6139 </style>\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6140 <pattern id="hiddenPattern" patternUnits="userSpaceOnUse" \ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6141 x="0" y="0" width="' + patternWidth + '" height="' + patternWidth + '">\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6142 <line class="pattern" x1="0" y1="0" x2="' + patternWidth / 2 + '" y2="' + patternWidth / 2 + '"/>\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6143 <line class="pattern" x1="' + patternWidth / 2 + '" y1="' + patternWidth + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6144 '" x2="' + patternWidth + '" y2="' + patternWidth / 2 + '"/>\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6145 </pattern>\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6146 </defs>\ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6147 '; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6148 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6149 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6150 function svgText(text, x, y, anchor, bold, color) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6151 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6152 if ( typeof(anchor) == 'undefined' ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6153 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6154 anchor = 'start'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6155 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6156 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6157 if ( color == undefined ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6158 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6159 color = 'black'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6160 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6161 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6162 return '<text x="' + x + '" y="' + y + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6163 '" style="font-color:' + color + ';font-weight:' + (bold ? 'bold' : 'normal') + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6164 '" text-anchor="' + anchor + '">' + text + '</text>'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6165 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6166 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6167 function toggleKeys() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6168 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6169 if ( showKeys ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6170 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6171 keyControl.value = '…'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6172 showKeys = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6173 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6174 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6175 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6176 keyControl.value = 'x'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6177 showKeys = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6178 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6179 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6180 updateKeyControl(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6181 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6182 if ( progress == 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6183 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6184 draw(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6185 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6186 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6187 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6188 function update() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6189 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6190 if ( ! head ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6191 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6192 return; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6193 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6194 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6195 if ( mouseDown && focusNode != selectedNode ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6196 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6197 var date = new Date(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6198 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6199 if ( date.getTime() - mouseDownTime > quickLookHoldLength ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6200 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6201 if ( focusNode.hasChildren() ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6202 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6203 expand(focusNode); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6204 quickLook = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6205 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6206 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6207 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6208 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6209 if ( updateViewNeeded ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6210 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6211 resize(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6212 mouseX = -1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6213 mouseY = -1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6214 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6215 collapse = collapseCheckBox.checked; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6216 compress = true;//compressCheckBox.checked; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6217 shorten = true;//shortenCheckBox.checked; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6218 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6219 checkSelectedCollapse(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6220 updateMaxAbsoluteDepth(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6221 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6222 if ( focusNode.getCollapse() || focusNode.depth > maxAbsoluteDepth ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6223 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6224 setFocus(selectedNode); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6225 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6226 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6227 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6228 setFocus(focusNode); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6229 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6230 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6231 updateView(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6232 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6233 updateViewNeeded = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6234 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6235 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6236 var date = new Date(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6237 progress = (date.getTime() - tweenStartTime) / tweenLength; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6238 // progress += .01; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6239 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6240 if ( progress >= 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6241 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6242 progress = 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6243 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6244 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6245 if ( progress != progressLast ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6246 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6247 tweenFactor =// progress; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6248 (1 / (1 + Math.exp(-tweenCurvature * (progress - .5))) - .5) / | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6249 (tweenMax - .5) / 2 + .5; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6250 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6251 if ( progress == 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6252 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6253 snapshotButton.disabled = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6254 zoomOut = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6255 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6256 //updateKeyControl(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6257 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6258 if ( ! quickLook ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6259 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6260 //checkHighlight(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6261 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6262 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6263 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6264 if ( fpsDisplay ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6265 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6266 fpsDisplay.innerHTML = 'fps: ' + Math.round(tweenFrames * 1000 / tweenLength); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6267 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6268 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6269 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6270 draw(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6271 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6272 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6273 progressLast = progress; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6274 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6275 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6276 function updateDatasetButtons() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6277 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6278 if ( datasets == 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6279 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6280 return; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6281 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6282 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6283 var node = selectedNode ? selectedNode : head; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6284 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6285 datasetButtonLast.disabled = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6286 node.attributes[magnitudeIndex][lastDataset] == 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6287 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6288 datasetButtonPrev.disabled = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6289 datasetButtonNext.disabled = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6290 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6291 for ( var i = 0; i < datasets; i++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6292 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6293 var disable = node.attributes[magnitudeIndex][i] == 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6294 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6295 datasetDropDown.options[i].disabled = disable; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6296 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6297 if ( ! disable ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6298 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6299 if ( i != currentDataset ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6300 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6301 datasetButtonPrev.disabled = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6302 datasetButtonNext.disabled = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6303 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6304 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6305 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6306 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6307 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6308 function updateDatasetWidths() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6309 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6310 if ( datasets > 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6311 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6312 for ( var i = 0; i < datasets; i++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6313 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6314 context.font = fontBold; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6315 var dim = context.measureText(datasetNames[i]); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6316 datasetWidths[i] = dim.width; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6317 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6318 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6319 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6320 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6321 function updateKeyControl() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6322 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6323 if ( keys == 0 )//|| progress != 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6324 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6325 keyControl.style.visibility = 'hidden'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6326 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6327 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6328 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6329 keyControl.style.visibility = 'visible'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6330 keyControl.style.right = margin + 'px'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6331 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6332 if ( showKeys ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6333 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6334 keyControl.style.top = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6335 imageHeight - | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6336 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6337 keys * (keySize + keyBuffer) - | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6338 keyBuffer + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6339 margin + | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6340 keyControl.clientHeight * 1.5 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6341 ) + 'px'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6342 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6343 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6344 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6345 keyControl.style.top = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6346 (imageHeight - margin - keyControl.clientHeight) + 'px'; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6347 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6348 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6349 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6350 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6351 function updateView() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6352 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6353 if ( selectedNode.depth > maxAbsoluteDepth - 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6354 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6355 maxAbsoluteDepth = selectedNode.depth + 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6356 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6357 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6358 highlightedNode = selectedNode; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6359 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6360 angleFactor = 2 * Math.PI / (selectedNode.magnitude); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6361 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6362 maxPossibleDepth = Math.floor(gRadius / (fontSize * minRingWidthFactor)); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6363 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6364 if ( maxPossibleDepth < 4 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6365 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6366 maxPossibleDepth = 4; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6367 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6368 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6369 var minRadiusInner = fontSize * 8 / gRadius; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6370 var minRadiusFirst = fontSize * 6 / gRadius; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6371 var minRadiusOuter = fontSize * 5 / gRadius; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6372 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6373 if ( .25 < minRadiusInner ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6374 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6375 minRadiusInner = .25; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6376 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6377 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6378 if ( .15 < minRadiusFirst ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6379 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6380 minRadiusFirst = .15; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6381 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6382 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6383 if ( .15 < minRadiusOuter ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6384 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6385 minRadiusOuter = .15; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6386 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6387 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6388 // visibility of nodes depends on the depth they are displayed at, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6389 // so we need to set the max depth assuming they can all be displayed | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6390 // and iterate it down based on the deepest child node we can display | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6391 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6392 var maxDepth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6393 var newMaxDepth = selectedNode.getMaxDepth() - selectedNode.getDepth() + 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6394 // | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6395 do | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6396 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6397 maxDepth = newMaxDepth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6398 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6399 if ( ! compress && maxDepth > maxPossibleDepth ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6400 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6401 maxDepth = maxPossibleDepth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6402 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6403 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6404 if ( compress ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6405 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6406 compressedRadii = new Array(maxDepth); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6407 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6408 compressedRadii[0] = minRadiusInner; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6409 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6410 var offset = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6411 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6412 while | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6413 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6414 lerp | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6415 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6416 Math.atan(offset + 2), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6417 Math.atan(offset + 1), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6418 Math.atan(maxDepth + offset - 1), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6419 minRadiusInner, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6420 1 - minRadiusOuter | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6421 ) - minRadiusInner > minRadiusFirst && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6422 offset < 10 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6423 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6424 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6425 offset++; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6426 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6427 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6428 offset--; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6429 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6430 for ( var i = 1; i < maxDepth; i++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6431 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6432 compressedRadii[i] = lerp | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6433 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6434 Math.atan(i + offset), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6435 Math.atan(offset), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6436 Math.atan(maxDepth + offset - 1), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6437 minRadiusInner, | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6438 1 - minRadiusOuter | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6439 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6440 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6441 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6442 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6443 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6444 nodeRadius = 1 / maxDepth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6445 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6446 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6447 newMaxDepth = selectedNode.maxVisibleDepth(maxDepth); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6448 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6449 if ( compress ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6450 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6451 if ( newMaxDepth <= maxPossibleDepth ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6452 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6453 // compress | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6454 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6455 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6456 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6457 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6458 if ( newMaxDepth > maxPossibleDepth ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6459 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6460 newMaxDepth = maxPossibleDepth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6461 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6462 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6463 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6464 while ( newMaxDepth < maxDepth ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6465 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6466 maxDisplayDepth = maxDepth; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6467 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6468 lightnessFactor = (lightnessMax - lightnessBase) / (maxDepth > 8 ? 8 : maxDepth); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6469 keys = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6470 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6471 nLabelOffsets = new Array(maxDisplayDepth - 1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6472 labelOffsets = new Array(maxDisplayDepth - 1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6473 labelLastNodes = new Array(maxDisplayDepth - 1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6474 labelFirstNodes = new Array(maxDisplayDepth - 1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6475 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6476 for ( var i = 0; i < maxDisplayDepth - 1; i++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6477 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6478 if ( compress ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6479 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6480 if ( i == maxDisplayDepth - 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6481 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6482 nLabelOffsets[i] = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6483 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6484 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6485 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6486 var width = | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6487 (compressedRadii[i + 1] - compressedRadii[i]) * | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6488 gRadius; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6489 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6490 nLabelOffsets[i] = Math.floor(width / fontSize / 1.2); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6491 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6492 if ( nLabelOffsets[i] > 2 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6493 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6494 nLabelOffsets[i] = min | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6495 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6496 Math.floor(width / fontSize / 1.75), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6497 5 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6498 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6499 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6500 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6501 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6502 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6503 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6504 nLabelOffsets[i] = Math.max | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6505 ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6506 Math.floor(Math.sqrt((nodeRadius * gRadius / fontSize)) * 1.5), | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6507 3 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6508 ); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6509 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6510 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6511 labelOffsets[i] = Math.floor((nLabelOffsets[i] - 1) / 2); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6512 labelLastNodes[i] = new Array(nLabelOffsets[i] + 1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6513 labelFirstNodes[i] = new Array(nLabelOffsets[i] + 1); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6514 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6515 for ( var j = 0; j <= nLabelOffsets[i]; j++ ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6516 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6517 // these arrays will allow nodes with neighboring labels to link to | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6518 // each other to determine max label length | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6519 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6520 labelLastNodes[i][j] = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6521 labelFirstNodes[i][j] = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6522 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6523 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6524 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6525 fontSizeText.innerHTML = fontSize; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6526 fontNormal = fontSize + 'px ' + fontFamily; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6527 context.font = fontNormal; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6528 fontBold = 'bold ' + fontSize + 'px ' + fontFamily; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6529 tickLength = fontSize * .7; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6530 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6531 head.setTargets(0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6532 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6533 keySize = ((imageHeight - margin * 3) * 1 / 2) / keys * 3 / 4; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6534 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6535 if ( keySize > fontSize * maxKeySizeFactor ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6536 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6537 keySize = fontSize * maxKeySizeFactor; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6538 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6539 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6540 keyBuffer = keySize / 3; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6541 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6542 fontSizeLast = fontSize; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6543 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6544 if ( datasetChanged ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6545 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6546 datasetChanged = false; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6547 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6548 else | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6549 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6550 datasetAlpha.start = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6551 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6552 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6553 var date = new Date(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6554 tweenStartTime = date.getTime(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6555 progress = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6556 tweenFrames = 0; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6557 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6558 updateKeyControl(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6559 updateDatasetWidths(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6560 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6561 document.title = 'Krona - ' + selectedNode.name; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6562 updateNavigationButtons(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6563 snapshotButton.disabled = true; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6564 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6565 maxAbsoluteDepthText.innerHTML = maxAbsoluteDepth - 1; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6566 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6567 maxAbsoluteDepthButtonDecrease.disabled = (maxAbsoluteDepth == 2); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6568 maxAbsoluteDepthButtonIncrease.disabled = (maxAbsoluteDepth == head.maxDepth); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6569 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6570 if ( collapse != collapseLast && search.value != '' ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6571 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6572 onSearchChange(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6573 collapseLast = collapse; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6574 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6575 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6576 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6577 function updateMaxAbsoluteDepth() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6578 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6579 while ( maxAbsoluteDepth > 1 && selectedNode.depth > maxAbsoluteDepth - 1 ) | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6580 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6581 selectedNode = selectedNode.getParent(); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6582 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6583 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6584 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6585 function updateNavigationButtons() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6586 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6587 backButton.disabled = (nodeHistoryPosition == 0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6588 // upButton.disabled = (selectedNode.getParent() == 0); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6589 forwardButton.disabled = (nodeHistoryPosition == nodeHistory.length); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6590 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6591 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6592 function useHue() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6593 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6594 return useHueCheckBox && useHueCheckBox.checked; | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6595 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6596 /* | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6597 function zoomOut() | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6598 { | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6599 return ( | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6600 selectedNodeLast != 0 && | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6601 selectedNodeLast.getDepth() < selectedNode.getDepth()); | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6602 } | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6603 */ | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6604 </script> | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6605 </head> | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6606 <body> | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6607 <img id="hiddenImage" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9oLCBQhNQwWVnsAAAAidEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVAgb24gYSBNYWOHqHdDAAABE0lEQVQYGQEIAff+AwAAABkAAAAAAAAA+gAAAAAAAAAAAAAAAAAAAAAAAAAMAwAAAAAAAAANAAAAAAAAAPoAAAAAAAAADAAAAAYAAAD0AwAAAPoAAAAAAAAAAAAAAPoAAAAMAAAADQAAAPoAAAD6AAAAAAAAAAAAAAAAAAAAAAwAAAAZAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAABkAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAGQAAAAwAAAAAAAAADAAAAAwAAAAABAAAAAAAAAAAAAAA8wAAAPQAAAAAAAAAAAAAAA0AAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAZRssKC5OpXwYAAAAASUVORK5CYII=" style="display:none"/> | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6608 <img id="loadingImage" src="data:image/gif;base64,R0lGODlhEAAQAPIAAP///wAAAMLCwkJCQgAAAGJiYoKCgpKSkiH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAEAAQAAADMwi63P4wyklrE2MIOggZnAdOmGYJRbExwroUmcG2LmDEwnHQLVsYOd2mBzkYDAdKa+dIAAAh+QQJCgAAACwAAAAAEAAQAAADNAi63P5OjCEgG4QMu7DmikRxQlFUYDEZIGBMRVsaqHwctXXf7WEYB4Ag1xjihkMZsiUkKhIAIfkECQoAAAAsAAAAABAAEAAAAzYIujIjK8pByJDMlFYvBoVjHA70GU7xSUJhmKtwHPAKzLO9HMaoKwJZ7Rf8AYPDDzKpZBqfvwQAIfkECQoAAAAsAAAAABAAEAAAAzMIumIlK8oyhpHsnFZfhYumCYUhDAQxRIdhHBGqRoKw0R8DYlJd8z0fMDgsGo/IpHI5TAAAIfkECQoAAAAsAAAAABAAEAAAAzIIunInK0rnZBTwGPNMgQwmdsNgXGJUlIWEuR5oWUIpz8pAEAMe6TwfwyYsGo/IpFKSAAAh+QQJCgAAACwAAAAAEAAQAAADMwi6IMKQORfjdOe82p4wGccc4CEuQradylesojEMBgsUc2G7sDX3lQGBMLAJibufbSlKAAAh+QQJCgAAACwAAAAAEAAQAAADMgi63P7wCRHZnFVdmgHu2nFwlWCI3WGc3TSWhUFGxTAUkGCbtgENBMJAEJsxgMLWzpEAACH5BAkKAAAALAAAAAAQABAAAAMyCLrc/jDKSatlQtScKdceCAjDII7HcQ4EMTCpyrCuUBjCYRgHVtqlAiB1YhiCnlsRkAAAOwAAAAAAAAAAAA==" style="display:none"/> | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6609 <img id="logo" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANgAAAA8CAYAAAAE9XR5AAAC0WlDQ1BJQ0MgUHJvZmlsZQAAOI2NlM9LFGEYx7+zjRgoQWBme4ihQ0ioTBZlROWuv9i0bVl/lBLE7Oy7u5Ozs9PM7JoiEV46ZtE9Kg8e+gM8eOiUl8LALALpblFEgpeS7Xlnxt0R7ccLM/N5nx/f53nf4X2BGlkxTT0kAXnDsZJ9Uen66JhU+xEhHEEdwqhTVNuMJBIDoMFjsWtsvofAvyute/v/OurStpoHhP1A6Eea2Sqw7xfZC1lqBBC5XsOEYzrE9zhbnv0x55TH8659KNlFvEh8QDUtHv+auEPNKWmgRiRuyQZiUgHO60XV7+cgPfXMGB6k73Hq6S6ze3wWZtJKdz9xG/HnNOvu4ZrE8xmtN0bcTM9axuod9lg4oTmxIY9DI4YeH/C5yUjFr/qaoulEk9v6dmmwZ9t+S7mcIA4TJ8cL/TymkXI7p3JD1zwW9KlcV9znd1Yxyeseo5g5U3f/F/UWeoVR6GDQYNDbgIQk+hBFK0xYKCBDHo0iNLIyN8YitjG+Z6SORIAl8q9TzrqbcxtFyuZZI4jGMdNSUZDkD/JXeVV+Ks/JX2bDxeaqZ8a6qanLD76TLq+8ret7/Z48fZXqRsirI0vWfGVNdqDTQHcZYzZcVeI12P34ZmCVLFCpFSlXadytVHJ9Nr0jgWp/2j2KXZpebKrWWhUXbqzUL03v2KvCrlWxyqp2zqtxwXwmHhVPijGxQzwHSbwkdooXxW6anRcHKhnDpKJhwlWyoVCWgUnymjv+mRcL76y5o6GPGczSVImf/4RVyGg6CxzRf7j/c/B7xaOxIvDCBg6frto2ku4dIjQuV23OFeDCN7oP3lZtzXQeDj0BFs6oRavkSwvCG4pmdxw+6SqYk5aWzTlSuyyflSJ0JTEpZqhtLZKi65LrsiWL2cwqsXQb7Mypdk+lnnal5lO5vEHnr/YRsPWwXP75rFzeek49rAEv9d/AvP1FSOihagAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+AEEhYRJKJxkPUAACAASURBVHgBAGaAmX8B/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAvUj3EAAAIABJREFUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAD+/v4AAAAAAP///wD///8AAAAAAP///wAAAAAAAQEBAAEBAQAAAAAAAQEBAAICAgAAAAAAAQEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///wAAAAAA/v7+AP7+/gD9/f0A/v7+AP39/QD+/v4A/f39AP39/QD9/f0AAQIBAAMCAwAEBAQAAwMDAAMDAwACAgIAAwMDAAEBAQABAQEAAgICAAEBAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AP7+/gD///8A/v7+APv7+wD7+/sA+/v7AN7e3gDd3d0A5eXlAPLy8gDn5+cA////ABUVFQAQEBAAGRkZACMjIwAfHx8ABQUFAAYGBgAFBQUABAQEAAQEBAACAgIAAgICAAEBAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AP39/QD8/PwA+vr6APb29gDFxcUAxMPDAN3a3ADz9/UACQQEABwKDAAQBQQA0e7tAAgVBwAVHg0A9e76AO/o9wD59voACwwKACQjJQA1NTUAODg4AAsLCwAJCQkABgYGAAQEBAACAgIAAgICAAEBAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH/////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZ2dnAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJmZmQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANra2gCRkZEA/Pz8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA8PDwB1dXUAFRUVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A/v7+AP39/QD5+fkA6+vrALKysgC/u7sA9vf3ADgUFQA1ERIAMBEQABUHCAACAAEAAAAAAF3JxgAZPhMAQ2gmAAABAAAAAAAA8uj5AOTW8ADey+wA383uAAkICQA7PDwAS0tLABMTEwAKCgoABgYGAAUFBQADAwMAAQEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAODg4ACUlJQA/Pz8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAsLCwBwcHAAFRUVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A/f39APv7+wD39/cAr6+vAK+urgAI/v4AWhscAEYXGQAIAwMAAAAAAAAA/wAA//8A/gAAAAAAAAAAAP4A/wD/AP/+/wAAAP8AAAAAAA0UBQApPhUAKkEXAPjz/ADXwekAwa6+AMTEwABISEwASEhIAA4ODgAKCgoABgYGAAICAgACAgIAAQEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAObm5gCRkZEA+fn5AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcHBwBvb28AGhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A/Pz8APr6+gDg4OAAj4yMAOTj4wBbHh8ATxscAAUBAgAAAP8A///+AAAAAAABAQEAAAAAAAD//wD///8A/wAAAP79/gD9/f0AAQAAAAAAAAD/AAAAAAAAAAMBAQAHCwMAMUwbAC5GGgDNseMAsK2tAM/PzgBhYWIAICAgAAwMDAAJCQkAAAAAAAICAgABAQEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOvr6wCQkJAA9vb2AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUFBQBtbW0AHx8fAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A/Pz8APj4+ADGxsYAeHR0AAXv8ACZMTQAVBwdAAUBAQD///4A////AAD/AAAA/wAA/v7+AP7+/gD///8AAAAAAAAAAAD///8A+/r6AP39/QD9/f0A/v3+AP79/gD9/P0A/fz9AP/+/wACBAAAOFYfAF2PNwD1AO0AiYiGAMnJyQDw8PAA9PT0APv7+wD+/v4A////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAO/v7wCPj48A8fHxAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMDAwBoaGgAJSUlAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A/Pz8APf39wC5ubkAiYiIAD4SEgCLLC4AFQcHAP///wD+/v8A//7/AP/+/wAAAAAA/wD/AP///wD///8A/v/+AP7//gAAAAAA//7/AP7+/wD9/f0A/f39AP39/QD9/f0A/v7+AP7+/gD9/P0A/fz9AP39/gASGgkAV4cwAB42DgCWlpUAv7+/APDw8AD29vYA+/v7AP7+/gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABpHbeyAAAgAElEQVQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPPz8wCQkJAA7e3tAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAQBkZGQALCwsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A/Pz8APj4+AC/v78Al5WWAFsdHQBYHiAA/wAAAP8AAAD//v4AAAAAAAAAAQAAAAAA/f79AAAAAAAAAQEAAAAAAAIAAAAAAAAAAAAAAP8A/wD9/P0AAAICAAAAAAD/AAAAAAAAAAAAAAAAAAAAAAAAAAIDAgD9/f0AAAAAAAQEAQBIbCgAChAGAKSkowAEBAQAOjo6AAICAgACAgIAAAAAAAMDAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPf39wCRkZEA6OjoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABfX18AMjIyAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A/f39APv7+wDR0dEAl5SUAFMaGwBXHh8A/v//AAEBAAAAAAAA/v8AAAAAAAAAAf8AAP//AAAAAAAAAAAAAP//AAD/AAD9AP8AAAAAAAD/AAD//v8A/f79AAAA/wAAAAAA/gAAAAQCAwD+/P0AAgQDAP39/QAAAAAA/gD/AAAAAAAAAAMAAwMBADxbIgD9+f8ApKWiAA0NDQAwMDAAAQEBAAoKCgACAgIAAQEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPn5+QCTk5MA4+PjAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABXV1cAOTk5AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/v7+APz8/ADr6+sAkY2NADUREgBeICEA////AP7/AAAA//8AAP8AAAABAAAAAAAAAP4AAAAAAAD/AP8AAAAAAAD//wAAAAAAAAEBAAAAAAAAAAAA/wD/AP79/AACAAQAAAAAAAEAAAD+AAEAAAD/AP/8AAAAAAAAAAD/AAMDBAD+/f4AAQAAAAAAAwABAgEAQmMkAPDo9wCjo6IAGRkZAAQEBAAEBAQAAQEBAAMDAwABAQEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPv7+wCYmJgA3d3dAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPT08AQkJCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/v7+AMHBwQDBwcEA6urqAAcHBwAfHx8ANzc3ADY2NgADAwMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AP7+/gD5+fkAmpeXAAT6+gBuJykA/v/+AAIBAQAAAP8AAAAAAAABAAD///8A////AAEAAQAAAAAA///+AAAAAAAAAQEAAAAAAAD+/gAAAAAA/wD/AP/+/wD9/f4A/f35AAMCAwD/AAEAAwT/AAIAAQD+AAEAAAEAAAH+AQAAAPwAAQMDAAD9/QD/AAAAA/8CAP0DAgBLcioAnm3JAKqqqgBiYmIABgYGAAMDAwABAQEAAwMDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOLi4gDIyMgA2traAOrq6gD7+/sADQ0NABISEgAqKioANDQ0ABoaGgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA+Pj4ANLS0gDV1dUA5eXlAO/v7wD4+PgA/f39AAUFBQALCwsAExMTAB8fHwAtLS0AKCgoAAEBAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP39/QCdnZ0A1tbWAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRkYASkpKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABnZ2cAAAAAAAAAAAAAAAAAAAAAAAAAAACZmZkA/f39AJqamgDQ0NAAAAAAAAAAAAD29vYA19fXANfX1wDAwMAAeXl5AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP7+/gD7+/sAzc3NAMbJyQCFKy0ABwICAAAAAAD9/v4AAAAAAAD//wAAAAAAAAEBAAAAAAD///8AAAAAAP8AAAAAAAAAAP//AAAAAAAAAAAA/v//AAAAAAD///8A/v3+AAAAAAAAAP4AAAAAAAH8/wD+AAAAAgQAAAMCAgD9/PwAAAIDAAIAAQAAAwIAAAAAAAABAQD//v8ABAkCAEdqKQCwhc0A1zk5AAgICAAGBgYAAwMDAAICAgABAQEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGdnZwAAAAAAAAAAAAAAAAAAAAAAAAAAAJmZmQAAAAAA8PDwAKioqADPz88AAAAAAAAAAAAAAAAAAAAAAPHx8QDx8fEA39/fALW1tQA4ODgAVFRUAA0NDQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwcHBALCwsAD29vYAAAAAAAAAAAAAAAAAAAAAAAAAAAD6+voA+vr6AO/v7wDc3NwAvb29ABwcHABfX18AHh4eAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///wCjo6MAz8/PAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA+Pj4AU1NTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKampgDQ0NAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///wD+/v4A+Pj4AKejowA7FBUALA4OAP///wD///8AAAAAAAAAAAD///8A////AP7+/gD///8A/wD/AP3//gAAAAAAAAAAAP7//wD+/v4A/v/+AAAA/wAAAAAA////AP39/QD9/f4A/v3+APz8/gD9/v0A/f7+AP79/AD9/v0AAAAAAP3+/QD9/P0A/f3+AP79/QD+/f0AAAAAAAD/AAAjNBMAHzAUALa3tQDy8vIA9/f3APz8/AD+/v4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ODgAIWFhQDPz88AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAyMjIAI2NjQDx8fEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAp6enAKampgD29vYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADk5OQAiYmJANbW1gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACpqakAx8fHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA2NjYAWlpaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMrKygDExMQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACcnJwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD+/v4A+/v7AM/PzwDb398AWBsbAP///wAA//8AAP//AP///wD+/v4A/wAAAP8AAAAAAAAAAAAAAP7//wAAAAAA/v7+AP38/QD//f4A//7/AAD/AAAA/wAAAAAAAP7//wD9/f4A/f38AP39/QD//v0A/v3/AAEAAAD+/f4A/vz9AP3+/gAAAQEAAQAAAAAAAAAAAAEA+/39AP38/QD//f4A/P39AD1dIwDd3N4A2dnZAPX19QD7+/sA/v7+AP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA5OTkAJCQkADy8vIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADn5+cApKSkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwcHBAMDAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPz8/ACbm5sA9PT0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwsLAAv7+/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAvLy8AYGBgAAEBAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACnp6cAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoKCgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A/v7+APv7+wC1tbUANBISAB0ICgAA/wAA/wAAAP7//wD///8A/v//AP7//wD+/v4A/v7+AP3+/QD//f4A//3+AP/+/wAAAAAAAAAAAAAAAAD//v8A9fz8AP3//wD79/0A+vX6AP79/gD9/f4AAAABAP39/gD7/P4A/wD/AP8AAQD9/P0A/f39AP3+/QD9/P0A/f38AAIAAAAAAQAAAAEBAAIBAQAXIg0AHSoTAMLEwgDz8/MA9/j3APz8/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJaWlgD39/cAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANLS0gDf398AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9PT0AK2trQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9vb2AMnJyQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC5ubkAt7e3AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHBwcAAMDAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9vb2AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHBwcAHx8fAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP39/QDv7+8A1tPTAG8hIwD+//4AAAAAAAAAAAD+//8AAAAAAAAAAAAA//8A/wAAAAEAAAAA/gAAAAAAAP8A/wAAAAAAAAAAAP8AAADD7u4AuOzqANvz8wAAAAAA8NH1AOPQ9AAUHgoAIT0LAB8xDgAAAAAAAwD/AP79AwAAAP0AAwICAAIAAAAAAAEAAQAAAAAAAQAAAAAAAAAAAAAA/wD+//8AAgEAAC9IGgC7l9gA7u7uAA0NDQAJCAkABQUFAAQEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADt7e0AAAAAAAAAAAAaGhoATExMACIiIgAICAgA3d3dAKysrADn5+cAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAy8vLACEhIQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMDAwAD5+fkAAAAAAAAAAAAAAAAAAAAAAAAAAABCQkIAQkJCABEREQD39/cA2dnZAKioqADz8/MAAAAAAAAAAAAAAAAAAAAAAAAAAADa2toAQ0NDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArq6uAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALi4uAA1NTUAGRkZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJiYmAAMDAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP7+/gD9/f0AzMzMAGfP6fwAACAASURBVP///wA0DxAAAAAAAAAAAAD+//8AAP//AAABAQAA//8A/v7+AAAAAAD/AAAAAAAAAP8AAAD+//8AAgAAAPP9/ACM3d8A3PbzACQnJwBNJCQAERERAAAAAADv7+8A3NzcAM2o2QDkzPUANlwVAAMMBwAAAAAA/Pz+AAAE/wAA/AAAAgQAAAAA/wD//AAAAAD/AP4AAAABAAAAAgABAOXV7wDcyesA+ff7AMbGxgATExMADw8PAAgICAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAtLS0AaGhoAAQEBAAAAAAAAAAAACwsLAAfHx8Ag4ODAPHx8QAAAAAAAAAAAAAAAAAAAAAAAAAAAN/f3wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADLy8sAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ODgAV1dXAAAAAAAAAAAADQ0NADQ0NAABAQEAmpqaAAAAAAAAAAAAAAAAAAAAAAAAAAAA6enpAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD9/f0ApKSkAHR0dAABAQEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAQBHR0cAOzs7ABISEgD7+/sA8fHxAAMDAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///wD///8A/Pz8ANLS0gApDQ4ABAIBAP7//wAA//8AAAAAAP8AAAD//f4AAAAAAAAAAAAAAAAA/wD/AAAAAAD+/wAAAAAAAPf+/QCC3dsA9QQFAFlcXAAaGhoACwsLAAYGBgABAQEA/v7+ADg4OADk5OQAqKmnAMSa6QA/bBoAAAYDAAMDAwAAAAEAAAAAAAAAAAAAAQEAAQIBAPPt+gDXveoA3s/vAPLr/AD++vsAAgkJAAMKCQDn5+cA9/f3APr6+gD9/f0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMDAwAZWVlAAQEBAAAAAAAAAAAAAAAAAAAAAAADQ0NAEJCQgCvr68AAAAAAAAAAAAAAAAAAAAAAAAAAADu7u4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAc3NzAOfn5wDm5uYA5+fnAObm5gDm5uYARkZGAAAAAAAAAAAAAAAAAAAAAAAAAAAAKCgoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPLy8gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANzc3ADDw8MAPj4+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABYWFgAQEBAAAAAAAAAAAAABAQEAAkJCQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////APz8/ADj398AOAsLAP7//wAA//8A/wAAAAEAAAAA/v8AAAD/AAAAAAD///8AAAAAAP7//wAAAAAAAAAAAAAAAACj5OQA8P8AAFZVVQAbHBsAEhESAA4ODgAGBgYAAQEBAAAAAAD7+/sAExMTABMTEwCRkY4A1bbuADBQFgD+/wAAAgD/AP37AADawewA4M7xAO3m+wD59fkAAgMDAA0oJgAXQS4ADS0rAAgfHQDknqMA8NbaAPr6+gD7+/sA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPz8/AAcHBwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlJSUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9fX1AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ODgAODg4AJycnAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoKCgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD5+fkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArq6uAC8vLwAPDw8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAATExMAPj4+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP39/QD8/fwA6+vrABscHQAAAAAA/wD/AP/+AAD/AAAA/wD/AP7//wAAAAAAAAAAAAD//wAAAAAA////AAIBAADs+voAvu3sAEdISAAZGRkAFhUWABISEgAKCgoABQUFAAEBAQD///8A/v7+AAsLCwAFBQUASkpNAK2tqwAOGQYA6NX3AOvi+QD59PwA//7+AAkdHQARQy4ACy4rAAslJAACBwYAAAAAAAAAAAAAAAAACiAgAO7GygD8/PwA/f39AP39/QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACQkJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAERERAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPz8/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA6enpANLS0gDKysoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/Pz8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANDQ0AMzMzAMDAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAPf39wCnp6cAaGhoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMzMzAAICAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP7+/gD///8A9PP0APX5+QAVCAgAAP//AAD+AAAAAP8AAAAAAAD//wAAAAAAAP//AAAAAAD///8AAAAAAP///gD9AAAAxu/vAA4MDAArKysAERERABAQEAANDQ0ABwcHAAMDAwAAAAAAAAAAAP7+/gADAwMA////ADs7OwCssK8AzKnrAAQQDgANMDYAFywqAAopJgAFDQ0AAAABAAEDAwAAAQAAAAAAAAAAAAAAAAAAAAAAAAYTEQD49/cA////AP7+/gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASEhIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkJCQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD9/f0A5eXlANzc3ADe3t4A29vbAPDw8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKCgoAcHBwABkZGQDc3NwA5OTkAAAAAAAAAAAAAAAAAAAAAAAAAAAAz8/PANHR0QAvLy8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////APX19QAAAAAACQABAP7+/gAAAAAA////AP4AAAAAAAAAAf/+AP7/AAAAAAAA/wD+AAEAAgAAAAAA////AN/39wAUFxcACgoKAAwMDAAKCgoABgYGAAMDAwABAQEAAAAAAAAAAAADAwMA////AAcHBwALCwsAHRscAO8TEQAdYl4AAQQDAAAAAAAAAQAAAP7+AP/+/gAAAP8AAAEBAAEAAAD/AgIAAAAAAAECAQADCgoA/v39APn5+QD///8A/v7+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAwMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBQUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////ANXV1QDJyckA09PTAPf39wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGBgYAbm5uABwcHAAAAAAAXV1dAIiIiAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAACmpqYAJycnAAgICAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASEhIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD4+PgAAAAAAAcDAwAAAAAA/f//AAD//wAAAAAAAAAAAAAAAAAAAAAA///+AP8A/wD///0AAAAAAP///wDz//4ACQkJAAYGBgAGBgYABQUFAAEBAQABAQEAAAAAAAAAAAAAAAAAAAAAAAEBAQAEBAQACAgIABQSEgDw+/oA/v79AAD6/QACAgMAAAAAAP//AAABAAAAAPz+AP8AAAAA/wAAAQQAAAAEAwD//v8AAgcIAAAAAAD5+fkA////AP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcHBwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwMDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA6enpAJ2dnQDh4eEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAQAa2trACEhIQAAAAAAAAAAACAgIABCQkIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA8PDwAK+vrwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAwMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwcHAAAAAAD5/fwA/wD/AAAAAAAAAAAA////AP///wD9/v4A/v/9AP///wAA/wAA//8AAP//AAAAAAAADAEBAPn5+QABAQEAAAAAAAAAAAABAQEAAAAAAAAAAAAAAAAAAAAAAAAAAAACAgIAAQEBAAICAgD2+PgAAAgHAAD+/QAA/P0A/v39AP7+/QAA/P0A//z9AP/+/QD//v0A//z9AP/8/QAA+/0AAf38AP34+AAAAAAABgYGAP7+/gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAwMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4uLiAIWFhQDh4eEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQEAZmZmACgoKAAAAAAAAAAAAAAAAAAAAAAATk5OABISEgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAwMAA39/fAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkJCQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAsLCwAAAAAA9vz9AP7//wAA//8A////AP///gD///4A/wD/AAD/AAD/AAAA/wAAAP7//wD+//4A/v//AB8HCADr6OgA+/z7APz8/AD9/f0A////AP///wAAAAAAAAAAAAAAAAAAAAAA/v7+AP7+/gD+/v4A4ePjAAkdHAAA/P4AAP79AAH//QAA/v0A/v79AP7+/QD+/P0AAQAAAAD+/QAA/v0AAP79AP8AAAD99fUAAQICAAcHBwACAgIAAQEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgICAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA+fn5AJqamgD5+fkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQEBAAnJycAUFBQAH5+fgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYmJiAC8vLwAAAAAAAAAAAAAAAAAAAAAAAAAAAAgICABbW1sAk5OTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKKiogB8fHwAAwMDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGBgYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAQAKCgoACwcHAOj5+QAgCQkAAQD/AP8AAAAAAAAAAAAAAP//AAAA/wAA/v//AAAAAAAAAP8A//8AAAEBAAA1Dg0AqunoANTT1AAVFBUA+fn5AAUFBQABAQEAAgICAAEBAQAAAAAA/f39AP39/QD4+PgAv7+/APj19QAbKSgA//z8AAAAAAD//wAAAQEBAAEEAAAAAAEAAAABAP/8AAAAAAAAAAAAAP/+AAABBAIA++zrAAoLCwACAgIAAgICAAEBAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMzMzADr6+sAAAAAAAAAAAAAAAAAAAAAgelArwAAIABJREFUAAAAAAAAAAAAMjIyADs7OwAnJycABQUFAAAAAAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFWSqm1AgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANjY2AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAsLCwANTU1AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAObm5gC5ubkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAwMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgICAAEBAQACAgIAFBQUAOX49wD///8A/f7+AP7//QD+//8A/v//AAAAAAAAAP8AAAAAAAAA/wD///8A///+AP7//wASBAUAPhARALy5uADo6OgA8vLyAPf39wD6+voA/Pz8APv7+wD7+/sA+/v7APb29gDc3NwApaioABA3NAABBwYA//79AP/+/gAA/f0A//z8AP78/QD//PwA//78AP7+/QAAAAAA//z9AP/+/QAA/P4A9eDhABISEgAFBQUABAQEAAEBAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMrKygAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABLS0sAZ2dnACwsLAAFBQUAAAAAAAAAAAD7+/sAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFZWVgAKCgoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAtbW1AOnp6QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgICAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAgIABAQEABoeHgDY9vUAAAAAAP8A/wAA/wAAAQAAAAAAAAAA//8A/v//AP///wD+//8AAAAAAAAAAAD9/v4A/v//AFcWFgAN/v4Am5eXANzc3ADv7+8A8vPyAPPz8wD19fUA9fX1APHy8QDU1NQAfn5/APf29gAPOjYAAf7/AAD8/gD//PwA//39AP/+/gAA/P4A//8AAP/7/QAA/v0A/v79AAAAAAABAAAAAAIAAPzf4gAWFBQABgYGAAMDAwADAwMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADo6OgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQ0NDAAAAAAAAAAAAAAAAAAAAAAAAAAAA8/PzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAODg4AVFRUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPz8/AClpaUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQEBAAQEBAArKysA2fPzAPr9/AABAAEAAAEAAP///wD+/v8A/v8AAP//AAD///4A//7/AP7//wD9//8AAP//AAD//wAGAQEAdBocAA739gCLiYkAmpqaAMTDxADb29sA2traAL+/vwCPjo8Afn5/ABEFHQACAgQA5KKoAPz19AD+/fwA//39AP/9/QAA/P0AAP79AAD9/QAA/f0AAPz+AAH+/gD+/v0A//z9APvw8gDy3+AAHx8fAAYGBgAFBQUAAgICAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA8/PzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPz8/AAAAAAAAAAAAAAAAAAAAAAAAAAAANPT0wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/f39AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADs7OwDJyckA2dnZAAAAAAAAAAAAAAAAAAAAAAAAAAAA2dnZAMXFxQA7OzsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQEBAAEBAQADAwMAMjIyAKKfnwDO8/IANQ4PAAD//wAAAAAAAAD/AAAAAAAAAP8A/wAAAAAA/wAA/wEAAAAAAAAAAAAAAAAA////AAoBAQB1Gx0AyfPzAL7V1ACTyckAAQEBAP///wACAQIAFQsfADwaYQAgDzAA8vvqALLeiQDinqQAHmNdAAIHBwABAQIA/v/9AAEA/wABAwMAAAMDAAEA/wD//PwAAAIDAP4EAADxzM0ABwkJACQkJAAHBwcABgYGAAMDAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcHBwD29vYAAAAAAAAAAAAAAAAAAAAAAAAAAADLy8sAREREAAAAAAAAAAAAAAAAAOvr6wC0tLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPz8/AADAwMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAW1tbAAQEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACsrKwA8vLyAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQEABAQEAA8PDwAnKioAwe/vAAD/AAAAAAAA/v8AAP8AAAD+/v4A/v//AP7//wD+//8A/v/+AAD+/wD+/v4A/v7+AP///wD///8AAAAAADYMDAB2GRsAkCMkACwJCQANBhQAVSWJAEYecwAhEDIAAgIDABEJGwBSJXsA/O7xAOKdogD99fYA/v37AAD+/gAB/v8A//39AAD+/QD//P4AAAAAAAECAAAAAAAA8cjMACEdHgAMDAwACAgIAAUFBQABAQEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaGhoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAr6+vAMDAwAD09PQA9PT0AMTExACIiIgA8/PzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD29vYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABcXFwBMTEwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9vb2AKqqqgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgICAAMDAwAHBwcAREVEANDx8QDj+PgA/v//AP///gD//v8AAAAAAAD//wAA//8AAAAAAAAAAAD/AP8AAAEAAP8AAAD/AP8A/gAAAP3//gD+//8AAP//AAgBAQAGAgIAAgEDAAUDCAABAQIAAQEBAAMCAwAEAgEAEgoaAFUofQD97vIA4qGlAP319QAAAAAAAAAAAP/9/QD//P0A//38AP/8/QD++/0A9tvcAPbe3wA2NjYACwsLAAkJCQAEBAQAAQEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALy8vAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPz8/ACnp6cAc3NzAHNzcwCjo6MA9PT0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA7+/vAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARkZGABsbGwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADLy8sA1NTUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAQACAgIABgYGAC8uLwAgHR0AsOvqAP//AAD///8A////AP//AAD+AAAA////AP///wD///8A////AP/+/wD+/v4A/v7/AAD//wAB//8AAQD/AP///wD+/v4AAAAAAAABAAADAwMAAgIBAAECAgABAgAA/wAAAAEAAQAUCx0AVyuAAP7u8gDioacA/fX2AP79/AACAQIAAQABAAABAAAAAAAAAQEBAOy3uwAfISEAHx8fAAwMDAAHBwcABAQEAAICAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD4+PgANDQ0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQEBAAcHBwAAAAAAAAAAAAAAAAAAAAAAAAAAAOHh4QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMDAwBdXV0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKampgD5+fkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwMDAAUFBQAKCgoAUVRUAMrx8ADX9fQAAAEBAAABAAD+AP8AAP//AAEBAQAAAAAA////AP8A/wAAAAAAAAAAAP///wD///8A/v//AP7//wD+/v4A////AAD/AAABAAEABAMDAAMCAwAEAgEAAgIDAAICAwABAwIA/gAAABIKHABbLoQA/u7yAOOhpQD99vYA/v37AP79/AD//P0A//39APLP0QD1290AOzk5AA4ODgALCwsABwcHAAEBAQABAQEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAICAgAZWVlAAICAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgYGAGxsbAAyMjIAAAAAAAAAAAAAAAAAAAAAAAAAAADMzMwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAISEhAEJCQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADt7e0AsrKyAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAQACAgIADExMQAzMDAAnunoAPj9/QAAAAAAAAAAAAAAAAD///8A////AP///wD+/v8A/v//AAH//wD///8A////AP///wD///8AAAEAAAABAAAAAP8AAAAAAAECAQABAgAAAQIDAAIBAQACAQEAAQECAAMCAQACAgEAEgsaAFsvhQD97/IA46ClAP75+gACAQIAAAAAAP349gDqrrEALi0tACMjIwAPDw8ACQkJAAUFBQADAwMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACcnJwBxcXEADw8PAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKCgoAHp6egAsLCwAIyMjAAAAAAAAAAAAAAAAAAAAAAAAAAAA3NzcAOPj4wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPT08AERERAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAL29vQDh4eEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAd8jdrAAAgAElEQVQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQEAAQEBAAcHBwALCwsAW15eAP0GBgCe5+cA/v7+AP/+/gD+/v4A////AP8AAAD+AP8AAAAAAAEA/wD+AAAAAAAAAAAAAAD///8A/v7/AP/+/wD//v8A/wAAAAEBAQACAgMABQQFAAMCAgABAwMAAQMDAAMCAQACAQIAAgEBAAIBAgAWDR4AYDKHAP3v8gDinaMA/Pf3AP/+/wDop60ACQUGAENEQwAREREADQ0NAAgICAADAwMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJiYmAISEhABZWVkAKysrAA8PDwADAwMACQkJABkZGQA+Pj4AcnJyAHFxcQAZGRkAAAAAACcnJwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACtra0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH/////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///wD9/f0A+vr6APHx8QDLzMsAlZGSAEQODwBSFhYA/v7+AP///wD+AP8AAP8AAP///wAAAP8A//8AAP///gD//wAAAAEAAP7//wAA/wAAAAD/AKDr6wDfAA8AWC2IAAD/AAAAAAAAAwIBAAICAgAAAQAAAgIBAAECAwADAgIAAQEAAAICAwDv9+UAncp1AAMSDwAJGhgA+NjbAFNRUQAsLCwAGhoaABEREQAKCgoABAQEAAEBAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQEAAwMDAAUFBQALCwsALy4vAFhbWwC47+4As+rqAAAAAAAAAAAAAAABAAEA/wAAAAAA////AP///wD//wAA/v//AP7//wAA//8AAAD/AAAAAAD/AAAAAAAAAAQCAgADAwEABQUDAAIDAgACAwEAAgEBAAEBAwADAQIAAgEAAAQCAwADAgIAFQwfAGQ5jAD77O4A8tLVAEE/PwAiIiIAEBAQAAwMDAAHBwcAAgICAAEBAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAQACAgIACAgIAA0NDQA/Pz8A+/v7AKqpqQDw/f0AVxUVAAIA/wAAAAAAAAAAAP//AAD///4AAAABAAIBAQD+//4A////AP///wAAAAAAAAAAAAEAAAABAQEAAwMCAAAAAAAA/wAAAgECAAIDAwAAAAAAAQIAAAECAwD/AgIAAgECAP0C/ADH3rAAAwECADMzMQAsLCwAExMTABEREQAKCgoABQUFAAMDAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwMDAAAAAAAKCgoA////AENDQwALCwsApaKiAOPm5QBiFRQAEgMFAP8A/wAAAAAAAAEBAP7+/wAAAP8A//8AAAAAAAAAAAAAAAAAAAD//wAAAgEAAwQEAAEA/wAAAAAAAgMCAAAAAAACAwIAAAAAAAMBAQABAgIAAgECAPD56ACu0IkA8vvqAEtLSQAnJycAFRUVABQUFAAMDAwABQUFAAICAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAgIABQUFAAsLCwABAQEAOTk5ABYWFgCinp4AguPkAEoREQBBDg4AAv8AAP4A/wAAAP8A////AAAAAAD///8A/v//AAD//wD/AAAAAQABAAMDAgAA/wAAAAAAAAICAgAAAAAAAQEBAAECAgD///8A/v/7AMTerwDG3qwAGBkXAFlKWQAbHBsAEhESABEREQAPDw8ACAgIAAQEBAABAQEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQEBAAICAgAFBQUACgoKAAICAgAEBAQAdHh4ALi4uAC6v78AwPT0AEMMDAA3CwwABgD/AP///wAAAAAA////AAAAAAD+AAAAAAAAAAABAAACAgIAAQEBAAAAAAACAAAA/wICAAIAAAD5/fYAz+S6AMnhsAABA/4AOz46ADo5OgAREREAERERAA4PDgAKCQoACAgIAAICAgABAQEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQEAAgICAAUFBQACAgIAAgICAAUFBQBPT08ANzg3AL28vQC4zMwAsO7uAC0KCgAoBwcAJggIAA8BAgD+//4AAAAAAAD/AAAAAAAABAMDAAAAAAAAAAAA7/boAOLw1QDb68oA3uvPAAcHCAAtMCsANzc3ABUVFQAQEBAADg4OAAwMDAAJCQkABQUFAAMDAwABAQEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////APz8/AD7+/sA9/f3APX19QD09PQA7+/vAM7OzgDS0dEA5uTkAPb5+QAHAQEAFwcIAAsA/gDl+vsA+AEHABwRKQD2+e8A7vfoAPr89wALCgwAGRoZACYmJQArKysADg4OAA0NDQANDQ0ACwwLAAoJCgAHBwcAAwMDAAICAgABAQEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A/v7+AP39/QD5+fkA+fn5APf39wD19fUA9/f3APb29gDi4uIA5OTkAOvr6wD29vYA7e3tAAAAAAAQEBAACAgIABYWFgAaGhoAGhoaAAgICAAICAgACgoKAAsLCwAJCgkACAcIAAYGBgAFBQUAAwMDAAEBAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJItZQAAAArMSURBVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH/////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A/f39APz8/AD9/f0A+fn5APr6+gD6+voA+fn5APr6+gD6+voA+fn5APj5+AD9/P0AAgICAAYGBgAHBwcABgYGAAYGBgAICAgABgYGAAcHBwAGBgYABQUFAAMDAwACAgIAAgICAAEBAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///wAAAAAA/v7+AP7+/gD8/PwA/v7+APz8/AD8/PwA/P38AP38/QD7+/sA/Pz8AAMDAwAFBQUAAgICAAUFBQAEBAQAAwMDAAQEBAADAwMAAgICAAEBAQACAgIAAQEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A/v7+AAAAAAD///8A////AP///wD9/f0A/v7+AAAAAAAAAAAAAQEBAAEBAQADAwMAAQEBAAEBAQABAQEAAgICAAAAAAABAQEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACanuzMvN2MUAAAAAElFTkSuQmCC" style="display:none"/> | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6610 <noscript>Javascript must be enabled to view this page.</noscript> | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6611 <div style="display:none"> | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6612 <krona collapse="true" key="true"> | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6613 <attributes magnitude="magnitude"> | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6614 <attribute display="Total">magnitude</attribute> | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6615 </attributes> | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6616 <datasets> | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6617 <dataset>kt</dataset> | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6618 </datasets> | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6619 | 
| 
9f6869226de1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mmsesq2 commit 1400593429eb4e9c6e307df3621825a8b84a6fa7
 iuc parents: diff
changeset | 6620 <node name="all"><magnitude><val>15</val></magnitude><node name="root"><magnitude><val>15</val></magnitude><node name="cellular organisms"><magnitude><val>15</val></magnitude><node name="Bacteria"><magnitude><val>14</val></magnitude><node name="Pseudomonadati"><magnitude><val>13</val></magnitude><node name="Pseudomonadota"><magnitude><val>13</val></magnitude><node name="Betaproteobacteria"><magnitude><val>11</val></magnitude><node name="Burkholderiales"><magnitude><val>11</val></magnitude><node name="Burkholderiaceae"><magnitude><val>9</val></magnitude><node name="Burkholderia"><magnitude><val>5</val></magnitude><node name="Burkholderia cepacia complex"><magnitude><val>4</val></magnitude><node name="Burkholderia cepacia"><magnitude><val>2</val></magnitude></node><node name="Burkholderia cenocepacia"><magnitude><val>1</val></magnitude><node name="Burkholderia cenocepacia HI2424"><magnitude><val>1</val></magnitude></node></node><node name="Burkholderia orbicola"><magnitude><val>1</val></magnitude><node name="Burkholderia orbicola AU 1054"><magnitude><val>1</val></magnitude></node></node></node><node name="pseudomallei group"><magnitude><val>1</val></magnitude><node name="Burkholderia pseudomallei"><magnitude><val>1</val></magnitude><node name="Burkholderia pseudomallei K96243"><magnitude><val>1</val></magnitude></node></node></node></node><node name="Cupriavidus"><magnitude><val>2</val></magnitude><node name="Cupriavidus metallidurans"><magnitude><val>2</val></magnitude><node name="Cupriavidus metallidurans CH34"><magnitude><val>2</val></magnitude></node></node></node></node><node name="Comamonadaceae"><magnitude><val>2</val></magnitude><node name="Rhodoferax"><magnitude><val>1</val></magnitude><node name="Rhodoferax ferrireducens"><magnitude><val>1</val></magnitude><node name="Rhodoferax ferrireducens T118"><magnitude><val>1</val></magnitude></node></node></node><node name="Polaromonas"><magnitude><val>1</val></magnitude><node name="unclassified Polaromonas"><magnitude><val>1</val></magnitude><node name="Polaromonas sp. JS666"><magnitude><val>1</val></magnitude></node></node></node></node></node></node><node name="Gammaproteobacteria"><magnitude><val>2</val></magnitude><node name="Moraxellales"><magnitude><val>1</val></magnitude><node name="Moraxellaceae"><magnitude><val>1</val></magnitude><node name="Acinetobacter"><magnitude><val>1</val></magnitude><node name="Acinetobacter calcoaceticus/baumannii complex"><magnitude><val>1</val></magnitude><node name="Acinetobacter baumannii"><magnitude><val>1</val></magnitude><node name="Acinetobacter baumannii AB307-0294"><magnitude><val>1</val></magnitude></node></node></node></node></node></node></node></node></node><node name="Bacillati"><magnitude><val>1</val></magnitude><node name="Actinomycetota"><magnitude><val>1</val></magnitude><node name="Actinomycetes"><magnitude><val>1</val></magnitude><node name="Kitasatosporales"><magnitude><val>1</val></magnitude><node name="Streptomycetaceae"><magnitude><val>1</val></magnitude><node name="Streptomyces"><magnitude><val>1</val></magnitude><node name="Streptomyces griseus group"><magnitude><val>1</val></magnitude><node name="Streptomyces griseus subgroup"><magnitude><val>1</val></magnitude><node name="Streptomyces griseus"><magnitude><val>1</val></magnitude></node></node></node></node></node></node></node></node></node></node></node></node></node></krona></div></body></html> | 
