@jbrowse/plugin-sequence 2.3.2 → 2.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (21) hide show
  1. package/dist/DivSequenceRenderer/components/DivSequenceRendering.d.ts +8 -10
  2. package/dist/DivSequenceRenderer/components/DivSequenceRendering.js +1 -1
  3. package/dist/DivSequenceRenderer/components/DivSequenceRendering.js.map +1 -1
  4. package/dist/SequenceSearchAdapter/SequenceSearchAdapter.js +2 -1
  5. package/dist/SequenceSearchAdapter/SequenceSearchAdapter.js.map +1 -1
  6. package/esm/DivSequenceRenderer/components/DivSequenceRendering.d.ts +8 -10
  7. package/esm/DivSequenceRenderer/components/DivSequenceRendering.js +1 -1
  8. package/esm/DivSequenceRenderer/components/DivSequenceRendering.js.map +1 -1
  9. package/esm/SequenceSearchAdapter/SequenceSearchAdapter.js +2 -1
  10. package/esm/SequenceSearchAdapter/SequenceSearchAdapter.js.map +1 -1
  11. package/package.json +3 -3
  12. package/src/DivSequenceRenderer/components/DivSequenceRendering.test.tsx +161 -0
  13. package/src/DivSequenceRenderer/components/DivSequenceRendering.tsx +16 -19
  14. package/src/DivSequenceRenderer/components/__snapshots__/DivSequenceRendering.test.tsx.snap +1426 -0
  15. package/src/IndexedFastaAdapter/IndexedFastaAdapter.test.ts +4 -3
  16. package/src/SequenceSearchAdapter/SequenceSearchAdapter.ts +2 -1
  17. package/src/TwoBitAdapter/TwoBitAdapter.test.ts +4 -3
  18. package/src/__snapshots__/{index.test.js.snap → index.test.ts.snap} +0 -0
  19. package/src/{index.test.js → index.test.ts} +5 -10
  20. package/src/DivSequenceRenderer/components/DivSequenceRendering.test.js +0 -211
  21. package/src/DivSequenceRenderer/components/__snapshots__/DivSequenceRendering.test.js.snap +0 -67
