-
Notifications
You must be signed in to change notification settings - Fork 0
/
A_hole.html
12256 lines (11355 loc) · 874 KB
/
A_hole.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="utf-8"/>
<link rel="shortcut icon" href="data:image/x-icon;base64,AAABAAMAEBAAAAEAIABoBAAANgAAABgYAAABACAAiAkAAJ4EAAAgIAAAAQAgAKgQAAAmDgAAKAAAABAAAAAgAAAAAQAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///wCAgIAC////AP///wC0tKJHlZWSqI6OmuRxcXn9koaK9J2Ym8uNm5V73PPoFv///wAAAAAD////AP///wCAgIAC////AP//7xCHh4OodHSi/2xqw/9nZ9H/XVuU/9eFqv/njb7/yYiq/5GAiOifqKJV////AAAAAAL///8A////AO3t2w56eoHPdHLH/3Vz3vx4dtz7dXTb/mVimv/XhKn/8ZPG/fSVx/vvlcT/kG+E/32Himb///8AAAAAA////wB0dHageHbO/3585fl5d9r/dnTX/3V02/5mYpz80X2i/eaIuv/ukcD/wXak/I6Maf+OkXD9iIKjL////wCEhFo+c3Kv/4F+6P18etz/e3nd/3l33P57eeT/aWag/9F5oP/sib3+tmuZ/3uEXf/P1YX7zdKG/3x9dbX///8Ac3J9nYKA4f+CgOb7fnzf/3174P58et//bm2v8Vtgc7SdbIHNqWmM/4aLZP/L0YT/0dWH/tfdiP+go3P6YlyWJ3BvmduGg+n/g4Hk/oF+4/6AfuX/bm2k7pCUUUX///8Ajv/jCVBmXqPBxoH/1NmI/c7Uhf/b4Yn9wMWB/2BdcGBraqX6iYbs/4SB5P+Eguj7hYPm/2Vlcov///8AACRtB////wAAAIAWrLB29uHojv/X3on+3eSK+9PYh/9XWVN7bWum+ouI7/+Gg+f/hoTq+4iF6f9lZXKL////ACQAbQf///8AAABoFoF+Xva0snL/y818/uDmiPvZ34n/WVlTe3Jxm9uMiu//iofr/oiG6f6Jhu3/cnGo7oyQQ0X///8A/znjCXF8dKNotpL/Za2O/WuVe/+FkGv9mJ5w/2pqaGBzc3+djYrr/42K8fuKh+v/i4js/oqH6/93dbfxYmJztGaTec1yxJr/gOGu/4nptf+K6Lf+i+q8/2eXhfqDNG8ngIBKPnt6uP+Rjvf9jInr/4yJ7f+Miu3+jor0/25xoP920pz/gOGw/oHerv+H4rL/kPC9+5Ttvf98ioC1////AP///wB0dHSgioff/5SR+/mOi+7/jYvt/4+L8P5scJ78etKe/YXis/+H47P/kO+8/JLxv/92m4f9nXKNL////wD///8A7e3bDnt7hM+Ihdv/ko/4/JSS+PuUkPb+bnKg/4Lapv+Q7739kfO/+43puf9/qJH/mYeUZv///wAAAAADgICAAv///wD//+8QhoaBqIB/sf+Iht7/jYjw/2tvnf+D3Kf/ieS1/4bIpP+AkYfoqJOfVf///wAAAAAC////AP///wCAgIAC////AP///wCwsJdHlZWQqJORn+RzdHv9hZOK9Jecmcuej5l7/+jzFv///wAAAAAD////AP///wD4PwAA4A8AAMAHAACAAwAAgAEAAAABAAADgQAAA8EAAAPBAAADgQAAAAEAAIABAACAAwAAwAcAAOAPAAD4PwAAKAAAABgAAAAwAAAAAQAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///wD///8A////AP///wEAAAAB////AP///wi6urdDubmxj6ennsuQkIzvc3Nz/YSIh/WWoZzWrrezoLe6t1X///8T////AP///wCAgIAC////AP///wD///8A////AP///wD///8A////Af///wD///8Ax8fDQJeYkLV4eH39WlmM/19dpP9dX6b/WFRr/611j/+/fJ//om2I/4N3ff+Jko7Ntri2Xv///wD///8AgICAAv///wD///8A////AP///wD///8B////AP///wOfn5t9c3N29GRjn/9oZ8P/c3LU/XVy3P9rbdH/YVt8/9eIrv/5mcz/75bE/t+Mt/67epz/fnN5/4uTkKP///8W////AAAAAAL///8A////AP///wH///8A////A5iYkZJoaH3/bWvB/3h23Px4dt3+dHPX/3Rx1v9sbcv/YFp6/82ApP/rj8D/65DA//KVxv/1mcn83424/5t1iP98gX7A////F////wCAgIAC////AAAAAAL///8AkJCHdWZlf/9zcs7/fHrj/Hh32/92ddn/dXTX/3Zz2P9vcM//YFt7/8t9of/pi73/54u7/+eNvf/vk8P/7ZbE/pxsh/xLVU7/iomJqP///wD///8A////Af///wCfn5Y4ZmV07XZ0zv9+fOX8enjc/3p43P94dtv/dnXZ/3d12f9xcdD/YFp6/8h5nf/mh7r/44e3/+qMvf/ljrv/jV59/3F+V/68wH3/gYNp/4uIlWf///8AAAAAAv///wJ3d22pc3G6/4KA5/t9e9//fHre/3t53f96eNz/eHbZ/3l23P50dNb9Ylx+/ch2m/3jg7b+44W2/+CItv+NXXz/bnpW/8XIgv/Y3Yv8ur57/3Fxbtni4uIa////AHl5XTdoZ4b4f3zb/4F+5P5+fN//fXvf/3x63v96edz/ennf/nt54P9xccb/Xlxy/7Rvj//gf7P/3IKw/olZeP9te1b/xsqD/9DVh//P1IX/09iG/pWYcf9nZ3Nt////AISEb35ycLb/hYPr/YB+4f9/feH/fnzh/3173/99e+L+enjX/2dmmfhlZXiwYGBiknJkaqGVZ37pg11x/3eBXP7GyoP/0NWH/87Uhf/R1ob/2eCK+8HFff9tbXWv////BG9vdb16eMn/hYPq/4F/4/+BfuP/gH7i/4B94v59e93/Y2KO+ISEbX7y8uQT////AP///weAjo5aT1tP5L7Cf//T2Ij+ztOF/9HWhv/S14b/2d+K/s3Sgv+BgnLcg4OSI11deeaBf9r/hYPo/4OB5P+DgeX/gX/i/4OB6v10c77/cXFjmv///wL///8A////AP///wD///8AeHN9apuecP/U2Yf/0teG/tPZhv/V24f/2uCJ/tTahv+KjGj6AABINV9egfuGg+P/hoTp/4WC5v+EgeX/goDk/4WD6/1wbq//WFgAQ////wAzMzMFAAAAAVVVVQP///8AAABjEoiLZ/Df5Y7/2d+J/dfch//W3If/2d+H/9vhif6ZnW3/AAA5P19egvuHheX/iIXq/4eE6P+Gg+f/hILl/4eE7P1xb7D/WFgAQ////wAzMzMFAAAAAVVVVQP///8AAABVEnd1WvDEx37/y9GD/dnfif/g54z/4OeL/97kiv6anWz/AAA1P15eeuaFg93/ioft/4iF6f+Hhen/hoPn/4mG7/14d8L/cXFimv///wP///8A////AP///wD///8AenV3a1dyZf9QY1//bGVW/pORY/+trnD/xch7/tTZhP+Pkmn6AABINXBwdb1/fc7/jYry/4mH6v+Jhur/iIbp/4iG6/6Gg+X/Z2aT+IKEaX7y8uQT////AP///wiXgY9bXndp5HXLnv95z6P+dsif/2Wrjv9RcWv/Z3Rk/nyBYv9xcWbbfHyDI4SEa354d73/kI31/YuI6/+LiOz/iofr/4mG6v+Lh+3+hoPi/21soPhnZ3qwYGBikmNza6JhinXpcsWa/3vdq/6C4a//iOi1/4zpt/+O6Lf/kOu8+3O1l/9jVmKv////BHl5WDdraor4iofn/4+M8v6Miez/i4nt/4uI7P+LiOv/i4jt/ouJ8P9+e83/XGBt/223jv952aj/e9uq/n3aqv+D36//huKy/4rntv+Q7r3/lvTC/nupj/9zYmxt////AP///wJ3d2qpfXvF/5KP9vyNiu7/jYru/4yJ7f+Miu7/i4jr/46L8P6FgN79XmZ5/XTMm/1+3q7+f9ys/4Lgr/+G5LP/iue2/4zot/+V9cL8iNWs/3BxcNni4uIa////AP///wCfn5I4aGd17YeE3v+Ukfj8jovu/46L7/+Oi+//jYru/46M8f+FgNv/XmV3/3jMnf+D4rH/g+Cw/4fks/+K57b/jem4/5TywP6Q57n/bYh5/5KIjWf///8AAAAAAgAAAAL///8AkJCFdWtqhf+IheL/lZL5/JCN8P+PjO//j4zv/5GO8/+Hgt3/X2Z4/33Rof+I5rb/h+Sz/4nmtf+N6rn/lPPB/pHruvxxm4T/h3yDqP///wD///8A////Af///wH///8A////A5aWj5JtbIP/g4DW/5SR9vyVkvj+kY7y/5KP9P+Ig97/X2d4/4DUpf+N6rn/jeq4/5Lwvv+U88D8h9qu/3KVgv+Lgoe/////F////wCAgIAC////AP///wD///8B////AP///wOfn5l9dHR39HVzsf+Fg97/k4/x/ZiW/v+Nh+f/YWl7/4ngrv+W+MX/kuy8/onesP52uZb/dH54/5aOk6P///8W////AAAAAAL///8A////AP///wD///8A////Af///wD///8Ax8fDQJWVjbV5eX79amic/3h2vv93crf/WV9r/3W1kP95vZn/aZ2C/3eCfP+Ui5DNu7i7Xv///wD///8AgICAAv///wD///8A////AP///wD///8A////AP///wEAAAAB////AP///wi6urdDuLitj6WmmcuPj4rvc3Nz/YiEh/Whlp3Wt66zoLq3ulX///8T////AP///wD///8C////AP///wD///8A////AP8B/wD8AH8A+AAfAOAADwDgAAcAwAAHAIAAAwCAAAMAgAABAAB8AQAAfgEAAP4BAAD+AQAAfgEAAHwBAIAAAQCAAAMAgAADAMAABwDgAAcA4AAPAPgAHwD8AH8A/wH/ACgAAAAgAAAAQAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////KO3t7XXFxcWwqqqq25eXl/RwcHD9mJiY9Kurq9vHx8ew8PDwdf///yj///8A////AP///wD///8A////AP///wD///8A////AP///wD///8AAAAAAP///wD///8A////AP///wD///8A////AP///wD///8A9/f3TLS0tLpvb3H/UVFR/1VVWf9bW27/WVlz/1FRUf96ZG//c2Nr/1lWV/9RUVH/d3V2/7m5ubr5+flM////AP///wD///8A////AP///wD///8A////AP///wAAAAAA////AP///wD///8A////AP///wD///8A/f39HLW1tatbW13/V1de/2FgkP9rabv/cG7S/29u0/9paL7/UVFR/9GIrv/wlcX/75bE/8+Irf+ZcYb/XVhb/2FfYP+8vLyr/v7+HP///wD///8A////AP///wD///8A////AAAAAAD///8A////AP///wD///8A////AOvr60l2dnnpVVVZ/2ZlnP9ycdL/c3LW/3Jx1f9xcNT/cG/T/2ppvv9RUVH/zoSs/+yRwf/uk8L/7pPC/++UxP/pk8D/pXaP/1hVV/9/fn/p7+/vSf///wD///8A////AP///wD///8AAAAAAP///wD///8A////AP///wDg4OBWX19h/11dcv9zccr/d3XZ/3Z02P91c9f/dHLX/3Nx1v9xcNT/a2q//1FRUf/Ngqn/6o6+/+uQwP/tksH/7pPD/++Vxf/xl8b/3I64/3Jiav9lY2T/2dnZVv///wD///8A////AP///wAAAAAA////AP///wD///8A5OTkQ1tbXf9hYIH/eHfY/3l32/94dtr/d3ba/3Z12f90c9f/c3LW/3Nx1f9tbMH/UVFR/8l/pf/mirr/6Iy8/+mOvv/qj7//7JHB/++VxP/xl8b/04qx/1RUUv9ZWVj/6+vrQ////wD///8A////AAAAAAD///8A////APX19Q9mZmjfYF98/3t53P97ed3/enjc/3l32/93dtr/dnXZ/3Z02P91c9f/dXTY/25tw/9RUVH/yHyj/+WIuf/libn/54q7/+mNvf/rj7//7JHB/9WJsf9XVlX/Z2hb/3BxX/9vb23f+fn5D////wD///8AAAAAAP///wD///8AkZCSnFpaZ/97edn/fHre/3t53v97ed3/enjc/3l33P94dtv/dnXZ/3V02P92dNj/cG7D/1FRUf/FeaH/4oW2/+OGt//liLj/54q6/+mOvv/Sha3/V1VV/2doW//FyYL/xcqC/19fWf+fn5+c////AP///wAAAAAA////ANjY2DhRUVL/dXPA/3994f9+fOD/fXvf/3x63v97ed3/enjc/3l32/94dtr/eHba/3d12f9xb8T/UVFR/8J1nf/fgLH/4IOz/+KEtf/liLn/zoCq/1dVVf9naFr/w8eA/83Shf/P1Yb/q652/1JSUf/h4eE4////AAAAAAD///8Afn6ApWNigv+BfuL/gH3h/3584P99e9//fHre/3x63v97ed3/eXjc/3l32/95d9v/d3ba/3Fwxf9RUVH/wXSc/9x9r//fgbL/4YO0/8t9pv9XVVT/Z2ha/8LHgf/N0oX/ztOF/8/Uhv/S14b/c3Vh/42Ni6X///8AAAAAAOfn5xJRUVH/eXbG/4F/4/+AfuL/f33h/3584P99e+D/fHrf/3x63v97ed3/e3ne/3p43f9ycMH/Y2OR/1FRUf+NY3j/w3Sd/9x9rv/IeaL/V1VU/2doWv/DyIH/zNGF/87Thf/Q1Yb/0daG/9TZh/+ytnj/UlJS/+/v7xIAAAAAq6urYF1cav+DgeX/goDk/4F/4/+AfuL/f33h/3994f9+fOD/fXvf/3x63v95d9X/YF99/1FRUb9sbG+AZmVmgG1qa4BRUVG/fWBv/1dVVP9naFr/xMiB/83Shv/O04b/z9WG/9HWhv/S14b/1NqH/9TZhv9fYFn/t7e3YAAAAAB6enyeaGeV/4SC5v+DgeX/goDk/4F+4/+BfuP/f33h/3584P9+fOD/fHrb/1xcbv9sbG6g39/fQP///wD///8A////ANra2kBbWlugVVVT/8LHgf/O04X/ztOF/8/Uhf/Q1Yb/0teG/9PZh//V24f/2N6I/4aIZv+IiIeeAAAAAFpaXMx0crX/hYLm/4SC5v+DgeX/goDk/4KA5P+Bf+P/gH7i/3994f9oZ5v/X19hv/Hx8SD///8A////AP///wD///8A////AOfn5yBcXFq/m55w/9DVhv/R1ob/0teG/9LXhv/T2Yb/1dqH/9jdiP/Z34j/o6Zy/2VlY8wAAAAAUVFR7Hx7zP+GhOj/hYLm/4SB5f+Egub/g4Hl/4KA5P+Bf+P/gX/j/1paZP+xsbFA////AP///wD///8A////AP///wD///8A////AKampkBqa17/0teG/9LXhv/T2Yf/1dqH/9bciP/Y3oj/2N6H/9rgiP+5vXr/UlJS7AAAAABRUVH7gX7W/4eE6P+GhOj/hYPn/4WC5v+EgeX/g4Hl/4OB5f9/fNv/UVFR/9zc3AD///8A////AP///wD///8A////AP///wD///8A0NDQAFRUU//R14b/1dqH/9Xbh//W3If/192H/9jeh//a4Ij/3OKI/8PJfv9RUVH7AAAAAFFRUfuCgNj/iIbq/4eE6P+HhOj/hoPn/4WC5v+Egub/hILm/4B+3f9RUVH/3NzcAP///wD///8A////AP///wD///8A////AP///wDLy8sAUlJR/87ThP/W3Ij/192H/9nfiP/Z34j/2uCI/9vhiP/d44j/xMh+/1FRUfsAAAAAUVFR7H99zv+Jh+v/iIXq/4iF6v+Hhen/hoTo/4aD5/+Fgub/hYLm/1taZP+xsbFA////AP///wD///8A////AP///wD///8A////AJWVlUBSUlH/UlJR/25vXf+Ul2z/ur97/9jeh//c44j/3uWJ/97lif+8wXr/UVFR7AAAAABaWlzMd3W4/4qH6/+Kh+v/iYbq/4iF6f+HhOj/iIXp/4aE6P+GhOj/a2qe/19fYr/x8fEg////AP///wD///8A////AP///wDp6ekgW1xcv2SWe/9nm4D/Wm9k/1daVv9RUVH/VlZT/3p8Yf+ipnH/ys+A/6ircv9lZmPMAAAAAHp6fJ5rapf/i4js/4uJ7f+KiOz/iYbq/4mG6v+Ihur/iIbq/4eE6P+FguP/Xl5w/2xsb6Df399A////AP///wD///8A2traQGVnZqBccGX/d9Sk/3vZqf+B367/g+Gw/33No/9qk33/W2lh/1ZXVP9RUVH/U1NR/3d3dZ4AAAAAq6urYF5ea/+Ni+//jInt/4uI7P+LiOz/iofr/4mG6v+Jhur/iIXp/4iF6f+EguD/ZGSB/1FRUb9ra2+AZWdmgGpubIBRUVG/Xn1u/3TOn/9516f/ftyr/4Herf+G47L/iOa1/4vot/+Q7bz/k+++/4PHo/9SVFP/oaGhYAAAAADn5+cSUVFR/4F/z/+Niu7/jInt/4yJ7f+LiOz/i4nt/4qI7P+LiOz/iofr/4mG6v+Jhur/fnzN/2ZljP9RUVH/YpB5/2++lf921KT/edem/3vZqf+A3q3/hOGw/4bjs/+J5rX/juu6/5Dsu/+U8cD/g8Wi/1JTUv/t7e0SAAAAAP///wB+foClZ2aG/46L8P+Oi/D/jYru/4yJ7f+Mie3/i4js/4uI7P+LiOz/iofr/4qH6/+KiOz/eXjA/1FRUf9zyJz/eden/3zaqf982qn/ftys/4Hfrv+G47L/iOW0/4rntv+N6rn/ku++/5XxwP9le2//iYqKpf///wAAAAAA////ANjY2DhRUVL/gH7L/4+M8P+Oi+//jovv/42K7v+Niu7/jIru/4yK7v+Mie3/jInt/4uI7P96eMD/UVFR/3bLoP972an/ftyr/4Herv+D4K//heOy/4jmtf+L6Lf/juu5/5DtvP+V8cD/gcGf/1NUU//l5eU4////AAAAAAD///8A////AJGRkpxdXGn/jYrp/5CN8f+PjPD/j4zw/46L7/+Oi+//jYru/42K7v+Niu7/jYru/3x5wv9RUVH/ec6i/4Herv+B367/hOGw/4bjsv+I5bT/i+i3/43quf+Q7bz/k+++/4/jtv9bY17/nZ6enP///wD///8AAAAAAP///wD///8A9vb2D2Zmad9mZYL/kI3w/5CN8f+QjfH/j4zw/4+M8P+PjPD/j4zw/46L7/+Oi+//fHrD/1FRUf9/0qb/hOGw/4Xjsv+F47L/iOa1/4vot/+O67r/kO28/5Lvvf+S7b3/ZHht/3N1dN/6+voP////AP///wAAAAAA////AP///wD///8A5OTkQ1xcXv9oZ4j/kI3v/5GN8f+RjfH/kI3x/5CN8f+QjfH/kI3x/5CN8f99e8P/UVFR/3/UqP+I5bT/iOW0/4vot/+L6Lf/juu5/4/su/+S773/kem6/2Z9cf9gYmH/6+vrQ////wD///8A////AAAAAAD///8A////AP///wD///8A4ODgVl9fYf9iYnf/iojh/5KP8/+Sj/P/kY7y/5GO8v+RjvL/kY7y/358xf9RUVH/hdmt/4vot/+O67n/juu5/5Dtu/+Q7bv/ku++/4rXrv9hcGj/aGpp/+np6Vb///8A////AP///wD///8AAAAAAP///wD///8A////AP///wD///8A7OzsSXd3eelWVlr/dXOr/5CO7v+TkPT/k5D0/5KP8/+Sj/P/f33F/1FRUf+I267/kO28/5Dsu/+Q7Lv/ku+9/5Douv9zoon/U1VU/4GDgunx8fFJ////AP///wD///8A////AP///wAAAAAA////AP///wD///8A////AP///wD///8A/f39HLW1tatbW13/WVlg/3Bunv+Gg9T/k4/y/5SR9f+Bfsf/UVFR/4vfsv+S773/kOu7/4TKpf9ul4H/VlpY/19hYP/AwMCr////HP///wD///8A////AP///wD///8A////AAAAAAD///8A////AP///wD///8A////AP///wD///8A////APf390y0tLS6cG9y/1FRUf9WVlr/Y2J2/2Fgdv9RUVH/ZYBx/2N1a/9VV1b/UVFR/3R2df+/v7+6+vr6TP///wD///8A////AP///wD///8A////AP///wD///8AAAAAAP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8o7e3tdcXFxbCqqqrbl5eX9HBwcP2YmJj0q6ur28fHx7Dv7+91////KP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wAAAAAA//Af//+AA//+AAD//AAAf/gAAD/wAAAf4AAAD8AAAAfAAAAHgAAAA4AAAAOAAAADAAfAAQAP4AEAH/ABAB/wAQAf8AEAH/ABAA/gAQAHwAGAAAADgAAAA4AAAAPAAAAHwAAAB+AAAA/wAAAf+AAAP/wAAH/+AAD//4AD///wH/8="/>
<script id="notfound">window.onload=function(){document.body.innerHTML=""}</script>
<script language="javascript" type="text/javascript">
{//-----------------------------------------------------------------------------
//
// PURPOSE
//
// Krona is a flexible tool for exploring the relative proportions of
// hierarchical data, such as metagenomic classifications, using a
// radial, space-filling display. It is implemented using HTML5 and
// JavaScript, allowing charts to be explored locally or served over the
// Internet, requiring only a current version of any major web
// browser. Krona charts can be created using an Excel template or from
// common bioinformatic formats using the provided conversion scripts.
//
//
// COPYRIGHT LICENSE
//
// Copyright (c) 2011, Battelle National Biodefense Institute (BNBI);
// all rights reserved. Authored by: Brian Ondov, Nicholas Bergman, and
// Adam Phillippy
//
// This Software was prepared for the Department of Homeland Security
// (DHS) by the Battelle National Biodefense Institute, LLC (BNBI) as
// part of contract HSHQDC-07-C-00020 to manage and operate the National
// Biodefense Analysis and Countermeasures Center (NBACC), a Federally
// Funded Research and Development Center.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
//
// * Neither the name of the Battelle National Biodefense Institute nor
// the names of its contributors may be used to endorse or promote
// products derived from this software without specific prior written
// permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
//
// TRADEMARK LICENSE
//
// KRONA(TM) is a trademark of the Department of Homeland Security, and use
// of the trademark is subject to the following conditions:
//
// * Distribution of the unchanged, official code/software using the
// KRONA(TM) mark is hereby permitted by the Department of Homeland
// Security, provided that the software is distributed without charge
// and modification.
//
// * Distribution of altered source code/software using the KRONA(TM) mark
// is not permitted unless written permission has been granted by the
// Department of Homeland Security.
//
//
// FOR MORE INFORMATION VISIT
//
// https://github.com/marbl/Krona/wiki/
//
//-----------------------------------------------------------------------------
}
var canvas;
var context;
var svg; // for snapshot mode
var collapse = true;
var collapseCheckBox;
var collapseLast;
var compress;
var compressCheckBox;
var maxAbsoluteDepthText;
var maxAbsoluteDepthButtonDecrease;
var maxAbsoluteDepthButtonIncrease;
var fontSize = 11;
var fontSizeText;
var fontSizeButtonDecrease;
var fontSizeButtonIncrease;
var fontSizeLast;
var radiusButtonDecrease;
var radiusButtonIncrease;
var shorten;
var shortenCheckBox;
var maxAbsoluteDepth;
var backButton;
var upButton;
var forwardButton;
var snapshotButton;
var snapshotMode = false;
var details;
var detailsName;
var search;
var searchResults;
var nSearchResults;
var useHueCheckBox;
var useHueDiv;
var datasetDropDown;
var datasetButtonLast;
var datasetButtonPrev;
var datasetButtonNext;
var keyControl;
var showKeys = true;
var linkButton;
var linkText;
var frame;
// Node references. Note that the meanings of 'selected' and 'focused' are
// swapped in the docs.
//
var head; // the root of the entire tree
var selectedNode = 0; // the root of the current view
var focusNode = 0; // a node chosen for more info (single-click)
var highlightedNode = 0; // mouse hover node
var highlightingHidden = false;
var nodes = new Array();
var currentNodeID = 0; // to iterate while loading
var nodeHistory = new Array();
var nodeHistoryPosition = 0;
var dataEnabled = false; // true when supplemental files are present
// store non-Krona GET variables so they can be passed on to links
//
var getVariables = new Array();
// selectedNodeLast is separate from the history, since we need to check
// properties of the last node viewed when browsing through the history
//
var selectedNodeLast = 0;
var zoomOut = false;
// temporary zoom-in while holding the mouse button on a wedge
//
var quickLook = false; // true when in quick look state
var mouseDown = false;
var mouseDownTime; // to detect mouse button hold
var quickLookHoldLength = 200;
var imageWidth;
var imageHeight;
var centerX;
var centerY;
var gRadius;
var updateViewNeeded = false;
// Determines the angle that the pie chart starts at. 90 degrees makes the
// center label consistent with the children.
//
var rotationOffset = Math.PI / 2;
var buffer;
var bufferFactor = .1;
// The maps are the small pie charts showing the current slice being viewed.
//
var mapBuffer = 10;
var mapRadius = 0;
var maxMapRadius = 25;
var mapWidth = 150;
var maxLabelOverhang = Math.PI * 4.18;
// Keys are the labeled boxes for slices in the highest level that are too thin
// to label.
//
var maxKeySizeFactor = 2; // will be multiplied by font size
var keySize;
var keys;
var keyBuffer = 10;
var currentKey;
var keyMinTextLeft;
var keyMinAngle;
var minRingWidthFactor = 5; // will be multiplied by font size
var maxPossibleDepth; // the theoretical max that can be displayed
var maxDisplayDepth; // the actual depth that will be displayed
var headerHeight = 0;//document.getElementById('options').clientHeight;
var historySpacingFactor = 1.6; // will be multiplied by font size
var historyAlphaDelta = .25;
// appearance
//
var lineOpacity = 0.3;
var saturation = 0.5;
var lightnessBase = 0.6;
var lightnessMax = .8;
var thinLineWidth = .3;
var highlightLineWidth = 1.5;
var labelBoxBuffer = 6;
var labelBoxRounding = 15;
var labelWidthFudge = 1.05; // The width of unshortened labels are set slightly
// longer than the name width so the animation
// finishes faster.
var fontNormal;
var fontBold;
var fontFamily = 'sans-serif';
//var fontFaceBold = 'bold Arial';
var nodeRadius;
var angleFactor;
var tickLength;
var compressedRadii;
// colors
//
var highlightFill = 'rgba(255, 255, 255, .3)';
var colorUnclassified = 'rgb(220,220,220)';
// label staggering
//
var labelOffsets; // will store the current offset at each depth
//
// This will store pointers to the last node that had a label in each offset (or "track") of a
// each depth. These will be used to shorten neighboring labels that would overlap.
// The [nLabelNodes] index will store the last node with a radial label.
// labelFirstNodes is the same, but to check for going all the way around and
// overlapping the first labels.
//
var labelLastNodes;
var labelFirstNodes;
//
var nLabelOffsets = 3; // the number of offsets to use
var mouseX = -1;
var mouseY = -1;
// tweening
//
var progress = 0; // for tweening; goes from 0 to 1.
var progressLast = 0;
var tweenFactor = 0; // progress converted by a curve for a smoother effect.
var tweenLength = 850; // in ms
var tweenCurvature = 13;
//
// tweenMax is used to scale the sigmoid function so its range is [0,1] for the
// domain [0,1]
//
var tweenMax = 1 / (1 + Math.exp(-tweenCurvature / 2));
//
var tweenStartTime;
// for framerate debug
//
var tweenFrames = 0;
var fpsDisplay = document.getElementById('frameRate');
// Arrays to translate xml attribute names into displayable attribute names
//
var attributes = new Array();
//
var magnitudeIndex; // the index of attribute arrays used for magnitude
var membersAssignedIndex;
var membersSummaryIndex;
// For defining gradients
//
var hueDisplayName;
var hueStopPositions;
var hueStopHues;
var hueStopText;
// multiple datasets
//
var currentDataset = 0;
var lastDataset = 0;
var datasets = 1;
var datasetNames;
var datasetSelectSize = 30;
var datasetAlpha = new Tween(0, 0);
var datasetWidths = new Array();
var datasetChanged;
var datasetSelectWidth = 50;
window.onload = load;
var image;
var hiddenPattern;
var loadingImage;
var logoImage;
function resize()
{
imageWidth = window.innerWidth;
imageHeight = window.innerHeight;
if ( ! snapshotMode )
{
context.canvas.width = imageWidth;
context.canvas.height = imageHeight;
}
if ( datasetDropDown )
{
var ratio =
(datasetDropDown.offsetTop + datasetDropDown.clientHeight) * 2 /
imageHeight;
if ( ratio > 1 )
{
ratio = 1;
}
ratio = Math.sqrt(ratio);
datasetSelectWidth =
(datasetDropDown.offsetLeft + datasetDropDown.clientWidth) * ratio;
}
var leftMargin = datasets > 1 ? datasetSelectWidth + 30 : 0;
var minDimension = imageWidth - mapWidth - leftMargin > imageHeight ?
imageHeight :
imageWidth - mapWidth - leftMargin;
maxMapRadius = minDimension * .03;
buffer = minDimension * bufferFactor;
margin = minDimension * .015;
centerX = (imageWidth - mapWidth - leftMargin) / 2 + leftMargin;
centerY = imageHeight / 2;
gRadius = minDimension / 2 - buffer;
//context.font = '11px sans-serif';
}
function handleResize()
{
updateViewNeeded = true;
}
function Attribute()
{
}
function Tween(start, end)
{
this.start = start;
this.end = end;
this.current = this.start;
this.current = function()
{
if ( progress == 1 || this.start == this.end )
{
return this.end;
}
else
{
return this.start + tweenFactor * (this.end - this.start);
}
};
this.setTarget = function(target)
{
this.start = this.current();
this.end = target;
}
}
function Node()
{
this.id = currentNodeID;
currentNodeID++;
nodes[this.id] = this;
this.angleStart = new Tween(Math.PI, 0);
this.angleEnd = new Tween(Math.PI, 0);
this.radiusInner = new Tween(1, 1);
this.labelRadius = new Tween(1, 1);
this.labelWidth = new Tween(0, 0);
this.scale = new Tween(1, 1); // TEMP
this.radiusOuter = new Tween(1, 1);
this.r = new Tween(255, 255);
this.g = new Tween(255, 255);
this.b = new Tween(255, 255);
this.alphaLabel = new Tween(0, 1);
this.alphaLine = new Tween(0, 1);
this.alphaArc = new Tween(0, 0);
this.alphaWedge = new Tween(0, 1);
this.alphaOther = new Tween(0, 1);
this.alphaPattern = new Tween(0, 0);
this.children = Array();
this.parent = 0;
this.attributes = new Array(attributes.length);
this.addChild = function(child)
{
this.children.push(child);
};
this.addLabelNode = function(depth, labelOffset)
{
if ( labelHeadNodes[depth][labelOffset] == 0 )
{
// this will become the head node for this list
labelHeadNodes[depth][labelOffset] = this;
this.labelPrev = this;
}
var head = labelHeadNodes[depth][labelOffset];
this.labelNext = head;
this.labelPrev = head.labelPrev;
head.labelPrev.labelNext = this;
head.labelPrev = this;
}
this.canDisplayDepth = function()
{
// whether this node is at a depth that can be displayed, according
// to the max absolute depth
return this.depth <= maxAbsoluteDepth;
}
this.canDisplayHistory = function()
{
var radiusInner;
if ( compress )
{
radiusInner = compressedRadii[0];
}
else
{
radiusInner = nodeRadius;
}
return (
-this.labelRadius.end * gRadius +
historySpacingFactor * fontSize / 2 <
radiusInner * gRadius
);
}
this.canDisplayLabelCurrent = function()
{
return (
(this.angleEnd.current() - this.angleStart.current()) *
(this.radiusInner.current() * gRadius + gRadius) >=
minWidth());
}
this.checkHighlight = function()
{
if ( this.children.length == 0 && this == focusNode )
{
//return false;
}
if ( this.hide )
{
return false;
}
if ( this.radiusInner.end == 1 )
{
// compressed to the outside; don't check
return false;
}
var highlighted = false;
var angleStartCurrent = this.angleStart.current() + rotationOffset;
var angleEndCurrent = this.angleEnd.current() + rotationOffset;
var radiusInner = this.radiusInner.current() * gRadius;
for ( var i = 0; i < this.children.length; i++ )
{
highlighted = this.children[i].checkHighlight();
if ( highlighted )
{
return true;
}
}
if ( this.radial )
{
var angleText = (angleStartCurrent + angleEndCurrent) / 2;
var radiusText = (gRadius + radiusInner) / 2;
context.rotate(angleText);
context.beginPath();
context.moveTo(radiusText, -fontSize);
context.lineTo(radiusText, fontSize);
context.lineTo(radiusText + centerX, fontSize);
context.lineTo(radiusText + centerX, -fontSize);
context.closePath();
context.rotate(-angleText);
if ( context.isPointInPath(mouseX - centerX, mouseY - centerY) )
{
var label = String(this.getPercentage()) + '%' + ' ' + this.name;
if ( this.searchResultChildren() )
{
label += searchResultString(this.searchResultChildren());
}
if
(
Math.sqrt((mouseX - centerX) * (mouseX - centerX) + (mouseY - centerY) * (mouseY - centerY)) <
radiusText + measureText(label)
)
{
highlighted = true;
}
}
}
else
{
for ( var i = 0; i < this.hiddenLabels.length; i++ )
{
var hiddenLabel = this.hiddenLabels[i];
context.rotate(hiddenLabel.angle);
context.beginPath();
context.moveTo(gRadius, -fontSize);
context.lineTo(gRadius, fontSize);
context.lineTo(gRadius + centerX, fontSize);
context.lineTo(gRadius + centerX, -fontSize);
context.closePath();
context.rotate(-hiddenLabel.angle);
if ( context.isPointInPath(mouseX - centerX, mouseY - centerY) )
{
var label = String(hiddenLabel.value) + ' more';
if ( hiddenLabel.search )
{
label += searchResultString(hiddenLabel.search);
}
if
(
Math.sqrt((mouseX - centerX) * (mouseX - centerX) + (mouseY - centerY) * (mouseY - centerY)) <
gRadius + fontSize + measureText(label)
)
{
highlighted = true;
break;
}
}
}
}
if ( ! highlighted && this != selectedNode && ! this.getCollapse() )
{
context.beginPath();
context.arc(0, 0, radiusInner, angleStartCurrent, angleEndCurrent, false);
context.arc(0, 0, gRadius, angleEndCurrent, angleStartCurrent, true);
context.closePath();
if ( context.isPointInPath(mouseX - centerX, mouseY - centerY) )
{
highlighted = true;
}
if
(
! highlighted &&
(angleEndCurrent - angleStartCurrent) *
(radiusInner + gRadius) <
minWidth() &&
this.getDepth() == selectedNode.getDepth() + 1
)
{
if ( showKeys && this.checkHighlightKey() )
{
highlighted = true;
}
}
}
if ( highlighted )
{
if ( this != highlightedNode )
{
// document.body.style.cursor='pointer';
}
highlightedNode = this;
}
return highlighted;
}
this.checkHighlightCenter = function()
{
if ( ! this.canDisplayHistory() )
{
return;
}
var cx = centerX;
var cy = centerY - this.labelRadius.end * gRadius;
//var dim = context.measureText(this.name);
var width = this.nameWidth;
if ( this.searchResultChildren() )
{
var results = searchResultString(this.searchResultChildren());
var dim = context.measureText(results);
width += dim.width;
}
if
(
mouseX > cx - width / 2 &&
mouseX < cx + width / 2 &&
mouseY > cy - historySpacingFactor * fontSize / 2 &&
mouseY < cy + historySpacingFactor * fontSize / 2
)
{
highlightedNode = this;
return;
}
if ( this.getParent() )
{
this.getParent().checkHighlightCenter();
}
}
this.checkHighlightKey = function()
{
var offset = keyOffset();
var xMin = imageWidth - keySize - margin - this.keyNameWidth - keyBuffer;
var xMax = imageWidth - margin;
var yMin = offset;
var yMax = offset + keySize;
currentKey++;
return (
mouseX > xMin &&
mouseX < xMax &&
mouseY > yMin &&
mouseY < yMax);
}
this.checkHighlightMap = function()
{
if ( this.parent )
{
this.parent.checkHighlightMap();
}
if ( this.getCollapse() || this == focusNode )
{
return;
}
var box = this.getMapPosition();
if
(
mouseX > box.x - mapRadius &&
mouseX < box.x + mapRadius &&
mouseY > box.y - mapRadius &&
mouseY < box.y + mapRadius
)
{
highlightedNode = this;
}
}
/* this.collapse = function()
{
for (var i = 0; i < this.children.length; i++ )
{
this.children[i] = this.children[i].collapse();
}
if
(
this.children.length == 1 &&
this.children[0].magnitude == this.magnitude
)
{
this.children[0].parent = this.parent;
this.children[0].getDepth() = this.parent.getDepth() + 1;
return this.children[0];
}
else
{
return this;
}
}
*/
this.draw = function(labelMode, selected, searchHighlighted)
{
var depth = this.getDepth() - selectedNode.getDepth() + 1;
// var hidden = false;
if ( selectedNode == this )
{
selected = true;
}
var angleStartCurrent = this.angleStart.current() + rotationOffset;
var angleEndCurrent = this.angleEnd.current() + rotationOffset;
var radiusInner = this.radiusInner.current() * gRadius;
var canDisplayLabelCurrent = this.canDisplayLabelCurrent();
var hiddenSearchResults = false;
/* if ( ! this.hide )
{
for ( var i = 0; i < this.children.length; i++ )
{
if ( this.children[i].hide && this.children[i].searchResults )
{
hiddenSearchResults = true;
}
}
}
*/
var drawChildren =
( ! this.hide || ! this.hidePrev && progress < 1 ) &&
( ! this.hideAlone || ! this.hideAlonePrev && progress < 1 );
// if ( this.alphaWedge.current() > 0 || this.alphaLabel.current() > 0 )
{
var lastChildAngleEnd;
if ( this.hasChildren() )//canDisplayChildren )
{
lastChildAngleEnd =
this.children[this.children.length - 1].angleEnd.current()
+ rotationOffset;
}
if ( labelMode )
{
var drawRadial =
!(
this.parent &&
this.parent != selectedNode &&
angleEndCurrent == this.parent.angleEnd.current() + rotationOffset
);
if ( angleStartCurrent != angleEndCurrent )
{
this.drawLines(angleStartCurrent, angleEndCurrent, radiusInner, drawRadial, selected);
}
var alphaOtherCurrent = this.alphaOther.current();
var childRadiusInner;
if ( this == selectedNode || alphaOtherCurrent )
{
childRadiusInner =
this.children[this.children.length - 1].radiusInner.current() * gRadius;
}
if ( this == selectedNode )
{
this.drawReferenceRings(childRadiusInner);
}
if
(
selected &&
! searchHighlighted &&
this != selectedNode &&
(
this.isSearchResult ||
this.hideAlone && this.searchResultChildren() ||
false
// this.hide &&
// this.containsSearchResult
)
)
{
context.globalAlpha = this.alphaWedge.current();
drawWedge
(
angleStartCurrent,
angleEndCurrent,
radiusInner,
gRadius,
highlightFill,
0,
true
);
if
(
this.keyed &&
! showKeys &&
this.searchResults &&
! searchHighlighted &&
this != highlightedNode &&
this != focusNode
)
{
var angle = (angleEndCurrent + angleStartCurrent) / 2;
this.drawLabel(angle, true, false, true, true);
}
//this.drawHighlight(false);
searchHighlighted = true;
}
if
(
this == selectedNode ||
// true
//(canDisplayLabelCurrent) &&
this != highlightedNode &&
this != focusNode
)
{
if ( this.radial != this.radialPrev && this.alphaLabel.end == 1 )
{
context.globalAlpha = tweenFactor;
}
else
{
context.globalAlpha = this.alphaLabel.current();
}
this.drawLabel
(
(angleStartCurrent + angleEndCurrent) / 2,
this.hideAlone && this.searchResultChildren() ||
(this.isSearchResult || hiddenSearchResults) && selected,
this == selectedNode && ! this.radial,
selected,
this.radial
);
if ( this.radial != this.radialPrev && this.alphaLabel.start == 1 && progress < 1 )
{
context.globalAlpha = 1 - tweenFactor;
this.drawLabel
(
(angleStartCurrent + angleEndCurrent) / 2,
(this.isSearchResult || hiddenSearchResults) && selected,
this == selectedNodeLast && ! this.radialPrev,
selected,
this.radialPrev
);
}
}
if
(
alphaOtherCurrent &&
lastChildAngleEnd != null
)
{
if
(
(angleEndCurrent - lastChildAngleEnd) *
(childRadiusInner + gRadius) >=
minWidth()
)
{
//context.font = fontNormal;
context.globalAlpha = this.alphaOther.current();
drawTextPolar
(
this.getUnclassifiedText(),
this.getUnclassifiedPercentage(),
(lastChildAngleEnd + angleEndCurrent) / 2,
(childRadiusInner + gRadius) / 2,
true,
false,
false,
0,
0
);
}
}
if ( this == selectedNode && this.keyUnclassified && showKeys )
{
this.drawKey
(
(lastChildAngleEnd + angleEndCurrent) / 2,
false,
false
);
}
}
else
{
var alphaWedgeCurrent = this.alphaWedge.current();
if ( alphaWedgeCurrent || this.alphaOther.current() )
{
var currentR = this.r.current();
var currentG = this.g.current();
var currentB = this.b.current();
var fill = rgbText(currentR, currentG, currentB);
var radiusOuter;
var lastChildAngle;
var truncateWedge =
(
this.hasChildren() &&
! this.keyed &&
(compress || depth < maxDisplayDepth) &&
drawChildren
);
if ( truncateWedge )
{
radiusOuter = this.children[0].radiusInner.current() * gRadius;
}
else
{
radiusOuter = gRadius;
}
/*
if ( this.hasChildren() )
{
radiusOuter = this.children[0].getUncollapsed().radiusInner.current() * gRadius + 1;
}
else
{ // TEMP
radiusOuter = radiusInner + nodeRadius * gRadius;
if ( radiusOuter > gRadius )
{
radiusOuter = gRadius;
}
}
*/
context.globalAlpha = alphaWedgeCurrent;
if ( radiusInner != radiusOuter )
{
drawWedge
(
angleStartCurrent,
angleEndCurrent,
radiusInner,
radiusOuter,//this.radiusOuter.current() * gRadius,
//'rgba(0, 200, 0, .1)',
fill,
this.alphaPattern.current()
);
if ( truncateWedge )
{
// fill in the extra space if the sum of our childrens'
// magnitudes is less than ours
if ( lastChildAngleEnd < angleEndCurrent )//&& false) // TEMP
{
if ( radiusOuter > 1 )
{
// overlap slightly to hide the seam
// radiusOuter -= 1;
}
if ( alphaWedgeCurrent < 1 )
{
context.globalAlpha = this.alphaOther.current();
drawWedge
(
lastChildAngleEnd,
angleEndCurrent,
radiusOuter,
gRadius,
colorUnclassified,
0
);
context.globalAlpha = alphaWedgeCurrent;