react-msaview 9.0.0 → 9.1.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.
Files changed (352) hide show
  1. package/README.md +19 -10
  2. package/bundle/index.js +111 -115
  3. package/bundle/index.js.map +4 -4
  4. package/dist/blosum62.d.ts +3 -0
  5. package/dist/blosum62.js +43 -0
  6. package/dist/blosum62.js.map +1 -0
  7. package/dist/colorSchemes.js +2 -3
  8. package/dist/colorSchemes.js.map +1 -1
  9. package/dist/columnCounts.d.ts +0 -1
  10. package/dist/columnCounts.js +1 -1
  11. package/dist/columnCounts.js.map +1 -1
  12. package/dist/components/Loading.d.ts +3 -2
  13. package/dist/components/Loading.js +7 -7
  14. package/dist/components/Loading.js.map +1 -1
  15. package/dist/components/MSAView.d.ts +3 -2
  16. package/dist/components/MSAView.js +7 -4
  17. package/dist/components/MSAView.js.map +1 -1
  18. package/dist/components/MSAViewer.d.ts +1941 -4
  19. package/dist/components/MSAViewer.js +144 -201
  20. package/dist/components/MSAViewer.js.map +1 -1
  21. package/dist/components/MetadataTable.d.ts +4 -1
  22. package/dist/components/MetadataTable.js +55 -16
  23. package/dist/components/MetadataTable.js.map +1 -1
  24. package/dist/components/ResizeHandles.js +3 -2
  25. package/dist/components/ResizeHandles.js.map +1 -1
  26. package/dist/components/Track.js +8 -1
  27. package/dist/components/Track.js.map +1 -1
  28. package/dist/components/controls.d.ts +11 -0
  29. package/dist/components/controls.js +49 -0
  30. package/dist/components/controls.js.map +1 -0
  31. package/dist/components/dialogs/AnnotationFileDialog.js +12 -18
  32. package/dist/components/dialogs/AnnotationFileDialog.js.map +1 -1
  33. package/dist/components/dialogs/ExportSVGDialog.js +5 -7
  34. package/dist/components/dialogs/ExportSVGDialog.js.map +1 -1
  35. package/dist/components/dialogs/FeatureDialog.js +2 -2
  36. package/dist/components/dialogs/FeatureDialog.js.map +1 -1
  37. package/dist/components/{header/TreeSettingsMenu.d.ts → dialogs/GapThresholdDialog.d.ts} +3 -2
  38. package/dist/components/dialogs/GapThresholdDialog.js +15 -0
  39. package/dist/components/dialogs/GapThresholdDialog.js.map +1 -0
  40. package/dist/components/{header → dialogs}/GappynessSlider.d.ts +1 -1
  41. package/dist/components/{header → dialogs}/GappynessSlider.js +3 -10
  42. package/dist/components/dialogs/GappynessSlider.js.map +1 -0
  43. package/dist/components/{header → dialogs}/GoToBox.d.ts +4 -2
  44. package/dist/components/dialogs/GoToBox.js +48 -0
  45. package/dist/components/dialogs/GoToBox.js.map +1 -0
  46. package/dist/components/dialogs/GoToDialog.d.ts +6 -0
  47. package/dist/components/dialogs/GoToDialog.js +10 -0
  48. package/dist/components/dialogs/GoToDialog.js.map +1 -0
  49. package/dist/components/dialogs/HelpDialog.d.ts +6 -0
  50. package/dist/components/dialogs/HelpDialog.js +30 -0
  51. package/dist/components/dialogs/HelpDialog.js.map +1 -0
  52. package/dist/components/dialogs/MetadataDialog.js +11 -3
  53. package/dist/components/dialogs/MetadataDialog.js.map +1 -1
  54. package/dist/components/dialogs/goTo.d.ts +5 -0
  55. package/dist/components/{header → dialogs}/goTo.js +1 -1
  56. package/dist/components/dialogs/goTo.js.map +1 -0
  57. package/dist/components/dialogs/metadataLabels.d.ts +4 -0
  58. package/dist/components/dialogs/metadataLabels.js +52 -0
  59. package/dist/components/dialogs/metadataLabels.js.map +1 -0
  60. package/dist/components/dialogs/metadataRecord.d.ts +1 -0
  61. package/dist/components/dialogs/metadataRecord.js +38 -0
  62. package/dist/components/dialogs/metadataRecord.js.map +1 -0
  63. package/dist/components/header/Header.d.ts +6 -2
  64. package/dist/components/header/Header.js +30 -34
  65. package/dist/components/header/Header.js.map +1 -1
  66. package/dist/components/header/HiddenColumnsChip.d.ts +6 -0
  67. package/dist/components/header/HiddenColumnsChip.js +15 -0
  68. package/dist/components/header/HiddenColumnsChip.js.map +1 -0
  69. package/dist/components/header/{FileMenu.d.ts → MenuBar.d.ts} +3 -3
  70. package/dist/components/header/MenuBar.js +33 -0
  71. package/dist/components/header/MenuBar.js.map +1 -0
  72. package/dist/components/header/ScrollZoomCheckbox.d.ts +7 -0
  73. package/dist/components/header/ScrollZoomCheckbox.js +19 -0
  74. package/dist/components/header/ScrollZoomCheckbox.js.map +1 -0
  75. package/dist/components/header/ZoomControls.js +12 -48
  76. package/dist/components/header/ZoomControls.js.map +1 -1
  77. package/dist/components/header/colorSchemeMenuItems.d.ts +4 -0
  78. package/dist/components/header/colorSchemeMenuItems.js +106 -0
  79. package/dist/components/header/colorSchemeMenuItems.js.map +1 -0
  80. package/dist/components/header/getAnnotationsMenu.d.ts +3 -30
  81. package/dist/components/header/getAnnotationsMenu.js +48 -54
  82. package/dist/components/header/getAnnotationsMenu.js.map +1 -1
  83. package/dist/components/header/menuBarItems.d.ts +11 -0
  84. package/dist/components/header/menuBarItems.js +277 -0
  85. package/dist/components/header/menuBarItems.js.map +1 -0
  86. package/dist/components/import/ImportForm.js +12 -6
  87. package/dist/components/import/ImportForm.js.map +1 -1
  88. package/dist/components/import/data/seq2.d.ts +0 -1
  89. package/dist/components/import/data/seq2.js +0 -17
  90. package/dist/components/import/data/seq2.js.map +1 -1
  91. package/dist/components/minimap/Minimap.js +7 -3
  92. package/dist/components/minimap/Minimap.js.map +1 -1
  93. package/dist/components/minimap/MinimapSVG.js +2 -1
  94. package/dist/components/minimap/MinimapSVG.js.map +1 -1
  95. package/dist/components/minimap/minimapLayout.d.ts +12 -0
  96. package/dist/components/minimap/minimapLayout.js +20 -0
  97. package/dist/components/minimap/minimapLayout.js.map +1 -1
  98. package/dist/components/msa/MSACanvas.js +28 -10
  99. package/dist/components/msa/MSACanvas.js.map +1 -1
  100. package/dist/components/msa/MSACanvasBlock.js +17 -16
  101. package/dist/components/msa/MSACanvasBlock.js.map +1 -1
  102. package/dist/components/msa/MSAMouseoverCanvas.js +2 -2
  103. package/dist/components/msa/MSAMouseoverCanvas.js.map +1 -1
  104. package/dist/components/msa/WheelZoomHint.d.ts +7 -0
  105. package/dist/components/msa/WheelZoomHint.js +38 -0
  106. package/dist/components/msa/WheelZoomHint.js.map +1 -0
  107. package/dist/components/msa/drawFeatureSpans.d.ts +50 -11
  108. package/dist/components/msa/drawFeatureSpans.js +99 -56
  109. package/dist/components/msa/drawFeatureSpans.js.map +1 -1
  110. package/dist/components/msa/msaKeys.js +3 -0
  111. package/dist/components/msa/msaKeys.js.map +1 -1
  112. package/dist/components/msa/msaRaster.d.ts +14 -2
  113. package/dist/components/msa/msaRaster.js +20 -10
  114. package/dist/components/msa/msaRaster.js.map +1 -1
  115. package/dist/components/msa/renderBoxFeatureCanvasBlock.d.ts +9 -0
  116. package/dist/components/msa/renderBoxFeatureCanvasBlock.js +39 -8
  117. package/dist/components/msa/renderBoxFeatureCanvasBlock.js.map +1 -1
  118. package/dist/components/msa/renderHighlights.d.ts +2 -5
  119. package/dist/components/msa/renderHighlights.js +5 -6
  120. package/dist/components/msa/renderHighlights.js.map +1 -1
  121. package/dist/components/msa/renderMSABlock.d.ts +6 -1
  122. package/dist/components/msa/renderMSABlock.js +44 -17
  123. package/dist/components/msa/renderMSABlock.js.map +1 -1
  124. package/dist/components/msa/renderMSAMouseover.js +2 -1
  125. package/dist/components/msa/renderMSAMouseover.js.map +1 -1
  126. package/dist/components/msa/tileColor.js +7 -0
  127. package/dist/components/msa/tileColor.js.map +1 -1
  128. package/dist/components/renderCtx.d.ts +1 -1
  129. package/dist/components/rowpanels/RowPanelBlock.js +2 -2
  130. package/dist/components/rowpanels/RowPanelBlock.js.map +1 -1
  131. package/dist/components/rowpanels/renderFeaturePanel.d.ts +5 -1
  132. package/dist/components/rowpanels/renderFeaturePanel.js +12 -5
  133. package/dist/components/rowpanels/renderFeaturePanel.js.map +1 -1
  134. package/dist/components/settings/MenuItemsForm.d.ts +10 -0
  135. package/dist/components/settings/MenuItemsForm.js +80 -0
  136. package/dist/components/settings/MenuItemsForm.js.map +1 -0
  137. package/dist/components/settings/SettingsPanel.d.ts +12 -0
  138. package/dist/components/settings/SettingsPanel.js +92 -0
  139. package/dist/components/settings/SettingsPanel.js.map +1 -0
  140. package/dist/components/{header/ZoomMenu.d.ts → settings/TrackList.d.ts} +2 -2
  141. package/dist/components/settings/TrackList.js +55 -0
  142. package/dist/components/settings/TrackList.js.map +1 -0
  143. package/dist/components/tracks/TrackBlocks.js +2 -2
  144. package/dist/components/tracks/TrackBlocks.js.map +1 -1
  145. package/dist/components/tracks/drawTracks.d.ts +1 -53
  146. package/dist/components/tracks/drawTracks.js +5 -5
  147. package/dist/components/tracks/drawTracks.js.map +1 -1
  148. package/dist/components/tree/CladeLabels.d.ts +1 -1
  149. package/dist/components/tree/CladeLabels.js +22 -34
  150. package/dist/components/tree/CladeLabels.js.map +1 -1
  151. package/dist/components/tree/TreeCanvasBlock.js +2 -2
  152. package/dist/components/tree/TreeCanvasBlock.js.map +1 -1
  153. package/dist/components/tree/TreeMenu.js +4 -6
  154. package/dist/components/tree/TreeMenu.js.map +1 -1
  155. package/dist/components/tree/TreeOverview.js +2 -2
  156. package/dist/components/tree/TreeOverview.js.map +1 -1
  157. package/dist/components/tree/cladeBrackets.d.ts +17 -10
  158. package/dist/components/tree/cladeBrackets.js +33 -3
  159. package/dist/components/tree/cladeBrackets.js.map +1 -1
  160. package/dist/components/tree/renderTreeCanvas.js +2 -8
  161. package/dist/components/tree/renderTreeCanvas.js.map +1 -1
  162. package/dist/components/tree/renderTreeOverview.js +4 -11
  163. package/dist/components/tree/renderTreeOverview.js.map +1 -1
  164. package/dist/constants.d.ts +4 -1
  165. package/dist/constants.js +7 -1
  166. package/dist/constants.js.map +1 -1
  167. package/dist/darkReader.d.ts +7 -0
  168. package/dist/darkReader.js +42 -0
  169. package/dist/darkReader.js.map +1 -0
  170. package/dist/element.js +25 -53
  171. package/dist/element.js.map +1 -1
  172. package/dist/exportLayout.d.ts +39 -0
  173. package/dist/exportLayout.js +78 -0
  174. package/dist/exportLayout.js.map +1 -0
  175. package/dist/featurePanels.d.ts +37 -0
  176. package/dist/featurePanels.js +187 -0
  177. package/dist/featurePanels.js.map +1 -0
  178. package/dist/filehandleLoader.d.ts +41 -0
  179. package/dist/filehandleLoader.js +99 -0
  180. package/dist/filehandleLoader.js.map +1 -0
  181. package/dist/headlessRenderEnv.d.ts +12 -39
  182. package/dist/headlessRenderEnv.js +18 -12
  183. package/dist/headlessRenderEnv.js.map +1 -1
  184. package/dist/hierarchy.d.ts +5 -8
  185. package/dist/hierarchy.js +5 -79
  186. package/dist/hierarchy.js.map +1 -1
  187. package/dist/index.d.ts +6 -1
  188. package/dist/index.js +6 -1
  189. package/dist/index.js.map +1 -1
  190. package/dist/measureTextCanvas.d.ts +7 -0
  191. package/dist/measureTextCanvas.js +8 -6
  192. package/dist/measureTextCanvas.js.map +1 -1
  193. package/dist/model/treeModel.d.ts +6 -2
  194. package/dist/model/treeModel.js +8 -4
  195. package/dist/model/treeModel.js.map +1 -1
  196. package/dist/model.d.ts +180 -76
  197. package/dist/model.js +358 -618
  198. package/dist/model.js.map +1 -1
  199. package/dist/neighborJoining.js +1 -40
  200. package/dist/neighborJoining.js.map +1 -1
  201. package/dist/renderToSvg.d.ts +2 -7
  202. package/dist/renderToSvg.js +33 -133
  203. package/dist/renderToSvg.js.map +1 -1
  204. package/dist/rerootTree.d.ts +1 -0
  205. package/dist/rerootTree.js +7 -6
  206. package/dist/rerootTree.js.map +1 -1
  207. package/dist/schemeResidueColor.d.ts +12 -0
  208. package/dist/schemeResidueColor.js +33 -0
  209. package/dist/schemeResidueColor.js.map +1 -0
  210. package/dist/similarityColors.d.ts +11 -0
  211. package/dist/similarityColors.js +90 -0
  212. package/dist/similarityColors.js.map +1 -0
  213. package/dist/svgTestUtil.d.ts +74 -32
  214. package/dist/treeDisplay.d.ts +37 -0
  215. package/dist/treeDisplay.js +209 -0
  216. package/dist/treeDisplay.js.map +1 -0
  217. package/dist/types.d.ts +6 -3
  218. package/dist/useWheelScroll.d.ts +3 -1
  219. package/dist/useWheelScroll.js +36 -17
  220. package/dist/useWheelScroll.js.map +1 -1
  221. package/dist/util.d.ts +2 -0
  222. package/dist/util.js +2 -0
  223. package/dist/util.js.map +1 -1
  224. package/dist/version.d.ts +1 -1
  225. package/dist/version.js +1 -1
  226. package/dist/viewerSnapshot.d.ts +169 -0
  227. package/dist/viewerSnapshot.js +100 -0
  228. package/dist/viewerSnapshot.js.map +1 -0
  229. package/dist/wheelZoom.d.ts +8 -3
  230. package/dist/wheelZoom.js +44 -32
  231. package/dist/wheelZoom.js.map +1 -1
  232. package/dist/zoomSnapshot.d.ts +29 -0
  233. package/dist/zoomSnapshot.js +47 -0
  234. package/dist/zoomSnapshot.js.map +1 -0
  235. package/package.json +11 -11
  236. package/src/blosum62.ts +45 -0
  237. package/src/colorSchemes.ts +2 -4
  238. package/src/columnCounts.ts +1 -1
  239. package/src/components/Loading.tsx +25 -14
  240. package/src/components/MSAView.tsx +22 -5
  241. package/src/components/MSAViewer.tsx +275 -251
  242. package/src/components/MetadataTable.tsx +83 -26
  243. package/src/components/ResizeHandles.tsx +9 -2
  244. package/src/components/Track.tsx +15 -1
  245. package/src/components/controls.ts +62 -0
  246. package/src/components/dialogs/AnnotationFileDialog.tsx +16 -21
  247. package/src/components/dialogs/ExportSVGDialog.tsx +8 -19
  248. package/src/components/dialogs/FeatureDialog.tsx +2 -5
  249. package/src/components/dialogs/GapThresholdDialog.tsx +36 -0
  250. package/src/components/{header → dialogs}/GappynessSlider.tsx +3 -10
  251. package/src/components/{header → dialogs}/GoToBox.tsx +36 -10
  252. package/src/components/dialogs/GoToDialog.tsx +30 -0
  253. package/src/components/dialogs/HelpDialog.tsx +79 -0
  254. package/src/components/dialogs/MetadataDialog.tsx +32 -4
  255. package/src/components/{header → dialogs}/goTo.ts +1 -1
  256. package/src/components/dialogs/metadataLabels.ts +54 -0
  257. package/src/components/dialogs/metadataRecord.tsx +61 -0
  258. package/src/components/header/Header.tsx +75 -44
  259. package/src/components/header/HiddenColumnsChip.tsx +39 -0
  260. package/src/components/header/MenuBar.tsx +64 -0
  261. package/src/components/header/ScrollZoomCheckbox.tsx +46 -0
  262. package/src/components/header/ZoomControls.tsx +23 -74
  263. package/src/components/header/colorSchemeMenuItems.ts +121 -0
  264. package/src/components/header/getAnnotationsMenu.ts +52 -56
  265. package/src/components/header/menuBarItems.ts +357 -0
  266. package/src/components/import/ImportForm.tsx +19 -7
  267. package/src/components/import/data/seq2.ts +0 -18
  268. package/src/components/minimap/Minimap.tsx +11 -3
  269. package/src/components/minimap/MinimapSVG.tsx +17 -1
  270. package/src/components/minimap/minimapLayout.ts +27 -0
  271. package/src/components/msa/MSACanvas.tsx +24 -4
  272. package/src/components/msa/MSACanvasBlock.tsx +20 -17
  273. package/src/components/msa/MSAMouseoverCanvas.tsx +2 -2
  274. package/src/components/msa/WheelZoomHint.tsx +56 -0
  275. package/src/components/msa/drawFeatureSpans.ts +160 -79
  276. package/src/components/msa/msaKeys.ts +3 -0
  277. package/src/components/msa/msaRaster.ts +26 -10
  278. package/src/components/msa/renderBoxFeatureCanvasBlock.ts +62 -24
  279. package/src/components/msa/renderHighlights.ts +5 -6
  280. package/src/components/msa/renderMSABlock.ts +51 -15
  281. package/src/components/msa/renderMSAMouseover.ts +5 -1
  282. package/src/components/msa/tileColor.ts +7 -0
  283. package/src/components/renderCtx.ts +0 -1
  284. package/src/components/rowpanels/RowPanelBlock.tsx +2 -2
  285. package/src/components/rowpanels/renderFeaturePanel.ts +26 -7
  286. package/src/components/settings/MenuItemsForm.tsx +225 -0
  287. package/src/components/settings/SettingsPanel.tsx +156 -0
  288. package/src/components/settings/TrackList.tsx +119 -0
  289. package/src/components/tracks/TrackBlocks.tsx +2 -2
  290. package/src/components/tracks/drawTracks.ts +5 -5
  291. package/src/components/tree/CladeLabels.tsx +30 -54
  292. package/src/components/tree/TreeCanvasBlock.tsx +2 -2
  293. package/src/components/tree/TreeMenu.tsx +4 -6
  294. package/src/components/tree/TreeOverview.tsx +2 -2
  295. package/src/components/tree/cladeBrackets.ts +50 -3
  296. package/src/components/tree/renderTreeCanvas.ts +2 -13
  297. package/src/components/tree/renderTreeOverview.ts +7 -14
  298. package/src/constants.ts +9 -1
  299. package/src/darkReader.ts +57 -0
  300. package/src/element.ts +37 -64
  301. package/src/exportLayout.ts +134 -0
  302. package/src/featurePanels.ts +269 -0
  303. package/src/filehandleLoader.ts +136 -0
  304. package/src/headlessRenderEnv.ts +24 -11
  305. package/src/hierarchy.ts +5 -88
  306. package/src/index.ts +9 -5
  307. package/src/measureTextCanvas.ts +8 -6
  308. package/src/model/treeModel.ts +9 -3
  309. package/src/model.ts +452 -807
  310. package/src/neighborJoining.ts +1 -42
  311. package/src/renderToSvg.tsx +56 -207
  312. package/src/rerootTree.ts +7 -6
  313. package/src/schemeResidueColor.ts +37 -0
  314. package/src/similarityColors.ts +112 -0
  315. package/src/treeDisplay.ts +278 -0
  316. package/src/types.ts +6 -4
  317. package/src/useWheelScroll.ts +43 -22
  318. package/src/util.ts +3 -0
  319. package/src/version.ts +1 -1
  320. package/src/viewerSnapshot.ts +147 -0
  321. package/src/wheelZoom.ts +55 -33
  322. package/src/zoomSnapshot.ts +80 -0
  323. package/dist/components/header/ColorSchemeMenu.d.ts +0 -12
  324. package/dist/components/header/ColorSchemeMenu.js +0 -37
  325. package/dist/components/header/ColorSchemeMenu.js.map +0 -1
  326. package/dist/components/header/FileMenu.js +0 -66
  327. package/dist/components/header/FileMenu.js.map +0 -1
  328. package/dist/components/header/GappynessSlider.js.map +0 -1
  329. package/dist/components/header/GoToBox.js +0 -31
  330. package/dist/components/header/GoToBox.js.map +0 -1
  331. package/dist/components/header/MSASettingsMenu.d.ts +0 -6
  332. package/dist/components/header/MSASettingsMenu.js +0 -11
  333. package/dist/components/header/MSASettingsMenu.js.map +0 -1
  334. package/dist/components/header/ScrollZoomIcons.d.ts +0 -6
  335. package/dist/components/header/ScrollZoomIcons.js +0 -35
  336. package/dist/components/header/ScrollZoomIcons.js.map +0 -1
  337. package/dist/components/header/TreeSettingsMenu.js +0 -42
  338. package/dist/components/header/TreeSettingsMenu.js.map +0 -1
  339. package/dist/components/header/ZoomMenu.js +0 -37
  340. package/dist/components/header/ZoomMenu.js.map +0 -1
  341. package/dist/components/header/goTo.d.ts +0 -20
  342. package/dist/components/header/goTo.js.map +0 -1
  343. package/dist/components/header/settingsMenuItems.d.ts +0 -4
  344. package/dist/components/header/settingsMenuItems.js +0 -127
  345. package/dist/components/header/settingsMenuItems.js.map +0 -1
  346. package/src/components/header/ColorSchemeMenu.tsx +0 -56
  347. package/src/components/header/FileMenu.tsx +0 -81
  348. package/src/components/header/MSASettingsMenu.tsx +0 -26
  349. package/src/components/header/ScrollZoomIcons.tsx +0 -52
  350. package/src/components/header/TreeSettingsMenu.tsx +0 -60
  351. package/src/components/header/ZoomMenu.tsx +0 -48
  352. package/src/components/header/settingsMenuItems.ts +0 -157
