@jbrowse/plugin-linear-comparative-view 3.0.5 → 3.2.0
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/LinearComparativeView/components/Rubberband.js +5 -5
- package/dist/LinearComparativeView/components/VerticalGuide.js +3 -6
- package/dist/LinearComparativeView/model.d.ts +60 -4
- package/dist/LinearComparativeView/model.js +7 -2
- package/dist/LinearReadVsRef/LinearReadVsRef.js +2 -2
- package/dist/LinearSyntenyView/components/ImportForm/LeftPanel.d.ts +11 -0
- package/dist/LinearSyntenyView/components/ImportForm/LeftPanel.js +58 -0
- package/dist/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.js +18 -52
- package/dist/LinearSyntenyView/components/LinearSyntenyView.d.ts +2 -3
- package/dist/LinearSyntenyView/components/LinearSyntenyView.js +1 -1
- package/dist/LinearSyntenyView/model.d.ts +61 -5
- package/dist/LinearSyntenyView/model.js +3 -3
- package/dist/LinearSyntenyViewHelper/stateModelFactory.js +2 -2
- package/esm/LinearComparativeView/components/Rubberband.js +5 -5
- package/esm/LinearComparativeView/components/VerticalGuide.js +4 -7
- package/esm/LinearComparativeView/model.d.ts +60 -4
- package/esm/LinearComparativeView/model.js +7 -2
- package/esm/LinearReadVsRef/LinearReadVsRef.js +2 -2
- package/esm/LinearSyntenyView/components/ImportForm/LeftPanel.d.ts +11 -0
- package/esm/LinearSyntenyView/components/ImportForm/LeftPanel.js +53 -0
- package/esm/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.js +21 -55
- package/esm/LinearSyntenyView/components/LinearSyntenyView.d.ts +2 -3
- package/esm/LinearSyntenyView/components/LinearSyntenyView.js +1 -1
- package/esm/LinearSyntenyView/model.d.ts +61 -5
- package/esm/LinearSyntenyView/model.js +3 -3
- package/esm/LinearSyntenyViewHelper/stateModelFactory.js +2 -2
- package/package.json +5 -5
|
@@ -66,6 +66,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
66
66
|
highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType>>, [undefined]>;
|
|
67
67
|
colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
68
68
|
showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
69
|
+
init: import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").InitState | undefined, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").InitState | undefined, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").InitState | undefined>;
|
|
69
70
|
}, {
|
|
70
71
|
width: number;
|
|
71
72
|
} & {
|
|
@@ -87,10 +88,15 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
87
88
|
leftOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset;
|
|
88
89
|
rightOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset;
|
|
89
90
|
} & {
|
|
91
|
+
readonly pinnedTracks: any[];
|
|
92
|
+
readonly unpinnedTracks: any[];
|
|
90
93
|
readonly trackLabelsSetting: any;
|
|
91
94
|
readonly width: number;
|
|
92
95
|
readonly interRegionPaddingWidth: number;
|
|
93
96
|
readonly assemblyNames: string[];
|
|
97
|
+
readonly stickyViewHeaders: boolean;
|
|
98
|
+
readonly rubberbandTop: number;
|
|
99
|
+
readonly pinnedTracksTop: number;
|
|
94
100
|
} & {
|
|
95
101
|
scaleBarDisplayPrefix(): string | undefined;
|
|
96
102
|
MiniControlsComponent(): React.FC<any>;
|
|
@@ -176,6 +182,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
176
182
|
setDraggingTrackId(idx?: string): void;
|
|
177
183
|
setScaleFactor(factor: number): void;
|
|
178
184
|
clearView(): void;
|
|
185
|
+
setInit(arg?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").InitState): void;
|
|
179
186
|
exportSvg(opts?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").ExportSvgOptions): Promise<void>;
|
|
180
187
|
} & {
|
|
181
188
|
slide: (viewWidths: number) => void;
|
|
@@ -196,7 +203,6 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
196
203
|
readonly coarseVisibleLocStrings: string;
|
|
197
204
|
} & {
|
|
198
205
|
setCoarseDynamicBlocks(blocks: import("@jbrowse/core/util/blockTypes").BlockSet): void;
|
|
199
|
-
afterAttach(): void;
|
|
200
206
|
} & {
|
|
201
207
|
moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): void;
|
|
202
208
|
navToLocString(input: string, optAssemblyName?: string): Promise<void>;
|
|
@@ -242,6 +248,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
242
248
|
} | undefined;
|
|
243
249
|
} & {
|
|
244
250
|
afterCreate(): void;
|
|
251
|
+
afterAttach(): void;
|
|
245
252
|
}, import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
246
253
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
247
254
|
displayName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
@@ -264,7 +271,28 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
264
271
|
highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType>>, [undefined]>;
|
|
265
272
|
colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
266
273
|
showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
267
|
-
|
|
274
|
+
init: import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").InitState | undefined, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").InitState | undefined, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").InitState | undefined>;
|
|
275
|
+
}>>, {
|
|
276
|
+
id: string;
|
|
277
|
+
type: string;
|
|
278
|
+
displayName: string | undefined;
|
|
279
|
+
tracks: any[];
|
|
280
|
+
minimized: boolean;
|
|
281
|
+
displayedRegions: import("@jbrowse/core/util").Region[];
|
|
282
|
+
offsetPx: number;
|
|
283
|
+
bpPerPx: number;
|
|
284
|
+
hideHeader: boolean;
|
|
285
|
+
hideHeaderOverview: boolean;
|
|
286
|
+
hideNoTracksActive: boolean;
|
|
287
|
+
trackSelectorType: string;
|
|
288
|
+
showCenterLine: boolean;
|
|
289
|
+
showCytobandsSetting: boolean;
|
|
290
|
+
trackLabels: string;
|
|
291
|
+
showGridlines: boolean;
|
|
292
|
+
highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType[];
|
|
293
|
+
colorByCDS: boolean;
|
|
294
|
+
showTrackOutlines: boolean;
|
|
295
|
+
}>>;
|
|
268
296
|
viewTrackConfigs: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
269
297
|
} & {
|
|
270
298
|
type: import("mobx-state-tree").ISimpleType<"LinearSyntenyView">;
|
|
@@ -332,10 +360,10 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
332
360
|
type?: undefined;
|
|
333
361
|
} | {
|
|
334
362
|
label: string;
|
|
335
|
-
onClick: () => void;
|
|
336
363
|
checked: boolean;
|
|
337
364
|
type: string;
|
|
338
365
|
description: string;
|
|
366
|
+
onClick: () => void;
|
|
339
367
|
icon?: undefined;
|
|
340
368
|
} | {
|
|
341
369
|
label: string;
|
|
@@ -419,6 +447,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
419
447
|
highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType>>, [undefined]>;
|
|
420
448
|
colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
421
449
|
showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
450
|
+
init: import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").InitState | undefined, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").InitState | undefined, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").InitState | undefined>;
|
|
422
451
|
}, {
|
|
423
452
|
width: number;
|
|
424
453
|
} & {
|
|
@@ -440,10 +469,15 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
440
469
|
leftOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset;
|
|
441
470
|
rightOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset;
|
|
442
471
|
} & {
|
|
472
|
+
readonly pinnedTracks: any[];
|
|
473
|
+
readonly unpinnedTracks: any[];
|
|
443
474
|
readonly trackLabelsSetting: any;
|
|
444
475
|
readonly width: number;
|
|
445
476
|
readonly interRegionPaddingWidth: number;
|
|
446
477
|
readonly assemblyNames: string[];
|
|
478
|
+
readonly stickyViewHeaders: boolean;
|
|
479
|
+
readonly rubberbandTop: number;
|
|
480
|
+
readonly pinnedTracksTop: number;
|
|
447
481
|
} & {
|
|
448
482
|
scaleBarDisplayPrefix(): string | undefined;
|
|
449
483
|
MiniControlsComponent(): React.FC<any>;
|
|
@@ -529,6 +563,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
529
563
|
setDraggingTrackId(idx?: string): void;
|
|
530
564
|
setScaleFactor(factor: number): void;
|
|
531
565
|
clearView(): void;
|
|
566
|
+
setInit(arg?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").InitState): void;
|
|
532
567
|
exportSvg(opts?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").ExportSvgOptions): Promise<void>;
|
|
533
568
|
} & {
|
|
534
569
|
slide: (viewWidths: number) => void;
|
|
@@ -549,7 +584,6 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
549
584
|
readonly coarseVisibleLocStrings: string;
|
|
550
585
|
} & {
|
|
551
586
|
setCoarseDynamicBlocks(blocks: import("@jbrowse/core/util/blockTypes").BlockSet): void;
|
|
552
|
-
afterAttach(): void;
|
|
553
587
|
} & {
|
|
554
588
|
moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): void;
|
|
555
589
|
navToLocString(input: string, optAssemblyName?: string): Promise<void>;
|
|
@@ -595,6 +629,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
595
629
|
} | undefined;
|
|
596
630
|
} & {
|
|
597
631
|
afterCreate(): void;
|
|
632
|
+
afterAttach(): void;
|
|
598
633
|
}, import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
599
634
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
600
635
|
displayName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
@@ -617,7 +652,28 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
617
652
|
highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType>>, [undefined]>;
|
|
618
653
|
colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
619
654
|
showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
620
|
-
|
|
655
|
+
init: import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").InitState | undefined, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").InitState | undefined, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").InitState | undefined>;
|
|
656
|
+
}>>, {
|
|
657
|
+
id: string;
|
|
658
|
+
type: string;
|
|
659
|
+
displayName: string | undefined;
|
|
660
|
+
tracks: any[];
|
|
661
|
+
minimized: boolean;
|
|
662
|
+
displayedRegions: import("@jbrowse/core/util").Region[];
|
|
663
|
+
offsetPx: number;
|
|
664
|
+
bpPerPx: number;
|
|
665
|
+
hideHeader: boolean;
|
|
666
|
+
hideHeaderOverview: boolean;
|
|
667
|
+
hideNoTracksActive: boolean;
|
|
668
|
+
trackSelectorType: string;
|
|
669
|
+
showCenterLine: boolean;
|
|
670
|
+
showCytobandsSetting: boolean;
|
|
671
|
+
trackLabels: string;
|
|
672
|
+
showGridlines: boolean;
|
|
673
|
+
highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType[];
|
|
674
|
+
colorByCDS: boolean;
|
|
675
|
+
showTrackOutlines: boolean;
|
|
676
|
+
}>>;
|
|
621
677
|
viewTrackConfigs: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
622
678
|
}>> & import("mobx-state-tree/dist/internal").NonEmptyObject & import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
623
679
|
export type LinearSyntenyViewStateModel = ReturnType<typeof stateModelFactory>;
|
|
@@ -73,12 +73,12 @@ export default function stateModelFactory(pluginManager) {
|
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
label: 'Draw CIGAR',
|
|
76
|
-
onClick: () => {
|
|
77
|
-
self.setDrawCIGAR(!self.drawCIGAR);
|
|
78
|
-
},
|
|
79
76
|
checked: self.drawCIGAR,
|
|
80
77
|
type: 'checkbox',
|
|
81
78
|
description: 'Draws per-base CIGAR level alignments',
|
|
79
|
+
onClick: () => {
|
|
80
|
+
self.setDrawCIGAR(!self.drawCIGAR);
|
|
81
|
+
},
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
84
|
label: 'Link views',
|
|
@@ -48,9 +48,9 @@ export function linearSyntenyViewHelperModelFactory(pluginManager) {
|
|
|
48
48
|
const config = resolveIdentifier(schema, getRoot(self), trackId);
|
|
49
49
|
const shownTracks = self.tracks.filter(t => t.configuration === config);
|
|
50
50
|
transaction(() => {
|
|
51
|
-
|
|
51
|
+
for (const t of shownTracks) {
|
|
52
52
|
self.tracks.remove(t);
|
|
53
|
-
}
|
|
53
|
+
}
|
|
54
54
|
});
|
|
55
55
|
return shownTracks.length;
|
|
56
56
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-linear-comparative-view",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "JBrowse 2 linear comparative view",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"clean": "rimraf dist esm *.tsbuildinfo"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@jbrowse/core": "^3.0
|
|
40
|
-
"@jbrowse/plugin-alignments": "^3.0
|
|
41
|
-
"@jbrowse/plugin-linear-genome-view": "^3.0
|
|
39
|
+
"@jbrowse/core": "^3.2.0",
|
|
40
|
+
"@jbrowse/plugin-alignments": "^3.2.0",
|
|
41
|
+
"@jbrowse/plugin-linear-genome-view": "^3.2.0",
|
|
42
42
|
"@mui/icons-material": "^6.0.0",
|
|
43
43
|
"@mui/material": "^6.0.0",
|
|
44
44
|
"copy-to-clipboard": "^3.3.1",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"access": "public"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "c750e3f56706a490c19ba75abd807fec5e38aebf"
|
|
63
63
|
}
|