react-msaview 9.0.0 → 9.1.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/README.md +19 -10
- package/bundle/index.js +74 -74
- package/bundle/index.js.map +4 -4
- package/dist/colorSchemes.js +1 -3
- package/dist/colorSchemes.js.map +1 -1
- package/dist/columnCounts.d.ts +0 -1
- package/dist/columnCounts.js +1 -1
- package/dist/columnCounts.js.map +1 -1
- package/dist/components/Loading.js +5 -5
- package/dist/components/Loading.js.map +1 -1
- package/dist/components/MSAViewer.d.ts +1891 -4
- package/dist/components/MSAViewer.js +144 -201
- package/dist/components/MSAViewer.js.map +1 -1
- package/dist/components/ResizeHandles.js +3 -2
- package/dist/components/ResizeHandles.js.map +1 -1
- package/dist/components/Track.js +2 -1
- package/dist/components/Track.js.map +1 -1
- package/dist/components/controls.d.ts +11 -0
- package/dist/components/controls.js +48 -0
- package/dist/components/controls.js.map +1 -0
- package/dist/components/dialogs/AnnotationFileDialog.js +5 -16
- package/dist/components/dialogs/AnnotationFileDialog.js.map +1 -1
- package/dist/components/dialogs/ExportSVGDialog.js +5 -7
- package/dist/components/dialogs/ExportSVGDialog.js.map +1 -1
- package/dist/components/dialogs/HelpDialog.d.ts +6 -0
- package/dist/components/dialogs/HelpDialog.js +30 -0
- package/dist/components/dialogs/HelpDialog.js.map +1 -0
- package/dist/components/header/FileMenu.js +33 -7
- package/dist/components/header/FileMenu.js.map +1 -1
- package/dist/components/header/Header.js +4 -6
- package/dist/components/header/Header.js.map +1 -1
- package/dist/components/header/TreeSettingsMenu.d.ts +1 -1
- package/dist/components/header/TreeSettingsMenu.js +1 -32
- package/dist/components/header/TreeSettingsMenu.js.map +1 -1
- package/dist/components/header/ZoomControls.js +28 -44
- package/dist/components/header/ZoomControls.js.map +1 -1
- package/dist/components/header/settingsMenuItems.d.ts +1 -0
- package/dist/components/header/settingsMenuItems.js +44 -0
- package/dist/components/header/settingsMenuItems.js.map +1 -1
- package/dist/components/import/data/seq2.d.ts +0 -1
- package/dist/components/import/data/seq2.js +0 -17
- package/dist/components/import/data/seq2.js.map +1 -1
- package/dist/components/msa/MSACanvas.js +2 -1
- package/dist/components/msa/MSACanvas.js.map +1 -1
- package/dist/components/msa/MSACanvasBlock.js +2 -5
- package/dist/components/msa/MSACanvasBlock.js.map +1 -1
- package/dist/components/msa/drawFeatureSpans.d.ts +50 -11
- package/dist/components/msa/drawFeatureSpans.js +99 -56
- package/dist/components/msa/drawFeatureSpans.js.map +1 -1
- package/dist/components/msa/msaRaster.d.ts +14 -1
- package/dist/components/msa/msaRaster.js +19 -9
- package/dist/components/msa/msaRaster.js.map +1 -1
- package/dist/components/msa/renderBoxFeatureCanvasBlock.d.ts +9 -0
- package/dist/components/msa/renderBoxFeatureCanvasBlock.js +19 -8
- package/dist/components/msa/renderBoxFeatureCanvasBlock.js.map +1 -1
- package/dist/components/msa/renderHighlights.d.ts +2 -2
- package/dist/components/msa/renderHighlights.js +2 -3
- package/dist/components/msa/renderHighlights.js.map +1 -1
- package/dist/components/msa/renderMSAMouseover.js +2 -1
- package/dist/components/msa/renderMSAMouseover.js.map +1 -1
- package/dist/components/renderCtx.d.ts +1 -1
- package/dist/components/rowpanels/renderFeaturePanel.d.ts +5 -1
- package/dist/components/rowpanels/renderFeaturePanel.js +12 -5
- package/dist/components/rowpanels/renderFeaturePanel.js.map +1 -1
- package/dist/components/tracks/drawTracks.d.ts +1 -53
- package/dist/components/tracks/drawTracks.js +5 -5
- package/dist/components/tracks/drawTracks.js.map +1 -1
- package/dist/components/tree/CladeLabels.d.ts +1 -1
- package/dist/components/tree/CladeLabels.js +22 -34
- package/dist/components/tree/CladeLabels.js.map +1 -1
- package/dist/components/tree/cladeBrackets.d.ts +17 -10
- package/dist/components/tree/cladeBrackets.js +33 -3
- package/dist/components/tree/cladeBrackets.js.map +1 -1
- package/dist/components/tree/renderTreeCanvas.js +2 -8
- package/dist/components/tree/renderTreeCanvas.js.map +1 -1
- package/dist/components/tree/renderTreeOverview.js +4 -11
- package/dist/components/tree/renderTreeOverview.js.map +1 -1
- package/dist/element.js +3 -6
- package/dist/element.js.map +1 -1
- package/dist/exportLayout.d.ts +39 -0
- package/dist/exportLayout.js +78 -0
- package/dist/exportLayout.js.map +1 -0
- package/dist/headlessRenderEnv.d.ts +12 -39
- package/dist/headlessRenderEnv.js +18 -12
- package/dist/headlessRenderEnv.js.map +1 -1
- package/dist/hierarchy.d.ts +5 -8
- package/dist/hierarchy.js +5 -79
- package/dist/hierarchy.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/measureTextCanvas.d.ts +7 -0
- package/dist/measureTextCanvas.js +8 -6
- package/dist/measureTextCanvas.js.map +1 -1
- package/dist/model/treeModel.d.ts +0 -5
- package/dist/model/treeModel.js +0 -7
- package/dist/model/treeModel.js.map +1 -1
- package/dist/model.d.ts +38 -44
- package/dist/model.js +153 -112
- package/dist/model.js.map +1 -1
- package/dist/renderToSvg.d.ts +2 -7
- package/dist/renderToSvg.js +32 -120
- package/dist/renderToSvg.js.map +1 -1
- package/dist/svgTestUtil.d.ts +12 -20
- package/dist/types.d.ts +0 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/viewerSnapshot.d.ts +169 -0
- package/dist/viewerSnapshot.js +100 -0
- package/dist/viewerSnapshot.js.map +1 -0
- package/package.json +3 -3
- package/src/colorSchemes.ts +1 -4
- package/src/columnCounts.ts +1 -1
- package/src/components/Loading.tsx +19 -12
- package/src/components/MSAViewer.tsx +275 -251
- package/src/components/ResizeHandles.tsx +9 -2
- package/src/components/Track.tsx +2 -1
- package/src/components/controls.ts +61 -0
- package/src/components/dialogs/AnnotationFileDialog.tsx +5 -21
- package/src/components/dialogs/ExportSVGDialog.tsx +8 -19
- package/src/components/dialogs/HelpDialog.tsx +79 -0
- package/src/components/header/FileMenu.tsx +33 -7
- package/src/components/header/Header.tsx +4 -6
- package/src/components/header/TreeSettingsMenu.tsx +2 -32
- package/src/components/header/ZoomControls.tsx +30 -66
- package/src/components/header/settingsMenuItems.ts +59 -0
- package/src/components/import/data/seq2.ts +0 -18
- package/src/components/msa/MSACanvas.tsx +2 -1
- package/src/components/msa/MSACanvasBlock.tsx +2 -6
- package/src/components/msa/drawFeatureSpans.ts +160 -79
- package/src/components/msa/msaRaster.ts +27 -9
- package/src/components/msa/renderBoxFeatureCanvasBlock.ts +39 -24
- package/src/components/msa/renderHighlights.ts +2 -3
- package/src/components/msa/renderMSAMouseover.ts +5 -1
- package/src/components/renderCtx.ts +0 -1
- package/src/components/rowpanels/renderFeaturePanel.ts +26 -7
- package/src/components/tracks/drawTracks.ts +5 -5
- package/src/components/tree/CladeLabels.tsx +30 -54
- package/src/components/tree/cladeBrackets.ts +50 -3
- package/src/components/tree/renderTreeCanvas.ts +2 -13
- package/src/components/tree/renderTreeOverview.ts +7 -14
- package/src/element.ts +3 -7
- package/src/exportLayout.ts +134 -0
- package/src/headlessRenderEnv.ts +24 -11
- package/src/hierarchy.ts +5 -88
- package/src/index.ts +5 -5
- package/src/measureTextCanvas.ts +8 -6
- package/src/model/treeModel.ts +0 -7
- package/src/model.ts +170 -122
- package/src/renderToSvg.tsx +55 -194
- package/src/types.ts +0 -1
- package/src/version.ts +1 -1
- package/src/viewerSnapshot.ts +147 -0
- package/dist/components/header/ZoomMenu.d.ts +0 -6
- package/dist/components/header/ZoomMenu.js +0 -37
- package/dist/components/header/ZoomMenu.js.map +0 -1
- package/src/components/header/ZoomMenu.tsx +0 -48
|
@@ -108,11 +108,6 @@ export declare function TreeModelF(): import("@jbrowse/mobx-state-tree").IModelT
|
|
|
108
108
|
* #action
|
|
109
109
|
*/
|
|
110
110
|
setShowTreeOverview(arg: boolean): void;
|
|
111
|
-
/**
|
|
112
|
-
* #action
|
|
113
|
-
* set the height of the tree overview band (px)
|
|
114
|
-
*/
|
|
115
|
-
setOverviewHeight(n: number): void;
|
|
116
111
|
/**
|
|
117
112
|
* #action
|
|
118
113
|
*/
|
package/dist/model/treeModel.js
CHANGED
|
@@ -132,13 +132,6 @@ export function TreeModelF() {
|
|
|
132
132
|
setShowTreeOverview(arg) {
|
|
133
133
|
self.showTreeOverview = arg;
|
|
134
134
|
},
|
|
135
|
-
/**
|
|
136
|
-
* #action
|
|
137
|
-
* set the height of the tree overview band (px)
|
|
138
|
-
*/
|
|
139
|
-
setOverviewHeight(n) {
|
|
140
|
-
self.overviewHeight = Math.round(n);
|
|
141
|
-
},
|
|
142
135
|
/**
|
|
143
136
|
* #action
|
|
144
137
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"treeModel.js","sourceRoot":"","sources":["../../src/model/treeModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAEhD,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,qBAAqB,EACrB,eAAe,EACf,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,EACpB,gBAAgB,EAChB,uBAAuB,EACvB,UAAU,GACX,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAIjD;;GAEG;AACH,MAAM,UAAU,UAAU;IACxB,OAAO,KAAK;SACT,KAAK,CAAC;QACL;;WAEG;QACH,UAAU,EAAE,YAAY,CAAC,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC;QAC1D;;;WAGG;QACH,gBAAgB,EAAE,YAAY,CAAC,KAAK,CAAC,OAAO,EAAE,uBAAuB,CAAC;QAEtE;;;;;WAKG;QACH,aAAa,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC;QAExC;;;;;WAKG;QACH,SAAS,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC;QAEpC;;;;;WAKG;QACH,aAAa,EAAE,YAAY,CAAC,KAAK,CAAC,OAAO,EAAE,oBAAoB,CAAC;QAE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AAQ,GAAG,GAAG,CAAA;QACrB,CAAC;QAED;;WAEG;QACH,gBAAgB,CAAC,GAAY;YAC3B,IAAI,CAAC,aAAa,GAAG,GAAG,CAAA;QAC1B,CAAC;QAED;;WAEG;QACH,YAAY,CAAC,KAAgB;YAC3B,IAAI,CAAC,SAAS,GAAG,KAAK,CAAA;QACxB,CAAC;QAED;;WAEG;QACH,kBAAkB,CAAC,GAAY;YAC7B,IAAI,CAAC,eAAe,GAAG,GAAG,CAAA;QAC5B,CAAC;QACD;;WAEG;QACH,iBAAiB,CAAC,GAAY;YAC5B,IAAI,CAAC,cAAc,GAAG,GAAG,CAAA;QAC3B,CAAC;QACD;;WAEG;QACH,mBAAmB,CAAC,GAAY;YAC9B,IAAI,CAAC,gBAAgB,GAAG,GAAG,CAAA;QAC7B,CAAC;QACD;;WAEG;QACH,aAAa,CAAC,GAAY;YACxB,IAAI,CAAC,UAAU,GAAG,GAAG,CAAA;QACvB,CAAC;KACF,CAAC,CAAC,CAAA;AACP,CAAC"}
|
package/dist/model.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ import type { ExportSvgOptions } from './renderToSvg.tsx';
|
|
|
5
5
|
import type { Annotation, Arc, BasicTrack, Cell, Clade, ResidueMappingProblem, ColumnTrackSpec, DomainBand, Encoding, Feature, Highlight, Legend, MsaSelection, NodeWithIds, Region, ResidueMapping, ResolvedClade, ResolvedEncoding, ResolvedFeaturePanel, ResolvedHighlight, ResolvedSelection, TreeOrder, TreeRoot, ResolvedRowPanel, ResolvedStripPanel, RowDataInput, RowPanelSpec, RowResidue, StructureResidue, TrackKind, UnshareableData, Viewport } from './types.ts';
|
|
6
6
|
import type { FileLocation as FileLocationType } from '@jbrowse/core/util/types';
|
|
7
7
|
import type { Instance } from '@jbrowse/mobx-state-tree';
|
|
8
|
-
import type { InterProScanResults } from 'msa-parsers';
|
|
9
8
|
export declare const defaultTrackHeights: Partial<Record<TrackKind, number>>;
|
|
10
9
|
type StripPanelScale = Omit<ResolvedStripPanel, 'id' | 'width' | 'offsetX'>;
|
|
11
10
|
type FeaturePanelScale = Omit<ResolvedFeaturePanel, 'id' | 'width' | 'offsetX' | 'spans'>;
|
|
@@ -602,9 +601,10 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
|
|
|
602
601
|
/**
|
|
603
602
|
* #property
|
|
604
603
|
* where the view opens, in `highlights` coordinates: `{row, start,
|
|
605
|
-
* end}` zooms onto residues of that row
|
|
606
|
-
*
|
|
607
|
-
* then cleared, so a reloaded
|
|
604
|
+
* end}` zooms onto residues of that row and scrolls the row to the
|
|
605
|
+
* middle, `{start, end}` zooms onto alignment columns. Applied once the
|
|
606
|
+
* alignment and any tree file have loaded, then cleared, so a reloaded
|
|
607
|
+
* session keeps the reader's own scroll.
|
|
608
608
|
*/
|
|
609
609
|
region: import("@jbrowse/mobx-state-tree").IType<Region | undefined, Region | undefined, Region | undefined>;
|
|
610
610
|
/**
|
|
@@ -651,7 +651,6 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
|
|
|
651
651
|
setDrawNodeBubbles(arg: boolean): void;
|
|
652
652
|
setDrawNodeLabels(arg: boolean): void;
|
|
653
653
|
setShowTreeOverview(arg: boolean): void;
|
|
654
|
-
setOverviewHeight(n: number): void;
|
|
655
654
|
setDrawLabels(arg: boolean): void;
|
|
656
655
|
} & {
|
|
657
656
|
setColorSchemeName(name: string): void;
|
|
@@ -670,6 +669,12 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
|
|
|
670
669
|
* of the snapshot so a link opened in the full app shows the toolbar.
|
|
671
670
|
*/
|
|
672
671
|
hideHeader: boolean;
|
|
672
|
+
/**
|
|
673
|
+
* #volatile
|
|
674
|
+
* shows the import form while the view has no data. MSAViewer turns it
|
|
675
|
+
* off, since its host supplies the data and the form is the demo app's
|
|
676
|
+
*/
|
|
677
|
+
importForm: boolean;
|
|
673
678
|
/**
|
|
674
679
|
* #volatile
|
|
675
680
|
*/
|
|
@@ -1012,13 +1017,11 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
|
|
|
1012
1017
|
} & {
|
|
1013
1018
|
/**
|
|
1014
1019
|
* #getter
|
|
1015
|
-
* hideGaps takes effect when
|
|
1020
|
+
* hideGaps takes effect when a collapse or a focus hides rows, whose
|
|
1021
|
+
* residues leave columns all gaps among the rest, or when
|
|
1022
|
+
* allowedGappyness is under 100
|
|
1016
1023
|
*/
|
|
1017
1024
|
readonly hideGapsEffective: boolean;
|
|
1018
|
-
/**
|
|
1019
|
-
* #getter
|
|
1020
|
-
*/
|
|
1021
|
-
readonly realAllowedGappyness: number;
|
|
1022
1025
|
/**
|
|
1023
1026
|
* #getter
|
|
1024
1027
|
* the annotations the overlay, the legend and the encodings draw: the
|
|
@@ -1258,7 +1261,7 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
|
|
|
1258
1261
|
* any band size.
|
|
1259
1262
|
*/
|
|
1260
1263
|
readonly treeOverviewLayout: {
|
|
1261
|
-
root:
|
|
1264
|
+
root: import("./hierarchy.ts").LaidOutNode<NodeWithIds>;
|
|
1262
1265
|
numTips: number;
|
|
1263
1266
|
maxDepthToLeaf: number;
|
|
1264
1267
|
showBranchLen: boolean;
|
|
@@ -1340,11 +1343,17 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
|
|
|
1340
1343
|
* lazily per row and cached on the parse.
|
|
1341
1344
|
*/
|
|
1342
1345
|
seqPosIndex(rowName: string): Int32Array | undefined;
|
|
1346
|
+
/**
|
|
1347
|
+
* #method
|
|
1348
|
+
* the row's aligned sequence by the name the tree gives it, including
|
|
1349
|
+
* rows a collapsed clade hides. `MSA.getRow` resolves a FASTA name whose
|
|
1350
|
+
* colon a Newick tool wrote as an underscore, which `rowMap` does not
|
|
1351
|
+
*/
|
|
1352
|
+
rowSequence(name: string): string | undefined;
|
|
1343
1353
|
/**
|
|
1344
1354
|
* #getter
|
|
1345
|
-
* every sequence in the alignment, keyed by
|
|
1346
|
-
*
|
|
1347
|
-
* by row name use this
|
|
1355
|
+
* every sequence in the alignment, keyed by the alignment's own row
|
|
1356
|
+
* names, including rows a collapsed clade hides
|
|
1348
1357
|
*/
|
|
1349
1358
|
readonly rowMap: Map<string, string>;
|
|
1350
1359
|
/**
|
|
@@ -1437,12 +1446,6 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
|
|
|
1437
1446
|
* the tree's own units
|
|
1438
1447
|
*/
|
|
1439
1448
|
readonly rootToTipLength: number;
|
|
1440
|
-
/**
|
|
1441
|
-
* #getter
|
|
1442
|
-
* x-position of the farthest tip in a phylogram, px: effectiveTreeWidth,
|
|
1443
|
-
* or 0 for a tree with no branch lengths (drawn as a cladogram)
|
|
1444
|
-
*/
|
|
1445
|
-
readonly maxBranchLength: number;
|
|
1446
1449
|
/**
|
|
1447
1450
|
* #getter
|
|
1448
1451
|
* pixels per unit of branch length in the phylogram layout, 0 in
|
|
@@ -1831,7 +1834,9 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
|
|
|
1831
1834
|
* #action
|
|
1832
1835
|
* swap in a different tree over the same alignment. Clears `collapsed`,
|
|
1833
1836
|
* `rotated` and `showOnly`, since path-derived node ids (node-0-0-1) from the old
|
|
1834
|
-
* tree would match unrelated nodes in the new one
|
|
1837
|
+
* tree would match unrelated nodes in the new one, and the tree's
|
|
1838
|
+
* filehandle, which the snapshot would otherwise reopen in place of
|
|
1839
|
+
* the new tree
|
|
1835
1840
|
*/
|
|
1836
1841
|
replaceTree(newick: string): void;
|
|
1837
1842
|
/**
|
|
@@ -1844,22 +1849,6 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
|
|
|
1844
1849
|
* zoom by `scaleFactor` about the center of the alignment area
|
|
1845
1850
|
*/
|
|
1846
1851
|
zoomAtCenter(scaleFactor: number, axis?: ScrollZoomAxis): void;
|
|
1847
|
-
/**
|
|
1848
|
-
* #action
|
|
1849
|
-
*/
|
|
1850
|
-
zoomOutHorizontal(): void;
|
|
1851
|
-
/**
|
|
1852
|
-
* #action
|
|
1853
|
-
*/
|
|
1854
|
-
zoomInHorizontal(): void;
|
|
1855
|
-
/**
|
|
1856
|
-
* #action
|
|
1857
|
-
*/
|
|
1858
|
-
zoomInVertical(): void;
|
|
1859
|
-
/**
|
|
1860
|
-
* #action
|
|
1861
|
-
*/
|
|
1862
|
-
zoomOutVertical(): void;
|
|
1863
1852
|
/**
|
|
1864
1853
|
* #action
|
|
1865
1854
|
*/
|
|
@@ -1898,13 +1887,6 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
|
|
|
1898
1887
|
* GFF and must keep a hidden overlay hidden.
|
|
1899
1888
|
*/
|
|
1900
1889
|
setAnnotations(annotations: Annotation[]): void;
|
|
1901
|
-
/**
|
|
1902
|
-
* #action
|
|
1903
|
-
* set the overlay from raw InterProScan results keyed by row name. Kept
|
|
1904
|
-
* for downstream plugins that hold the EBI wire format; new code should
|
|
1905
|
-
* adapt to Annotation[] and call setAnnotations.
|
|
1906
|
-
*/
|
|
1907
|
-
setDomains(data?: Record<string, InterProScanResults>): void;
|
|
1908
1890
|
applyGFFText(gffText: string): void;
|
|
1909
1891
|
/**
|
|
1910
1892
|
* #action
|
|
@@ -2226,6 +2208,10 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
|
|
|
2226
2208
|
* #action
|
|
2227
2209
|
*/
|
|
2228
2210
|
setHideHeader(arg: boolean): void;
|
|
2211
|
+
/**
|
|
2212
|
+
* #action
|
|
2213
|
+
*/
|
|
2214
|
+
setImportForm(arg: boolean): void;
|
|
2229
2215
|
/**
|
|
2230
2216
|
* #action
|
|
2231
2217
|
* focus the subtree a click `y` pixels down the tree overview lands on.
|
|
@@ -2275,6 +2261,14 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
|
|
|
2275
2261
|
* its width, or for a span that resolves to no visible column.
|
|
2276
2262
|
*/
|
|
2277
2263
|
zoomToRegion(region: Region): void;
|
|
2264
|
+
/**
|
|
2265
|
+
* #action
|
|
2266
|
+
* zoomToRegion, and for a region naming a row, also scroll that row to
|
|
2267
|
+
* the middle of the alignment, as Go to does. What `region` opens on; a
|
|
2268
|
+
* caller following a range as it moves wants zoomToRegion alone, which
|
|
2269
|
+
* leaves the reader's vertical scroll where they put it.
|
|
2270
|
+
*/
|
|
2271
|
+
revealRegion(region: Region): void;
|
|
2278
2272
|
/**
|
|
2279
2273
|
* #action
|
|
2280
2274
|
* zoom and scroll so the selected columns fill the alignment's width,
|