package/dist/model.d.ts CHANGED
@@ -2,13 +2,11 @@ import type { ColumnStats } from './columnStats.ts';
2
2
  import type { ScrollZoomAxis } from './constants.ts';
3
3
  import type { HierarchyNode } from './hierarchy.ts';
4
4
  import type { ExportSvgOptions } from './renderToSvg.tsx';
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';
5
+ import type { Annotation, Arc, BasicTrack, Cell, Clade, ResidueMappingProblem, ColumnTrackSpec, DomainBand, Encoding, Feature, Highlight, Legend, MsaSelection, NodeWithIds, Region, ResidueMapping, ResolvedClade, ResolvedEncoding, ResolvedFeaturePanel, ResolvedStripPanel, ResolvedHighlight, ResolvedSelection, TreeRoot, ResolvedRowPanel, RowDataInput, RowPanelSpec, RowResidue, StructureResidue, TrackKind, UnshareableData, Viewport } from './types.ts';
6
+ import type { ZoomSnapshot } from './zoomSnapshot.ts';
6
7
  import type { FileLocation as FileLocationType } from '@jbrowse/core/util/types';
7
8
  import type { Instance } from '@jbrowse/mobx-state-tree';
8
- import type { InterProScanResults } from 'msa-parsers';
9
9
  export declare const defaultTrackHeights: Partial<Record<TrackKind, number>>;
