@jbrowse/plugin-linear-genome-view 2.4.1 → 2.5.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 +1 -4
- package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +8 -43
- package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js.map +1 -1
- package/dist/BaseLinearDisplay/components/TooLargeMessage.d.ts +3 -4
- package/dist/BaseLinearDisplay/components/TooLargeMessage.js +9 -9
- package/dist/BaseLinearDisplay/components/TooLargeMessage.js.map +1 -1
- package/dist/BaseLinearDisplay/components/Tooltip.d.ts +0 -1
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +81 -35
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.js +105 -143
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.js.map +1 -1
- package/dist/BaseLinearDisplay/models/configSchema.d.ts +35 -1
- package/dist/BaseLinearDisplay/models/configSchema.js +9 -0
- package/dist/BaseLinearDisplay/models/configSchema.js.map +1 -1
- package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.js +10 -6
- package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.js.map +1 -1
- package/dist/BaseLinearDisplay/models/util.d.ts +8 -0
- package/dist/BaseLinearDisplay/models/util.js +33 -1
- package/dist/BaseLinearDisplay/models/util.js.map +1 -1
- package/dist/BasicTrack/configSchema.d.ts +73 -1
- package/dist/FeatureTrack/configSchema.d.ts +75 -1
- package/dist/LinearBareDisplay/configSchema.d.ts +28 -1
- package/dist/LinearBareDisplay/index.js +1 -0
- package/dist/LinearBareDisplay/index.js.map +1 -1
- package/dist/LinearBareDisplay/model.d.ts +66 -23
- package/dist/LinearBareDisplay/model.js +2 -2
- package/dist/LinearBareDisplay/model.js.map +1 -1
- package/dist/LinearBasicDisplay/components/SetMaxHeight.d.ts +1 -2
- package/dist/LinearBasicDisplay/components/SetMaxHeight.js +2 -5
- package/dist/LinearBasicDisplay/components/SetMaxHeight.js.map +1 -1
- package/dist/LinearBasicDisplay/configSchema.d.ts +28 -1
- package/dist/LinearBasicDisplay/configSchema.js +0 -9
- package/dist/LinearBasicDisplay/configSchema.js.map +1 -1
- package/dist/LinearBasicDisplay/index.js +1 -1
- package/dist/LinearBasicDisplay/model.d.ts +76 -36
- package/dist/LinearBasicDisplay/model.js.map +1 -1
- package/dist/LinearGenomeView/components/CenterLine.d.ts +0 -1
- package/dist/LinearGenomeView/components/Cytobands.d.ts +22 -23
- package/dist/LinearGenomeView/components/ExportSvgDialog.d.ts +0 -1
- package/dist/LinearGenomeView/components/GetSequenceDialog.d.ts +0 -1
- package/dist/LinearGenomeView/components/GetSequenceDialog.js +14 -16
- package/dist/LinearGenomeView/components/GetSequenceDialog.js.map +1 -1
- package/dist/LinearGenomeView/components/Gridlines.d.ts +0 -1
- package/dist/LinearGenomeView/components/Header.d.ts +0 -1
- package/dist/LinearGenomeView/components/HelpDialog.d.ts +0 -1
- package/dist/LinearGenomeView/components/ImportForm.d.ts +0 -1
- package/dist/LinearGenomeView/components/ImportForm.js +4 -7
- package/dist/LinearGenomeView/components/ImportForm.js.map +1 -1
- package/dist/LinearGenomeView/components/LinearGenomeView.d.ts +0 -1
- package/dist/LinearGenomeView/components/LinearGenomeView.js +0 -4
- package/dist/LinearGenomeView/components/LinearGenomeView.js.map +1 -1
- package/dist/LinearGenomeView/components/MiniControls.d.ts +0 -1
- package/dist/LinearGenomeView/components/OverviewScalebar.js +2 -1
- package/dist/LinearGenomeView/components/OverviewScalebar.js.map +1 -1
- package/dist/LinearGenomeView/components/RefNameAutocomplete.js +53 -52
- package/dist/LinearGenomeView/components/RefNameAutocomplete.js.map +1 -1
- package/dist/LinearGenomeView/components/RubberbandSpan.d.ts +0 -1
- package/dist/LinearGenomeView/components/SearchBox.d.ts +0 -1
- package/dist/LinearGenomeView/components/SearchResultsDialog.d.ts +5 -3
- package/dist/LinearGenomeView/components/SearchResultsDialog.js +6 -82
- package/dist/LinearGenomeView/components/SearchResultsDialog.js.map +1 -1
- package/dist/LinearGenomeView/components/SearchResultsTable.d.ts +8 -0
- package/dist/LinearGenomeView/components/SearchResultsTable.js +83 -0
- package/dist/LinearGenomeView/components/SearchResultsTable.js.map +1 -0
- package/dist/LinearGenomeView/components/SequenceSearchDialog.d.ts +0 -1
- package/dist/LinearGenomeView/components/TrackContainer.d.ts +0 -1
- package/dist/LinearGenomeView/components/TrackContainer.js +8 -2
- package/dist/LinearGenomeView/components/TrackContainer.js.map +1 -1
- package/dist/LinearGenomeView/components/TracksContainer.js +5 -7
- package/dist/LinearGenomeView/components/TracksContainer.js.map +1 -1
- package/dist/LinearGenomeView/components/VerticalGuide.d.ts +0 -1
- package/dist/LinearGenomeView/components/ZoomControls.d.ts +0 -1
- package/dist/LinearGenomeView/components/util.js +1 -1
- package/dist/LinearGenomeView/components/util.js.map +1 -1
- package/dist/LinearGenomeView/model.d.ts +49 -36
- package/dist/LinearGenomeView/model.js +121 -198
- package/dist/LinearGenomeView/model.js.map +1 -1
- package/dist/LinearGenomeView/svgcomponents/SVGBackground.d.ts +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGHeader.d.ts +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGRegionSeparators.d.ts +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGRuler.d.ts +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGScalebar.d.ts +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGTrackLabel.d.ts +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGTracks.d.ts +0 -1
- package/dist/LinearGenomeView/util.d.ts +29 -0
- package/dist/LinearGenomeView/util.js +79 -1
- package/dist/LinearGenomeView/util.js.map +1 -1
- package/dist/index.d.ts +201 -106
- package/esm/BaseLinearDisplay/components/LinearBlocks.d.ts +1 -4
- package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +8 -20
- package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js.map +1 -1
- package/esm/BaseLinearDisplay/components/TooLargeMessage.d.ts +3 -4
- package/esm/BaseLinearDisplay/components/TooLargeMessage.js +9 -9
- package/esm/BaseLinearDisplay/components/TooLargeMessage.js.map +1 -1
- package/esm/BaseLinearDisplay/components/Tooltip.d.ts +0 -1
- package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +81 -35
- package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.js +105 -143
- package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.js.map +1 -1
- package/esm/BaseLinearDisplay/models/configSchema.d.ts +35 -1
- package/esm/BaseLinearDisplay/models/configSchema.js +9 -0
- package/esm/BaseLinearDisplay/models/configSchema.js.map +1 -1
- package/esm/BaseLinearDisplay/models/serverSideRenderedBlock.js +10 -6
- package/esm/BaseLinearDisplay/models/serverSideRenderedBlock.js.map +1 -1
- package/esm/BaseLinearDisplay/models/util.d.ts +8 -0
- package/esm/BaseLinearDisplay/models/util.js +30 -0
- package/esm/BaseLinearDisplay/models/util.js.map +1 -1
- package/esm/BasicTrack/configSchema.d.ts +73 -1
- package/esm/FeatureTrack/configSchema.d.ts +75 -1
- package/esm/LinearBareDisplay/configSchema.d.ts +28 -1
- package/esm/LinearBareDisplay/index.js +1 -0
- package/esm/LinearBareDisplay/index.js.map +1 -1
- package/esm/LinearBareDisplay/model.d.ts +66 -23
- package/esm/LinearBareDisplay/model.js +1 -1
- package/esm/LinearBareDisplay/model.js.map +1 -1
- package/esm/LinearBasicDisplay/components/SetMaxHeight.d.ts +1 -2
- package/esm/LinearBasicDisplay/components/SetMaxHeight.js +2 -5
- package/esm/LinearBasicDisplay/components/SetMaxHeight.js.map +1 -1
- package/esm/LinearBasicDisplay/configSchema.d.ts +28 -1
- package/esm/LinearBasicDisplay/configSchema.js +0 -9
- package/esm/LinearBasicDisplay/configSchema.js.map +1 -1
- package/esm/LinearBasicDisplay/index.js +1 -1
- package/esm/LinearBasicDisplay/model.d.ts +76 -36
- package/esm/LinearBasicDisplay/model.js.map +1 -1
- package/esm/LinearGenomeView/components/CenterLine.d.ts +0 -1
- package/esm/LinearGenomeView/components/Cytobands.d.ts +22 -23
- package/esm/LinearGenomeView/components/ExportSvgDialog.d.ts +0 -1
- package/esm/LinearGenomeView/components/GetSequenceDialog.d.ts +0 -1
- package/esm/LinearGenomeView/components/GetSequenceDialog.js +15 -17
- package/esm/LinearGenomeView/components/GetSequenceDialog.js.map +1 -1
- package/esm/LinearGenomeView/components/Gridlines.d.ts +0 -1
- package/esm/LinearGenomeView/components/Header.d.ts +0 -1
- package/esm/LinearGenomeView/components/HelpDialog.d.ts +0 -1
- package/esm/LinearGenomeView/components/ImportForm.d.ts +0 -1
- package/esm/LinearGenomeView/components/ImportForm.js +5 -8
- package/esm/LinearGenomeView/components/ImportForm.js.map +1 -1
- package/esm/LinearGenomeView/components/LinearGenomeView.d.ts +0 -1
- package/esm/LinearGenomeView/components/LinearGenomeView.js +0 -4
- package/esm/LinearGenomeView/components/LinearGenomeView.js.map +1 -1
- package/esm/LinearGenomeView/components/MiniControls.d.ts +0 -1
- package/esm/LinearGenomeView/components/OverviewScalebar.js +2 -1
- package/esm/LinearGenomeView/components/OverviewScalebar.js.map +1 -1
- package/esm/LinearGenomeView/components/RefNameAutocomplete.js +53 -52
- package/esm/LinearGenomeView/components/RefNameAutocomplete.js.map +1 -1
- package/esm/LinearGenomeView/components/RubberbandSpan.d.ts +0 -1
- package/esm/LinearGenomeView/components/SearchBox.d.ts +0 -1
- package/esm/LinearGenomeView/components/SearchResultsDialog.d.ts +5 -3
- package/esm/LinearGenomeView/components/SearchResultsDialog.js +7 -83
- package/esm/LinearGenomeView/components/SearchResultsDialog.js.map +1 -1
- package/esm/LinearGenomeView/components/SearchResultsTable.d.ts +8 -0
- package/esm/LinearGenomeView/components/SearchResultsTable.js +77 -0
- package/esm/LinearGenomeView/components/SearchResultsTable.js.map +1 -0
- package/esm/LinearGenomeView/components/SequenceSearchDialog.d.ts +0 -1
- package/esm/LinearGenomeView/components/TrackContainer.d.ts +0 -1
- package/esm/LinearGenomeView/components/TrackContainer.js +8 -2
- package/esm/LinearGenomeView/components/TrackContainer.js.map +1 -1
- package/esm/LinearGenomeView/components/TracksContainer.js +5 -7
- package/esm/LinearGenomeView/components/TracksContainer.js.map +1 -1
- package/esm/LinearGenomeView/components/VerticalGuide.d.ts +0 -1
- package/esm/LinearGenomeView/components/ZoomControls.d.ts +0 -1
- package/esm/LinearGenomeView/components/util.js +1 -1
- package/esm/LinearGenomeView/components/util.js.map +1 -1
- package/esm/LinearGenomeView/model.d.ts +49 -36
- package/esm/LinearGenomeView/model.js +122 -199
- package/esm/LinearGenomeView/model.js.map +1 -1
- package/esm/LinearGenomeView/svgcomponents/SVGBackground.d.ts +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGHeader.d.ts +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGRegionSeparators.d.ts +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGRuler.d.ts +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGScalebar.d.ts +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGTrackLabel.d.ts +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGTracks.d.ts +0 -1
- package/esm/LinearGenomeView/util.d.ts +29 -0
- package/esm/LinearGenomeView/util.js +76 -0
- package/esm/LinearGenomeView/util.js.map +1 -1
- package/esm/index.d.ts +201 -106
- package/package.json +3 -3
- package/src/BaseLinearDisplay/components/ServerSideRenderedBlockContent.tsx +8 -28
- package/src/BaseLinearDisplay/components/TooLargeMessage.tsx +13 -11
- package/src/BaseLinearDisplay/models/BaseLinearDisplayModel.tsx +148 -197
- package/src/BaseLinearDisplay/models/configSchema.ts +10 -0
- package/src/BaseLinearDisplay/models/serverSideRenderedBlock.ts +19 -13
- package/src/BaseLinearDisplay/models/util.ts +43 -0
- package/src/LinearBareDisplay/index.ts +1 -0
- package/src/LinearBareDisplay/model.ts +1 -1
- package/src/LinearBasicDisplay/components/SetMaxHeight.tsx +3 -7
- package/src/LinearBasicDisplay/configSchema.ts +0 -10
- package/src/LinearBasicDisplay/index.ts +1 -1
- package/src/LinearBasicDisplay/model.ts +1 -1
- package/src/LinearGenomeView/components/GetSequenceDialog.tsx +15 -25
- package/src/LinearGenomeView/components/ImportForm.tsx +4 -14
- package/src/LinearGenomeView/components/LinearGenomeView.tsx +0 -14
- package/src/LinearGenomeView/components/OverviewScalebar.tsx +2 -1
- package/src/LinearGenomeView/components/RefNameAutocomplete.tsx +122 -82
- package/src/LinearGenomeView/components/SearchResultsDialog.tsx +17 -112
- package/src/LinearGenomeView/components/SearchResultsTable.tsx +121 -0
- package/src/LinearGenomeView/components/TrackContainer.tsx +12 -3
- package/src/LinearGenomeView/components/TracksContainer.tsx +9 -6
- package/src/LinearGenomeView/components/__snapshots__/LinearGenomeView.test.tsx.snap +11 -11
- package/src/LinearGenomeView/components/util.ts +2 -1
- package/src/LinearGenomeView/index.test.ts +10 -12
- package/src/LinearGenomeView/model.ts +163 -236
- package/src/LinearGenomeView/util.ts +98 -0
|
@@ -30,7 +30,7 @@ export function getRelativeX(event, element) {
|
|
|
30
30
|
export function getCytobands(assembly, refName) {
|
|
31
31
|
var _a;
|
|
32
32
|
return (((_a = assembly === null || assembly === void 0 ? void 0 : assembly.cytobands) === null || _a === void 0 ? void 0 : _a.map(f => ({
|
|
33
|
-
refName: assembly.getCanonicalRefName(f.get('refName')),
|
|
33
|
+
refName: assembly.getCanonicalRefName(f.get('refName')) || f.get('refName'),
|
|
34
34
|
start: f.get('start'),
|
|
35
35
|
end: f.get('end'),
|
|
36
36
|
type: f.get('type'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/LinearGenomeView/components/util.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAqB,MAAM,oBAAoB,CAAA;AAC9D,OAAO,UAAU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AAC,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC;QACpE,KAAK,EAAE,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC;QACrB,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC;QACjB,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC;KACpB,CAAC,EACD,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,KAAK,OAAO,CAAC,KAAI,EAAE,CAC5C,CAAA;AACH,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Region } from '@jbrowse/core/util/types';
|
|
3
3
|
import { MenuItem } from '@jbrowse/core/ui';
|
|
4
|
+
import { ParsedLocString } from '@jbrowse/core/util';
|
|
4
5
|
import BaseResult from '@jbrowse/core/TextSearch/BaseResults';
|
|
5
6
|
import { BlockSet, BaseBlock } from '@jbrowse/core/util/blockTypes';
|
|
6
7
|
import { Instance } from 'mobx-state-tree';
|
|
@@ -95,9 +96,6 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
95
96
|
coarseTotalBp: number;
|
|
96
97
|
leftOffset: BpOffset | undefined;
|
|
97
98
|
rightOffset: BpOffset | undefined;
|
|
98
|
-
searchResults: BaseResult[] | undefined;
|
|
99
|
-
searchQuery: string | undefined;
|
|
100
|
-
seqDialogDisplayed: boolean;
|
|
101
99
|
} & {
|
|
102
100
|
/**
|
|
103
101
|
* #getter
|
|
@@ -136,10 +134,6 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
136
134
|
* #getter
|
|
137
135
|
*/
|
|
138
136
|
readonly hasDisplayedRegions: boolean;
|
|
139
|
-
/**
|
|
140
|
-
* #getter
|
|
141
|
-
*/
|
|
142
|
-
readonly isSearchDialogDisplayed: boolean;
|
|
143
137
|
/**
|
|
144
138
|
* #getter
|
|
145
139
|
*/
|
|
@@ -256,17 +250,15 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
256
250
|
zoomTo(bpPerPx: number, offset?: number, centerAtOffset?: boolean): number;
|
|
257
251
|
/**
|
|
258
252
|
* #action
|
|
259
|
-
* sets offsets used in the get sequence dialog
|
|
253
|
+
* sets offsets of rubberband, used in the get sequence dialog can call
|
|
254
|
+
* view.getSelectedRegions(view.leftOffset,view.rightOffset) to compute
|
|
255
|
+
* the selected regions from the offsets
|
|
260
256
|
*/
|
|
261
257
|
setOffsets(left?: BpOffset, right?: BpOffset): void;
|
|
262
258
|
/**
|
|
263
259
|
* #action
|
|
264
260
|
*/
|
|
265
|
-
setSearchResults(
|
|
266
|
-
/**
|
|
267
|
-
* #action
|
|
268
|
-
*/
|
|
269
|
-
setGetSequenceDialogOpen(open: boolean): void;
|
|
261
|
+
setSearchResults(searchResults: BaseResult[], searchQuery: string, assemblyName?: string): void;
|
|
270
262
|
/**
|
|
271
263
|
* #action
|
|
272
264
|
*/
|
|
@@ -315,10 +307,13 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
315
307
|
/**
|
|
316
308
|
* #method
|
|
317
309
|
* Helper method for the fetchSequence.
|
|
318
|
-
* Retrieves the corresponding regions that were selected by the
|
|
310
|
+
* Retrieves the corresponding regions that were selected by the
|
|
311
|
+
* rubberband
|
|
319
312
|
*
|
|
320
|
-
* @param leftOffset - `object as {start, end, index, offset}`, offset = start
|
|
321
|
-
*
|
|
313
|
+
* @param leftOffset - `object as {start, end, index, offset}`, offset = start
|
|
314
|
+
* of user drag
|
|
315
|
+
* @param rightOffset - `object as {start, end, index, offset}`,
|
|
316
|
+
* offset = end of user drag
|
|
322
317
|
* @returns array of Region[]
|
|
323
318
|
*/
|
|
324
319
|
getSelectedRegions(leftOffset?: BpOffset, rightOffset?: BpOffset): {
|
|
@@ -336,7 +331,8 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
336
331
|
}[];
|
|
337
332
|
/**
|
|
338
333
|
* #action
|
|
339
|
-
* schedule something to be run after the next time displayedRegions is
|
|
334
|
+
* schedule something to be run after the next time displayedRegions is
|
|
335
|
+
* set
|
|
340
336
|
*/
|
|
341
337
|
afterDisplayedRegionsSet(cb: Function): void;
|
|
342
338
|
/**
|
|
@@ -392,8 +388,8 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
392
388
|
readonly anyCytobandsExist: boolean;
|
|
393
389
|
/**
|
|
394
390
|
* #getter
|
|
395
|
-
* the cytoband is displayed to the right of the chromosome name,
|
|
396
|
-
*
|
|
391
|
+
* the cytoband is displayed to the right of the chromosome name, and
|
|
392
|
+
* that offset is calculated manually with this method
|
|
397
393
|
*/
|
|
398
394
|
readonly cytobandOffset: number;
|
|
399
395
|
} & {
|
|
@@ -406,19 +402,18 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
406
402
|
/**
|
|
407
403
|
* #getter
|
|
408
404
|
* static blocks are an important concept jbrowse uses to avoid
|
|
409
|
-
* re-rendering when you scroll to the side. when you horizontally
|
|
410
|
-
*
|
|
411
|
-
*
|
|
412
|
-
*
|
|
413
|
-
* the block
|
|
405
|
+
* re-rendering when you scroll to the side. when you horizontally scroll to the
|
|
406
|
+
* right, old blocks to the left may be removed, and new blocks may be
|
|
407
|
+
* instantiated on the right. tracks may use the static blocks to render their
|
|
408
|
+
* data for the region represented by the block
|
|
414
409
|
*/
|
|
415
410
|
readonly staticBlocks: BlockSet;
|
|
416
411
|
/**
|
|
417
412
|
* #getter
|
|
418
413
|
* dynamic blocks represent the exact coordinates of the currently
|
|
419
|
-
* visible genome regions on the screen. they are similar to static
|
|
420
|
-
*
|
|
421
|
-
*
|
|
414
|
+
* visible genome regions on the screen. they are similar to static blocks, but
|
|
415
|
+
* static blocks can go offscreen while dynamic blocks represent exactly what
|
|
416
|
+
* is on screen
|
|
422
417
|
*/
|
|
423
418
|
readonly dynamicBlocks: BlockSet;
|
|
424
419
|
/**
|
|
@@ -446,8 +441,8 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
446
441
|
} & {
|
|
447
442
|
/**
|
|
448
443
|
* #action
|
|
449
|
-
* offset is the base-pair-offset in the displayed region, index is the
|
|
450
|
-
* displayed region in the linear genome view
|
|
444
|
+
* offset is the base-pair-offset in the displayed region, index is the
|
|
445
|
+
* index of the displayed region in the linear genome view
|
|
451
446
|
*
|
|
452
447
|
* @param start - object as `{start, end, offset, index}`
|
|
453
448
|
* @param end - object as `{start, end, offset, index}`
|
|
@@ -455,18 +450,27 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
455
450
|
moveTo(start?: BpOffset, end?: BpOffset): void;
|
|
456
451
|
/**
|
|
457
452
|
* #action
|
|
458
|
-
*
|
|
453
|
+
* Navigate to the given locstring, will change displayed regions if
|
|
454
|
+
* needed, and wait for assemblies to be initialized
|
|
459
455
|
*
|
|
460
|
-
* @param
|
|
461
|
-
* @param optAssemblyName - (optional) the assembly name to use when
|
|
456
|
+
* @param input - e.g. "chr1:1-100", "chr1:1-100 chr2:1-100", "chr 1 100"
|
|
457
|
+
* @param optAssemblyName - (optional) the assembly name to use when
|
|
458
|
+
* navigating to the locstring
|
|
459
|
+
*/
|
|
460
|
+
navToLocString(input: string, optAssemblyName?: string): Promise<void>;
|
|
461
|
+
/**
|
|
462
|
+
* #action
|
|
463
|
+
* Similar to `navToLocString`, but accepts parsed location objects
|
|
464
|
+
* instead of strings. Will try to perform `setDisplayedRegions` if
|
|
465
|
+
* changing regions
|
|
462
466
|
*/
|
|
463
|
-
|
|
467
|
+
navToLocations(parsedLocStrings: ParsedLocString[], assemblyName?: string): Promise<void>;
|
|
464
468
|
/**
|
|
465
469
|
* #action
|
|
466
470
|
* Navigate to a location based on its refName and optionally start, end,
|
|
467
|
-
* and assemblyName.
|
|
468
|
-
*
|
|
469
|
-
* within a displayedRegion. Navigates to the first matching location
|
|
471
|
+
* and assemblyName. Will not try to change displayed regions, use
|
|
472
|
+
* `navToLocations` instead. Only navigates to a location if it is
|
|
473
|
+
* entirely within a displayedRegion. Navigates to the first matching location
|
|
470
474
|
* encountered.
|
|
471
475
|
*
|
|
472
476
|
* Throws an error if navigation was unsuccessful
|
|
@@ -476,6 +480,15 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
476
480
|
navTo(query: NavLocation): void;
|
|
477
481
|
/**
|
|
478
482
|
* #action
|
|
483
|
+
* Navigate to a location based on its refName and optionally start, end,
|
|
484
|
+
* and assemblyName. Will not try to change displayed regions, use
|
|
485
|
+
* navToLocations instead. Only navigates to a location if it is entirely
|
|
486
|
+
* within a displayedRegion. Navigates to the first matching location
|
|
487
|
+
* encountered.
|
|
488
|
+
*
|
|
489
|
+
* Throws an error if navigation was unsuccessful
|
|
490
|
+
*
|
|
491
|
+
* @param locations - proposed location to navigate to
|
|
479
492
|
*/
|
|
480
493
|
navToMultiple(locations: NavLocation[]): void;
|
|
481
494
|
} & {
|