@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.
Files changed (201) hide show
  1. package/dist/BaseLinearDisplay/components/LinearBlocks.d.ts +1 -4
  2. package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +8 -43
  3. package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js.map +1 -1
  4. package/dist/BaseLinearDisplay/components/TooLargeMessage.d.ts +3 -4
  5. package/dist/BaseLinearDisplay/components/TooLargeMessage.js +9 -9
  6. package/dist/BaseLinearDisplay/components/TooLargeMessage.js.map +1 -1
  7. package/dist/BaseLinearDisplay/components/Tooltip.d.ts +0 -1
  8. package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +81 -35
  9. package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.js +105 -143
  10. package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.js.map +1 -1
  11. package/dist/BaseLinearDisplay/models/configSchema.d.ts +35 -1
  12. package/dist/BaseLinearDisplay/models/configSchema.js +9 -0
  13. package/dist/BaseLinearDisplay/models/configSchema.js.map +1 -1
  14. package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.js +10 -6
  15. package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.js.map +1 -1
  16. package/dist/BaseLinearDisplay/models/util.d.ts +8 -0
  17. package/dist/BaseLinearDisplay/models/util.js +33 -1
  18. package/dist/BaseLinearDisplay/models/util.js.map +1 -1
  19. package/dist/BasicTrack/configSchema.d.ts +73 -1
  20. package/dist/FeatureTrack/configSchema.d.ts +75 -1
  21. package/dist/LinearBareDisplay/configSchema.d.ts +28 -1
  22. package/dist/LinearBareDisplay/index.js +1 -0
  23. package/dist/LinearBareDisplay/index.js.map +1 -1
  24. package/dist/LinearBareDisplay/model.d.ts +66 -23
  25. package/dist/LinearBareDisplay/model.js +2 -2
  26. package/dist/LinearBareDisplay/model.js.map +1 -1
  27. package/dist/LinearBasicDisplay/components/SetMaxHeight.d.ts +1 -2
  28. package/dist/LinearBasicDisplay/components/SetMaxHeight.js +2 -5
  29. package/dist/LinearBasicDisplay/components/SetMaxHeight.js.map +1 -1
  30. package/dist/LinearBasicDisplay/configSchema.d.ts +28 -1
  31. package/dist/LinearBasicDisplay/configSchema.js +0 -9
  32. package/dist/LinearBasicDisplay/configSchema.js.map +1 -1
  33. package/dist/LinearBasicDisplay/index.js +1 -1
  34. package/dist/LinearBasicDisplay/model.d.ts +76 -36
  35. package/dist/LinearBasicDisplay/model.js.map +1 -1
  36. package/dist/LinearGenomeView/components/CenterLine.d.ts +0 -1
  37. package/dist/LinearGenomeView/components/Cytobands.d.ts +22 -23
  38. package/dist/LinearGenomeView/components/ExportSvgDialog.d.ts +0 -1
  39. package/dist/LinearGenomeView/components/GetSequenceDialog.d.ts +0 -1
  40. package/dist/LinearGenomeView/components/GetSequenceDialog.js +14 -16
  41. package/dist/LinearGenomeView/components/GetSequenceDialog.js.map +1 -1
  42. package/dist/LinearGenomeView/components/Gridlines.d.ts +0 -1
  43. package/dist/LinearGenomeView/components/Header.d.ts +0 -1
  44. package/dist/LinearGenomeView/components/HelpDialog.d.ts +0 -1
  45. package/dist/LinearGenomeView/components/ImportForm.d.ts +0 -1
  46. package/dist/LinearGenomeView/components/ImportForm.js +4 -7
  47. package/dist/LinearGenomeView/components/ImportForm.js.map +1 -1
  48. package/dist/LinearGenomeView/components/LinearGenomeView.d.ts +0 -1
  49. package/dist/LinearGenomeView/components/LinearGenomeView.js +0 -4
  50. package/dist/LinearGenomeView/components/LinearGenomeView.js.map +1 -1
  51. package/dist/LinearGenomeView/components/MiniControls.d.ts +0 -1
  52. package/dist/LinearGenomeView/components/OverviewScalebar.js +2 -1
  53. package/dist/LinearGenomeView/components/OverviewScalebar.js.map +1 -1
  54. package/dist/LinearGenomeView/components/RefNameAutocomplete.js +53 -52
  55. package/dist/LinearGenomeView/components/RefNameAutocomplete.js.map +1 -1
  56. package/dist/LinearGenomeView/components/RubberbandSpan.d.ts +0 -1
  57. package/dist/LinearGenomeView/components/SearchBox.d.ts +0 -1
  58. package/dist/LinearGenomeView/components/SearchResultsDialog.d.ts +5 -3
  59. package/dist/LinearGenomeView/components/SearchResultsDialog.js +6 -82
  60. package/dist/LinearGenomeView/components/SearchResultsDialog.js.map +1 -1
  61. package/dist/LinearGenomeView/components/SearchResultsTable.d.ts +8 -0
  62. package/dist/LinearGenomeView/components/SearchResultsTable.js +83 -0
  63. package/dist/LinearGenomeView/components/SearchResultsTable.js.map +1 -0
  64. package/dist/LinearGenomeView/components/SequenceSearchDialog.d.ts +0 -1
  65. package/dist/LinearGenomeView/components/TrackContainer.d.ts +0 -1
  66. package/dist/LinearGenomeView/components/TrackContainer.js +8 -2
  67. package/dist/LinearGenomeView/components/TrackContainer.js.map +1 -1
  68. package/dist/LinearGenomeView/components/TracksContainer.js +5 -7
  69. package/dist/LinearGenomeView/components/TracksContainer.js.map +1 -1
  70. package/dist/LinearGenomeView/components/VerticalGuide.d.ts +0 -1
  71. package/dist/LinearGenomeView/components/ZoomControls.d.ts +0 -1
  72. package/dist/LinearGenomeView/components/util.js +1 -1
  73. package/dist/LinearGenomeView/components/util.js.map +1 -1
  74. package/dist/LinearGenomeView/model.d.ts +49 -36
  75. package/dist/LinearGenomeView/model.js +121 -198
  76. package/dist/LinearGenomeView/model.js.map +1 -1
  77. package/dist/LinearGenomeView/svgcomponents/SVGBackground.d.ts +0 -1
  78. package/dist/LinearGenomeView/svgcomponents/SVGHeader.d.ts +0 -1
  79. package/dist/LinearGenomeView/svgcomponents/SVGRegionSeparators.d.ts +0 -1
  80. package/dist/LinearGenomeView/svgcomponents/SVGRuler.d.ts +0 -1
  81. package/dist/LinearGenomeView/svgcomponents/SVGScalebar.d.ts +0 -1
  82. package/dist/LinearGenomeView/svgcomponents/SVGTrackLabel.d.ts +0 -1
  83. package/dist/LinearGenomeView/svgcomponents/SVGTracks.d.ts +0 -1
  84. package/dist/LinearGenomeView/util.d.ts +29 -0
  85. package/dist/LinearGenomeView/util.js +79 -1
  86. package/dist/LinearGenomeView/util.js.map +1 -1
  87. package/dist/index.d.ts +201 -106
  88. package/esm/BaseLinearDisplay/components/LinearBlocks.d.ts +1 -4
  89. package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +8 -20
  90. package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js.map +1 -1
  91. package/esm/BaseLinearDisplay/components/TooLargeMessage.d.ts +3 -4
  92. package/esm/BaseLinearDisplay/components/TooLargeMessage.js +9 -9
  93. package/esm/BaseLinearDisplay/components/TooLargeMessage.js.map +1 -1
  94. package/esm/BaseLinearDisplay/components/Tooltip.d.ts +0 -1
  95. package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +81 -35
  96. package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.js +105 -143
  97. package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.js.map +1 -1
  98. package/esm/BaseLinearDisplay/models/configSchema.d.ts +35 -1
  99. package/esm/BaseLinearDisplay/models/configSchema.js +9 -0
  100. package/esm/BaseLinearDisplay/models/configSchema.js.map +1 -1
  101. package/esm/BaseLinearDisplay/models/serverSideRenderedBlock.js +10 -6
  102. package/esm/BaseLinearDisplay/models/serverSideRenderedBlock.js.map +1 -1
  103. package/esm/BaseLinearDisplay/models/util.d.ts +8 -0
  104. package/esm/BaseLinearDisplay/models/util.js +30 -0
  105. package/esm/BaseLinearDisplay/models/util.js.map +1 -1
  106. package/esm/BasicTrack/configSchema.d.ts +73 -1
  107. package/esm/FeatureTrack/configSchema.d.ts +75 -1
  108. package/esm/LinearBareDisplay/configSchema.d.ts +28 -1
  109. package/esm/LinearBareDisplay/index.js +1 -0
  110. package/esm/LinearBareDisplay/index.js.map +1 -1
  111. package/esm/LinearBareDisplay/model.d.ts +66 -23
  112. package/esm/LinearBareDisplay/model.js +1 -1
  113. package/esm/LinearBareDisplay/model.js.map +1 -1
  114. package/esm/LinearBasicDisplay/components/SetMaxHeight.d.ts +1 -2
  115. package/esm/LinearBasicDisplay/components/SetMaxHeight.js +2 -5
  116. package/esm/LinearBasicDisplay/components/SetMaxHeight.js.map +1 -1
  117. package/esm/LinearBasicDisplay/configSchema.d.ts +28 -1
  118. package/esm/LinearBasicDisplay/configSchema.js +0 -9
  119. package/esm/LinearBasicDisplay/configSchema.js.map +1 -1
  120. package/esm/LinearBasicDisplay/index.js +1 -1
  121. package/esm/LinearBasicDisplay/model.d.ts +76 -36
  122. package/esm/LinearBasicDisplay/model.js.map +1 -1
  123. package/esm/LinearGenomeView/components/CenterLine.d.ts +0 -1
  124. package/esm/LinearGenomeView/components/Cytobands.d.ts +22 -23
  125. package/esm/LinearGenomeView/components/ExportSvgDialog.d.ts +0 -1
  126. package/esm/LinearGenomeView/components/GetSequenceDialog.d.ts +0 -1
  127. package/esm/LinearGenomeView/components/GetSequenceDialog.js +15 -17
  128. package/esm/LinearGenomeView/components/GetSequenceDialog.js.map +1 -1
  129. package/esm/LinearGenomeView/components/Gridlines.d.ts +0 -1
  130. package/esm/LinearGenomeView/components/Header.d.ts +0 -1
  131. package/esm/LinearGenomeView/components/HelpDialog.d.ts +0 -1
  132. package/esm/LinearGenomeView/components/ImportForm.d.ts +0 -1
  133. package/esm/LinearGenomeView/components/ImportForm.js +5 -8
  134. package/esm/LinearGenomeView/components/ImportForm.js.map +1 -1
  135. package/esm/LinearGenomeView/components/LinearGenomeView.d.ts +0 -1
  136. package/esm/LinearGenomeView/components/LinearGenomeView.js +0 -4
  137. package/esm/LinearGenomeView/components/LinearGenomeView.js.map +1 -1
  138. package/esm/LinearGenomeView/components/MiniControls.d.ts +0 -1
  139. package/esm/LinearGenomeView/components/OverviewScalebar.js +2 -1
  140. package/esm/LinearGenomeView/components/OverviewScalebar.js.map +1 -1
  141. package/esm/LinearGenomeView/components/RefNameAutocomplete.js +53 -52
  142. package/esm/LinearGenomeView/components/RefNameAutocomplete.js.map +1 -1
  143. package/esm/LinearGenomeView/components/RubberbandSpan.d.ts +0 -1
  144. package/esm/LinearGenomeView/components/SearchBox.d.ts +0 -1
  145. package/esm/LinearGenomeView/components/SearchResultsDialog.d.ts +5 -3
  146. package/esm/LinearGenomeView/components/SearchResultsDialog.js +7 -83
  147. package/esm/LinearGenomeView/components/SearchResultsDialog.js.map +1 -1
  148. package/esm/LinearGenomeView/components/SearchResultsTable.d.ts +8 -0
  149. package/esm/LinearGenomeView/components/SearchResultsTable.js +77 -0
  150. package/esm/LinearGenomeView/components/SearchResultsTable.js.map +1 -0
  151. package/esm/LinearGenomeView/components/SequenceSearchDialog.d.ts +0 -1
  152. package/esm/LinearGenomeView/components/TrackContainer.d.ts +0 -1
  153. package/esm/LinearGenomeView/components/TrackContainer.js +8 -2
  154. package/esm/LinearGenomeView/components/TrackContainer.js.map +1 -1
  155. package/esm/LinearGenomeView/components/TracksContainer.js +5 -7
  156. package/esm/LinearGenomeView/components/TracksContainer.js.map +1 -1
  157. package/esm/LinearGenomeView/components/VerticalGuide.d.ts +0 -1
  158. package/esm/LinearGenomeView/components/ZoomControls.d.ts +0 -1
  159. package/esm/LinearGenomeView/components/util.js +1 -1
  160. package/esm/LinearGenomeView/components/util.js.map +1 -1
  161. package/esm/LinearGenomeView/model.d.ts +49 -36
  162. package/esm/LinearGenomeView/model.js +122 -199
  163. package/esm/LinearGenomeView/model.js.map +1 -1
  164. package/esm/LinearGenomeView/svgcomponents/SVGBackground.d.ts +0 -1
  165. package/esm/LinearGenomeView/svgcomponents/SVGHeader.d.ts +0 -1
  166. package/esm/LinearGenomeView/svgcomponents/SVGRegionSeparators.d.ts +0 -1
  167. package/esm/LinearGenomeView/svgcomponents/SVGRuler.d.ts +0 -1
  168. package/esm/LinearGenomeView/svgcomponents/SVGScalebar.d.ts +0 -1
  169. package/esm/LinearGenomeView/svgcomponents/SVGTrackLabel.d.ts +0 -1
  170. package/esm/LinearGenomeView/svgcomponents/SVGTracks.d.ts +0 -1
  171. package/esm/LinearGenomeView/util.d.ts +29 -0
  172. package/esm/LinearGenomeView/util.js +76 -0
  173. package/esm/LinearGenomeView/util.js.map +1 -1
  174. package/esm/index.d.ts +201 -106
  175. package/package.json +3 -3
  176. package/src/BaseLinearDisplay/components/ServerSideRenderedBlockContent.tsx +8 -28
  177. package/src/BaseLinearDisplay/components/TooLargeMessage.tsx +13 -11
  178. package/src/BaseLinearDisplay/models/BaseLinearDisplayModel.tsx +148 -197
  179. package/src/BaseLinearDisplay/models/configSchema.ts +10 -0
  180. package/src/BaseLinearDisplay/models/serverSideRenderedBlock.ts +19 -13
  181. package/src/BaseLinearDisplay/models/util.ts +43 -0
  182. package/src/LinearBareDisplay/index.ts +1 -0
  183. package/src/LinearBareDisplay/model.ts +1 -1
  184. package/src/LinearBasicDisplay/components/SetMaxHeight.tsx +3 -7
  185. package/src/LinearBasicDisplay/configSchema.ts +0 -10
  186. package/src/LinearBasicDisplay/index.ts +1 -1
  187. package/src/LinearBasicDisplay/model.ts +1 -1
  188. package/src/LinearGenomeView/components/GetSequenceDialog.tsx +15 -25
  189. package/src/LinearGenomeView/components/ImportForm.tsx +4 -14
  190. package/src/LinearGenomeView/components/LinearGenomeView.tsx +0 -14
  191. package/src/LinearGenomeView/components/OverviewScalebar.tsx +2 -1
  192. package/src/LinearGenomeView/components/RefNameAutocomplete.tsx +122 -82
  193. package/src/LinearGenomeView/components/SearchResultsDialog.tsx +17 -112
  194. package/src/LinearGenomeView/components/SearchResultsTable.tsx +121 -0
  195. package/src/LinearGenomeView/components/TrackContainer.tsx +12 -3
  196. package/src/LinearGenomeView/components/TracksContainer.tsx +9 -6
  197. package/src/LinearGenomeView/components/__snapshots__/LinearGenomeView.test.tsx.snap +11 -11
  198. package/src/LinearGenomeView/components/util.ts +2 -1
  199. package/src/LinearGenomeView/index.test.ts +10 -12
  200. package/src/LinearGenomeView/model.ts +163 -236
  201. package/src/LinearGenomeView/util.ts +98 -0
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { LinearGenomeViewModel } from '..';
3
2
  type LGV = LinearGenomeViewModel;
