@jbrowse/plugin-linear-genome-view 2.1.7 → 2.2.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/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/components/Tooltip.d.ts +1 -1
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +149 -4
- 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/BaseLinearDisplay/models/serverSideRenderedBlock.d.ts +2 -2
- 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 +79 -8
- package/dist/LinearBasicDisplay/model.js +167 -111
- package/dist/LinearBasicDisplay/model.js.map +1 -1
- package/dist/LinearGenomeView/components/CenterLine.d.ts +1 -1
- package/dist/LinearGenomeView/components/GetSequenceDialog.d.ts +1 -1
- package/dist/LinearGenomeView/components/Gridlines.d.ts +1 -1
- package/dist/LinearGenomeView/components/Header.d.ts +1 -1
- package/dist/LinearGenomeView/components/ImportForm.d.ts +1 -1
- package/dist/LinearGenomeView/components/ImportForm.js +38 -31
- package/dist/LinearGenomeView/components/ImportForm.js.map +1 -1
- package/dist/LinearGenomeView/components/LinearGenomeView.d.ts +1 -1
- package/dist/LinearGenomeView/components/LinearGenomeView.js +2 -24
- package/dist/LinearGenomeView/components/LinearGenomeView.js.map +1 -1
- package/dist/LinearGenomeView/components/LinearGenomeViewSvg.d.ts +1 -1
- package/dist/LinearGenomeView/components/LinearGenomeViewSvg.js +7 -5
- package/dist/LinearGenomeView/components/LinearGenomeViewSvg.js.map +1 -1
- package/dist/LinearGenomeView/components/OverviewRubberBand.d.ts +1 -1
- package/dist/LinearGenomeView/components/OverviewScaleBar.d.ts +27 -35
- package/dist/LinearGenomeView/components/RubberBand.d.ts +1 -1
- package/dist/LinearGenomeView/components/ScaleBar.d.ts +1 -1
- package/dist/LinearGenomeView/components/TrackContainer.d.ts +1 -1
- package/dist/LinearGenomeView/components/TrackContainer.js +12 -9
- package/dist/LinearGenomeView/components/TrackContainer.js.map +1 -1
- package/dist/LinearGenomeView/components/TrackLabel.js +9 -1
- package/dist/LinearGenomeView/components/TrackLabel.js.map +1 -1
- package/dist/LinearGenomeView/components/TracksContainer.d.ts +1 -1
- package/dist/LinearGenomeView/index.d.ts +273 -18
- package/dist/LinearGenomeView/index.js +409 -90
- package/dist/LinearGenomeView/index.js.map +1 -1
- package/dist/index.d.ts +30 -90
- 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/components/Tooltip.d.ts +1 -1
- package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +149 -4
- 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/BaseLinearDisplay/models/serverSideRenderedBlock.d.ts +2 -2
- 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 +79 -8
- package/esm/LinearBasicDisplay/model.js +167 -111
- package/esm/LinearBasicDisplay/model.js.map +1 -1
- package/esm/LinearGenomeView/components/CenterLine.d.ts +1 -1
- package/esm/LinearGenomeView/components/GetSequenceDialog.d.ts +1 -1
- package/esm/LinearGenomeView/components/Gridlines.d.ts +1 -1
- package/esm/LinearGenomeView/components/Header.d.ts +1 -1
- package/esm/LinearGenomeView/components/ImportForm.d.ts +1 -1
- package/esm/LinearGenomeView/components/ImportForm.js +40 -33
- package/esm/LinearGenomeView/components/ImportForm.js.map +1 -1
- package/esm/LinearGenomeView/components/LinearGenomeView.d.ts +1 -1
- package/esm/LinearGenomeView/components/LinearGenomeView.js +3 -25
- package/esm/LinearGenomeView/components/LinearGenomeView.js.map +1 -1
- package/esm/LinearGenomeView/components/LinearGenomeViewSvg.d.ts +1 -1
- package/esm/LinearGenomeView/components/LinearGenomeViewSvg.js +7 -5
- package/esm/LinearGenomeView/components/LinearGenomeViewSvg.js.map +1 -1
- package/esm/LinearGenomeView/components/OverviewRubberBand.d.ts +1 -1
- package/esm/LinearGenomeView/components/OverviewScaleBar.d.ts +27 -35
- package/esm/LinearGenomeView/components/RubberBand.d.ts +1 -1
- package/esm/LinearGenomeView/components/ScaleBar.d.ts +1 -1
- package/esm/LinearGenomeView/components/TrackContainer.d.ts +1 -1
- package/esm/LinearGenomeView/components/TrackContainer.js +13 -10
- package/esm/LinearGenomeView/components/TrackContainer.js.map +1 -1
- package/esm/LinearGenomeView/components/TrackLabel.js +9 -1
- package/esm/LinearGenomeView/components/TrackLabel.js.map +1 -1
- package/esm/LinearGenomeView/components/TracksContainer.d.ts +1 -1
- package/esm/LinearGenomeView/index.d.ts +273 -18
- package/esm/LinearGenomeView/index.js +409 -90
- package/esm/LinearGenomeView/index.js.map +1 -1
- package/esm/index.d.ts +30 -90
- 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 +18 -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 +85 -67
- package/src/LinearGenomeView/components/LinearGenomeView.tsx +3 -33
- package/src/LinearGenomeView/components/LinearGenomeViewSvg.tsx +21 -18
- package/src/LinearGenomeView/components/TrackContainer.tsx +38 -27
- package/src/LinearGenomeView/components/TrackLabel.tsx +10 -1
- package/src/LinearGenomeView/components/__snapshots__/LinearGenomeView.test.tsx.snap +204 -204
- package/src/LinearGenomeView/index.test.ts +33 -26
- package/src/LinearGenomeView/index.tsx +471 -133
- package/src/index.ts +6 -46
|
@@ -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,12 +39,16 @@ 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>>;
|
|
48
|
+
minimized: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
44
49
|
} & {
|
|
45
50
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
46
|
-
type: import("mobx-state-tree").
|
|
51
|
+
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
47
52
|
offsetPx: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
48
53
|
bpPerPx: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
49
54
|
displayedRegions: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
@@ -72,6 +77,7 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
72
77
|
} & {
|
|
73
78
|
setDisplayName(name: string): void;
|
|
74
79
|
setWidth(newWidth: number): void;
|
|
80
|
+
setMinimized(flag: boolean): void;
|
|
75
81
|
} & {
|
|
76
82
|
volatileWidth: number | undefined;
|
|
77
83
|
minimumBlockWidth: number;
|
|
@@ -90,65 +96,221 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
90
96
|
searchQuery: string | undefined;
|
|
91
97
|
seqDialogDisplayed: boolean;
|
|
92
98
|
} & {
|
|
99
|
+
/**
|
|
100
|
+
* #getter
|
|
101
|
+
*/
|
|
93
102
|
readonly width: number;
|
|
103
|
+
/**
|
|
104
|
+
* #getter
|
|
105
|
+
*/
|
|
94
106
|
readonly interRegionPaddingWidth: number;
|
|
107
|
+
/**
|
|
108
|
+
* #getter
|
|
109
|
+
*/
|
|
95
110
|
readonly assemblyNames: string[];
|
|
96
111
|
} & {
|
|
112
|
+
/**
|
|
113
|
+
* #method
|
|
114
|
+
*/
|
|
97
115
|
MiniControlsComponent(): React.FC<any>;
|
|
116
|
+
/**
|
|
117
|
+
* #method
|
|
118
|
+
*/
|
|
98
119
|
HeaderComponent(): React.FC<any>;
|
|
120
|
+
/**
|
|
121
|
+
* #getter
|
|
122
|
+
*/
|
|
99
123
|
readonly assemblyErrors: string;
|
|
124
|
+
/**
|
|
125
|
+
* #getter
|
|
126
|
+
*/
|
|
100
127
|
readonly assembliesInitialized: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* #getter
|
|
130
|
+
*/
|
|
101
131
|
readonly initialized: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* #getter
|
|
134
|
+
*/
|
|
102
135
|
readonly hasDisplayedRegions: boolean;
|
|
136
|
+
/**
|
|
137
|
+
* #getter
|
|
138
|
+
*/
|
|
103
139
|
readonly isSearchDialogDisplayed: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* #getter
|
|
142
|
+
*/
|
|
104
143
|
readonly scaleBarHeight: number;
|
|
144
|
+
/**
|
|
145
|
+
* #getter
|
|
146
|
+
*/
|
|
105
147
|
readonly headerHeight: number;
|
|
148
|
+
/**
|
|
149
|
+
* #getter
|
|
150
|
+
*/
|
|
106
151
|
readonly trackHeights: any;
|
|
152
|
+
/**
|
|
153
|
+
* #getter
|
|
154
|
+
*/
|
|
107
155
|
readonly trackHeightsWithResizeHandles: any;
|
|
156
|
+
/**
|
|
157
|
+
* #getter
|
|
158
|
+
*/
|
|
108
159
|
readonly height: any;
|
|
160
|
+
/**
|
|
161
|
+
* #getter
|
|
162
|
+
*/
|
|
109
163
|
readonly totalBp: number;
|
|
164
|
+
/**
|
|
165
|
+
* #getter
|
|
166
|
+
*/
|
|
110
167
|
readonly maxBpPerPx: number;
|
|
168
|
+
/**
|
|
169
|
+
* #getter
|
|
170
|
+
*/
|
|
111
171
|
readonly minBpPerPx: number;
|
|
172
|
+
/**
|
|
173
|
+
* #getter
|
|
174
|
+
*/
|
|
112
175
|
readonly error: string | Error;
|
|
176
|
+
/**
|
|
177
|
+
* #getter
|
|
178
|
+
*/
|
|
113
179
|
readonly maxOffset: number;
|
|
180
|
+
/**
|
|
181
|
+
* #getter
|
|
182
|
+
*/
|
|
114
183
|
readonly minOffset: number;
|
|
184
|
+
/**
|
|
185
|
+
* #getter
|
|
186
|
+
*/
|
|
115
187
|
readonly displayedRegionsTotalPx: number;
|
|
188
|
+
/**
|
|
189
|
+
* #method
|
|
190
|
+
*/
|
|
116
191
|
renderProps(): any;
|
|
192
|
+
/**
|
|
193
|
+
* #method
|
|
194
|
+
*/
|
|
117
195
|
searchScope(assemblyName: string): {
|
|
118
196
|
assemblyName: string;
|
|
119
197
|
includeAggregateIndexes: boolean;
|
|
120
198
|
tracks: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IAnyType> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyType>>;
|
|
121
199
|
};
|
|
200
|
+
/**
|
|
201
|
+
* #method
|
|
202
|
+
*/
|
|
122
203
|
getTrack(id: string): any;
|
|
204
|
+
/**
|
|
205
|
+
* #method
|
|
206
|
+
*/
|
|
123
207
|
rankSearchResults(results: BaseResult[]): BaseResult[];
|
|
208
|
+
/**
|
|
209
|
+
* #method
|
|
210
|
+
* modifies view menu action onClick to apply to all tracks of same type
|
|
211
|
+
*/
|
|
124
212
|
rewriteOnClicks(trackType: string, viewMenuActions: MenuItem[]): void;
|
|
213
|
+
/**
|
|
214
|
+
* #getter
|
|
215
|
+
*/
|
|
125
216
|
readonly trackTypeActions: Map<string, MenuItem[]>;
|
|
126
217
|
} & {
|
|
218
|
+
/**
|
|
219
|
+
* #action
|
|
220
|
+
*/
|
|
127
221
|
setShowCytobands(flag: boolean): void;
|
|
222
|
+
/**
|
|
223
|
+
* #action
|
|
224
|
+
*/
|
|
128
225
|
setWidth(newWidth: number): void;
|
|
226
|
+
/**
|
|
227
|
+
* #action
|
|
228
|
+
*/
|
|
129
229
|
setError(error: Error | undefined): void;
|
|
230
|
+
/**
|
|
231
|
+
* #action
|
|
232
|
+
*/
|
|
130
233
|
toggleHeader(): void;
|
|
234
|
+
/**
|
|
235
|
+
* #action
|
|
236
|
+
*/
|
|
131
237
|
toggleHeaderOverview(): void;
|
|
238
|
+
/**
|
|
239
|
+
* #action
|
|
240
|
+
*/
|
|
132
241
|
toggleNoTracksActive(): void;
|
|
242
|
+
/**
|
|
243
|
+
* #action
|
|
244
|
+
*/
|
|
133
245
|
toggleShowGridlines(): void;
|
|
246
|
+
/**
|
|
247
|
+
* #action
|
|
248
|
+
*/
|
|
134
249
|
scrollTo(offsetPx: number): number;
|
|
250
|
+
/**
|
|
251
|
+
* #action
|
|
252
|
+
*/
|
|
135
253
|
zoomTo(bpPerPx: number): number;
|
|
254
|
+
/**
|
|
255
|
+
* #action
|
|
256
|
+
* sets offsets used in the get sequence dialog
|
|
257
|
+
*/
|
|
136
258
|
setOffsets(left?: BpOffset, right?: BpOffset): void;
|
|
259
|
+
/**
|
|
260
|
+
* #action
|
|
261
|
+
*/
|
|
137
262
|
setSearchResults(results?: BaseResult[], query?: string): void;
|
|
263
|
+
/**
|
|
264
|
+
* #action
|
|
265
|
+
*/
|
|
138
266
|
setGetSequenceDialogOpen(open: boolean): void;
|
|
267
|
+
/**
|
|
268
|
+
* #action
|
|
269
|
+
*/
|
|
139
270
|
setNewView(bpPerPx: number, offsetPx: number): void;
|
|
271
|
+
/**
|
|
272
|
+
* #action
|
|
273
|
+
*/
|
|
140
274
|
horizontallyFlip(): void;
|
|
275
|
+
/**
|
|
276
|
+
* #action
|
|
277
|
+
*/
|
|
141
278
|
showTrack(trackId: string, initialSnapshot?: {}, displayInitialSnapshot?: {}): any;
|
|
279
|
+
/**
|
|
280
|
+
* #action
|
|
281
|
+
*/
|
|
142
282
|
hideTrack(trackId: string): number;
|
|
143
283
|
} & {
|
|
284
|
+
/**
|
|
285
|
+
* #action
|
|
286
|
+
*/
|
|
144
287
|
moveTrack(movingId: string, targetId: string): void;
|
|
288
|
+
/**
|
|
289
|
+
* #action
|
|
290
|
+
*/
|
|
145
291
|
closeView(): void;
|
|
292
|
+
/**
|
|
293
|
+
* #action
|
|
294
|
+
*/
|
|
146
295
|
toggleTrack(trackId: string): void;
|
|
296
|
+
/**
|
|
297
|
+
* #action
|
|
298
|
+
*/
|
|
147
299
|
setTrackLabels(setting: 'overlapping' | 'offset' | 'hidden'): void;
|
|
300
|
+
/**
|
|
301
|
+
* #action
|
|
302
|
+
*/
|
|
148
303
|
toggleCenterLine(): void;
|
|
304
|
+
/**
|
|
305
|
+
* #action
|
|
306
|
+
*/
|
|
149
307
|
setDisplayedRegions(regions: Region[]): void;
|
|
308
|
+
/**
|
|
309
|
+
* #action
|
|
310
|
+
*/
|
|
150
311
|
activateTrackSelector(): import("@jbrowse/core/util").Widget;
|
|
151
312
|
/**
|
|
313
|
+
* #method
|
|
152
314
|
* Helper method for the fetchSequence.
|
|
153
315
|
* Retrieves the corresponding regions that were selected by the rubberband
|
|
154
316
|
*
|
|
@@ -169,49 +331,118 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
169
331
|
variant?: string | undefined;
|
|
170
332
|
isLeftEndOfDisplayedRegion?: boolean | undefined;
|
|
171
333
|
}[];
|
|
334
|
+
/**
|
|
335
|
+
* #action
|
|
336
|
+
* schedule something to be run after the next time displayedRegions is set
|
|
337
|
+
*/
|
|
172
338
|
afterDisplayedRegionsSet(cb: Function): void;
|
|
339
|
+
/**
|
|
340
|
+
* #action
|
|
341
|
+
*/
|
|
173
342
|
horizontalScroll(distance: number): number;
|
|
343
|
+
/**
|
|
344
|
+
* #action
|
|
345
|
+
*/
|
|
174
346
|
center(): void;
|
|
347
|
+
/**
|
|
348
|
+
* #action
|
|
349
|
+
*/
|
|
175
350
|
showAllRegions(): void;
|
|
351
|
+
/**
|
|
352
|
+
* #action
|
|
353
|
+
*/
|
|
176
354
|
showAllRegionsInAssembly(assemblyName?: string): void;
|
|
355
|
+
/**
|
|
356
|
+
* #action
|
|
357
|
+
*/
|
|
177
358
|
setDraggingTrackId(idx?: string): void;
|
|
359
|
+
/**
|
|
360
|
+
* #action
|
|
361
|
+
*/
|
|
178
362
|
setScaleFactor(factor: number): void;
|
|
363
|
+
/**
|
|
364
|
+
* #action
|
|
365
|
+
* this "clears the view" and makes the view return to the import form
|
|
366
|
+
*/
|
|
179
367
|
clearView(): void;
|
|
368
|
+
/**
|
|
369
|
+
* #action
|
|
370
|
+
* creates an svg export and save using FileSaver
|
|
371
|
+
*/
|
|
180
372
|
exportSvg(opts?: ExportSvgOptions): Promise<void>;
|
|
181
373
|
} & {
|
|
182
374
|
slide: (viewWidths: number) => void;
|
|
183
375
|
} & {
|
|
184
376
|
zoom: (targetBpPerPx: number) => void;
|
|
185
377
|
} & {
|
|
378
|
+
/**
|
|
379
|
+
* #getter
|
|
380
|
+
*/
|
|
186
381
|
readonly canShowCytobands: boolean;
|
|
382
|
+
/**
|
|
383
|
+
* #getter
|
|
384
|
+
*/
|
|
187
385
|
readonly showCytobands: boolean;
|
|
386
|
+
/**
|
|
387
|
+
* #getter
|
|
388
|
+
*/
|
|
188
389
|
readonly anyCytobandsExist: boolean;
|
|
390
|
+
/**
|
|
391
|
+
* #getter
|
|
392
|
+
* the cytoband is displayed to the right of the chromosome name,
|
|
393
|
+
* and that offset is calculated manually with this method
|
|
394
|
+
*/
|
|
189
395
|
readonly cytobandOffset: number;
|
|
190
396
|
} & {
|
|
397
|
+
/**
|
|
398
|
+
* #method
|
|
399
|
+
* return the view menu items
|
|
400
|
+
*/
|
|
191
401
|
menuItems(): MenuItem[];
|
|
192
402
|
} & {
|
|
403
|
+
/**
|
|
404
|
+
* #getter
|
|
405
|
+
* static blocks are an important concept jbrowse uses to avoid
|
|
406
|
+
* re-rendering when you scroll to the side. when you horizontally
|
|
407
|
+
* scroll to the right, old blocks to the left may be removed, and
|
|
408
|
+
* new blocks may be instantiated on the right. tracks may use the
|
|
409
|
+
* static blocks to render their data for the region represented by
|
|
410
|
+
* the block
|
|
411
|
+
*/
|
|
193
412
|
readonly staticBlocks: BlockSet;
|
|
413
|
+
/**
|
|
414
|
+
* #getter
|
|
415
|
+
* dynamic blocks represent the exact coordinates of the currently
|
|
416
|
+
* visible genome regions on the screen. they are similar to static
|
|
417
|
+
* blocks, but statcic blocks can go offscreen while dynamic blocks
|
|
418
|
+
* represent exactly what is on screen
|
|
419
|
+
*/
|
|
194
420
|
readonly dynamicBlocks: BlockSet;
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
variant?: string | undefined;
|
|
206
|
-
isLeftEndOfDisplayedRegion?: boolean | undefined;
|
|
207
|
-
}[];
|
|
421
|
+
/**
|
|
422
|
+
* #getter
|
|
423
|
+
* rounded dynamic blocks are dynamic blocks without fractions of bp
|
|
424
|
+
*/
|
|
425
|
+
readonly roundedDynamicBlocks: BaseBlock[];
|
|
426
|
+
/**
|
|
427
|
+
* #getter
|
|
428
|
+
* a single "combo-locstring" representing all the regions visible
|
|
429
|
+
* on the screen
|
|
430
|
+
*/
|
|
208
431
|
readonly visibleLocStrings: string;
|
|
432
|
+
/**
|
|
433
|
+
* #getter
|
|
434
|
+
* same as visibleLocStrings, but only updated every 300ms
|
|
435
|
+
*/
|
|
209
436
|
readonly coarseVisibleLocStrings: string;
|
|
210
437
|
} & {
|
|
438
|
+
/**
|
|
439
|
+
* #action
|
|
440
|
+
*/
|
|
211
441
|
setCoarseDynamicBlocks(blocks: BlockSet): void;
|
|
212
442
|
afterAttach(): void;
|
|
213
443
|
} & {
|
|
214
444
|
/**
|
|
445
|
+
* #action
|
|
215
446
|
* offset is the base-pair-offset in the displayed region, index is the index of the
|
|
216
447
|
* displayed region in the linear genome view
|
|
217
448
|
*
|
|
@@ -219,8 +450,16 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
219
450
|
* @param end - object as `{start, end, offset, index}`
|
|
220
451
|
*/
|
|
221
452
|
moveTo(start?: BpOffset, end?: BpOffset): void;
|
|
222
|
-
navToLocString(locString: string, optAssemblyName?: string): void;
|
|
223
453
|
/**
|
|
454
|
+
* #action
|
|
455
|
+
* navigate to the given locstring
|
|
456
|
+
*
|
|
457
|
+
* @param locString - e.g. "chr1:1-100"
|
|
458
|
+
* @param optAssemblyName - (optional) the assembly name to use when navigating to the locstring
|
|
459
|
+
*/
|
|
460
|
+
navToLocString(locString: string, optAssemblyName?: string): Promise<void>;
|
|
461
|
+
/**
|
|
462
|
+
* #action
|
|
224
463
|
* Navigate to a location based on its refName and optionally start, end,
|
|
225
464
|
* and assemblyName. Can handle if there are multiple displayedRegions
|
|
226
465
|
* from same refName. Only navigates to a location if it is entirely
|
|
@@ -229,12 +468,21 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
229
468
|
*
|
|
230
469
|
* Throws an error if navigation was unsuccessful
|
|
231
470
|
*
|
|
232
|
-
* @param
|
|
471
|
+
* @param query - a proposed location to navigate to
|
|
233
472
|
*/
|
|
234
473
|
navTo(query: NavLocation): void;
|
|
474
|
+
/**
|
|
475
|
+
* #action
|
|
476
|
+
*/
|
|
235
477
|
navToMultiple(locations: NavLocation[]): void;
|
|
236
478
|
} & {
|
|
479
|
+
/**
|
|
480
|
+
* #method
|
|
481
|
+
*/
|
|
237
482
|
rubberBandMenuItems(): MenuItem[];
|
|
483
|
+
/**
|
|
484
|
+
* #method
|
|
485
|
+
*/
|
|
238
486
|
bpToPx({ refName, coord, regionNumber, }: {
|
|
239
487
|
refName: string;
|
|
240
488
|
coord: number;
|
|
@@ -244,6 +492,7 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
244
492
|
offsetPx: number;
|
|
245
493
|
} | undefined;
|
|
246
494
|
/**
|
|
495
|
+
* #method
|
|
247
496
|
* scrolls the view to center on the given bp. if that is not in any
|
|
248
497
|
* of the displayed regions, does nothing
|
|
249
498
|
* @param coord - basepair at which you want to center the view
|
|
@@ -251,6 +500,9 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
251
500
|
* @param regionNumber - index of the displayedRegion
|
|
252
501
|
*/
|
|
253
502
|
centerAt(coord: number, refName: string, regionNumber: number): void;
|
|
503
|
+
/**
|
|
504
|
+
* #method
|
|
505
|
+
*/
|
|
254
506
|
pxToBp(px: number): {
|
|
255
507
|
coord: number;
|
|
256
508
|
index: number;
|
|
@@ -262,6 +514,9 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
262
514
|
end: number;
|
|
263
515
|
reversed: boolean;
|
|
264
516
|
};
|
|
517
|
+
/**
|
|
518
|
+
* #getter
|
|
519
|
+
*/
|
|
265
520
|
readonly centerLineInfo: {
|
|
266
521
|
coord: number;
|
|
267
522
|
index: number;
|
|
@@ -275,6 +530,6 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
275
530
|
} | undefined;
|
|
276
531
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
277
532
|
export { renderToSvg, RefNameAutocomplete, SearchBox, ZoomControls, LinearGenomeView, };
|
|
278
|
-
export
|
|
279
|
-
export
|
|
533
|
+
export type LinearGenomeViewStateModel = ReturnType<typeof stateModelFactory>;
|
|
534
|
+
export type LinearGenomeViewModel = Instance<LinearGenomeViewStateModel>;
|
|
280
535
|
export { default as ReactComponent } from './components/LinearGenomeView';
|