@jbrowse/plugin-linear-comparative-view 2.9.0 → 2.10.1
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.
- package/dist/LGVSyntenyDisplay/configSchemaF.d.ts +2 -0
- package/dist/LGVSyntenyDisplay/configSchemaF.js +2 -0
- package/dist/LGVSyntenyDisplay/model.d.ts +18 -7
- package/dist/LGVSyntenyDisplay/model.js +13 -3
- package/dist/LinearComparativeDisplay/stateModelFactory.d.ts +35 -27
- package/dist/LinearComparativeDisplay/stateModelFactory.js +2 -0
- package/dist/LinearComparativeView/model.d.ts +27 -12
- package/dist/LinearComparativeView/model.js +2 -0
- package/dist/LinearReadVsRef/index.js +26 -2
- package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +185 -96
- package/dist/LinearSyntenyDisplay/components/SyntenyContextMenu.d.ts +13 -0
- package/dist/LinearSyntenyDisplay/components/SyntenyContextMenu.js +57 -0
- package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +1 -3
- package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.js +19 -51
- package/dist/LinearSyntenyDisplay/model.d.ts +27 -17
- package/dist/LinearSyntenyDisplay/model.js +2 -1
- package/dist/LinearSyntenyView/model.d.ts +119 -54
- package/dist/LinearSyntenyView/model.js +8 -1
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +6 -6
- package/dist/SyntenyTrack/configSchema.js +2 -0
- package/esm/LGVSyntenyDisplay/configSchemaF.d.ts +2 -0
- package/esm/LGVSyntenyDisplay/configSchemaF.js +2 -0
- package/esm/LGVSyntenyDisplay/model.d.ts +18 -7
- package/esm/LGVSyntenyDisplay/model.js +13 -3
- package/esm/LinearComparativeDisplay/stateModelFactory.d.ts +35 -27
- package/esm/LinearComparativeDisplay/stateModelFactory.js +2 -0
- package/esm/LinearComparativeView/model.d.ts +27 -12
- package/esm/LinearComparativeView/model.js +2 -0
- package/esm/LinearReadVsRef/index.js +2 -1
- package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +186 -97
- package/esm/LinearSyntenyDisplay/components/SyntenyContextMenu.d.ts +13 -0
- package/esm/LinearSyntenyDisplay/components/SyntenyContextMenu.js +51 -0
- package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +1 -3
- package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.js +18 -30
- package/esm/LinearSyntenyDisplay/model.d.ts +27 -17
- package/esm/LinearSyntenyDisplay/model.js +2 -1
- package/esm/LinearSyntenyView/model.d.ts +119 -54
- package/esm/LinearSyntenyView/model.js +8 -1
- package/esm/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +6 -6
- package/esm/SyntenyTrack/configSchema.js +2 -0
- package/package.json +4 -5
|
@@ -6,7 +6,9 @@ export interface ExportSvgOptions {
|
|
|
6
6
|
rasterizeLayers?: boolean;
|
|
7
7
|
scale?: number;
|
|
8
8
|
filename?: string;
|
|
9
|
-
Wrapper?: React.FC<
|
|
9
|
+
Wrapper?: React.FC<{
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}>;
|
|
10
12
|
fontSize?: number;
|
|
11
13
|
rulerHeight?: number;
|
|
12
14
|
textHeight?: number;
|
|
@@ -18,7 +20,8 @@ export interface ExportSvgOptions {
|
|
|
18
20
|
}
|
|
19
21
|
/**
|
|
20
22
|
* #stateModel LinearSyntenyView
|
|
21
|
-
* extends
|
|
23
|
+
* extends
|
|
24
|
+
* - [LinearComparativeView](../linearcomparativeview)
|
|
22
25
|
*/
|
|
23
26
|
export default function stateModelFactory(pluginManager: PluginManager): import("mobx-state-tree").IModelType<{
|
|
24
27
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -45,10 +48,14 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
45
48
|
displayedRegions: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
46
49
|
refName: import("mobx-state-tree").ISimpleType<string>;
|
|
47
50
|
start: import("mobx-state-tree").ISimpleType<number>;
|
|
48
|
-
end: import("mobx-state-tree").ISimpleType<number>;
|
|
51
|
+
end: import("mobx-state-tree").ISimpleType<number>; /**
|
|
52
|
+
* #property/
|
|
53
|
+
*/
|
|
49
54
|
reversed: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
50
55
|
} & {
|
|
51
|
-
assemblyName: import("mobx-state-tree").ISimpleType<string>;
|
|
56
|
+
assemblyName: import("mobx-state-tree").ISimpleType<string>; /**
|
|
57
|
+
* #action
|
|
58
|
+
*/
|
|
52
59
|
}, {
|
|
53
60
|
setRefName(newRefName: string): void;
|
|
54
61
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
@@ -203,11 +210,11 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
203
210
|
} & {
|
|
204
211
|
getConf(arg: string): any;
|
|
205
212
|
} & {
|
|
206
|
-
readonly initialized: boolean;
|
|
207
|
-
|
|
208
|
-
readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined; /**
|
|
209
|
-
* #property
|
|
213
|
+
readonly initialized: boolean; /**
|
|
214
|
+
* #property/
|
|
210
215
|
*/
|
|
216
|
+
readonly name: string;
|
|
217
|
+
readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
211
218
|
readonly aliases: string[];
|
|
212
219
|
readonly displayName: string | undefined;
|
|
213
220
|
hasName(name: string): boolean;
|
|
@@ -237,11 +244,17 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
237
244
|
load(): Promise<void>;
|
|
238
245
|
loadPre(): Promise<void>;
|
|
239
246
|
} & {
|
|
240
|
-
getAdapterMapEntry(adapterConf:
|
|
241
|
-
|
|
247
|
+
getAdapterMapEntry(adapterConf: {
|
|
248
|
+
[x: string]: unknown;
|
|
249
|
+
}, options: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<import("@jbrowse/core/assemblyManager/assembly").RefNameMap>;
|
|
250
|
+
getRefNameMapForAdapter(adapterConf: {
|
|
251
|
+
[x: string]: unknown;
|
|
252
|
+
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
242
253
|
[x: string]: string | undefined;
|
|
243
254
|
}>;
|
|
244
|
-
getReverseRefNameMapForAdapter(adapterConf:
|
|
255
|
+
getReverseRefNameMapForAdapter(adapterConf: {
|
|
256
|
+
[x: string]: unknown;
|
|
257
|
+
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
245
258
|
[x: string]: string | undefined;
|
|
246
259
|
}>;
|
|
247
260
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
@@ -261,11 +274,11 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
261
274
|
} & {
|
|
262
275
|
getConf(arg: string): any;
|
|
263
276
|
} & {
|
|
264
|
-
readonly initialized: boolean;
|
|
265
|
-
|
|
266
|
-
readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined; /**
|
|
267
|
-
* #property
|
|
277
|
+
readonly initialized: boolean; /**
|
|
278
|
+
* #property/
|
|
268
279
|
*/
|
|
280
|
+
readonly name: string;
|
|
281
|
+
readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
269
282
|
readonly aliases: string[];
|
|
270
283
|
readonly displayName: string | undefined;
|
|
271
284
|
hasName(name: string): boolean;
|
|
@@ -295,11 +308,17 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
295
308
|
load(): Promise<void>;
|
|
296
309
|
loadPre(): Promise<void>;
|
|
297
310
|
} & {
|
|
298
|
-
getAdapterMapEntry(adapterConf:
|
|
299
|
-
|
|
311
|
+
getAdapterMapEntry(adapterConf: {
|
|
312
|
+
[x: string]: unknown;
|
|
313
|
+
}, options: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<import("@jbrowse/core/assemblyManager/assembly").RefNameMap>;
|
|
314
|
+
getRefNameMapForAdapter(adapterConf: {
|
|
315
|
+
[x: string]: unknown;
|
|
316
|
+
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
300
317
|
[x: string]: string | undefined;
|
|
301
318
|
}>;
|
|
302
|
-
getReverseRefNameMapForAdapter(adapterConf:
|
|
319
|
+
getReverseRefNameMapForAdapter(adapterConf: {
|
|
320
|
+
[x: string]: unknown;
|
|
321
|
+
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
303
322
|
[x: string]: string | undefined;
|
|
304
323
|
}>;
|
|
305
324
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
@@ -380,10 +399,14 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
380
399
|
displayedRegions: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
381
400
|
refName: import("mobx-state-tree").ISimpleType<string>;
|
|
382
401
|
start: import("mobx-state-tree").ISimpleType<number>;
|
|
383
|
-
end: import("mobx-state-tree").ISimpleType<number>;
|
|
402
|
+
end: import("mobx-state-tree").ISimpleType<number>; /**
|
|
403
|
+
* #property/
|
|
404
|
+
*/
|
|
384
405
|
reversed: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
385
406
|
} & {
|
|
386
|
-
assemblyName: import("mobx-state-tree").ISimpleType<string>;
|
|
407
|
+
assemblyName: import("mobx-state-tree").ISimpleType<string>; /**
|
|
408
|
+
* #action
|
|
409
|
+
*/
|
|
387
410
|
}, {
|
|
388
411
|
setRefName(newRefName: string): void;
|
|
389
412
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
@@ -407,19 +430,27 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
407
430
|
displayedRegions: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
|
|
408
431
|
refName: import("mobx-state-tree").ISimpleType<string>;
|
|
409
432
|
start: import("mobx-state-tree").ISimpleType<number>;
|
|
410
|
-
end: import("mobx-state-tree").ISimpleType<number>;
|
|
433
|
+
end: import("mobx-state-tree").ISimpleType<number>; /**
|
|
434
|
+
* #property/
|
|
435
|
+
*/
|
|
411
436
|
reversed: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
412
437
|
} & {
|
|
413
|
-
assemblyName: import("mobx-state-tree").ISimpleType<string>;
|
|
438
|
+
assemblyName: import("mobx-state-tree").ISimpleType<string>; /**
|
|
439
|
+
* #action
|
|
440
|
+
*/
|
|
414
441
|
}, {
|
|
415
442
|
setRefName(newRefName: string): void;
|
|
416
443
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
417
444
|
refName: import("mobx-state-tree").ISimpleType<string>;
|
|
418
445
|
start: import("mobx-state-tree").ISimpleType<number>;
|
|
419
|
-
end: import("mobx-state-tree").ISimpleType<number>;
|
|
446
|
+
end: import("mobx-state-tree").ISimpleType<number>; /**
|
|
447
|
+
* #property/
|
|
448
|
+
*/
|
|
420
449
|
reversed: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
421
450
|
} & {
|
|
422
|
-
assemblyName: import("mobx-state-tree").ISimpleType<string>;
|
|
451
|
+
assemblyName: import("mobx-state-tree").ISimpleType<string>; /**
|
|
452
|
+
* #action
|
|
453
|
+
*/
|
|
423
454
|
}, {
|
|
424
455
|
setRefName(newRefName: string): void;
|
|
425
456
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>>;
|
|
@@ -574,11 +605,11 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
574
605
|
} & {
|
|
575
606
|
getConf(arg: string): any;
|
|
576
607
|
} & {
|
|
577
|
-
readonly initialized: boolean;
|
|
578
|
-
|
|
579
|
-
readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined; /**
|
|
580
|
-
* #property
|
|
608
|
+
readonly initialized: boolean; /**
|
|
609
|
+
* #property/
|
|
581
610
|
*/
|
|
611
|
+
readonly name: string;
|
|
612
|
+
readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
582
613
|
readonly aliases: string[];
|
|
583
614
|
readonly displayName: string | undefined;
|
|
584
615
|
hasName(name: string): boolean;
|
|
@@ -608,11 +639,17 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
608
639
|
load(): Promise<void>;
|
|
609
640
|
loadPre(): Promise<void>;
|
|
610
641
|
} & {
|
|
611
|
-
getAdapterMapEntry(adapterConf:
|
|
612
|
-
|
|
642
|
+
getAdapterMapEntry(adapterConf: {
|
|
643
|
+
[x: string]: unknown;
|
|
644
|
+
}, options: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<import("@jbrowse/core/assemblyManager/assembly").RefNameMap>;
|
|
645
|
+
getRefNameMapForAdapter(adapterConf: {
|
|
646
|
+
[x: string]: unknown;
|
|
647
|
+
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
613
648
|
[x: string]: string | undefined;
|
|
614
649
|
}>;
|
|
615
|
-
getReverseRefNameMapForAdapter(adapterConf:
|
|
650
|
+
getReverseRefNameMapForAdapter(adapterConf: {
|
|
651
|
+
[x: string]: unknown;
|
|
652
|
+
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
616
653
|
[x: string]: string | undefined;
|
|
617
654
|
}>;
|
|
618
655
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
@@ -632,11 +669,11 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
632
669
|
} & {
|
|
633
670
|
getConf(arg: string): any;
|
|
634
671
|
} & {
|
|
635
|
-
readonly initialized: boolean;
|
|
636
|
-
|
|
637
|
-
readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined; /**
|
|
638
|
-
* #property
|
|
672
|
+
readonly initialized: boolean; /**
|
|
673
|
+
* #property/
|
|
639
674
|
*/
|
|
675
|
+
readonly name: string;
|
|
676
|
+
readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
640
677
|
readonly aliases: string[];
|
|
641
678
|
readonly displayName: string | undefined;
|
|
642
679
|
hasName(name: string): boolean;
|
|
@@ -666,11 +703,17 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
666
703
|
load(): Promise<void>;
|
|
667
704
|
loadPre(): Promise<void>;
|
|
668
705
|
} & {
|
|
669
|
-
getAdapterMapEntry(adapterConf:
|
|
670
|
-
|
|
706
|
+
getAdapterMapEntry(adapterConf: {
|
|
707
|
+
[x: string]: unknown;
|
|
708
|
+
}, options: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<import("@jbrowse/core/assemblyManager/assembly").RefNameMap>;
|
|
709
|
+
getRefNameMapForAdapter(adapterConf: {
|
|
710
|
+
[x: string]: unknown;
|
|
711
|
+
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
671
712
|
[x: string]: string | undefined;
|
|
672
713
|
}>;
|
|
673
|
-
getReverseRefNameMapForAdapter(adapterConf:
|
|
714
|
+
getReverseRefNameMapForAdapter(adapterConf: {
|
|
715
|
+
[x: string]: unknown;
|
|
716
|
+
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
674
717
|
[x: string]: string | undefined;
|
|
675
718
|
}>;
|
|
676
719
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
@@ -725,10 +768,14 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
725
768
|
displayedRegions: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
726
769
|
refName: import("mobx-state-tree").ISimpleType<string>;
|
|
727
770
|
start: import("mobx-state-tree").ISimpleType<number>;
|
|
728
|
-
end: import("mobx-state-tree").ISimpleType<number>;
|
|
771
|
+
end: import("mobx-state-tree").ISimpleType<number>; /**
|
|
772
|
+
* #property/
|
|
773
|
+
*/
|
|
729
774
|
reversed: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
730
775
|
} & {
|
|
731
|
-
assemblyName: import("mobx-state-tree").ISimpleType<string>;
|
|
776
|
+
assemblyName: import("mobx-state-tree").ISimpleType<string>; /**
|
|
777
|
+
* #action
|
|
778
|
+
*/
|
|
732
779
|
}, {
|
|
733
780
|
setRefName(newRefName: string): void;
|
|
734
781
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
@@ -883,11 +930,11 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
883
930
|
} & {
|
|
884
931
|
getConf(arg: string): any;
|
|
885
932
|
} & {
|
|
886
|
-
readonly initialized: boolean;
|
|
887
|
-
|
|
888
|
-
readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined; /**
|
|
889
|
-
* #property
|
|
933
|
+
readonly initialized: boolean; /**
|
|
934
|
+
* #property/
|
|
890
935
|
*/
|
|
936
|
+
readonly name: string;
|
|
937
|
+
readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
891
938
|
readonly aliases: string[];
|
|
892
939
|
readonly displayName: string | undefined;
|
|
893
940
|
hasName(name: string): boolean;
|
|
@@ -917,11 +964,17 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
917
964
|
load(): Promise<void>;
|
|
918
965
|
loadPre(): Promise<void>;
|
|
919
966
|
} & {
|
|
920
|
-
getAdapterMapEntry(adapterConf:
|
|
921
|
-
|
|
967
|
+
getAdapterMapEntry(adapterConf: {
|
|
968
|
+
[x: string]: unknown;
|
|
969
|
+
}, options: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<import("@jbrowse/core/assemblyManager/assembly").RefNameMap>;
|
|
970
|
+
getRefNameMapForAdapter(adapterConf: {
|
|
971
|
+
[x: string]: unknown;
|
|
972
|
+
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
922
973
|
[x: string]: string | undefined;
|
|
923
974
|
}>;
|
|
924
|
-
getReverseRefNameMapForAdapter(adapterConf:
|
|
975
|
+
getReverseRefNameMapForAdapter(adapterConf: {
|
|
976
|
+
[x: string]: unknown;
|
|
977
|
+
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
925
978
|
[x: string]: string | undefined;
|
|
926
979
|
}>;
|
|
927
980
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
@@ -941,11 +994,11 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
941
994
|
} & {
|
|
942
995
|
getConf(arg: string): any;
|
|
943
996
|
} & {
|
|
944
|
-
readonly initialized: boolean;
|
|
945
|
-
|
|
946
|
-
readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined; /**
|
|
947
|
-
* #property
|
|
997
|
+
readonly initialized: boolean; /**
|
|
998
|
+
* #property/
|
|
948
999
|
*/
|
|
1000
|
+
readonly name: string;
|
|
1001
|
+
readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
949
1002
|
readonly aliases: string[];
|
|
950
1003
|
readonly displayName: string | undefined;
|
|
951
1004
|
hasName(name: string): boolean;
|
|
@@ -975,11 +1028,17 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
975
1028
|
load(): Promise<void>;
|
|
976
1029
|
loadPre(): Promise<void>;
|
|
977
1030
|
} & {
|
|
978
|
-
getAdapterMapEntry(adapterConf:
|
|
979
|
-
|
|
1031
|
+
getAdapterMapEntry(adapterConf: {
|
|
1032
|
+
[x: string]: unknown;
|
|
1033
|
+
}, options: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<import("@jbrowse/core/assemblyManager/assembly").RefNameMap>;
|
|
1034
|
+
getRefNameMapForAdapter(adapterConf: {
|
|
1035
|
+
[x: string]: unknown;
|
|
1036
|
+
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
980
1037
|
[x: string]: string | undefined;
|
|
981
1038
|
}>;
|
|
982
|
-
getReverseRefNameMapForAdapter(adapterConf:
|
|
1039
|
+
getReverseRefNameMapForAdapter(adapterConf: {
|
|
1040
|
+
[x: string]: unknown;
|
|
1041
|
+
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
983
1042
|
[x: string]: string | undefined;
|
|
984
1043
|
}>;
|
|
985
1044
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
@@ -1056,6 +1115,9 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
1056
1115
|
*/
|
|
1057
1116
|
showAllRegions(): void;
|
|
1058
1117
|
} & {
|
|
1118
|
+
/**
|
|
1119
|
+
* #action
|
|
1120
|
+
*/
|
|
1059
1121
|
exportSvg(opts: ExportSvgOptions): Promise<void>;
|
|
1060
1122
|
} & {
|
|
1061
1123
|
/**
|
|
@@ -1105,6 +1167,9 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
1105
1167
|
checked?: undefined;
|
|
1106
1168
|
type?: undefined;
|
|
1107
1169
|
})[];
|
|
1170
|
+
/**
|
|
1171
|
+
* #method
|
|
1172
|
+
*/
|
|
1108
1173
|
menuItems(): (import("@jbrowse/core/ui").MenuDivider | import("@jbrowse/core/ui").MenuSubHeader | import("@jbrowse/core/ui").NormalMenuItem | import("@jbrowse/core/ui").CheckboxMenuItem | import("@jbrowse/core/ui").RadioMenuItem | import("@jbrowse/core/ui").SubMenuItem | {
|
|
1109
1174
|
label: string;
|
|
1110
1175
|
icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
@@ -43,7 +43,8 @@ const model_1 = __importDefault(require("../LinearComparativeView/model"));
|
|
|
43
43
|
const ExportSvgDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./components/ExportSvgDialog'))));
|
|
44
44
|
/**
|
|
45
45
|
* #stateModel LinearSyntenyView
|
|
46
|
-
* extends
|
|
46
|
+
* extends
|
|
47
|
+
* - [LinearComparativeView](../linearcomparativeview)
|
|
47
48
|
*/
|
|
48
49
|
function stateModelFactory(pluginManager) {
|
|
49
50
|
return mobx_state_tree_1.types
|
|
@@ -84,6 +85,9 @@ function stateModelFactory(pluginManager) {
|
|
|
84
85
|
},
|
|
85
86
|
}))
|
|
86
87
|
.actions(self => ({
|
|
88
|
+
/**
|
|
89
|
+
* #action
|
|
90
|
+
*/
|
|
87
91
|
async exportSvg(opts) {
|
|
88
92
|
const { renderToSvg } = await Promise.resolve().then(() => __importStar(require('./svgcomponents/SVGLinearSyntenyView')));
|
|
89
93
|
const html = await renderToSvg(self, opts);
|
|
@@ -148,6 +152,9 @@ function stateModelFactory(pluginManager) {
|
|
|
148
152
|
},
|
|
149
153
|
];
|
|
150
154
|
},
|
|
155
|
+
/**
|
|
156
|
+
* #method
|
|
157
|
+
*/
|
|
151
158
|
menuItems() {
|
|
152
159
|
return [
|
|
153
160
|
...superMenuItems(),
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.renderToSvg = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const material_1 = require("@mui/material");
|
|
9
|
-
const
|
|
9
|
+
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
10
10
|
const mobx_1 = require("mobx");
|
|
11
11
|
const util_1 = require("@jbrowse/core/util");
|
|
12
12
|
const tracks_1 = require("@jbrowse/core/util/tracks");
|
|
@@ -19,14 +19,14 @@ const drawSynteny_1 = require("../../LinearSyntenyDisplay/drawSynteny");
|
|
|
19
19
|
async function renderToSvg(model, opts) {
|
|
20
20
|
var _a;
|
|
21
21
|
await (0, mobx_1.when)(() => model.initialized);
|
|
22
|
-
const { textHeight = 18, headerHeight = 30, rulerHeight = 30, fontSize = 13, trackLabels = 'offset',
|
|
23
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
24
|
-
Wrapper = ({ children }) => react_1.default.createElement(react_1.default.Fragment, null, children), themeName = 'default', } = opts;
|
|
22
|
+
const { textHeight = 18, headerHeight = 30, rulerHeight = 30, fontSize = 13, trackLabels = 'offset', Wrapper = ({ children }) => react_1.default.createElement(react_1.default.Fragment, null, children), themeName = 'default', } = opts;
|
|
25
23
|
const session = (0, util_1.getSession)(model);
|
|
26
24
|
const theme = (_a = session.allThemes) === null || _a === void 0 ? void 0 : _a.call(session)[themeName];
|
|
27
25
|
const { width, views, middleComparativeHeight: synH, tracks } = model;
|
|
28
26
|
const shift = 50;
|
|
29
27
|
const offset = headerHeight + rulerHeight;
|
|
28
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
29
|
+
const { createRootFn } = (0, mobx_state_tree_1.getRoot)(model);
|
|
30
30
|
const heights = views.map(v => (0, plugin_linear_genome_view_1.totalHeight)(v.tracks, textHeight, trackLabels) + offset);
|
|
31
31
|
const totalHeightSvg = (0, util_1.sum)(heights) + synH + 100;
|
|
32
32
|
const displayResults = await Promise.all(views.map(async (view) => ({
|
|
@@ -62,7 +62,7 @@ async function renderToSvg(model, opts) {
|
|
|
62
62
|
const w = width + trackLabelOffset;
|
|
63
63
|
const t = (0, ui_1.createJBrowseTheme)(theme);
|
|
64
64
|
// the xlink namespace is used for rendering <image> tag
|
|
65
|
-
return (0,
|
|
65
|
+
return (0, util_1.renderToStaticMarkup)(react_1.default.createElement(material_1.ThemeProvider, { theme: (0, ui_1.createJBrowseTheme)(theme) },
|
|
66
66
|
react_1.default.createElement(Wrapper, null,
|
|
67
67
|
react_1.default.createElement("svg", { width: width, height: totalHeightSvg, xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", viewBox: [0, 0, w + shift * 2, totalHeightSvg].toString() },
|
|
68
68
|
react_1.default.createElement(SVGBackground_1.default, { width: w, height: totalHeightSvg, shift: shift }),
|
|
@@ -79,6 +79,6 @@ async function renderToSvg(model, opts) {
|
|
|
79
79
|
react_1.default.createElement("g", { transform: `translate(${trackLabelOffset})` },
|
|
80
80
|
react_1.default.createElement("text", { x: 0, fontSize: fontSize, fill: t.palette.text.primary }, views[1].assemblyNames.join(', ')),
|
|
81
81
|
react_1.default.createElement(plugin_linear_genome_view_1.SVGRuler, { model: displayResults[1].view, fontSize: fontSize })),
|
|
82
|
-
react_1.default.createElement(plugin_linear_genome_view_1.SVGTracks, { textHeight: textHeight, trackLabels: trackLabels, fontSize: fontSize, model: displayResults[1].view, displayResults: displayResults[1].data, offset: offset, trackLabelOffset: trackLabelOffset }))))));
|
|
82
|
+
react_1.default.createElement(plugin_linear_genome_view_1.SVGTracks, { textHeight: textHeight, trackLabels: trackLabels, fontSize: fontSize, model: displayResults[1].view, displayResults: displayResults[1].data, offset: offset, trackLabelOffset: trackLabelOffset }))))), createRootFn);
|
|
83
83
|
}
|
|
84
84
|
exports.renderToSvg = renderToSvg;
|
|
@@ -4,6 +4,8 @@ const configuration_1 = require("@jbrowse/core/configuration");
|
|
|
4
4
|
const models_1 = require("@jbrowse/core/pluggableElementTypes/models");
|
|
5
5
|
/**
|
|
6
6
|
* #config SyntenyTrack
|
|
7
|
+
* extends
|
|
8
|
+
* - [BaseTrack](../basetrack)
|
|
7
9
|
*/
|
|
8
10
|
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
9
11
|
const configSchema = (pluginManager) => (0, configuration_1.ConfigurationSchema)('SyntenyTrack', {}, {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
/**
|
|
3
3
|
* #config LGVSyntenyDisplay
|
|
4
|
+
* extends config
|
|
5
|
+
* - [LinearPileupDisplay](../linearpileupdisplay)
|
|
4
6
|
*/
|
|
5
7
|
declare function configSchemaF(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
6
8
|
defaultRendering: {
|
|
@@ -2,6 +2,8 @@ import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
|
2
2
|
import { linearPileupDisplayConfigSchemaFactory } from '@jbrowse/plugin-alignments';
|
|
3
3
|
/**
|
|
4
4
|
* #config LGVSyntenyDisplay
|
|
5
|
+
* extends config
|
|
6
|
+
* - [LinearPileupDisplay](../linearpileupdisplay)
|
|
5
7
|
*/
|
|
6
8
|
function configSchemaF(pluginManager) {
|
|
7
9
|
return ConfigurationSchema('LGVSyntenyDisplay', {}, {
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
import { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
3
3
|
/**
|
|
4
4
|
* #stateModel LGVSyntenyDisplay
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* displays location of "synteny" feature in a plain LGV, allowing linking out
|
|
6
|
+
* to external synteny views
|
|
7
|
+
*
|
|
8
|
+
* extends
|
|
9
|
+
* - [SharedLinearPileupDisplayMixin](../sharedlinearpileupdisplaymixin)
|
|
7
10
|
*/
|
|
8
11
|
declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
9
12
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -69,15 +72,15 @@ declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("
|
|
|
69
72
|
};
|
|
70
73
|
fetchSizeLimit: {
|
|
71
74
|
type: string;
|
|
72
|
-
defaultValue: number;
|
|
73
|
-
* #property
|
|
74
|
-
*/
|
|
75
|
+
defaultValue: number;
|
|
75
76
|
description: string;
|
|
76
77
|
};
|
|
77
78
|
height: {
|
|
78
79
|
type: string;
|
|
79
80
|
defaultValue: number;
|
|
80
|
-
description: string;
|
|
81
|
+
description: string; /**
|
|
82
|
+
* #method
|
|
83
|
+
*/
|
|
81
84
|
};
|
|
82
85
|
mouseover: {
|
|
83
86
|
type: string;
|
|
@@ -146,7 +149,9 @@ declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("
|
|
|
146
149
|
model: {
|
|
147
150
|
id: string;
|
|
148
151
|
type: string;
|
|
149
|
-
rpcDriverName: string | undefined;
|
|
152
|
+
rpcDriverName: string | undefined; /**
|
|
153
|
+
* #method
|
|
154
|
+
*/
|
|
150
155
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
151
156
|
rendererTypeName: string;
|
|
152
157
|
error: unknown;
|
|
@@ -319,8 +324,14 @@ declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("
|
|
|
319
324
|
} & {
|
|
320
325
|
afterAttach(): void;
|
|
321
326
|
} & {
|
|
327
|
+
/**
|
|
328
|
+
* #method
|
|
329
|
+
*/
|
|
322
330
|
contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
323
331
|
} & {
|
|
332
|
+
/**
|
|
333
|
+
* #method
|
|
334
|
+
*/
|
|
324
335
|
trackMenuItems(): (import("@jbrowse/core/ui").MenuDivider | import("@jbrowse/core/ui").MenuSubHeader | import("@jbrowse/core/ui").NormalMenuItem | import("@jbrowse/core/ui").CheckboxMenuItem | import("@jbrowse/core/ui").RadioMenuItem | import("@jbrowse/core/ui").SubMenuItem | {
|
|
325
336
|
label: string;
|
|
326
337
|
subMenu: {
|
|
@@ -6,8 +6,11 @@ import { types } from 'mobx-state-tree';
|
|
|
6
6
|
const LaunchSyntenyViewDialog = lazy(() => import('./components/LaunchSyntenyViewDialog'));
|
|
7
7
|
/**
|
|
8
8
|
* #stateModel LGVSyntenyDisplay
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* displays location of "synteny" feature in a plain LGV, allowing linking out
|
|
10
|
+
* to external synteny views
|
|
11
|
+
*
|
|
12
|
+
* extends
|
|
13
|
+
* - [SharedLinearPileupDisplayMixin](../sharedlinearpileupdisplaymixin)
|
|
11
14
|
*/
|
|
12
15
|
function stateModelFactory(schema) {
|
|
13
16
|
return types
|
|
@@ -24,6 +27,9 @@ function stateModelFactory(schema) {
|
|
|
24
27
|
.views(self => {
|
|
25
28
|
const superContextMenuItems = self.contextMenuItems;
|
|
26
29
|
return {
|
|
30
|
+
/**
|
|
31
|
+
* #method
|
|
32
|
+
*/
|
|
27
33
|
contextMenuItems() {
|
|
28
34
|
const feature = self.contextMenuFeature;
|
|
29
35
|
return [
|
|
@@ -52,6 +58,9 @@ function stateModelFactory(schema) {
|
|
|
52
58
|
.views(self => {
|
|
53
59
|
const { trackMenuItems: superTrackMenuItems, colorSchemeSubMenuItems: superColorSchemeSubMenuItems, } = self;
|
|
54
60
|
return {
|
|
61
|
+
/**
|
|
62
|
+
* #method
|
|
63
|
+
*/
|
|
55
64
|
trackMenuItems() {
|
|
56
65
|
return [
|
|
57
66
|
...superTrackMenuItems(),
|
|
@@ -65,7 +74,8 @@ function stateModelFactory(schema) {
|
|
|
65
74
|
})
|
|
66
75
|
.actions(self => ({
|
|
67
76
|
afterCreate() {
|
|
68
|
-
// use color by stand to help indicate inversions better on first load,
|
|
77
|
+
// use color by stand to help indicate inversions better on first load,
|
|
78
|
+
// otherwise use selected orientation
|
|
69
79
|
if (self.colorBy) {
|
|
70
80
|
self.setColorScheme({ ...self.colorBy });
|
|
71
81
|
}
|