4
3
  declare function VerticalGuide({ model, coordX }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { LinearGenomeViewModel } from '..';
3
2
  declare function ZoomControls({ model }: {
4
3
  model: LinearGenomeViewModel;
@@ -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,MAAM,sCAAsC,CAAA;AAE7D,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,EACjC,WAAW,EACX,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,QAAQ,GAQT;;IACC,IAAI,CAAC,iBAAiB,EAAE;QACtB,OAAO,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAA;KACvC;IAED,MAAM,iBAAiB,GAAG,MAAM,CAAA,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,MAAM,CACvD;QACE,WAAW;QACX,UAAU;KACX,EACD,WAAW,EACX,iBAAiB,CAClB,CAAA,CAAA;IAED,MAAM,cAAc,GAAG,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,0CACxC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,WAAW,CA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AE,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(results?: BaseResult[], query?: string): void;
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 rubberband
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 of user drag
321
- * @param rightOffset - `object as {start, end, index, offset}`, offset = end of user drag
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 set
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
- * and that offset is calculated manually with this method
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
- * scroll to the right, old blocks to the left may be removed, and
411
- * new blocks may be instantiated on the right. tracks may use the
412
- * static blocks to render their data for the region represented by
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
- * blocks, but statcic blocks can go offscreen while dynamic blocks
421
- * represent exactly what is on screen
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 index of 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
- * navigate to the given locstring
453
+ * Navigate to the given locstring, will change displayed regions if
454
+ * needed, and wait for assemblies to be initialized
459
455
  *
460
- * @param locString - e.g. "chr1:1-100"
461
- * @param optAssemblyName - (optional) the assembly name to use when navigating to the locstring
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
- navToLocString(locString: string, optAssemblyName?: string): Promise<void>;
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. Can handle if there are multiple displayedRegions
468
- * from same refName. Only navigates to a location if it is entirely
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
  } & {