@jbrowse/plugin-linear-genome-view 2.1.7 → 2.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/BaseLinearDisplay/components/LinearBlocks.d.ts +2 -2
- package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +2 -22
- package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js.map +1 -1
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +146 -1
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.js +600 -464
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.js.map +1 -1
- package/dist/BaseLinearDisplay/models/baseLinearDisplayConfigSchema.js +19 -1
- package/dist/BaseLinearDisplay/models/baseLinearDisplayConfigSchema.js.map +1 -1
- package/dist/BasicTrack/configSchema.d.ts +3 -0
- package/dist/BasicTrack/configSchema.js +18 -0
- package/dist/BasicTrack/configSchema.js.map +1 -0
- package/dist/BasicTrack/index.d.ts +3 -0
- package/dist/BasicTrack/index.js +18 -0
- package/dist/BasicTrack/index.js.map +1 -0
- package/dist/FeatureTrack/configSchema.d.ts +3 -0
- package/dist/FeatureTrack/configSchema.js +21 -0
- package/dist/FeatureTrack/configSchema.js.map +1 -0
- package/dist/FeatureTrack/index.d.ts +3 -0
- package/dist/FeatureTrack/index.js +18 -0
- package/dist/FeatureTrack/index.js.map +1 -0
- package/dist/LinearBareDisplay/configSchema.d.ts +5 -1
- package/dist/LinearBareDisplay/configSchema.js +12 -1
- package/dist/LinearBareDisplay/configSchema.js.map +1 -1
- package/dist/LinearBareDisplay/model.d.ts +16 -0
- package/dist/LinearBareDisplay/model.js +16 -0
- package/dist/LinearBareDisplay/model.js.map +1 -1
- package/dist/LinearBasicDisplay/configSchema.d.ts +5 -1
- package/dist/LinearBasicDisplay/configSchema.js +16 -1
- package/dist/LinearBasicDisplay/configSchema.js.map +1 -1
- package/dist/LinearBasicDisplay/model.d.ts +77 -6
- package/dist/LinearBasicDisplay/model.js +167 -111
- package/dist/LinearBasicDisplay/model.js.map +1 -1
- package/dist/LinearGenomeView/components/ImportForm.js +34 -28
- package/dist/LinearGenomeView/components/ImportForm.js.map +1 -1
- package/dist/LinearGenomeView/components/LinearGenomeView.js +1 -21
- package/dist/LinearGenomeView/components/LinearGenomeView.js.map +1 -1
- package/dist/LinearGenomeView/components/LinearGenomeViewSvg.js +7 -5
- package/dist/LinearGenomeView/components/LinearGenomeViewSvg.js.map +1 -1
- package/dist/LinearGenomeView/components/OverviewScaleBar.d.ts +26 -34
- package/dist/LinearGenomeView/index.d.ts +189 -15
- package/dist/LinearGenomeView/index.js +266 -27
- package/dist/LinearGenomeView/index.js.map +1 -1
- package/dist/index.d.ts +12 -84
- package/dist/index.js +4 -25
- package/dist/index.js.map +1 -1
- package/esm/BaseLinearDisplay/components/LinearBlocks.d.ts +2 -2
- package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +2 -22
- package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js.map +1 -1
- package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +146 -1
- package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.js +600 -464
- package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.js.map +1 -1
- package/esm/BaseLinearDisplay/models/baseLinearDisplayConfigSchema.js +19 -1
- package/esm/BaseLinearDisplay/models/baseLinearDisplayConfigSchema.js.map +1 -1
- package/esm/BasicTrack/configSchema.d.ts +3 -0
- package/esm/BasicTrack/configSchema.js +16 -0
- package/esm/BasicTrack/configSchema.js.map +1 -0
- package/esm/BasicTrack/index.d.ts +3 -0
- package/esm/BasicTrack/index.js +13 -0
- package/esm/BasicTrack/index.js.map +1 -0
- package/esm/FeatureTrack/configSchema.d.ts +3 -0
- package/esm/FeatureTrack/configSchema.js +19 -0
- package/esm/FeatureTrack/configSchema.js.map +1 -0
- package/esm/FeatureTrack/index.d.ts +3 -0
- package/esm/FeatureTrack/index.js +13 -0
- package/esm/FeatureTrack/index.js.map +1 -0
- package/esm/LinearBareDisplay/configSchema.d.ts +5 -1
- package/esm/LinearBareDisplay/configSchema.js +14 -2
- package/esm/LinearBareDisplay/configSchema.js.map +1 -1
- package/esm/LinearBareDisplay/model.d.ts +16 -0
- package/esm/LinearBareDisplay/model.js +16 -0
- package/esm/LinearBareDisplay/model.js.map +1 -1
- package/esm/LinearBasicDisplay/configSchema.d.ts +5 -1
- package/esm/LinearBasicDisplay/configSchema.js +18 -2
- package/esm/LinearBasicDisplay/configSchema.js.map +1 -1
- package/esm/LinearBasicDisplay/model.d.ts +77 -6
- package/esm/LinearBasicDisplay/model.js +167 -111
- package/esm/LinearBasicDisplay/model.js.map +1 -1
- package/esm/LinearGenomeView/components/ImportForm.js +36 -30
- package/esm/LinearGenomeView/components/ImportForm.js.map +1 -1
- package/esm/LinearGenomeView/components/LinearGenomeView.js +2 -22
- package/esm/LinearGenomeView/components/LinearGenomeView.js.map +1 -1
- package/esm/LinearGenomeView/components/LinearGenomeViewSvg.js +7 -5
- package/esm/LinearGenomeView/components/LinearGenomeViewSvg.js.map +1 -1
- package/esm/LinearGenomeView/components/OverviewScaleBar.d.ts +26 -34
- package/esm/LinearGenomeView/index.d.ts +189 -15
- package/esm/LinearGenomeView/index.js +266 -27
- package/esm/LinearGenomeView/index.js.map +1 -1
- package/esm/index.d.ts +12 -84
- package/esm/index.js +4 -25
- package/esm/index.js.map +1 -1
- package/package.json +2 -2
- package/src/BaseLinearDisplay/components/ServerSideRenderedBlockContent.tsx +2 -24
- package/src/BaseLinearDisplay/models/BaseLinearDisplayModel.tsx +695 -555
- package/src/BaseLinearDisplay/models/baseLinearDisplayConfigSchema.ts +20 -1
- package/src/BasicTrack/configSchema.ts +23 -0
- package/src/BasicTrack/index.ts +22 -0
- package/src/FeatureTrack/configSchema.ts +27 -0
- package/src/FeatureTrack/index.ts +21 -0
- package/src/LinearBareDisplay/configSchema.ts +15 -2
- package/src/LinearBareDisplay/model.ts +16 -0
- package/src/LinearBasicDisplay/configSchema.ts +19 -2
- package/src/LinearBasicDisplay/model.ts +63 -11
- package/src/LinearGenomeView/components/ImportForm.tsx +79 -63
- package/src/LinearGenomeView/components/LinearGenomeView.tsx +2 -26
- package/src/LinearGenomeView/components/LinearGenomeViewSvg.tsx +21 -18
- package/src/LinearGenomeView/components/__snapshots__/LinearGenomeView.test.tsx.snap +204 -204
- package/src/LinearGenomeView/index.test.ts +33 -26
- package/src/LinearGenomeView/index.tsx +317 -60
- package/src/index.ts +6 -46
|
@@ -14,8 +14,10 @@ declare const Cytobands: ({ overview, block, assembly, }: {
|
|
|
14
14
|
assembly?: ({
|
|
15
15
|
configuration: any;
|
|
16
16
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
17
|
-
error:
|
|
18
|
-
|
|
17
|
+
error: unknown;
|
|
18
|
+
loaded: boolean;
|
|
19
|
+
loadingP: Promise<void> | undefined;
|
|
20
|
+
volatileRegions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
19
21
|
refNameAliases: {
|
|
20
22
|
[x: string]: string;
|
|
21
23
|
} | undefined;
|
|
@@ -26,41 +28,35 @@ declare const Cytobands: ({ overview, block, assembly, }: {
|
|
|
26
28
|
} & {
|
|
27
29
|
readonly initialized: boolean;
|
|
28
30
|
readonly name: string;
|
|
31
|
+
readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
29
32
|
readonly aliases: string[];
|
|
30
33
|
readonly displayName: string | undefined;
|
|
31
34
|
hasName(name: string): boolean;
|
|
32
35
|
readonly allAliases: string[];
|
|
33
|
-
readonly refNames: string[] | undefined;
|
|
34
36
|
readonly allRefNames: string[] | undefined;
|
|
35
37
|
readonly lowerCaseRefNames: string[] | undefined;
|
|
36
38
|
readonly allRefNamesWithLowerCase: string[] | undefined;
|
|
37
39
|
readonly rpcManager: any;
|
|
38
40
|
readonly refNameColors: string[];
|
|
41
|
+
} & {
|
|
42
|
+
readonly refNames: string[] | undefined;
|
|
39
43
|
} & {
|
|
40
44
|
getCanonicalRefName(refName: string): string;
|
|
41
45
|
getRefNameColor(refName: string): string | undefined;
|
|
42
46
|
isValidRefName(refName: string): boolean;
|
|
43
47
|
} & {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
adapterRegionsWithAssembly: import("@jbrowse/core/util").Region[];
|
|
47
|
-
refNameAliases: {
|
|
48
|
-
[x: string]: string;
|
|
49
|
-
};
|
|
50
|
-
lowerCaseRefNameAliases: {
|
|
51
|
-
[x: string]: string;
|
|
52
|
-
};
|
|
53
|
-
cytobands: import("@jbrowse/core/util").Feature[];
|
|
54
|
-
}): void;
|
|
55
|
-
setError(e: Error): void;
|
|
48
|
+
setLoaded({ adapterRegionsWithAssembly, refNameAliases, lowerCaseRefNameAliases, cytobands, }: import("@jbrowse/core/assemblyManager/assembly").Loading): void;
|
|
49
|
+
setError(e: unknown): void;
|
|
56
50
|
setRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
57
51
|
setRefNameAliases(aliases: {
|
|
58
52
|
[x: string]: string;
|
|
59
|
-
},
|
|
53
|
+
}, lcAliases: {
|
|
60
54
|
[x: string]: string;
|
|
61
55
|
}): void;
|
|
62
56
|
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
63
|
-
|
|
57
|
+
setLoadingP(p?: Promise<void> | undefined): void;
|
|
58
|
+
load(): Promise<void>;
|
|
59
|
+
loadPre(): Promise<void>;
|
|
64
60
|
} & {
|
|
65
61
|
getAdapterMapEntry(adapterConf: unknown, options: import("@jbrowse/core/assemblyManager/assembly").BaseOptions): Promise<import("@jbrowse/core/assemblyManager/assembly").RefNameMap>;
|
|
66
62
|
getRefNameMapForAdapter(adapterConf: unknown, opts: import("@jbrowse/core/assemblyManager/assembly").BaseOptions): Promise<{
|
|
@@ -72,8 +68,10 @@ declare const Cytobands: ({ overview, block, assembly, }: {
|
|
|
72
68
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
73
69
|
configuration: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IAnyType>>;
|
|
74
70
|
}, {
|
|
75
|
-
error:
|
|
76
|
-
|
|
71
|
+
error: unknown;
|
|
72
|
+
loaded: boolean;
|
|
73
|
+
loadingP: Promise<void> | undefined;
|
|
74
|
+
volatileRegions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
77
75
|
refNameAliases: {
|
|
78
76
|
[x: string]: string;
|
|
79
77
|
} | undefined;
|
|
@@ -84,41 +82,35 @@ declare const Cytobands: ({ overview, block, assembly, }: {
|
|
|
84
82
|
} & {
|
|
85
83
|
readonly initialized: boolean;
|
|
86
84
|
readonly name: string;
|
|
85
|
+
readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
87
86
|
readonly aliases: string[];
|
|
88
87
|
readonly displayName: string | undefined;
|
|
89
88
|
hasName(name: string): boolean;
|
|
90
89
|
readonly allAliases: string[];
|
|
91
|
-
readonly refNames: string[] | undefined;
|
|
92
90
|
readonly allRefNames: string[] | undefined;
|
|
93
91
|
readonly lowerCaseRefNames: string[] | undefined;
|
|
94
92
|
readonly allRefNamesWithLowerCase: string[] | undefined;
|
|
95
93
|
readonly rpcManager: any;
|
|
96
94
|
readonly refNameColors: string[];
|
|
95
|
+
} & {
|
|
96
|
+
readonly refNames: string[] | undefined;
|
|
97
97
|
} & {
|
|
98
98
|
getCanonicalRefName(refName: string): string;
|
|
99
99
|
getRefNameColor(refName: string): string | undefined;
|
|
100
100
|
isValidRefName(refName: string): boolean;
|
|
101
101
|
} & {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
adapterRegionsWithAssembly: import("@jbrowse/core/util").Region[];
|
|
105
|
-
refNameAliases: {
|
|
106
|
-
[x: string]: string;
|
|
107
|
-
};
|
|
108
|
-
lowerCaseRefNameAliases: {
|
|
109
|
-
[x: string]: string;
|
|
110
|
-
};
|
|
111
|
-
cytobands: import("@jbrowse/core/util").Feature[];
|
|
112
|
-
}): void;
|
|
113
|
-
setError(e: Error): void;
|
|
102
|
+
setLoaded({ adapterRegionsWithAssembly, refNameAliases, lowerCaseRefNameAliases, cytobands, }: import("@jbrowse/core/assemblyManager/assembly").Loading): void;
|
|
103
|
+
setError(e: unknown): void;
|
|
114
104
|
setRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
115
105
|
setRefNameAliases(aliases: {
|
|
116
106
|
[x: string]: string;
|
|
117
|
-
},
|
|
107
|
+
}, lcAliases: {
|
|
118
108
|
[x: string]: string;
|
|
119
109
|
}): void;
|
|
120
110
|
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
121
|
-
|
|
111
|
+
setLoadingP(p?: Promise<void> | undefined): void;
|
|
112
|
+
load(): Promise<void>;
|
|
113
|
+
loadPre(): Promise<void>;
|
|
122
114
|
} & {
|
|
123
115
|
getAdapterMapEntry(adapterConf: unknown, options: import("@jbrowse/core/assemblyManager/assembly").BaseOptions): Promise<import("@jbrowse/core/assemblyManager/assembly").RefNameMap>;
|
|
124
116
|
getRefNameMapForAdapter(adapterConf: unknown, opts: import("@jbrowse/core/assemblyManager/assembly").BaseOptions): Promise<{
|
|
@@ -24,6 +24,7 @@ export interface BpOffset {
|
|
|
24
24
|
export interface ExportSvgOptions {
|
|
25
25
|
rasterizeLayers?: boolean;
|
|
26
26
|
filename?: string;
|
|
27
|
+
Wrapper?: React.FC<any>;
|
|
27
28
|
}
|
|
28
29
|
export interface NavLocation {
|
|
29
30
|
refName: string;
|
|
@@ -38,6 +39,9 @@ export declare const RESIZE_HANDLE_HEIGHT = 3;
|
|
|
38
39
|
export declare const INTER_REGION_PADDING_WIDTH = 2;
|
|
39
40
|
export declare const SPACING = 7;
|
|
40
41
|
export declare const WIDGET_HEIGHT = 32;
|
|
42
|
+
/**
|
|
43
|
+
* #stateModel LinearGenomeView
|
|
44
|
+
*/
|
|
41
45
|
export declare function stateModelFactory(pluginManager: PluginManager): import("mobx-state-tree").IModelType<{
|
|
42
46
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
43
47
|
displayName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
@@ -90,8 +94,17 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
90
94
|
searchQuery: string | undefined;
|
|
91
95
|
seqDialogDisplayed: boolean;
|
|
92
96
|
} & {
|
|
97
|
+
/**
|
|
98
|
+
* #getter
|
|
99
|
+
*/
|
|
93
100
|
readonly width: number;
|
|
101
|
+
/**
|
|
102
|
+
* #getter
|
|
103
|
+
*/
|
|
94
104
|
readonly interRegionPaddingWidth: number;
|
|
105
|
+
/**
|
|
106
|
+
* #getter
|
|
107
|
+
*/
|
|
95
108
|
readonly assemblyNames: string[];
|
|
96
109
|
} & {
|
|
97
110
|
MiniControlsComponent(): React.FC<any>;
|
|
@@ -124,31 +137,99 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
124
137
|
rewriteOnClicks(trackType: string, viewMenuActions: MenuItem[]): void;
|
|
125
138
|
readonly trackTypeActions: Map<string, MenuItem[]>;
|
|
126
139
|
} & {
|
|
140
|
+
/**
|
|
141
|
+
* #action
|
|
142
|
+
*/
|
|
127
143
|
setShowCytobands(flag: boolean): void;
|
|
144
|
+
/**
|
|
145
|
+
* #action
|
|
146
|
+
*/
|
|
128
147
|
setWidth(newWidth: number): void;
|
|
148
|
+
/**
|
|
149
|
+
* #action
|
|
150
|
+
*/
|
|
129
151
|
setError(error: Error | undefined): void;
|
|
152
|
+
/**
|
|
153
|
+
* #action
|
|
154
|
+
*/
|
|
130
155
|
toggleHeader(): void;
|
|
156
|
+
/**
|
|
157
|
+
* #action
|
|
158
|
+
*/
|
|
131
159
|
toggleHeaderOverview(): void;
|
|
160
|
+
/**
|
|
161
|
+
* #action
|
|
162
|
+
*/
|
|
132
163
|
toggleNoTracksActive(): void;
|
|
164
|
+
/**
|
|
165
|
+
* #action
|
|
166
|
+
*/
|
|
133
167
|
toggleShowGridlines(): void;
|
|
168
|
+
/**
|
|
169
|
+
* #action
|
|
170
|
+
*/
|
|
134
171
|
scrollTo(offsetPx: number): number;
|
|
172
|
+
/**
|
|
173
|
+
* #action
|
|
174
|
+
*/
|
|
135
175
|
zoomTo(bpPerPx: number): number;
|
|
176
|
+
/**
|
|
177
|
+
* #action
|
|
178
|
+
* sets offsets used in the get sequence dialog
|
|
179
|
+
*/
|
|
136
180
|
setOffsets(left?: BpOffset, right?: BpOffset): void;
|
|
181
|
+
/**
|
|
182
|
+
* #action
|
|
183
|
+
*/
|
|
137
184
|
setSearchResults(results?: BaseResult[], query?: string): void;
|
|
185
|
+
/**
|
|
186
|
+
* #action
|
|
187
|
+
*/
|
|
138
188
|
setGetSequenceDialogOpen(open: boolean): void;
|
|
189
|
+
/**
|
|
190
|
+
* #action
|
|
191
|
+
*/
|
|
139
192
|
setNewView(bpPerPx: number, offsetPx: number): void;
|
|
193
|
+
/**
|
|
194
|
+
* #action
|
|
195
|
+
*/
|
|
140
196
|
horizontallyFlip(): void;
|
|
197
|
+
/**
|
|
198
|
+
* #action
|
|
199
|
+
*/
|
|
141
200
|
showTrack(trackId: string, initialSnapshot?: {}, displayInitialSnapshot?: {}): any;
|
|
142
201
|
hideTrack(trackId: string): number;
|
|
143
202
|
} & {
|
|
203
|
+
/**
|
|
204
|
+
* #action
|
|
205
|
+
*/
|
|
144
206
|
moveTrack(movingId: string, targetId: string): void;
|
|
207
|
+
/**
|
|
208
|
+
* #action
|
|
209
|
+
*/
|
|
145
210
|
closeView(): void;
|
|
211
|
+
/**
|
|
212
|
+
* #action
|
|
213
|
+
*/
|
|
146
214
|
toggleTrack(trackId: string): void;
|
|
215
|
+
/**
|
|
216
|
+
* #action
|
|
217
|
+
*/
|
|
147
218
|
setTrackLabels(setting: 'overlapping' | 'offset' | 'hidden'): void;
|
|
219
|
+
/**
|
|
220
|
+
* #action
|
|
221
|
+
*/
|
|
148
222
|
toggleCenterLine(): void;
|
|
223
|
+
/**
|
|
224
|
+
* #action
|
|
225
|
+
*/
|
|
149
226
|
setDisplayedRegions(regions: Region[]): void;
|
|
227
|
+
/**
|
|
228
|
+
* #action
|
|
229
|
+
*/
|
|
150
230
|
activateTrackSelector(): import("@jbrowse/core/util").Widget;
|
|
151
231
|
/**
|
|
232
|
+
* #method
|
|
152
233
|
* Helper method for the fetchSequence.
|
|
153
234
|
* Retrieves the corresponding regions that were selected by the rubberband
|
|
154
235
|
*
|
|
@@ -169,49 +250,118 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
169
250
|
variant?: string | undefined;
|
|
170
251
|
isLeftEndOfDisplayedRegion?: boolean | undefined;
|
|
171
252
|
}[];
|
|
253
|
+
/**
|
|
254
|
+
* #action
|
|
255
|
+
* schedule something to be run after the next time displayedRegions is set
|
|
256
|
+
*/
|
|
172
257
|
afterDisplayedRegionsSet(cb: Function): void;
|
|
258
|
+
/**
|
|
259
|
+
* #action
|
|
260
|
+
*/
|
|
173
261
|
horizontalScroll(distance: number): number;
|
|
262
|
+
/**
|
|
263
|
+
* #action
|
|
264
|
+
*/
|
|
174
265
|
center(): void;
|
|
266
|
+
/**
|
|
267
|
+
* #action
|
|
268
|
+
*/
|
|
175
269
|
showAllRegions(): void;
|
|
270
|
+
/**
|
|
271
|
+
* #action
|
|
272
|
+
*/
|
|
176
273
|
showAllRegionsInAssembly(assemblyName?: string): void;
|
|
274
|
+
/**
|
|
275
|
+
* #action
|
|
276
|
+
*/
|
|
177
277
|
setDraggingTrackId(idx?: string): void;
|
|
278
|
+
/**
|
|
279
|
+
* #action
|
|
280
|
+
*/
|
|
178
281
|
setScaleFactor(factor: number): void;
|
|
282
|
+
/**
|
|
283
|
+
* #action
|
|
284
|
+
* this "clears the view" and makes the view return to the import form
|
|
285
|
+
*/
|
|
179
286
|
clearView(): void;
|
|
287
|
+
/**
|
|
288
|
+
* #action
|
|
289
|
+
* creates an svg export and save using FileSaver
|
|
290
|
+
*/
|
|
180
291
|
exportSvg(opts?: ExportSvgOptions): Promise<void>;
|
|
181
292
|
} & {
|
|
182
293
|
slide: (viewWidths: number) => void;
|
|
183
294
|
} & {
|
|
184
295
|
zoom: (targetBpPerPx: number) => void;
|
|
185
296
|
} & {
|
|
297
|
+
/**
|
|
298
|
+
* #getter
|
|
299
|
+
*/
|
|
186
300
|
readonly canShowCytobands: boolean;
|
|
301
|
+
/**
|
|
302
|
+
* #getter
|
|
303
|
+
*/
|
|
187
304
|
readonly showCytobands: boolean;
|
|
305
|
+
/**
|
|
306
|
+
* #getter
|
|
307
|
+
*/
|
|
188
308
|
readonly anyCytobandsExist: boolean;
|
|
309
|
+
/**
|
|
310
|
+
* #getter
|
|
311
|
+
* the cytoband is displayed to the right of the chromosome name,
|
|
312
|
+
* and that offset is calculated manually with this method
|
|
313
|
+
*/
|
|
189
314
|
readonly cytobandOffset: number;
|
|
190
315
|
} & {
|
|
316
|
+
/**
|
|
317
|
+
* #method
|
|
318
|
+
* return the view menu items
|
|
319
|
+
*/
|
|
191
320
|
menuItems(): MenuItem[];
|
|
192
321
|
} & {
|
|
322
|
+
/**
|
|
323
|
+
* #getter
|
|
324
|
+
* static blocks are an important concept jbrowse uses to avoid
|
|
325
|
+
* re-rendering when you scroll to the side. when you horizontally
|
|
326
|
+
* scroll to the right, old blocks to the left may be removed, and
|
|
327
|
+
* new blocks may be instantiated on the right. tracks may use the
|
|
328
|
+
* static blocks to render their data for the region represented by
|
|
329
|
+
* the block
|
|
330
|
+
*/
|
|
193
331
|
readonly staticBlocks: BlockSet;
|
|
332
|
+
/**
|
|
333
|
+
* #getter
|
|
334
|
+
* dynamic blocks represent the exact coordinates of the currently
|
|
335
|
+
* visible genome regions on the screen. they are similar to static
|
|
336
|
+
* blocks, but statcic blocks can go offscreen while dynamic blocks
|
|
337
|
+
* represent exactly what is on screen
|
|
338
|
+
*/
|
|
194
339
|
readonly dynamicBlocks: BlockSet;
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
variant?: string | undefined;
|
|
206
|
-
isLeftEndOfDisplayedRegion?: boolean | undefined;
|
|
207
|
-
}[];
|
|
340
|
+
/**
|
|
341
|
+
* #getter
|
|
342
|
+
* rounded dynamic blocks are dynamic blocks without fractions of bp
|
|
343
|
+
*/
|
|
344
|
+
readonly roundedDynamicBlocks: BaseBlock[];
|
|
345
|
+
/**
|
|
346
|
+
* #getter
|
|
347
|
+
* a single "combo-locstring" representing all the regions visible
|
|
348
|
+
* on the screen
|
|
349
|
+
*/
|
|
208
350
|
readonly visibleLocStrings: string;
|
|
351
|
+
/**
|
|
352
|
+
* #getter
|
|
353
|
+
* same as visibleLocStrings, but only updated every 300ms
|
|
354
|
+
*/
|
|
209
355
|
readonly coarseVisibleLocStrings: string;
|
|
210
356
|
} & {
|
|
357
|
+
/**
|
|
358
|
+
* #action
|
|
359
|
+
*/
|
|
211
360
|
setCoarseDynamicBlocks(blocks: BlockSet): void;
|
|
212
361
|
afterAttach(): void;
|
|
213
362
|
} & {
|
|
214
363
|
/**
|
|
364
|
+
* #action
|
|
215
365
|
* offset is the base-pair-offset in the displayed region, index is the index of the
|
|
216
366
|
* displayed region in the linear genome view
|
|
217
367
|
*
|
|
@@ -219,8 +369,16 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
219
369
|
* @param end - object as `{start, end, offset, index}`
|
|
220
370
|
*/
|
|
221
371
|
moveTo(start?: BpOffset, end?: BpOffset): void;
|
|
222
|
-
navToLocString(locString: string, optAssemblyName?: string): void;
|
|
223
372
|
/**
|
|
373
|
+
* #action
|
|
374
|
+
* navigate to the given locstring
|
|
375
|
+
*
|
|
376
|
+
* @param locString - e.g. "chr1:1-100"
|
|
377
|
+
* @param optAssemblyName - (optional) the assembly name to use when navigating to the locstring
|
|
378
|
+
*/
|
|
379
|
+
navToLocString(locString: string, optAssemblyName?: string): Promise<void>;
|
|
380
|
+
/**
|
|
381
|
+
* #action
|
|
224
382
|
* Navigate to a location based on its refName and optionally start, end,
|
|
225
383
|
* and assemblyName. Can handle if there are multiple displayedRegions
|
|
226
384
|
* from same refName. Only navigates to a location if it is entirely
|
|
@@ -229,12 +387,21 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
229
387
|
*
|
|
230
388
|
* Throws an error if navigation was unsuccessful
|
|
231
389
|
*
|
|
232
|
-
* @param
|
|
390
|
+
* @param query - a proposed location to navigate to
|
|
233
391
|
*/
|
|
234
392
|
navTo(query: NavLocation): void;
|
|
393
|
+
/**
|
|
394
|
+
* #action
|
|
395
|
+
*/
|
|
235
396
|
navToMultiple(locations: NavLocation[]): void;
|
|
236
397
|
} & {
|
|
398
|
+
/**
|
|
399
|
+
* #method
|
|
400
|
+
*/
|
|
237
401
|
rubberBandMenuItems(): MenuItem[];
|
|
402
|
+
/**
|
|
403
|
+
* #method
|
|
404
|
+
*/
|
|
238
405
|
bpToPx({ refName, coord, regionNumber, }: {
|
|
239
406
|
refName: string;
|
|
240
407
|
coord: number;
|
|
@@ -244,6 +411,7 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
244
411
|
offsetPx: number;
|
|
245
412
|
} | undefined;
|
|
246
413
|
/**
|
|
414
|
+
* #method
|
|
247
415
|
* scrolls the view to center on the given bp. if that is not in any
|
|
248
416
|
* of the displayed regions, does nothing
|
|
249
417
|
* @param coord - basepair at which you want to center the view
|
|
@@ -251,6 +419,9 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
251
419
|
* @param regionNumber - index of the displayedRegion
|
|
252
420
|
*/
|
|
253
421
|
centerAt(coord: number, refName: string, regionNumber: number): void;
|
|
422
|
+
/**
|
|
423
|
+
* #method
|
|
424
|
+
*/
|
|
254
425
|
pxToBp(px: number): {
|
|
255
426
|
coord: number;
|
|
256
427
|
index: number;
|
|
@@ -262,6 +433,9 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
262
433
|
end: number;
|
|
263
434
|
reversed: boolean;
|
|
264
435
|
};
|
|
436
|
+
/**
|
|
437
|
+
* #getter
|
|
438
|
+
*/
|
|
265
439
|
readonly centerLineInfo: {
|
|
266
440
|
coord: number;
|
|
267
441
|
index: number;
|