10
- type StripPanelScale = Omit<ResolvedStripPanel, 'id' | 'width' | 'offsetX'>;
11
- type FeaturePanelScale = Omit<ResolvedFeaturePanel, 'id' | 'width' | 'offsetX' | 'spans'>;
12
10
  /**
13
11
  * The snapshot properties reset() carries across a return to the import form:
14
12
  * display preferences and layout, nothing derived from the loaded file.
@@ -22,6 +20,8 @@ type FeaturePanelScale = Omit<ResolvedFeaturePanel, 'id' | 'width' | 'offsetX' |
22
20
  * Exported for modelReset.test.ts.
23
21
  */
24
22
  export declare const preservedOnReset: Set<string>;
23
+ type StripPanelScale = Omit<ResolvedStripPanel, 'id' | 'width' | 'offsetX'>;
24
+ type FeaturePanelScale = Omit<ResolvedFeaturePanel, 'id' | 'width' | 'offsetX' | 'spans'>;
25
25
  /**
26
26
  * #stateModel MsaView
27
27
  *
@@ -49,17 +49,18 @@ export declare const preservedOnReset: Set<string>;
49
49
  */
50
50
  declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
51
51
  maxInlineSnapshotBytes?: number;
52
- }): import("@jbrowse/mobx-state-tree").IModelType<Omit<Omit<Omit<{}, "drawLabels" | "drawNodeBubbles" | "drawNodeLabels" | "drawTree" | "labelsAlignRight" | "overviewHeight" | "showBranchLen" | "showTreeOverview" | "treeAreaWidth" | "treeOrder" | "treeWidth"> & {
52
+ }): import("@jbrowse/mobx-state-tree").IModelType<Omit<Omit<Omit<{}, "drawLabels" | "drawNodeBubbles" | "drawNodeLabels" | "drawTree" | "labelsAlignRight" | "overviewHeight" | "showBranchLen" | "showTreeOverview" | "showTreeScaleBar" | "treeAreaWidth" | "treeOrder" | "treeWidth"> & {
53
53
  drawLabels: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>, [undefined]>;
54
54
  labelsAlignRight: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>, [undefined]>;
55
55
  treeAreaWidth: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<number>>;
56
56
  treeWidth: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<number>>;
57
57
  showBranchLen: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>, [undefined]>;
58
- treeOrder: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<TreeOrder>, [undefined]>;
58
+ treeOrder: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<import("./types.ts").TreeOrder>, [undefined]>;
59
59
  drawTree: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>, [undefined]>;
60
60
  drawNodeBubbles: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>, [undefined]>;
61
61
  drawNodeLabels: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>, [undefined]>;
62
62
  showTreeOverview: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>, [undefined]>;
63
+ showTreeScaleBar: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>, [undefined]>;
63
64
  overviewHeight: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<number>, [undefined]>;
64
65
  }, "bgColor" | "colorSchemeName" | "customColorScheme" | "msaFormat" | "showColumnStats"> & {
65
66
  bgColor: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>, [undefined]>;
@@ -67,7 +68,7 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
67
68
  customColorScheme: import("@jbrowse/mobx-state-tree").IType<Record<string, string> | undefined, Record<string, string> | undefined, Record<string, string> | undefined>;
68
69
  showColumnStats: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>, [undefined]>;
69
70
  msaFormat: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<import("msa-parsers").MSAFormat>>;
70
- }, "allowedGappyness" | "clades" | "colWidth" | "collapsed" | "columnTracks" | "currentAlignment" | "data" | "drawMsaLetters" | "encodings" | "features" | "gffFilehandle" | "height" | "hideGaps" | "highlightColumns" | "highlights" | "id" | "msaFilehandle" | "region" | "relativeTo" | "residueMappings" | "rotated" | "rowHeight" | "rowPanels" | "scrollX" | "scrollY" | "scrollZoom" | "scrollZoomAxis" | "selection" | "showDomainLegend" | "showDomains" | "showOnly" | "subFeatureRows" | "trackHeights" | "treeFilehandle" | "treeMetadataFilehandle" | "treeRoot" | "turnedOffFeatures" | "turnedOffTracks" | "type"> & {
71
+ }, "allowedGappyness" | "clades" | "colWidth" | "collapsed" | "columnTracks" | "currentAlignment" | "data" | "domainFill" | "drawMsaLetters" | "embeddedMode" | "encodings" | "features" | "gffFilehandle" | "height" | "hideGaps" | "highlightColumns" | "highlights" | "id" | "msaFilehandle" | "region" | "relativeTo" | "residueMappings" | "rotated" | "rowHeight" | "rowPanels" | "scrollX" | "scrollY" | "scrollZoom" | "scrollZoomAxis" | "selection" | "showDomainLegend" | "showDomains" | "showOnly" | "subFeatureRows" | "trackHeights" | "treeFilehandle" | "treeMetadataFilehandle" | "treeRoot" | "turnedOffFeatures" | "turnedOffTracks" | "type"> & {
71
72
  /**
72
73
  * #property
73
74
  * id of view, randomly generated if not provided
@@ -77,6 +78,13 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
77
78
  * #property
78
79
  */
79
80
  showDomains: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>, [undefined]>;
81
+ /**
82
+ * #property
83
+ * whether shown domains fill the cells they cover. Off, the residue
84
+ * scheme keeps the cells and each domain draws as a bar under its
85
+ * row. See `cellFill`.
86
+ */
87
+ domainFill: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>, [undefined]>;
80
88
  /**
81
89
  * #property
82
90
  * whether the domain legend is expanded. The legend floats over the
@@ -105,6 +113,12 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
105
113
  * #property
106
114
  */
107
115
  drawMsaLetters: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>, [undefined]>;
116
+ /**
117
+ * #property
118
+ * draws the toolbar's menus and Settings as icons without text, for a
119
+ * host with little room, such as a JBrowse view
120
+ */
121
+ embeddedMode: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>, [undefined]>;
108
122
  /**
109
123
  * #property
110
124
  * zoom in/out on plain mouse-wheel without holding ctrl
@@ -557,10 +571,10 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
557
571
  }>, [undefined]>;
558
572
  /**
559
573
  * #property
560
- * the user's explicit hide choices per annotation accession, keyed by
561
- * accession with the value meaning "off", like `turnedOffTracks`. An
562
- * untouched accession is absent and drawn, so the shared URL grows
563
- * only with the user's filters
574
+ * the user's departures from each annotation accession's default,
575
+ * keyed by accession with the value meaning "off", like
576
+ * `turnedOffTracks`. An untouched accession is absent and takes its
577
+ * default, so the shared URL grows only with the user's filters
564
578
  */
565
579
  turnedOffFeatures: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").IMapType<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>, [undefined]>;
566
580
  /**
@@ -602,9 +616,10 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
602
616
  /**
603
617
  * #property
604
618
  * where the view opens, in `highlights` coordinates: `{row, start,
605
- * end}` zooms onto residues of that row, `{start, end}` onto alignment
606
- * columns. Applied once the alignment and any tree file have loaded,
607
- * then cleared, so a reloaded session keeps the reader's own scroll.
619
+ * end}` zooms onto residues of that row and scrolls the row to the
620
+ * middle, `{start, end}` zooms onto alignment columns. Applied once the
621
+ * alignment and any tree file have loaded, then cleared, so a reloaded
622
+ * session keeps the reader's own scroll.
608
623
  */
609
624
  region: import("@jbrowse/mobx-state-tree").IType<Region | undefined, Region | undefined, Region | undefined>;
610
625
  /**
@@ -647,11 +662,11 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
647
662
  setLabelsAlignRight(arg: boolean): void;
648
663
  setDrawTree(arg: boolean): void;
649
664
  setShowBranchLen(arg: boolean): void;
650
- setTreeOrder(order: TreeOrder): void;
665
+ setTreeOrder(order: import("./types.ts").TreeOrder): void;
651
666
  setDrawNodeBubbles(arg: boolean): void;
652
667
  setDrawNodeLabels(arg: boolean): void;
653
668
  setShowTreeOverview(arg: boolean): void;
654
- setOverviewHeight(n: number): void;
669
+ setShowTreeScaleBar(arg: boolean): void;
655
670
  setDrawLabels(arg: boolean): void;
656
671
  } & {
657
672
  setColorSchemeName(name: string): void;
@@ -664,12 +679,33 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
664
679
  * #volatile
665
680
  */
666
681
  headerHeight: number;
682
+ /**
683
+ * #volatile
684
+ * whether the settings panel docks beside the alignment, taking
685
+ * `settingsPanelWidth` out of the width the view lays out in
686
+ */
687
+ settingsOpen: boolean;
688
+ /**
689
+ * #volatile
690
+ * the log scale a wheel zoom has gathered against the detent at the
691
+ * default column width and row height, per axis
692
+ */
693
+ zoomHeld: {
694
+ col: number;
695
+ row: number;
696
+ };
667
697
  /**
668
698
  * #volatile
669
699
  * leaves the toolbar out, for a host drawing its own controls. Kept out
670
700
  * of the snapshot so a link opened in the full app shows the toolbar.
671
701
  */
672
702
  hideHeader: boolean;
703
+ /**
704
+ * #volatile
705
+ * shows the import form while the view has no data. MSAViewer turns it
706
+ * off, since its host supplies the data and the form is the demo app's
707
+ */
708
+ importForm: boolean;
673
709
  /**
674
710
  * #volatile
675
711
  */
@@ -682,6 +718,13 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
682
718
  * canvas scale factor, from the device pixel ratio
683
719
  */
684
720
  highResScaleFactor: number;
721
+ /**
722
+ * #volatile
723
+ * the cell size and block grid the alignment last drew at, held from a
724
+ * wheel-zoom frame until the gesture settles. MSACanvas stretches those
725
+ * blocks to the current cell size with one CSS transform
726
+ */
727
+ zoomSnapshot: ZoomSnapshot | undefined;
685
728
  /**
686
729
  * #volatile
687
730
  */
@@ -815,6 +858,10 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
815
858
  * #action
816
859
  */
817
860
  setWidth(arg: number): void;
861
+ /**
862
+ * #action
863
+ */
864
+ setSettingsOpen(arg: boolean): void;
818
865
  /**
819
866
  * #action
820
867
  * update the canvas scale factor when the device pixel ratio changes
@@ -904,6 +951,16 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
904
951
  * toggle the annotation overlay on the alignment
905
952
  */
906
953
  setShowDomains(arg: boolean): void;
954
+ /**
955
+ * #action
956
+ */
957
+ setDomainFill(arg: boolean): void;
958
+ /**
959
+ * #action
960
+ * hand the cell fill to the residue scheme, the domains, or neither,
961
+ * which colors the letters instead
962
+ */
963
+ setCellFill(mode: 'residue' | 'domain' | 'none'): void;
907
964
  /**
908
965
  * #action
909
966
  * expand or collapse the domain legend that floats over the alignment
@@ -1012,23 +1069,11 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
1012
1069
  } & {
1013
1070
  /**
1014
1071
  * #getter
1015
- * hideGaps takes effect when there are collapsed rows or allowedGappyness < 100
1072
+ * hideGaps takes effect when a collapse or a focus hides rows, whose
1073
+ * residues leave columns all gaps among the rest, or when
1074
+ * allowedGappyness is under 100
1016
1075
  */
1017
1076
  readonly hideGapsEffective: boolean;
1018
- /**
1019
- * #getter
1020
- */
1021
- readonly realAllowedGappyness: number;
1022
- /**
1023
- * #getter
1024
- * the annotations the overlay, the legend and the encodings draw: the
1025
- * GFF's, then the `features` layer's
1026
- */
1027
- readonly allAnnotations: Annotation[];
1028
- /**
1029
- * #getter
1030
- */
1031
- readonly actuallyShowDomains: boolean;
1032
1077
  /**
1033
1078
  * #getter
1034
1079
  * whether the host restores the loaded documents outside the snapshot.
@@ -1124,6 +1169,16 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
1124
1169
  * #getter
1125
1170
  */
1126
1171
  readonly MSA: import("msa-parsers").MSAParserType | null;
1172
+ /**
1173
+ * #getter
1174
+ * the annotations the overlay, the legend and the encodings draw: the
1175
+ * GFF's, the `features` layer's, then the file's own per-row lines
1176
+ */
1177
+ readonly allAnnotations: Annotation[];
1178
+ /**
1179
+ * #getter
1180
+ */
1181
+ readonly actuallyShowDomains: boolean;
1127
1182
  /**
1128
1183
  * #getter
1129
1184
  */
@@ -1258,7 +1313,7 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
1258
1313
  * any band size.
1259
1314
  */
1260
1315
  readonly treeOverviewLayout: {
1261
- root: HierarchyNode<NodeWithIds>;
1316
+ root: import("./hierarchy.ts").LaidOutNode<NodeWithIds>;
1262
1317
  numTips: number;
1263
1318
  maxDepthToLeaf: number;
1264
1319
  showBranchLen: boolean;
@@ -1340,11 +1395,17 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
1340
1395
  * lazily per row and cached on the parse.
1341
1396
  */
1342
1397
  seqPosIndex(rowName: string): Int32Array | undefined;
1398
+ /**
1399
+ * #method
1400
+ * the row's aligned sequence by the name the tree gives it, including
1401
+ * rows a collapsed clade hides. `MSA.getRow` resolves a FASTA name whose
1402
+ * colon a Newick tool wrote as an underscore, which `rowMap` does not
1403
+ */
1404
+ rowSequence(name: string): string | undefined;
1343
1405
  /**
1344
1406
  * #getter
1345
- * every sequence in the alignment, keyed by row name, including rows a
1346
- * collapsed clade hides. `rows` holds only the rows on screen; lookups
1347
- * by row name use this
1407
+ * every sequence in the alignment, keyed by the alignment's own row
1408
+ * names, including rows a collapsed clade hides
1348
1409
  */
1349
1410
  readonly rowMap: Map<string, string>;
1350
1411
  /**
@@ -1385,6 +1446,14 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
1385
1446
  * ref http://www.jalview.org/help/html/colourSchemes/clustal.html
1386
1447
  */
1387
1448
  readonly colClustalX: Record<string, string>[];
1449
+ /**
1450
+ * #getter
1451
+ * Pre-computed similarity shades per column, for blosum62_dynamic.
1452
+ * Returns a map of letter -> color for each column. Amino acids shade by
1453
+ * BLOSUM62 similarity to the rest of the column, and an alignment of
1454
+ * nucleotides by identity, since the matrix names amino acids.
1455
+ */
1456
+ readonly colSimilarity: Record<string, string>[];
1388
1457
  /**
1389
1458
  * #getter
1390
1459
  * Conservation score per column using Shannon entropy (biojs-msa style).
@@ -1437,12 +1506,6 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
1437
1506
  * the tree's own units
1438
1507
  */
1439
1508
  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
1509
  /**
1447
1510
  * #getter
1448
1511
  * pixels per unit of branch length in the phylogram layout, 0 in
@@ -1688,8 +1751,9 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
1688
1751
  } & {
1689
1752
  /**
1690
1753
  * #getter
1691
- * the branch-length scale bar over the tree, undefined in cladogram mode
1692
- * or when the tree area is too narrow for one
1754
+ * the branch-length scale bar over the tree, undefined while
1755
+ * `showTreeScaleBar` is off, in cladogram mode, or when the tree area is
1756
+ * too narrow for one
1693
1757
  */
1694
1758
  readonly treeScaleBar: {
1695
1759
  step: number;
@@ -1720,7 +1784,24 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
1720
1784
  * filter dialog and the palettes
1721
1785
  */
1722
1786
  readonly annotationTypes: Map<string, Annotation>;
1787
+ /**
1788
+ * accessions hidden until the user turns them on, such as a Stockholm
1789
+ * file's #=GR lines
1790
+ */
1791
+ readonly defaultOffAccessions: Set<string>;
1792
+ /**
1793
+ * #method
1794
+ */
1795
+ featureOff(accession: string): boolean;
1723
1796
  readonly filteredAnnotations: Annotation[];
1797
+ /**
1798
+ * #getter
1799
+ * what colors the alignment's cells: the residue scheme, the domains
1800
+ * covering them, or nothing, which leaves the scheme to the letters.
1801
+ * Domains own the fill only while some are drawn, so a file whose
1802
+ * annotations all start hidden keeps its residue colors
1803
+ */
1804
+ readonly cellFill: 'residue' | 'domain' | 'none';
1724
1805
  readonly annotationsByRow: Record<string, Annotation[]>;
1725
1806
  } & {
1726
1807
  /**
@@ -1761,6 +1842,10 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
1761
1842
  * #getter
1762
1843
  */
1763
1844
  readonly blocks2d: (readonly [number, number])[];
1845
+ /**
1846
+ * #getter
1847
+ */
1848
+ readonly wheelZooming: boolean;
1764
1849
  /**
1765
1850
  * #getter
1766
1851
  */
@@ -1831,7 +1916,9 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
1831
1916
  * #action
1832
1917
  * swap in a different tree over the same alignment. Clears `collapsed`,
1833
1918
  * `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.
1919
+ * tree would match unrelated nodes in the new one, and the tree's
1920
+ * filehandle, which the snapshot would otherwise reopen in place of
1921
+ * the new tree
1835
1922
  */
1836
1923
  replaceTree(newick: string): void;
1837
1924
  /**
@@ -1844,22 +1931,6 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
1844
1931
  * zoom by `scaleFactor` about the center of the alignment area
1845
1932
  */
1846
1933
  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
1934
  /**
1864
1935
  * #action
1865
1936
  */
@@ -1880,6 +1951,17 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
1880
1951
  * other one can change how much of the alignment fits.
1881
1952
  */
1882
1953
  zoomToPos(scaleFactor: number, offsetX: number, offsetY: number, axis?: ScrollZoomAxis): void;
1954
+ /**
1955
+ * #action
1956
+ * zoomToPos for one wheel or pinch frame. The alignment keeps the blocks
1957
+ * it drew at the start of the gesture, scaled, and redraws them only once
1958
+ * they stop covering the viewport; endWheelZoom redraws them sharp
1959
+ */
1960
+ wheelZoomToPos(scaleFactor: number, offsetX: number, offsetY: number): void;
1961
+ /**
1962
+ * #action
1963
+ */
1964
+ endWheelZoom(): void;
1883
1965
  /**
1884
1966
  * #action
1885
1967
  */
@@ -1898,13 +1980,6 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
1898
1980
  * GFF and must keep a hidden overlay hidden.
1899
1981
  */
1900
1982
  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
1983
  applyGFFText(gffText: string): void;
1909
1984
  /**
1910
1985
  * #action
@@ -1943,6 +2018,13 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
1943
2018
  * #action
1944
2019
  */
1945
2020
  toggleTrack(id: string): void;
2021
+ /**
2022
+ * #action
2023
+ * show or hide several tracks at once, as the track selector's Show all
2024
+ * and Hide all do. A choice matching the track's default is dropped, so
2025
+ * it stays out of the shared URL
2026
+ */
2027
+ setTracksShown(ids: string[], shown: boolean): void;
1946
2028
  /**
1947
2029
  * #action
1948
2030
  */
@@ -2043,9 +2125,9 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
2043
2125
  /**
2044
2126
  * #getter
2045
2127
  * whether the overlay marks each domain with a bar under its row instead
2046
- * of filling the row behind the letters. Letter-color mode hands the
2047
- * background to the color scheme, so a filled box would paint over it and
2048
- * leave the setting with nothing to show. Sub-row layout already stacks
2128
+ * of filling the row behind the letters: whenever the domains do not own
2129
+ * the cell fill (`cellFill`), a filled box would paint over the residue
2130
+ * colors the user picked. Sub-row layout already stacks
2049
2131
  * the boxes clear of the letters, and with the letters too small to draw
2050
2132
  * the filled box is the only thing left to read.
2051
2133
  */
@@ -2226,6 +2308,14 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
2226
2308
  * #action
2227
2309
  */
2228
2310
  setHideHeader(arg: boolean): void;
2311
+ /**
2312
+ * #action
2313
+ */
2314
+ setEmbeddedMode(arg: boolean): void;
2315
+ /**
2316
+ * #action
2317
+ */
2318
+ setImportForm(arg: boolean): void;
2229
2319
  /**
2230
2320
  * #action
2231
2321
  * focus the subtree a click `y` pixels down the tree overview lands on.
@@ -2256,8 +2346,8 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
2256
2346
  exportNewick(): void;
2257
2347
  /**
2258
2348
  * #action
2259
- * show or hide an annotation type. Only hidden types are recorded; see
2260
- * `turnedOffFeatures`
2349
+ * show or hide an annotation type. Only a choice that differs from the
2350
+ * type's default is recorded; see `turnedOffFeatures`
2261
2351
  */
2262
2352
  setFilter(accession: string, shown: boolean): void;
2263
2353
  /**
@@ -2267,7 +2357,7 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
2267
2357
  /**
2268
2358
  * #action
2269
2359
  */
2270
- fitVertically(): void;
2360
+ fitVertically(maxRowHeight?: any): void;
2271
2361
  /**
2272
2362
  * #action
2273
2363
  * zoom and scroll so a span fills the alignment's width, in highlight
@@ -2275,6 +2365,14 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
2275
2365
  * its width, or for a span that resolves to no visible column.
2276
2366
  */
2277
2367
  zoomToRegion(region: Region): void;
2368
+ /**
2369
+ * #action
2370
+ * zoomToRegion, and for a region naming a row, also scroll that row to
2371
+ * the middle of the alignment, as Go to does. What `region` opens on; a
2372
+ * caller following a range as it moves wants zoomToRegion alone, which
2373
+ * leaves the reader's vertical scroll where they put it.
2374
+ */
2375
+ revealRegion(region: Region): void;
2278
2376
  /**
2279
2377
  * #action
2280
2378
  * zoom and scroll so the selected columns fill the alignment's width,
@@ -2298,7 +2396,7 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
2298
2396
  /**
2299
2397
  * #action
2300
2398
  */
2301
- fitHorizontally(): void;
2399
+ fitHorizontally(maxColWidth?: any): void;
2302
2400
  afterCreate(): void;
2303
2401
  }, import("@jbrowse/mobx-state-tree")._NotCustomized, {
2304
2402
  bgColor: boolean;
@@ -2311,21 +2409,24 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
2311
2409
  treeAreaWidth: number | undefined;
2312
2410
  treeWidth: number | undefined;
2313
2411
  showBranchLen: boolean;
2314
- treeOrder: TreeOrder;
2412
+ treeOrder: import("./types.ts").TreeOrder;
2315
2413
  drawTree: boolean;
2316
2414
  drawNodeBubbles: boolean;
2317
2415
  drawNodeLabels: boolean;
2318
2416
  showTreeOverview: boolean;
2417
+ showTreeScaleBar: boolean;
2319
2418
  overviewHeight: number;
2320
2419
  columnTracks: ColumnTrackSpec[];
2321
2420
  id: string;
2322
2421
  showDomains: boolean;
2422
+ domainFill: boolean;
2323
2423
  showDomainLegend: boolean;
2324
2424
  hideGaps: boolean;
2325
2425
  allowedGappyness: number;
2326
2426
  subFeatureRows: boolean;
2327
2427
  type: "MsaView";
2328
2428
  drawMsaLetters: boolean;
2429
+ embeddedMode: boolean;
2329
2430
  scrollZoom: boolean;
2330
2431
  scrollZoomAxis: "both" | "horizontal" | "vertical";
2331
2432
  height: number;
@@ -2448,21 +2549,24 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
2448
2549
  treeAreaWidth: number | undefined;
2449
2550
  treeWidth: number | undefined;
2450
2551
  showBranchLen: boolean;
2451
- treeOrder: TreeOrder;
2552
+ treeOrder: import("./types.ts").TreeOrder;
2452
2553
  drawTree: boolean;
2453
2554
  drawNodeBubbles: boolean;
2454
2555
  drawNodeLabels: boolean;
2455
2556
  showTreeOverview: boolean;
2557
+ showTreeScaleBar: boolean;
2456
2558
  overviewHeight: number;
2457
2559
  columnTracks?: undefined;
2458
2560
  id: string;
2459
2561
  showDomains: boolean;
2562
+ domainFill: boolean;
2460
2563
  showDomainLegend: boolean;
2461
2564
  hideGaps: boolean;
2462
2565
  allowedGappyness: number;
2463
2566
  subFeatureRows: boolean;
2464
2567
  type: "MsaView";
2465
2568
  drawMsaLetters: boolean;
2569
+ embeddedMode: boolean;
2466
2570
  scrollZoom: boolean;
2467
2571
  scrollZoomAxis: "both" | "horizontal" | "vertical";
2468
2572
  height: number;