@@ -0,0 +1,1426 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders with one feature reversed with a correct seq, zoomed in, should render nicely 1`] = `
4
+ <div>
5
+ <svg
6
+ data-testid="sequence_track"
7
+ height="200"
8
+ style="width: 20000px; height: 200px;"
9
+ width="20000"
10
+ >
11
+ <rect
12
+ fill="#d8d8d8"
13
+ height="20"
14
+ stroke="#555"
15
+ width="60"
16
+ x="19900"
17
+ y="0"
18
+ />
19
+ <text
20
+ dominant-baseline="middle"
21
+ text-anchor="middle"
22
+ x="19930"
23
+ y="10"
24
+ />
25
+ <rect
26
+ fill="#d8d8d8"
27
+ height="20"
28
+ stroke="#555"
29
+ width="60"
30
+ x="19840"
31
+ y="0"
32
+ />
33
+ <text
34
+ dominant-baseline="middle"
35
+ text-anchor="middle"
36
+ x="19870"
37
+ y="10"
38
+ />
39
+ <rect
40
+ fill="#d8d8d8"
41
+ height="20"
42
+ stroke="#555"
43
+ width="60"
44
+ x="19780"
45
+ y="0"
46
+ />
47
+ <text
48
+ dominant-baseline="middle"
49
+ text-anchor="middle"
50
+ x="19810"
51
+ y="10"
52
+ />
53
+ <rect
54
+ fill="#adadad"
55
+ height="20"
56
+ stroke="#555"
57
+ width="60"
58
+ x="19920"
59
+ y="20"
60
+ />
61
+ <text
62
+ dominant-baseline="middle"
63
+ text-anchor="middle"
64
+ x="19950"
65
+ y="30"
66
+ />
67
+ <rect
68
+ fill="#adadad"
69
+ height="20"
70
+ stroke="#555"
71
+ width="60"
72
+ x="19860"
73
+ y="20"
74
+ />
75
+ <text
76
+ dominant-baseline="middle"
77
+ text-anchor="middle"
78
+ x="19890"
79
+ y="30"
80
+ />
81
+ <rect
82
+ fill="#adadad"
83
+ height="20"
84
+ stroke="#555"
85
+ width="60"
86
+ x="19800"
87
+ y="20"
88
+ />
89
+ <text
90
+ dominant-baseline="middle"
91
+ text-anchor="middle"
92
+ x="19830"
93
+ y="30"
94
+ />
95
+ <rect
96
+ fill="#8f8f8f"
97
+ height="20"
98
+ stroke="#555"
99
+ width="60"
100
+ x="19940"
101
+ y="40"
102
+ />
103
+ <text
104
+ dominant-baseline="middle"
105
+ text-anchor="middle"
106
+ x="19970"
107
+ y="50"
108
+ />
109
+ <rect
110
+ fill="#8f8f8f"
111
+ height="20"
112
+ stroke="#555"
113
+ width="60"
114
+ x="19880"
115
+ y="40"
116
+ />
117
+ <text
118
+ dominant-baseline="middle"
119
+ text-anchor="middle"
120
+ x="19910"
121
+ y="50"
122
+ />
123
+ <rect
124
+ fill="#8f8f8f"
125
+ height="20"
126
+ stroke="#555"
127
+ width="60"
128
+ x="19820"
129
+ y="40"
130
+ />
131
+ <text
132
+ dominant-baseline="middle"
133
+ text-anchor="middle"
134
+ x="19850"
135
+ y="50"
136
+ />
137
+ <rect
138
+ fill="#f44336"
139
+ height="20"
140
+ stroke="#555"
141
+ width="20"
142
+ x="19960"
143
+ y="60"
144
+ />
145
+ <text
146
+ dominant-baseline="middle"
147
+ fill="white"
148
+ text-anchor="middle"
149
+ x="19970"
150
+ y="70"
151
+ >
152
+ T
153
+ </text>
154
+ <rect
155
+ fill="#aaa"
156
+ height="20"
157
+ stroke="#555"
158
+ width="20"
159
+ x="19940"
160
+ y="60"
161
+ />
162
+ <text
163
+ dominant-baseline="middle"
164
+ fill="black"
165
+ text-anchor="middle"
166
+ x="19950"
167
+ y="70"
168
+ >
169
+ B
170
+ </text>
171
+ <rect
172
+ fill="#ffc107"
173
+ height="20"
174
+ stroke="#555"
175
+ width="20"
176
+ x="19920"
177
+ y="60"
178
+ />
179
+ <text
180
+ dominant-baseline="middle"
181
+ fill="black"
182
+ text-anchor="middle"
183
+ x="19930"
184
+ y="70"
185
+ >
186
+ G
187
+ </text>
188
+ <rect
189
+ fill="#aaa"
190
+ height="20"
191
+ stroke="#555"
192
+ width="20"
193
+ x="19900"
194
+ y="60"
195
+ />
196
+ <text
197
+ dominant-baseline="middle"
198
+ fill="black"
199
+ text-anchor="middle"
200
+ x="19910"
201
+ y="70"
202
+ >
203
+ D
204
+ </text>
205
+ <rect
206
+ fill="#aaa"
207
+ height="20"
208
+ stroke="#555"
209
+ width="20"
210
+ x="19880"
211
+ y="60"
212
+ />
213
+ <text
214
+ dominant-baseline="middle"
215
+ fill="black"
216
+ text-anchor="middle"
217
+ x="19890"
218
+ y="70"
219
+ >
220
+ E
221
+ </text>
222
+ <rect
223
+ fill="#aaa"
224
+ height="20"
225
+ stroke="#555"
226
+ width="20"
227
+ x="19860"
228
+ y="60"
229
+ />
230
+ <text
231
+ dominant-baseline="middle"
232
+ fill="black"
233
+ text-anchor="middle"
234
+ x="19870"
235
+ y="70"
236
+ >
237
+ F
238
+ </text>
239
+ <rect
240
+ fill="#2196f3"
241
+ height="20"
242
+ stroke="#555"
243
+ width="20"
244
+ x="19840"
245
+ y="60"
246
+ />
247
+ <text
248
+ dominant-baseline="middle"
249
+ fill="white"
250
+ text-anchor="middle"
251
+ x="19850"
252
+ y="70"
253
+ >
254
+ C
255
+ </text>
256
+ <rect
257
+ fill="#aaa"
258
+ height="20"
259
+ stroke="#555"
260
+ width="20"
261
+ x="19820"
262
+ y="60"
263
+ />
264
+ <text
265
+ dominant-baseline="middle"
266
+ fill="black"
267
+ text-anchor="middle"
268
+ x="19830"
269
+ y="70"
270
+ >
271
+ H
272
+ </text>
273
+ <rect
274
+ fill="#aaa"
275
+ height="20"
276
+ stroke="#555"
277
+ width="20"
278
+ x="19800"
279
+ y="60"
280
+ />
281
+ <text
282
+ dominant-baseline="middle"
283
+ fill="black"
284
+ text-anchor="middle"
285
+ x="19810"
286
+ y="70"
287
+ >
288
+ I
289
+ </text>
290
+ <rect
291
+ fill="#4caf50"
292
+ height="20"
293
+ stroke="#555"
294
+ width="20"
295
+ x="19960"
296
+ y="80"
297
+ />
298
+ <text
299
+ dominant-baseline="middle"
300
+ fill="white"
301
+ text-anchor="middle"
302
+ x="19970"
303
+ y="90"
304
+ >
305
+ A
306
+ </text>
307
+ <rect
308
+ fill="#aaa"
309
+ height="20"
310
+ stroke="#555"
311
+ width="20"
312
+ x="19940"
313
+ y="80"
314
+ />
315
+ <text
316
+ dominant-baseline="middle"
317
+ fill="black"
318
+ text-anchor="middle"
319
+ x="19950"
320
+ y="90"
321
+ >
322
+ B
323
+ </text>
324
+ <rect
325
+ fill="#2196f3"
326
+ height="20"
327
+ stroke="#555"
328
+ width="20"
329
+ x="19920"
330
+ y="80"
331
+ />
332
+ <text
333
+ dominant-baseline="middle"
334
+ fill="white"
335
+ text-anchor="middle"
336
+ x="19930"
337
+ y="90"
338
+ >
339
+ C
340
+ </text>
341
+ <rect
342
+ fill="#aaa"
343
+ height="20"
344
+ stroke="#555"
345
+ width="20"
346
+ x="19900"
347
+ y="80"
348
+ />
349
+ <text
350
+ dominant-baseline="middle"
351
+ fill="black"
352
+ text-anchor="middle"
353
+ x="19910"
354
+ y="90"
355
+ >
356
+ D
357
+ </text>
358
+ <rect
359
+ fill="#aaa"
360
+ height="20"
361
+ stroke="#555"
362
+ width="20"
363
+ x="19880"
364
+ y="80"
365
+ />
366
+ <text
367
+ dominant-baseline="middle"
368
+ fill="black"
369
+ text-anchor="middle"
370
+ x="19890"
371
+ y="90"
372
+ >
373
+ E
374
+ </text>
375
+ <rect
376
+ fill="#aaa"
377
+ height="20"
378
+ stroke="#555"
379
+ width="20"
380
+ x="19860"
381
+ y="80"
382
+ />
383
+ <text
384
+ dominant-baseline="middle"
385
+ fill="black"
386
+ text-anchor="middle"
387
+ x="19870"
388
+ y="90"
389
+ >
390
+ F
391
+ </text>
392
+ <rect
393
+ fill="#ffc107"
394
+ height="20"
395
+ stroke="#555"
396
+ width="20"
397
+ x="19840"
398
+ y="80"
399
+ />
400
+ <text
401
+ dominant-baseline="middle"
402
+ fill="black"
403
+ text-anchor="middle"
404
+ x="19850"
405
+ y="90"
406
+ >
407
+ G
408
+ </text>
409
+ <rect
410
+ fill="#aaa"
411
+ height="20"
412
+ stroke="#555"
413
+ width="20"
414
+ x="19820"
415
+ y="80"
416
+ />
417
+ <text
418
+ dominant-baseline="middle"
419
+ fill="black"
420
+ text-anchor="middle"
421
+ x="19830"
422
+ y="90"
423
+ >
424
+ H
425
+ </text>
426
+ <rect
427
+ fill="#aaa"
428
+ height="20"
429
+ stroke="#555"
430
+ width="20"
431
+ x="19800"
432
+ y="80"
433
+ />
434
+ <text
435
+ dominant-baseline="middle"
436
+ fill="black"
437
+ text-anchor="middle"
438
+ x="19810"
439
+ y="90"
440
+ >
441
+ I
442
+ </text>
443
+ <rect
444
+ fill="#8f8f8f"
445
+ height="20"
446
+ stroke="#555"
447
+ width="60"
448
+ x="19940"
449
+ y="100"
450
+ />
451
+ <text
452
+ dominant-baseline="middle"
453
+ text-anchor="middle"
454
+ x="19970"
455
+ y="110"
456
+ />
457
+ <rect
458
+ fill="#8f8f8f"
459
+ height="20"
460
+ stroke="#555"
461
+ width="60"
462
+ x="19880"
463
+ y="100"
464
+ />
465
+ <text
466
+ dominant-baseline="middle"
467
+ text-anchor="middle"
468
+ x="19910"
469
+ y="110"
470
+ />
471
+ <rect
472
+ fill="#8f8f8f"
473
+ height="20"
474
+ stroke="#555"
475
+ width="60"
476
+ x="19820"
477
+ y="100"
478
+ />
479
+ <text
480
+ dominant-baseline="middle"
481
+ text-anchor="middle"
482
+ x="19850"
483
+ y="110"
484
+ />
485
+ <rect
486
+ fill="#adadad"
487
+ height="20"
488
+ stroke="#555"
489
+ width="60"
490
+ x="19900"
491
+ y="120"
492
+ />
493
+ <text
494
+ dominant-baseline="middle"
495
+ text-anchor="middle"
496
+ x="19930"
497
+ y="130"
498
+ />
499
+ <rect
500
+ fill="#adadad"
501
+ height="20"
502
+ stroke="#555"
503
+ width="60"
504
+ x="19840"
505
+ y="120"
506
+ />
507
+ <text
508
+ dominant-baseline="middle"
509
+ text-anchor="middle"
510
+ x="19870"
511
+ y="130"
512
+ />
513
+ <rect
514
+ fill="#adadad"
515
+ height="20"
516
+ stroke="#555"
517
+ width="60"
518
+ x="19780"
519
+ y="120"
520
+ />
521
+ <text
522
+ dominant-baseline="middle"
523
+ text-anchor="middle"
524
+ x="19810"
525
+ y="130"
526
+ />
527
+ <rect
528
+ fill="#d8d8d8"
529
+ height="20"
530
+ stroke="#555"
531
+ width="60"
532
+ x="19920"
533
+ y="140"
534
+ />
535
+ <text
536
+ dominant-baseline="middle"
537
+ text-anchor="middle"
538
+ x="19950"
539
+ y="150"
540
+ />
541
+ <rect
542
+ fill="#d8d8d8"
543
+ height="20"
544
+ stroke="#555"
545
+ width="60"
546
+ x="19860"
547
+ y="140"
548
+ />
549
+ <text
550
+ dominant-baseline="middle"
551
+ text-anchor="middle"
552
+ x="19890"
553
+ y="150"
554
+ />
555
+ <rect
556
+ fill="#d8d8d8"
557
+ height="20"
558
+ stroke="#555"
559
+ width="60"
560
+ x="19800"
561
+ y="140"
562
+ />
563
+ <text
564
+ dominant-baseline="middle"
565
+ text-anchor="middle"
566
+ x="19830"
567
+ y="150"
568
+ />
569
+ </svg>
570
+ </div>
571
+ `;
572
+
573
+ exports[`renders with one feature with a correct seq, zoomed in, should render nicely 1`] = `
574
+ <div>
575
+ <svg
576
+ data-testid="sequence_track"
577
+ height="200"
578
+ style="width: 20000px; height: 200px;"
579
+ width="20000"
580
+ >
581
+ <rect
582
+ fill="#d8d8d8"
583
+ height="20"
584
+ stroke="#555"
585
+ width="60"
586
+ x="40"
587
+ y="0"
588
+ />
589
+ <text
590
+ dominant-baseline="middle"
591
+ text-anchor="middle"
592
+ x="70"
593
+ y="10"
594
+ />
595
+ <rect
596
+ fill="#d8d8d8"
597
+ height="20"
598
+ stroke="#555"
599
+ width="60"
600
+ x="100"
601
+ y="0"
602
+ />
603
+ <text
604
+ dominant-baseline="middle"
605
+ text-anchor="middle"
606
+ x="130"
607
+ y="10"
608
+ />
609
+ <rect
610
+ fill="#d8d8d8"
611
+ height="20"
612
+ stroke="#555"
613
+ width="60"
614
+ x="160"
615
+ y="0"
616
+ />
617
+ <text
618
+ dominant-baseline="middle"
619
+ text-anchor="middle"
620
+ x="190"
621
+ y="10"
622
+ />
623
+ <rect
624
+ fill="#adadad"
625
+ height="20"
626
+ stroke="#555"
627
+ width="60"
628
+ x="20"
629
+ y="20"
630
+ />
631
+ <text
632
+ dominant-baseline="middle"
633
+ text-anchor="middle"
634
+ x="50"
635
+ y="30"
636
+ />
637
+ <rect
638
+ fill="#adadad"
639
+ height="20"
640
+ stroke="#555"
641
+ width="60"
642
+ x="80"
643
+ y="20"
644
+ />
645
+ <text
646
+ dominant-baseline="middle"
647
+ text-anchor="middle"
648
+ x="110"
649
+ y="30"
650
+ />
651
+ <rect
652
+ fill="#adadad"
653
+ height="20"
654
+ stroke="#555"
655
+ width="60"
656
+ x="140"
657
+ y="20"
658
+ />
659
+ <text
660
+ dominant-baseline="middle"
661
+ text-anchor="middle"
662
+ x="170"
663
+ y="30"
664
+ />
665
+ <rect
666
+ fill="#8f8f8f"
667
+ height="20"
668
+ stroke="#555"
669
+ width="60"
670
+ x="0"
671
+ y="40"
672
+ />
673
+ <text
674
+ dominant-baseline="middle"
675
+ text-anchor="middle"
676
+ x="30"
677
+ y="50"
678
+ />
679
+ <rect
680
+ fill="#8f8f8f"
681
+ height="20"
682
+ stroke="#555"
683
+ width="60"
684
+ x="60"
685
+ y="40"
686
+ />
687
+ <text
688
+ dominant-baseline="middle"
689
+ text-anchor="middle"
690
+ x="90"
691
+ y="50"
692
+ />
693
+ <rect
694
+ fill="#8f8f8f"
695
+ height="20"
696
+ stroke="#555"
697
+ width="60"
698
+ x="120"
699
+ y="40"
700
+ />
701
+ <text
702
+ dominant-baseline="middle"
703
+ text-anchor="middle"
704
+ x="150"
705
+ y="50"
706
+ />
707
+ <rect
708
+ fill="#4caf50"
709
+ height="20"
710
+ stroke="#555"
711
+ width="20"
712
+ x="20"
713
+ y="60"
714
+ />
715
+ <text
716
+ dominant-baseline="middle"
717
+ fill="white"
718
+ text-anchor="middle"
719
+ x="30"
720
+ y="70"
721
+ >
722
+ A
723
+ </text>
724
+ <rect
725
+ fill="#aaa"
726
+ height="20"
727
+ stroke="#555"
728
+ width="20"
729
+ x="40"
730
+ y="60"
731
+ />
732
+ <text
733
+ dominant-baseline="middle"
734
+ fill="black"
735
+ text-anchor="middle"
736
+ x="50"
737
+ y="70"
738
+ >
739
+ B
740
+ </text>
741
+ <rect
742
+ fill="#2196f3"
743
+ height="20"
744
+ stroke="#555"
745
+ width="20"
746
+ x="60"
747
+ y="60"
748
+ />
749
+ <text
750
+ dominant-baseline="middle"
751
+ fill="white"
752
+ text-anchor="middle"
753
+ x="70"
754
+ y="70"
755
+ >
756
+ C
757
+ </text>
758
+ <rect
759
+ fill="#aaa"
760
+ height="20"
761
+ stroke="#555"
762
+ width="20"
763
+ x="80"
764
+ y="60"
765
+ />
766
+ <text
767
+ dominant-baseline="middle"
768
+ fill="black"
769
+ text-anchor="middle"
770
+ x="90"
771
+ y="70"
772
+ >
773
+ D
774
+ </text>
775
+ <rect
776
+ fill="#aaa"
777
+ height="20"
778
+ stroke="#555"
779
+ width="20"
780
+ x="100"
781
+ y="60"
782
+ />
783
+ <text
784
+ dominant-baseline="middle"
785
+ fill="black"
786
+ text-anchor="middle"
787
+ x="110"
788
+ y="70"
789
+ >
790
+ E
791
+ </text>
792
+ <rect
793
+ fill="#aaa"
794
+ height="20"
795
+ stroke="#555"
796
+ width="20"
797
+ x="120"
798
+ y="60"
799
+ />
800
+ <text
801
+ dominant-baseline="middle"
802
+ fill="black"
803
+ text-anchor="middle"
804
+ x="130"
805
+ y="70"
806
+ >
807
+ F
808
+ </text>
809
+ <rect
810
+ fill="#ffc107"
811
+ height="20"
812
+ stroke="#555"
813
+ width="20"
814
+ x="140"
815
+ y="60"
816
+ />
817
+ <text
818
+ dominant-baseline="middle"
819
+ fill="black"
820
+ text-anchor="middle"
821
+ x="150"
822
+ y="70"
823
+ >
824
+ G
825
+ </text>
826
+ <rect
827
+ fill="#aaa"
828
+ height="20"
829
+ stroke="#555"
830
+ width="20"
831
+ x="160"
832
+ y="60"
833
+ />
834
+ <text
835
+ dominant-baseline="middle"
836
+ fill="black"
837
+ text-anchor="middle"
838
+ x="170"
839
+ y="70"
840
+ >
841
+ H
842
+ </text>
843
+ <rect
844
+ fill="#aaa"
845
+ height="20"
846
+ stroke="#555"
847
+ width="20"
848
+ x="180"
849
+ y="60"
850
+ />
851
+ <text
852
+ dominant-baseline="middle"
853
+ fill="black"
854
+ text-anchor="middle"
855
+ x="190"
856
+ y="70"
857
+ >
858
+ I
859
+ </text>
860
+ <rect
861
+ fill="#f44336"
862
+ height="20"
863
+ stroke="#555"
864
+ width="20"
865
+ x="20"
866
+ y="80"
867
+ />
868
+ <text
869
+ dominant-baseline="middle"
870
+ fill="white"
871
+ text-anchor="middle"
872
+ x="30"
873
+ y="90"
874
+ >
875
+ T
876
+ </text>
877
+ <rect
878
+ fill="#aaa"
879
+ height="20"
880
+ stroke="#555"
881
+ width="20"
882
+ x="40"
883
+ y="80"
884
+ />
885
+ <text
886
+ dominant-baseline="middle"
887
+ fill="black"
888
+ text-anchor="middle"
889
+ x="50"
890
+ y="90"
891
+ >
892
+ B
893
+ </text>
894
+ <rect
895
+ fill="#ffc107"
896
+ height="20"
897
+ stroke="#555"
898
+ width="20"
899
+ x="60"
900
+ y="80"
901
+ />
902
+ <text
903
+ dominant-baseline="middle"
904
+ fill="black"
905
+ text-anchor="middle"
906
+ x="70"
907
+ y="90"
908
+ >
909
+ G
910
+ </text>
911
+ <rect
912
+ fill="#aaa"
913
+ height="20"
914
+ stroke="#555"
915
+ width="20"
916
+ x="80"
917
+ y="80"
918
+ />
919
+ <text
920
+ dominant-baseline="middle"
921
+ fill="black"
922
+ text-anchor="middle"
923
+ x="90"
924
+ y="90"
925
+ >
926
+ D
927
+ </text>
928
+ <rect
929
+ fill="#aaa"
930
+ height="20"
931
+ stroke="#555"
932
+ width="20"
933
+ x="100"
934
+ y="80"
935
+ />
936
+ <text
937
+ dominant-baseline="middle"
938
+ fill="black"
939
+ text-anchor="middle"
940
+ x="110"
941
+ y="90"
942
+ >
943
+ E
944
+ </text>
945
+ <rect
946
+ fill="#aaa"
947
+ height="20"
948
+ stroke="#555"
949
+ width="20"
950
+ x="120"
951
+ y="80"
952
+ />
953
+ <text
954
+ dominant-baseline="middle"
955
+ fill="black"
956
+ text-anchor="middle"
957
+ x="130"
958
+ y="90"
959
+ >
960
+ F
961
+ </text>
962
+ <rect
963
+ fill="#2196f3"
964
+ height="20"
965
+ stroke="#555"
966
+ width="20"
967
+ x="140"
968
+ y="80"
969
+ />
970
+ <text
971
+ dominant-baseline="middle"
972
+ fill="white"
973
+ text-anchor="middle"
974
+ x="150"
975
+ y="90"
976
+ >
977
+ C
978
+ </text>
979
+ <rect
980
+ fill="#aaa"
981
+ height="20"
982
+ stroke="#555"
983
+ width="20"
984
+ x="160"
985
+ y="80"
986
+ />
987
+ <text
988
+ dominant-baseline="middle"
989
+ fill="black"
990
+ text-anchor="middle"
991
+ x="170"
992
+ y="90"
993
+ >
994
+ H
995
+ </text>
996
+ <rect
997
+ fill="#aaa"
998
+ height="20"
999
+ stroke="#555"
1000
+ width="20"
1001
+ x="180"
1002
+ y="80"
1003
+ />
1004
+ <text
1005
+ dominant-baseline="middle"
1006
+ fill="black"
1007
+ text-anchor="middle"
1008
+ x="190"
1009
+ y="90"
1010
+ >
1011
+ I
1012
+ </text>
1013
+ <rect
1014
+ fill="#8f8f8f"
1015
+ height="20"
1016
+ stroke="#555"
1017
+ width="60"
1018
+ x="0"
1019
+ y="100"
1020
+ />
1021
+ <text
1022
+ dominant-baseline="middle"
1023
+ text-anchor="middle"
1024
+ x="30"
1025
+ y="110"
1026
+ />
1027
+ <rect
1028
+ fill="#8f8f8f"
1029
+ height="20"
1030
+ stroke="#555"
1031
+ width="60"
1032
+ x="60"
1033
+ y="100"
1034
+ />
1035
+ <text
1036
+ dominant-baseline="middle"
1037
+ text-anchor="middle"
1038
+ x="90"
1039
+ y="110"
1040
+ />
1041
+ <rect
1042
+ fill="#8f8f8f"
1043
+ height="20"
1044
+ stroke="#555"
1045
+ width="60"
1046
+ x="120"
1047
+ y="100"
1048
+ />
1049
+ <text
1050
+ dominant-baseline="middle"
1051
+ text-anchor="middle"
1052
+ x="150"
1053
+ y="110"
1054
+ />
1055
+ <rect
1056
+ fill="#adadad"
1057
+ height="20"
1058
+ stroke="#555"
1059
+ width="60"
1060
+ x="40"
1061
+ y="120"
1062
+ />
1063
+ <text
1064
+ dominant-baseline="middle"
1065
+ text-anchor="middle"
1066
+ x="70"
1067
+ y="130"
1068
+ />
1069
+ <rect
1070
+ fill="#adadad"
1071
+ height="20"
1072
+ stroke="#555"
1073
+ width="60"
1074
+ x="100"
1075
+ y="120"
1076
+ />
1077
+ <text
1078
+ dominant-baseline="middle"
1079
+ text-anchor="middle"
1080
+ x="130"
1081
+ y="130"
1082
+ />
1083
+ <rect
1084
+ fill="#adadad"
1085
+ height="20"
1086
+ stroke="#555"
1087
+ width="60"
1088
+ x="160"
1089
+ y="120"
1090
+ />
1091
+ <text
1092
+ dominant-baseline="middle"
1093
+ text-anchor="middle"
1094
+ x="190"
1095
+ y="130"
1096
+ />
1097
+ <rect
1098
+ fill="#d8d8d8"
1099
+ height="20"
1100
+ stroke="#555"
1101
+ width="60"
1102
+ x="20"
1103
+ y="140"
1104
+ />
1105
+ <text
1106
+ dominant-baseline="middle"
1107
+ text-anchor="middle"
1108
+ x="50"
1109
+ y="150"
1110
+ />
1111
+ <rect
1112
+ fill="#d8d8d8"
1113
+ height="20"
1114
+ stroke="#555"
1115
+ width="60"
1116
+ x="80"
1117
+ y="140"
1118
+ />
1119
+ <text
1120
+ dominant-baseline="middle"
1121
+ text-anchor="middle"
1122
+ x="110"
1123
+ y="150"
1124
+ />
1125
+ <rect
1126
+ fill="#d8d8d8"
1127
+ height="20"
1128
+ stroke="#555"
1129
+ width="60"
1130
+ x="140"
1131
+ y="140"
1132
+ />
1133
+ <text
1134
+ dominant-baseline="middle"
1135
+ text-anchor="middle"
1136
+ x="170"
1137
+ y="150"
1138
+ />
1139
+ </svg>
1140
+ </div>
1141
+ `;
1142
+
1143
+ exports[`renders with one feature with an incorrect seq, zoomed in, should throw 1`] = `
1144
+ <div>
1145
+ <svg
1146
+ data-testid="sequence_track"
1147
+ height="200"
1148
+ style="width: 20000px; height: 200px;"
1149
+ width="20000"
1150
+ >
1151
+ <rect
1152
+ fill="#d8d8d8"
1153
+ height="20"
1154
+ stroke="#555"
1155
+ width="60"
1156
+ x="40"
1157
+ y="0"
1158
+ />
1159
+ <text
1160
+ dominant-baseline="middle"
1161
+ text-anchor="middle"
1162
+ x="70"
1163
+ y="10"
1164
+ />
1165
+ <rect
1166
+ fill="#adadad"
1167
+ height="20"
1168
+ stroke="#555"
1169
+ width="60"
1170
+ x="20"
1171
+ y="20"
1172
+ />
1173
+ <text
1174
+ dominant-baseline="middle"
1175
+ text-anchor="middle"
1176
+ x="50"
1177
+ y="30"
1178
+ />
1179
+ <rect
1180
+ fill="#8f8f8f"
1181
+ height="20"
1182
+ stroke="#555"
1183
+ width="60"
1184
+ x="0"
1185
+ y="40"
1186
+ />
1187
+ <text
1188
+ dominant-baseline="middle"
1189
+ text-anchor="middle"
1190
+ x="30"
1191
+ y="50"
1192
+ />
1193
+ <rect
1194
+ fill="#4caf50"
1195
+ height="20"
1196
+ stroke="#555"
1197
+ width="20"
1198
+ x="20"
1199
+ y="60"
1200
+ />
1201
+ <text
1202
+ dominant-baseline="middle"
1203
+ fill="white"
1204
+ text-anchor="middle"
1205
+ x="30"
1206
+ y="70"
1207
+ >
1208
+ A
1209
+ </text>
1210
+ <rect
1211
+ fill="#aaa"
1212
+ height="20"
1213
+ stroke="#555"
1214
+ width="20"
1215
+ x="40"
1216
+ y="60"
1217
+ />
1218
+ <text
1219
+ dominant-baseline="middle"
1220
+ fill="black"
1221
+ text-anchor="middle"
1222
+ x="50"
1223
+ y="70"
1224
+ >
1225
+ B
1226
+ </text>
1227
+ <rect
1228
+ fill="#2196f3"
1229
+ height="20"
1230
+ stroke="#555"
1231
+ width="20"
1232
+ x="60"
1233
+ y="60"
1234
+ />
1235
+ <text
1236
+ dominant-baseline="middle"
1237
+ fill="white"
1238
+ text-anchor="middle"
1239
+ x="70"
1240
+ y="70"
1241
+ >
1242
+ C
1243
+ </text>
1244
+ <rect
1245
+ fill="#f44336"
1246
+ height="20"
1247
+ stroke="#555"
1248
+ width="20"
1249
+ x="20"
1250
+ y="80"
1251
+ />
1252
+ <text
1253
+ dominant-baseline="middle"
1254
+ fill="white"
1255
+ text-anchor="middle"
1256
+ x="30"
1257
+ y="90"
1258
+ >
1259
+ T
1260
+ </text>
1261
+ <rect
1262
+ fill="#aaa"
1263
+ height="20"
1264
+ stroke="#555"
1265
+ width="20"
1266
+ x="40"
1267
+ y="80"
1268
+ />
1269
+ <text
1270
+ dominant-baseline="middle"
1271
+ fill="black"
1272
+ text-anchor="middle"
1273
+ x="50"
1274
+ y="90"
1275
+ >
1276
+ B
1277
+ </text>
1278
+ <rect
1279
+ fill="#ffc107"
1280
+ height="20"
1281
+ stroke="#555"
1282
+ width="20"
1283
+ x="60"
1284
+ y="80"
1285
+ />
1286
+ <text
1287
+ dominant-baseline="middle"
1288
+ fill="black"
1289
+ text-anchor="middle"
1290
+ x="70"
1291
+ y="90"
1292
+ >
1293
+ G
1294
+ </text>
1295
+ <rect
1296
+ fill="#8f8f8f"
1297
+ height="20"
1298
+ stroke="#555"
1299
+ width="60"
1300
+ x="0"
1301
+ y="100"
1302
+ />
1303
+ <text
1304
+ dominant-baseline="middle"
1305
+ text-anchor="middle"
1306
+ x="30"
1307
+ y="110"
1308
+ />
1309
+ <rect
1310
+ fill="#adadad"
1311
+ height="20"
1312
+ stroke="#555"
1313
+ width="60"
1314
+ x="40"
1315
+ y="120"
1316
+ />
1317
+ <text
1318
+ dominant-baseline="middle"
1319
+ text-anchor="middle"
1320
+ x="70"
1321
+ y="130"
1322
+ />
1323
+ <rect
1324
+ fill="#d8d8d8"
1325
+ height="20"
1326
+ stroke="#555"
1327
+ width="60"
1328
+ x="20"
1329
+ y="140"
1330
+ />
1331
+ <text
1332
+ dominant-baseline="middle"
1333
+ text-anchor="middle"
1334
+ x="50"
1335
+ y="150"
1336
+ />
1337
+ </svg>
1338
+ </div>
1339
+ `;
1340
+
1341
+ exports[`renders with one feature with no seq, zoomed in, should throw 1`] = `
1342
+ <div>
1343
+ <svg
1344
+ data-testid="sequence_track"
1345
+ height="200"
1346
+ style="width: 20000px; height: 200px;"
1347
+ width="20000"
1348
+ />
1349
+ </div>
1350
+ `;
1351
+
1352
+ exports[`renders with one, zoomed way out 1`] = `
1353
+ <div>
1354
+ <svg
1355
+ data-testid="sequence_track"
1356
+ height="200"
1357
+ style="width: 333.3333333333333px; height: 200px;"
1358
+ width="333.3333333333333"
1359
+ >
1360
+ <rect
1361
+ fill="#adadad"
1362
+ height="20"
1363
+ stroke="none"
1364
+ width="1.7"
1365
+ x="0.3333333333333333"
1366
+ y="20"
1367
+ />
1368
+ <rect
1369
+ fill="#8f8f8f"
1370
+ height="20"
1371
+ stroke="none"
1372
+ width="1.7"
1373
+ x="0"
1374
+ y="40"
1375
+ />
1376
+ <rect
1377
+ fill="#4caf50"
1378
+ height="20"
1379
+ stroke="none"
1380
+ width="0.8"
1381
+ x="0.3"
1382
+ y="60"
1383
+ />
1384
+ <rect
1385
+ fill="#aaa"
1386
+ height="20"
1387
+ stroke="none"
1388
+ width="0.8"
1389
+ x="1.1"
1390
+ y="60"
1391
+ />
1392
+ <rect
1393
+ fill="#f44336"
1394
+ height="20"
1395
+ stroke="none"
1396
+ width="0.8"
1397
+ x="0.3"
1398
+ y="80"
1399
+ />
1400
+ <rect
1401
+ fill="#aaa"
1402
+ height="20"
1403
+ stroke="none"
1404
+ width="0.8"
1405
+ x="1.1"
1406
+ y="80"
1407
+ />
1408
+ <rect
1409
+ fill="#8f8f8f"
1410
+ height="20"
1411
+ stroke="none"
1412
+ width="1.7"
1413
+ x="0"
1414
+ y="100"
1415
+ />
1416
+ <rect
1417
+ fill="#d8d8d8"
1418
+ height="20"
1419
+ stroke="none"
1420
+ width="1.7"
1421
+ x="0.3333333333333333"
1422
+ y="140"
1423
+ />
1424
+ </svg>
1425
+ </div>
1426
+ `;