@jbrowse/plugin-linear-genome-view 2.18.0 → 3.0.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 (294) hide show
  1. package/dist/BaseLinearDisplay/components/BaseLinearDisplay.d.ts +1 -2
  2. package/dist/BaseLinearDisplay/components/BaseLinearDisplay.js +17 -44
  3. package/dist/BaseLinearDisplay/components/Block.d.ts +3 -4
  4. package/dist/BaseLinearDisplay/components/Block.js +4 -7
  5. package/dist/BaseLinearDisplay/components/BlockError.d.ts +1 -2
  6. package/dist/BaseLinearDisplay/components/BlockError.js +9 -15
  7. package/dist/BaseLinearDisplay/components/BlockMsg.d.ts +1 -2
  8. package/dist/BaseLinearDisplay/components/BlockMsg.js +3 -8
  9. package/dist/BaseLinearDisplay/components/LinearBlocks.d.ts +2 -3
  10. package/dist/BaseLinearDisplay/components/LinearBlocks.js +21 -27
  11. package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.d.ts +1 -2
  12. package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +23 -14
  13. package/dist/BaseLinearDisplay/components/TooLargeMessage.d.ts +2 -3
  14. package/dist/BaseLinearDisplay/components/TooLargeMessage.js +11 -7
  15. package/dist/BaseLinearDisplay/components/Tooltip.d.ts +7 -4
  16. package/dist/BaseLinearDisplay/components/Tooltip.js +5 -5
  17. package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +7 -7
  18. package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.js +17 -7
  19. package/dist/BaseLinearDisplay/models/FeatureDensityMixin.d.ts +1 -2
  20. package/dist/BaseLinearDisplay/models/FeatureDensityMixin.js +2 -2
  21. package/dist/BaseLinearDisplay/models/renderSvg.d.ts +2 -3
  22. package/dist/BaseLinearDisplay/models/renderSvg.js +26 -26
  23. package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.d.ts +1 -1
  24. package/dist/LinearBareDisplay/model.d.ts +6 -6
  25. package/dist/LinearBasicDisplay/components/AddFiltersDialog.d.ts +1 -2
  26. package/dist/LinearBasicDisplay/components/AddFiltersDialog.js +16 -57
  27. package/dist/LinearBasicDisplay/components/SetMaxHeightDialog.d.ts +1 -2
  28. package/dist/LinearBasicDisplay/components/SetMaxHeightDialog.js +10 -39
  29. package/dist/LinearBasicDisplay/model.d.ts +6 -6
  30. package/dist/LinearBasicDisplay/model.js +17 -7
  31. package/dist/LinearGenomeView/components/CenterLine.d.ts +1 -2
  32. package/dist/LinearGenomeView/components/CenterLine.js +7 -33
  33. package/dist/LinearGenomeView/components/Cytobands.d.ts +1 -2
  34. package/dist/LinearGenomeView/components/Cytobands.js +28 -31
  35. package/dist/LinearGenomeView/components/ExportSvgDialog.d.ts +2 -3
  36. package/dist/LinearGenomeView/components/ExportSvgDialog.js +34 -72
  37. package/dist/LinearGenomeView/components/GetSequenceDialog.d.ts +1 -2
  38. package/dist/LinearGenomeView/components/GetSequenceDialog.js +27 -62
  39. package/dist/LinearGenomeView/components/Gridlines.d.ts +1 -2
  40. package/dist/LinearGenomeView/components/Gridlines.js +23 -28
  41. package/dist/LinearGenomeView/components/Header.d.ts +3 -5
  42. package/dist/LinearGenomeView/components/Header.js +10 -61
  43. package/dist/LinearGenomeView/components/HeaderPanControls.d.ts +6 -0
  44. package/dist/LinearGenomeView/components/HeaderPanControls.js +30 -0
  45. package/dist/LinearGenomeView/components/HeaderRegionWidth.d.ts +5 -0
  46. package/dist/LinearGenomeView/components/HeaderRegionWidth.js +21 -0
  47. package/dist/LinearGenomeView/components/HeaderTrackSelectorButton.d.ts +5 -0
  48. package/dist/LinearGenomeView/components/HeaderTrackSelectorButton.js +19 -0
  49. package/dist/LinearGenomeView/components/HeaderZoomControls.d.ts +5 -0
  50. package/dist/LinearGenomeView/components/HeaderZoomControls.js +103 -0
  51. package/dist/LinearGenomeView/components/Highlight.d.ts +9 -4
  52. package/dist/LinearGenomeView/components/Highlight.js +32 -58
  53. package/dist/LinearGenomeView/components/ImportForm.d.ts +1 -2
  54. package/dist/LinearGenomeView/components/ImportForm.js +31 -67
  55. package/dist/LinearGenomeView/components/ImportFormRefNameAutocomplete.d.ts +1 -2
  56. package/dist/LinearGenomeView/components/ImportFormRefNameAutocomplete.js +2 -2
  57. package/dist/LinearGenomeView/components/LinearGenomeView.d.ts +1 -2
  58. package/dist/LinearGenomeView/components/LinearGenomeView.js +24 -17
  59. package/dist/LinearGenomeView/components/MiniControls.d.ts +1 -2
  60. package/dist/LinearGenomeView/components/MiniControls.js +6 -13
  61. package/dist/LinearGenomeView/components/NoTracksActiveButton.d.ts +1 -2
  62. package/dist/LinearGenomeView/components/NoTracksActiveButton.js +2 -7
  63. package/dist/LinearGenomeView/components/OverviewHighlight.d.ts +1 -2
  64. package/dist/LinearGenomeView/components/OverviewHighlight.js +3 -6
  65. package/dist/LinearGenomeView/components/OverviewRubberband.d.ts +1 -2
  66. package/dist/LinearGenomeView/components/OverviewRubberband.js +6 -33
  67. package/dist/LinearGenomeView/components/OverviewScalebar.d.ts +1 -2
  68. package/dist/LinearGenomeView/components/OverviewScalebar.js +30 -64
  69. package/dist/LinearGenomeView/components/OverviewScalebarPolygon.d.ts +1 -2
  70. package/dist/LinearGenomeView/components/OverviewScalebarPolygon.js +2 -5
  71. package/dist/LinearGenomeView/components/OverviewScalebarTickLabels.d.ts +1 -2
  72. package/dist/LinearGenomeView/components/OverviewScalebarTickLabels.js +3 -6
  73. package/dist/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.d.ts +1 -2
  74. package/dist/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.js +3 -3
  75. package/dist/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.d.ts +1 -2
  76. package/dist/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.js +25 -22
  77. package/dist/LinearGenomeView/components/RefNameAutocomplete/HelpDialog.d.ts +1 -2
  78. package/dist/LinearGenomeView/components/RefNameAutocomplete/HelpDialog.js +4 -43
  79. package/dist/LinearGenomeView/components/RefNameAutocomplete/index.d.ts +1 -2
  80. package/dist/LinearGenomeView/components/RefNameAutocomplete/index.js +21 -10
  81. package/dist/LinearGenomeView/components/RegionWidthEditorDialog.d.ts +6 -0
  82. package/dist/LinearGenomeView/components/RegionWidthEditorDialog.js +30 -0
  83. package/dist/LinearGenomeView/components/Rubberband.d.ts +1 -2
  84. package/dist/LinearGenomeView/components/Rubberband.js +7 -32
  85. package/dist/LinearGenomeView/components/RubberbandSpan.d.ts +1 -2
  86. package/dist/LinearGenomeView/components/RubberbandSpan.js +16 -34
  87. package/dist/LinearGenomeView/components/Scalebar.d.ts +1 -1
  88. package/dist/LinearGenomeView/components/Scalebar.js +10 -13
  89. package/dist/LinearGenomeView/components/ScalebarCoordinateLabels.d.ts +1 -2
  90. package/dist/LinearGenomeView/components/ScalebarCoordinateLabels.js +17 -17
  91. package/dist/LinearGenomeView/components/ScalebarCoordinateTicks.d.ts +1 -2
  92. package/dist/LinearGenomeView/components/ScalebarCoordinateTicks.js +9 -12
  93. package/dist/LinearGenomeView/components/ScalebarRefNameLabels.d.ts +1 -2
  94. package/dist/LinearGenomeView/components/ScalebarRefNameLabels.js +12 -19
  95. package/dist/LinearGenomeView/components/SearchBox.d.ts +1 -2
  96. package/dist/LinearGenomeView/components/SearchBox.js +2 -2
  97. package/dist/LinearGenomeView/components/SearchResultsDialog.d.ts +1 -2
  98. package/dist/LinearGenomeView/components/SearchResultsDialog.js +4 -14
  99. package/dist/LinearGenomeView/components/SearchResultsTable.d.ts +1 -2
  100. package/dist/LinearGenomeView/components/SearchResultsTable.js +15 -31
  101. package/dist/LinearGenomeView/components/SequenceSearchDialog.d.ts +1 -2
  102. package/dist/LinearGenomeView/components/SequenceSearchDialog.js +39 -72
  103. package/dist/LinearGenomeView/components/TrackContainer.d.ts +1 -2
  104. package/dist/LinearGenomeView/components/TrackContainer.js +10 -36
  105. package/dist/LinearGenomeView/components/TrackLabel.d.ts +1 -2
  106. package/dist/LinearGenomeView/components/TrackLabel.js +10 -78
  107. package/dist/LinearGenomeView/components/TrackLabelContainer.d.ts +1 -2
  108. package/dist/LinearGenomeView/components/TrackLabelContainer.js +2 -2
  109. package/dist/LinearGenomeView/components/TrackLabelDragHandle.d.ts +1 -2
  110. package/dist/LinearGenomeView/components/TrackLabelDragHandle.js +3 -4
  111. package/dist/LinearGenomeView/components/TrackLabelMenu.d.ts +5 -0
  112. package/dist/LinearGenomeView/components/TrackLabelMenu.js +79 -0
  113. package/dist/LinearGenomeView/components/TrackRenderingContainer.d.ts +1 -2
  114. package/dist/LinearGenomeView/components/TrackRenderingContainer.js +10 -37
  115. package/dist/LinearGenomeView/components/TracksContainer.d.ts +1 -2
  116. package/dist/LinearGenomeView/components/TracksContainer.js +33 -27
  117. package/dist/LinearGenomeView/components/VerticalGuide.d.ts +1 -2
  118. package/dist/LinearGenomeView/components/VerticalGuide.js +3 -7
  119. package/dist/LinearGenomeView/components/useRangeSelect.d.ts +1 -1
  120. package/dist/LinearGenomeView/components/useWheelScroll.d.ts +1 -1
  121. package/dist/LinearGenomeView/components/useWheelScroll.js +1 -1
  122. package/dist/LinearGenomeView/index.js +17 -7
  123. package/dist/LinearGenomeView/model.d.ts +1 -39
  124. package/dist/LinearGenomeView/model.js +28 -31
  125. package/dist/LinearGenomeView/svgcomponents/SVGBackground.d.ts +1 -2
  126. package/dist/LinearGenomeView/svgcomponents/SVGBackground.js +2 -5
  127. package/dist/LinearGenomeView/svgcomponents/SVGHeader.d.ts +1 -2
  128. package/dist/LinearGenomeView/svgcomponents/SVGHeader.js +2 -12
  129. package/dist/LinearGenomeView/svgcomponents/SVGLinearGenomeView.d.ts +2 -1
  130. package/dist/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js +2 -12
  131. package/dist/LinearGenomeView/svgcomponents/SVGRegionSeparators.d.ts +1 -2
  132. package/dist/LinearGenomeView/svgcomponents/SVGRegionSeparators.js +2 -5
  133. package/dist/LinearGenomeView/svgcomponents/SVGRuler.d.ts +1 -2
  134. package/dist/LinearGenomeView/svgcomponents/SVGRuler.js +17 -29
  135. package/dist/LinearGenomeView/svgcomponents/SVGScalebar.d.ts +1 -2
  136. package/dist/LinearGenomeView/svgcomponents/SVGScalebar.js +2 -9
  137. package/dist/LinearGenomeView/svgcomponents/SVGTrackLabel.d.ts +1 -2
  138. package/dist/LinearGenomeView/svgcomponents/SVGTrackLabel.js +2 -5
  139. package/dist/LinearGenomeView/svgcomponents/SVGTracks.d.ts +1 -2
  140. package/dist/LinearGenomeView/svgcomponents/SVGTracks.js +18 -15
  141. package/dist/LinearGenomeView/types.d.ts +38 -0
  142. package/dist/LinearGenomeView/types.js +2 -0
  143. package/dist/LinearGenomeView/util.d.ts +3 -1
  144. package/dist/LinearGenomeView/util.js +16 -0
  145. package/dist/index.d.ts +10 -10
  146. package/dist/index.js +19 -8
  147. package/esm/BaseLinearDisplay/components/BaseLinearDisplay.d.ts +1 -2
  148. package/esm/BaseLinearDisplay/components/BaseLinearDisplay.js +17 -21
  149. package/esm/BaseLinearDisplay/components/Block.d.ts +3 -4
  150. package/esm/BaseLinearDisplay/components/Block.js +4 -4
  151. package/esm/BaseLinearDisplay/components/BlockError.d.ts +1 -2
  152. package/esm/BaseLinearDisplay/components/BlockError.js +9 -15
  153. package/esm/BaseLinearDisplay/components/BlockMsg.d.ts +1 -2
  154. package/esm/BaseLinearDisplay/components/BlockMsg.js +3 -5
  155. package/esm/BaseLinearDisplay/components/LinearBlocks.d.ts +2 -3
  156. package/esm/BaseLinearDisplay/components/LinearBlocks.js +21 -24
  157. package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.d.ts +1 -2
  158. package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +6 -7
  159. package/esm/BaseLinearDisplay/components/TooLargeMessage.d.ts +2 -3
  160. package/esm/BaseLinearDisplay/components/TooLargeMessage.js +11 -7
  161. package/esm/BaseLinearDisplay/components/Tooltip.d.ts +7 -4
  162. package/esm/BaseLinearDisplay/components/Tooltip.js +5 -5
  163. package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +7 -7
  164. package/esm/BaseLinearDisplay/models/FeatureDensityMixin.d.ts +1 -2
  165. package/esm/BaseLinearDisplay/models/FeatureDensityMixin.js +2 -2
  166. package/esm/BaseLinearDisplay/models/renderSvg.d.ts +2 -3
  167. package/esm/BaseLinearDisplay/models/renderSvg.js +9 -16
  168. package/esm/BaseLinearDisplay/models/serverSideRenderedBlock.d.ts +1 -1
  169. package/esm/LinearBareDisplay/model.d.ts +6 -6
  170. package/esm/LinearBasicDisplay/components/AddFiltersDialog.d.ts +1 -2
  171. package/esm/LinearBasicDisplay/components/AddFiltersDialog.js +16 -34
  172. package/esm/LinearBasicDisplay/components/SetMaxHeightDialog.d.ts +1 -2
  173. package/esm/LinearBasicDisplay/components/SetMaxHeightDialog.js +10 -16
  174. package/esm/LinearBasicDisplay/model.d.ts +6 -6
  175. package/esm/LinearGenomeView/components/CenterLine.d.ts +1 -2
  176. package/esm/LinearGenomeView/components/CenterLine.js +7 -10
  177. package/esm/LinearGenomeView/components/Cytobands.d.ts +1 -2
  178. package/esm/LinearGenomeView/components/Cytobands.js +28 -28
  179. package/esm/LinearGenomeView/components/ExportSvgDialog.d.ts +2 -3
  180. package/esm/LinearGenomeView/components/ExportSvgDialog.js +34 -49
  181. package/esm/LinearGenomeView/components/GetSequenceDialog.d.ts +1 -2
  182. package/esm/LinearGenomeView/components/GetSequenceDialog.js +27 -39
  183. package/esm/LinearGenomeView/components/Gridlines.d.ts +1 -2
  184. package/esm/LinearGenomeView/components/Gridlines.js +23 -25
  185. package/esm/LinearGenomeView/components/Header.d.ts +3 -5
  186. package/esm/LinearGenomeView/components/Header.js +11 -62
  187. package/esm/LinearGenomeView/components/HeaderPanControls.d.ts +6 -0
  188. package/esm/LinearGenomeView/components/HeaderPanControls.js +24 -0
  189. package/esm/LinearGenomeView/components/HeaderRegionWidth.d.ts +5 -0
  190. package/esm/LinearGenomeView/components/HeaderRegionWidth.js +19 -0
  191. package/esm/LinearGenomeView/components/HeaderTrackSelectorButton.d.ts +5 -0
  192. package/esm/LinearGenomeView/components/HeaderTrackSelectorButton.js +17 -0
  193. package/esm/LinearGenomeView/components/HeaderZoomControls.d.ts +5 -0
  194. package/esm/LinearGenomeView/components/HeaderZoomControls.js +65 -0
  195. package/esm/LinearGenomeView/components/Highlight.d.ts +9 -4
  196. package/esm/LinearGenomeView/components/Highlight.js +32 -35
  197. package/esm/LinearGenomeView/components/ImportForm.d.ts +1 -2
  198. package/esm/LinearGenomeView/components/ImportForm.js +32 -45
  199. package/esm/LinearGenomeView/components/ImportFormRefNameAutocomplete.d.ts +1 -2
  200. package/esm/LinearGenomeView/components/ImportFormRefNameAutocomplete.js +2 -2
  201. package/esm/LinearGenomeView/components/LinearGenomeView.d.ts +1 -2
  202. package/esm/LinearGenomeView/components/LinearGenomeView.js +7 -10
  203. package/esm/LinearGenomeView/components/MiniControls.d.ts +1 -2
  204. package/esm/LinearGenomeView/components/MiniControls.js +6 -13
  205. package/esm/LinearGenomeView/components/NoTracksActiveButton.d.ts +1 -2
  206. package/esm/LinearGenomeView/components/NoTracksActiveButton.js +2 -4
  207. package/esm/LinearGenomeView/components/OverviewHighlight.d.ts +1 -2
  208. package/esm/LinearGenomeView/components/OverviewHighlight.js +3 -3
  209. package/esm/LinearGenomeView/components/OverviewRubberband.d.ts +1 -2
  210. package/esm/LinearGenomeView/components/OverviewRubberband.js +6 -10
  211. package/esm/LinearGenomeView/components/OverviewScalebar.d.ts +1 -2
  212. package/esm/LinearGenomeView/components/OverviewScalebar.js +30 -41
  213. package/esm/LinearGenomeView/components/OverviewScalebarPolygon.d.ts +1 -2
  214. package/esm/LinearGenomeView/components/OverviewScalebarPolygon.js +2 -2
  215. package/esm/LinearGenomeView/components/OverviewScalebarTickLabels.d.ts +1 -2
  216. package/esm/LinearGenomeView/components/OverviewScalebarTickLabels.js +3 -3
  217. package/esm/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.d.ts +1 -2
  218. package/esm/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.js +3 -3
  219. package/esm/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.d.ts +1 -2
  220. package/esm/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.js +8 -15
  221. package/esm/LinearGenomeView/components/RefNameAutocomplete/HelpDialog.d.ts +1 -2
  222. package/esm/LinearGenomeView/components/RefNameAutocomplete/HelpDialog.js +4 -40
  223. package/esm/LinearGenomeView/components/RefNameAutocomplete/index.d.ts +1 -2
  224. package/esm/LinearGenomeView/components/RefNameAutocomplete/index.js +4 -3
  225. package/esm/LinearGenomeView/components/RegionWidthEditorDialog.d.ts +6 -0
  226. package/esm/LinearGenomeView/components/RegionWidthEditorDialog.js +28 -0
  227. package/esm/LinearGenomeView/components/Rubberband.d.ts +1 -2
  228. package/esm/LinearGenomeView/components/Rubberband.js +7 -9
  229. package/esm/LinearGenomeView/components/RubberbandSpan.d.ts +1 -2
  230. package/esm/LinearGenomeView/components/RubberbandSpan.js +16 -11
  231. package/esm/LinearGenomeView/components/Scalebar.d.ts +1 -1
  232. package/esm/LinearGenomeView/components/Scalebar.js +10 -13
  233. package/esm/LinearGenomeView/components/ScalebarCoordinateLabels.d.ts +1 -2
  234. package/esm/LinearGenomeView/components/ScalebarCoordinateLabels.js +17 -17
  235. package/esm/LinearGenomeView/components/ScalebarCoordinateTicks.d.ts +1 -2
  236. package/esm/LinearGenomeView/components/ScalebarCoordinateTicks.js +9 -9
  237. package/esm/LinearGenomeView/components/ScalebarRefNameLabels.d.ts +1 -2
  238. package/esm/LinearGenomeView/components/ScalebarRefNameLabels.js +12 -16
  239. package/esm/LinearGenomeView/components/SearchBox.d.ts +1 -2
  240. package/esm/LinearGenomeView/components/SearchBox.js +2 -2
  241. package/esm/LinearGenomeView/components/SearchResultsDialog.d.ts +1 -2
  242. package/esm/LinearGenomeView/components/SearchResultsDialog.js +4 -14
  243. package/esm/LinearGenomeView/components/SearchResultsTable.d.ts +1 -2
  244. package/esm/LinearGenomeView/components/SearchResultsTable.js +15 -28
  245. package/esm/LinearGenomeView/components/SequenceSearchDialog.d.ts +1 -2
  246. package/esm/LinearGenomeView/components/SequenceSearchDialog.js +39 -49
  247. package/esm/LinearGenomeView/components/TrackContainer.d.ts +1 -2
  248. package/esm/LinearGenomeView/components/TrackContainer.js +10 -13
  249. package/esm/LinearGenomeView/components/TrackLabel.d.ts +1 -2
  250. package/esm/LinearGenomeView/components/TrackLabel.js +10 -78
  251. package/esm/LinearGenomeView/components/TrackLabelContainer.d.ts +1 -2
  252. package/esm/LinearGenomeView/components/TrackLabelContainer.js +2 -2
  253. package/esm/LinearGenomeView/components/TrackLabelDragHandle.d.ts +1 -2
  254. package/esm/LinearGenomeView/components/TrackLabelDragHandle.js +3 -4
  255. package/esm/LinearGenomeView/components/TrackLabelMenu.d.ts +5 -0
  256. package/esm/LinearGenomeView/components/TrackLabelMenu.js +74 -0
  257. package/esm/LinearGenomeView/components/TrackRenderingContainer.d.ts +1 -2
  258. package/esm/LinearGenomeView/components/TrackRenderingContainer.js +10 -14
  259. package/esm/LinearGenomeView/components/TracksContainer.d.ts +1 -2
  260. package/esm/LinearGenomeView/components/TracksContainer.js +16 -20
  261. package/esm/LinearGenomeView/components/VerticalGuide.d.ts +1 -2
  262. package/esm/LinearGenomeView/components/VerticalGuide.js +3 -4
  263. package/esm/LinearGenomeView/components/useRangeSelect.d.ts +1 -1
  264. package/esm/LinearGenomeView/components/useWheelScroll.d.ts +1 -1
  265. package/esm/LinearGenomeView/components/useWheelScroll.js +1 -1
  266. package/esm/LinearGenomeView/model.d.ts +1 -39
  267. package/esm/LinearGenomeView/model.js +10 -22
  268. package/esm/LinearGenomeView/svgcomponents/SVGBackground.d.ts +1 -2
  269. package/esm/LinearGenomeView/svgcomponents/SVGBackground.js +2 -2
  270. package/esm/LinearGenomeView/svgcomponents/SVGHeader.d.ts +1 -2
  271. package/esm/LinearGenomeView/svgcomponents/SVGHeader.js +2 -12
  272. package/esm/LinearGenomeView/svgcomponents/SVGLinearGenomeView.d.ts +2 -1
  273. package/esm/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js +2 -12
  274. package/esm/LinearGenomeView/svgcomponents/SVGRegionSeparators.d.ts +1 -2
  275. package/esm/LinearGenomeView/svgcomponents/SVGRegionSeparators.js +2 -2
  276. package/esm/LinearGenomeView/svgcomponents/SVGRuler.d.ts +1 -2
  277. package/esm/LinearGenomeView/svgcomponents/SVGRuler.js +17 -29
  278. package/esm/LinearGenomeView/svgcomponents/SVGScalebar.d.ts +1 -2
  279. package/esm/LinearGenomeView/svgcomponents/SVGScalebar.js +2 -6
  280. package/esm/LinearGenomeView/svgcomponents/SVGTrackLabel.d.ts +1 -2
  281. package/esm/LinearGenomeView/svgcomponents/SVGTrackLabel.js +2 -2
  282. package/esm/LinearGenomeView/svgcomponents/SVGTracks.d.ts +1 -2
  283. package/esm/LinearGenomeView/svgcomponents/SVGTracks.js +18 -15
  284. package/esm/LinearGenomeView/types.d.ts +38 -0
  285. package/esm/LinearGenomeView/types.js +1 -0
  286. package/esm/LinearGenomeView/util.d.ts +3 -1
  287. package/esm/LinearGenomeView/util.js +16 -1
  288. package/esm/index.d.ts +10 -10
  289. package/esm/index.js +2 -1
  290. package/package.json +2 -2
  291. package/dist/LinearGenomeView/components/ZoomControls.d.ts +0 -6
  292. package/dist/LinearGenomeView/components/ZoomControls.js +0 -66
  293. package/esm/LinearGenomeView/components/ZoomControls.d.ts +0 -6
  294. package/esm/LinearGenomeView/components/ZoomControls.js +0 -38
@@ -1,16 +1,20 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Button } from '@mui/material';
3
+ import { observer } from 'mobx-react';
4
+ import { isAlive } from 'mobx-state-tree';
3
5
  import BlockMsg from '../components/BlockMsg';
4
- function TooLargeMessage({ model, }) {
6
+ const TooLargeMessage = observer(function ({ model, }) {
5
7
  const { regionTooLargeReason } = model;
6
- return (React.createElement(BlockMsg, { severity: "warning", action: React.createElement(Button, { onClick: () => {
7
- model.setFeatureDensityStatsLimit(model.featureDensityStats);
8
- model.reload();
9
- } }, "Force load"), message: [
8
+ return (_jsx(BlockMsg, { severity: "warning", action: _jsx(Button, { onClick: () => {
9
+ if (isAlive(model)) {
10
+ model.setFeatureDensityStatsLimit(model.featureDensityStats);
11
+ model.reload();
12
+ }
13
+ }, children: "Force load" }), message: [
10
14
  regionTooLargeReason,
11
15
  'Zoom in to see features or force load (may be slow)',
12
16
  ]
13
17
  .filter(f => !!f)
14
18
  .join('. ') }));
15
- }
19
+ });
16
20
  export default TooLargeMessage;
@@ -1,8 +1,11 @@
1
- import React from 'react';
2
- import type { BaseLinearDisplayModel } from '../models/BaseLinearDisplayModel';
1
+ import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
2
+ import type { Feature } from '@jbrowse/core/util';
3
3
  type Coord = [number, number];
4
4
  declare const Tooltip: ({ model, clientMouseCoord, }: {
5
- model: BaseLinearDisplayModel;
5
+ model: {
6
+ featureUnderMouse: Feature | undefined;
7
+ configuration: AnyConfigurationModel;
8
+ };
6
9
  clientMouseCoord: Coord;
7
- }) => React.JSX.Element | null;
10
+ }) => import("react/jsx-runtime").JSX.Element | null;
8
11
  export default Tooltip;
@@ -1,10 +1,11 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { forwardRef, isValidElement } from 'react';
2
3
  import { getConf } from '@jbrowse/core/configuration';
3
4
  import { SanitizedHTML } from '@jbrowse/core/ui';
4
5
  import BaseTooltip from '@jbrowse/core/ui/BaseTooltip';
5
6
  import { observer } from 'mobx-react';
6
- const TooltipContents = React.forwardRef(function TooltipContents2({ message }, ref) {
7
- return (React.createElement("div", { ref: ref }, React.isValidElement(message) ? (message) : message ? (React.createElement(SanitizedHTML, { html: String(message) })) : null));
7
+ const TooltipContents = forwardRef(function TooltipContents2({ message }, ref) {
8
+ return (_jsx("div", { ref: ref, children: isValidElement(message) ? (message) : message ? (_jsx(SanitizedHTML, { html: String(message) })) : null }));
8
9
  });
9
10
  const Tooltip = observer(function ({ model, clientMouseCoord, }) {
10
11
  const { featureUnderMouse } = model;
@@ -13,7 +14,6 @@ const Tooltip = observer(function ({ model, clientMouseCoord, }) {
13
14
  const contents = featureUnderMouse
14
15
  ? getConf(model, 'mouseover', { feature: featureUnderMouse })
15
16
  : undefined;
16
- return featureUnderMouse && contents ? (React.createElement(BaseTooltip, { clientPoint: { x, y } },
17
- React.createElement(TooltipContents, { message: contents }))) : null;
17
+ return featureUnderMouse && contents ? (_jsx(BaseTooltip, { clientPoint: { x, y }, children: _jsx(TooltipContents, { message: contents }) })) : null;
18
18
  });
19
19
  export default Tooltip;
@@ -1,6 +1,6 @@
1
1
  import type React from 'react';
2
2
  import CompositeMap from '@jbrowse/core/util/compositeMap';
3
- import type { ExportSvgOptions } from '../../LinearGenomeView';
3
+ import type { ExportSvgOptions } from '../../LinearGenomeView/types';
4
4
  import type { MenuItem } from '@jbrowse/core/ui';
5
5
  import type { AnyReactComponentType, Feature } from '@jbrowse/core/util';
6
6
  import type { BaseBlock } from '@jbrowse/core/util/blockTypes';
@@ -53,7 +53,7 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
53
53
  status?: string;
54
54
  reactElement?: React.ReactElement;
55
55
  };
56
- }) => React.JSX.Element | undefined;
56
+ }) => import("react/jsx-runtime").JSX.Element | undefined;
57
57
  renderProps: any;
58
58
  } & {
59
59
  doReload(): void;
@@ -185,13 +185,13 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
185
185
  } & {
186
186
  readonly statsReadyAndRegionNotTooLarge: boolean;
187
187
  regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
188
- regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): React.JSX.Element | null;
188
+ regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react/jsx-runtime").JSX.Element | null;
189
189
  } & {
190
190
  featureIdUnderMouse: undefined | string;
191
191
  contextMenuFeature: undefined | Feature;
192
192
  } & {
193
- readonly DisplayMessageComponent: React.FC<any> | undefined;
194
- readonly blockType: "dynamicBlocks" | "staticBlocks";
193
+ readonly DisplayMessageComponent: undefined | React.FC<any>;
194
+ readonly blockType: "staticBlocks" | "dynamicBlocks";
195
195
  readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
196
196
  } & {
197
197
  readonly renderDelay: number;
@@ -218,7 +218,7 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
218
218
  contextMenuItems(): MenuItem[];
219
219
  renderProps(): any;
220
220
  } & {
221
- renderSvg(opts: ExportSvgDisplayOptions): Promise<React.JSX.Element>;
221
+ renderSvg(opts: ExportSvgDisplayOptions): Promise<import("react/jsx-runtime").JSX.Element>;
222
222
  afterAttach(): void;
223
223
  }, import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
224
224
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
@@ -255,7 +255,7 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
255
255
  status?: string;
256
256
  reactElement?: React.ReactElement;
257
257
  };
258
- }) => React.JSX.Element | undefined;
258
+ }) => import("react/jsx-runtime").JSX.Element | undefined;
259
259
  renderProps: any;
260
260
  } & {
261
261
  doReload(): void;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import type { FeatureDensityStats } from '@jbrowse/core/data_adapters/BaseAdapter';
3
2
  import type { Region } from '@jbrowse/core/util/types';
4
3
  export default function FeatureDensityMixin(): import("mobx-state-tree").IModelType<{
@@ -29,5 +28,5 @@ export default function FeatureDensityMixin(): import("mobx-state-tree").IModelT
29
28
  } & {
30
29
  readonly statsReadyAndRegionNotTooLarge: boolean;
31
30
  regionCannotBeRenderedText(_region: Region): "" | "Force load to see features";
32
- regionCannotBeRendered(_region: Region): React.JSX.Element | null;
31
+ regionCannotBeRendered(_region: Region): import("react/jsx-runtime").JSX.Element | null;
33
32
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { getConf } from '@jbrowse/core/configuration';
3
3
  import { getContainingView } from '@jbrowse/core/util';
4
4
  import { autorun } from 'mobx';
@@ -110,7 +110,7 @@ export default function FeatureDensityMixin() {
110
110
  return self.regionTooLarge ? 'Force load to see features' : '';
111
111
  },
112
112
  regionCannotBeRendered(_region) {
113
- return self.regionTooLarge ? (React.createElement(TooLargeMessage, { model: self })) : null;
113
+ return self.regionTooLarge ? (_jsx(TooLargeMessage, { model: self })) : null;
114
114
  },
115
115
  }));
116
116
  }
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
1
  import type { BaseLinearDisplayModel } from './BaseLinearDisplayModel';
3
- import type { ExportSvgOptions } from '../../LinearGenomeView';
2
+ import type { ExportSvgOptions } from '../../LinearGenomeView/types';
4
3
  import type { ThemeOptions } from '@mui/material';
5
4
  export declare function renderBaseLinearDisplaySvg(self: BaseLinearDisplayModel, opts: ExportSvgOptions & {
6
5
  overrideHeight: number;
7
6
  theme?: ThemeOptions;
8
- }): Promise<React.JSX.Element>;
7
+ }): Promise<import("react/jsx-runtime").JSX.Element>;
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Fragment } from 'react';
2
3
  import { ReactRendering, getContainingView, getViewParams, } from '@jbrowse/core/util';
3
4
  import BlockState, { renderBlockData } from './serverSideRenderedBlock';
4
5
  import { getId } from './util';
@@ -18,9 +19,7 @@ export async function renderBaseLinearDisplaySvg(self, opts) {
18
19
  return [
19
20
  block,
20
21
  {
21
- reactElement: (React.createElement(React.Fragment, null,
22
- React.createElement("rect", { x: 0, y: 0, width: width, height: 20, fill: "#aaa" }),
23
- React.createElement("text", { x: 0, y: 15 }, cannotBeRenderedReason))),
22
+ reactElement: (_jsxs(_Fragment, { children: [_jsx("rect", { x: 0, y: 0, width: width, height: 20, fill: "#aaa" }), _jsx("text", { x: 0, y: 15, children: cannotBeRenderedReason })] })),
24
23
  },
25
24
  ];
26
25
  }
@@ -36,16 +35,10 @@ export async function renderBaseLinearDisplaySvg(self, opts) {
36
35
  }),
37
36
  ];
38
37
  }));
39
- return (React.createElement(React.Fragment, null, renderings.map(([block, rendering], index) => {
40
- const { offsetPx, widthPx } = block;
41
- const offset = offsetPx - viewOffsetPx;
42
- const clipid = getId(id, index);
43
- return (React.createElement(React.Fragment, { key: `frag-${index}` },
44
- React.createElement("defs", null,
45
- React.createElement("clipPath", { id: clipid },
46
- React.createElement("rect", { x: 0, y: 0, width: widthPx, height: overrideHeight || height }))),
47
- React.createElement("g", { transform: `translate(${offset} 0)` },
48
- React.createElement("g", { clipPath: `url(#${clipid})` },
49
- React.createElement(ReactRendering, { rendering: rendering })))));
50
- })));
38
+ return (_jsx(_Fragment, { children: renderings.map(([block, rendering], index) => {
39
+ const { offsetPx, widthPx } = block;
40
+ const offset = offsetPx - viewOffsetPx;
41
+ const clipid = getId(id, index);
42
+ return (_jsxs(Fragment, { children: [_jsx("defs", { children: _jsx("clipPath", { id: clipid, children: _jsx("rect", { x: 0, y: 0, width: widthPx, height: overrideHeight || height }) }) }), _jsx("g", { transform: `translate(${offset} 0)`, children: _jsx("g", { clipPath: `url(#${clipid})`, children: _jsx(ReactRendering, { rendering: rendering }) }) })] }, `frag-${index}`));
43
+ }) }));
51
44
  }
@@ -34,7 +34,7 @@ declare const blockState: import("mobx-state-tree").IModelType<{
34
34
  status?: string;
35
35
  reactElement?: React.ReactElement;
36
36
  };
37
- }) => React.JSX.Element | undefined;
37
+ }) => import("react/jsx-runtime").JSX.Element | undefined;
38
38
  renderProps: any;
39
39
  } & {
40
40
  doReload(): void;
@@ -34,7 +34,7 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
34
34
  status?: string;
35
35
  reactElement?: React.ReactElement;
36
36
  };
37
- }) => import("react").JSX.Element | undefined;
37
+ }) => import("react/jsx-runtime").JSX.Element | undefined;
38
38
  renderProps: any;
39
39
  } & {
40
40
  doReload(): void;
@@ -169,13 +169,13 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
169
169
  } & {
170
170
  readonly statsReadyAndRegionNotTooLarge: boolean;
171
171
  regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
172
- regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
172
+ regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react/jsx-runtime").JSX.Element | null;
173
173
  } & {
174
174
  featureIdUnderMouse: undefined | string;
175
175
  contextMenuFeature: undefined | import("@jbrowse/core/util").Feature;
176
176
  } & {
177
- readonly DisplayMessageComponent: import("react").FC<any> | undefined;
178
- readonly blockType: "dynamicBlocks" | "staticBlocks";
177
+ readonly DisplayMessageComponent: undefined | React.FC<any>;
178
+ readonly blockType: "staticBlocks" | "dynamicBlocks";
179
179
  readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
180
180
  } & {
181
181
  readonly renderDelay: number;
@@ -202,7 +202,7 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
202
202
  contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
203
203
  renderProps(): any;
204
204
  } & {
205
- renderSvg(opts: import("../BaseLinearDisplay").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
205
+ renderSvg(opts: import("../BaseLinearDisplay").ExportSvgDisplayOptions): Promise<import("react/jsx-runtime").JSX.Element>;
206
206
  afterAttach(): void;
207
207
  } & {
208
208
  readonly rendererConfig: {
@@ -256,7 +256,7 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
256
256
  status?: string;
257
257
  reactElement?: React.ReactElement;
258
258
  };
259
- }) => import("react").JSX.Element | undefined;
259
+ }) => import("react/jsx-runtime").JSX.Element | undefined;
260
260
  renderProps: any;
261
261
  } & {
262
262
  doReload(): void;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  declare const AddFiltersDialog: ({ model, handleClose, }: {
3
2
  model: {
4
3
  jexlFilters?: string[];
@@ -6,5 +5,5 @@ declare const AddFiltersDialog: ({ model, handleClose, }: {
6
5
  setJexlFilters: (arg?: string[]) => void;
7
6
  };
8
7
  handleClose: () => void;
9
- }) => React.JSX.Element;
8
+ }) => import("react/jsx-runtime").JSX.Element;
10
9
  export default AddFiltersDialog;
@@ -1,4 +1,5 @@
1
- import React, { useEffect, useState } from 'react';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useEffect, useState } from 'react';
2
3
  import { Dialog } from '@jbrowse/core/ui';
3
4
  import { stringToJexlExpression } from '@jbrowse/core/util/jexlStrings';
4
5
  import { Button, DialogActions, DialogContent, TextField } from '@mui/material';
@@ -40,38 +41,19 @@ const AddFiltersDialog = observer(function ({ model, handleClose, }) {
40
41
  setError(e);
41
42
  }
42
43
  }, [data]);
43
- return (React.createElement(Dialog, { maxWidth: "xl", open: true, onClose: handleClose, title: "Add track filters" },
44
- React.createElement(DialogContent, null,
45
- React.createElement("div", null,
46
- "Add filters, in jexl format, one per line, starting with the string jexl:. Examples:",
47
- ' ',
48
- React.createElement("ul", null,
49
- React.createElement("li", null,
50
- React.createElement("code", null, "jexl:get(feature,'name')=='BRCA1'"),
51
- " - show only feature where the name attribute is BRCA1"),
52
- React.createElement("li", null,
53
- React.createElement("code", null, "jexl:get(feature,'type')=='gene'"),
54
- " - show only gene type features in a GFF that has many other feature types"),
55
- React.createElement("li", null,
56
- React.createElement("code", null, "jexl:get(feature,'score') > 400"),
57
- " - show only features that have a score greater than 400"))),
58
- error ? React.createElement("p", { className: classes.error }, `${error}`) : null,
59
- React.createElement(TextField, { variant: "outlined", multiline: true, minRows: 5, maxRows: 10, className: classes.dialogContent, fullWidth: true, value: data, onChange: event => {
60
- setData(event.target.value);
61
- }, slotProps: {
62
- input: {
63
- classes: {
64
- input: classes.textAreaFont,
65
- },
66
- },
67
- } })),
68
- React.createElement(DialogActions, null,
69
- React.createElement(Button, { variant: "contained", color: "primary", type: "submit", autoFocus: true, disabled: !!error, onClick: () => {
70
- model.setJexlFilters(data.split('\n'));
71
- handleClose();
72
- } }, "Submit"),
73
- React.createElement(Button, { variant: "contained", color: "secondary", onClick: () => {
74
- handleClose();
75
- } }, "Cancel"))));
44
+ return (_jsxs(Dialog, { maxWidth: "xl", open: true, onClose: handleClose, title: "Add track filters", children: [_jsxs(DialogContent, { children: [_jsxs("div", { children: ["Add filters, in jexl format, one per line, starting with the string jexl:. Examples:", ' ', _jsxs("ul", { children: [_jsxs("li", { children: [_jsx("code", { children: "jexl:get(feature,'name')=='BRCA1'" }), " - show only feature where the name attribute is BRCA1"] }), _jsxs("li", { children: [_jsx("code", { children: "jexl:get(feature,'type')=='gene'" }), " - show only gene type features in a GFF that has many other feature types"] }), _jsxs("li", { children: [_jsx("code", { children: "jexl:get(feature,'score') > 400" }), " - show only features that have a score greater than 400"] })] })] }), error ? _jsx("p", { className: classes.error, children: `${error}` }) : null, _jsx(TextField, { variant: "outlined", multiline: true, minRows: 5, maxRows: 10, className: classes.dialogContent, fullWidth: true, value: data, onChange: event => {
45
+ setData(event.target.value);
46
+ }, slotProps: {
47
+ input: {
48
+ classes: {
49
+ input: classes.textAreaFont,
50
+ },
51
+ },
52
+ } })] }), _jsxs(DialogActions, { children: [_jsx(Button, { variant: "contained", color: "primary", type: "submit", autoFocus: true, disabled: !!error, onClick: () => {
53
+ model.setJexlFilters(data.split('\n'));
54
+ handleClose();
55
+ }, children: "Submit" }), _jsx(Button, { variant: "contained", color: "secondary", onClick: () => {
56
+ handleClose();
57
+ }, children: "Cancel" })] })] }));
76
58
  });
77
59
  export default AddFiltersDialog;
@@ -1,9 +1,8 @@
1
- import React from 'react';
2
1
  declare const SetMaxHeightDialog: ({ model, handleClose, }: {
3
2
  model: {
4
3
  maxHeight?: number;
5
4
  setMaxHeight: (arg?: number) => void;
6
5
  };
7
6
  handleClose: () => void;
8
- }) => React.JSX.Element;
7
+ }) => import("react/jsx-runtime").JSX.Element;
9
8
  export default SetMaxHeightDialog;
@@ -1,4 +1,5 @@
1
- import React, { useState } from 'react';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useState } from 'react';
2
3
  import { Dialog } from '@jbrowse/core/ui';
3
4
  import { Button, DialogActions, DialogContent, TextField, Typography, } from '@mui/material';
4
5
  import { observer } from 'mobx-react';
@@ -13,20 +14,13 @@ const SetMaxHeightDialog = observer(function ({ model, handleClose, }) {
13
14
  const { maxHeight = '' } = model;
14
15
  const [max, setMax] = useState(`${maxHeight}`);
15
16
  const ok = max !== '' && !Number.isNaN(+max);
16
- return (React.createElement(Dialog, { open: true, onClose: handleClose, title: "Set max height" },
17
- React.createElement(DialogContent, { className: classes.root },
18
- React.createElement(Typography, null, "Set max height for the track. For example, you can increase this if the layout says \"Max height reached\""),
19
- React.createElement(TextField, { value: max, onChange: event => {
20
- setMax(event.target.value);
21
- }, placeholder: "Enter max score" }),
22
- !ok ? React.createElement("div", { style: { color: 'red' } }, "Invalid number") : null),
23
- React.createElement(DialogActions, null,
24
- React.createElement(Button, { variant: "contained", color: "primary", type: "submit", autoFocus: true, disabled: !ok, onClick: () => {
25
- model.setMaxHeight(+max);
26
- handleClose();
27
- } }, "Submit"),
28
- React.createElement(Button, { variant: "contained", color: "secondary", onClick: () => {
29
- handleClose();
30
- } }, "Cancel"))));
17
+ return (_jsxs(Dialog, { open: true, onClose: handleClose, title: "Set max height", children: [_jsxs(DialogContent, { className: classes.root, children: [_jsx(Typography, { children: "Set max height for the track. For example, you can increase this if the layout says \"Max height reached\"" }), _jsx(TextField, { value: max, onChange: event => {
18
+ setMax(event.target.value);
19
+ }, placeholder: "Enter max score" }), !ok ? _jsx("div", { style: { color: 'red' }, children: "Invalid number" }) : null] }), _jsxs(DialogActions, { children: [_jsx(Button, { variant: "contained", color: "primary", type: "submit", autoFocus: true, disabled: !ok, onClick: () => {
20
+ model.setMaxHeight(+max);
21
+ handleClose();
22
+ }, children: "Submit" }), _jsx(Button, { variant: "contained", color: "secondary", onClick: () => {
23
+ handleClose();
24
+ }, children: "Cancel" })] })] }));
31
25
  });
32
26
  export default SetMaxHeightDialog;
@@ -37,7 +37,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
37
37
  status?: string;
38
38
  reactElement?: React.ReactElement;
39
39
  };
40
- }) => import("react").JSX.Element | undefined;
40
+ }) => import("react/jsx-runtime").JSX.Element | undefined;
41
41
  renderProps: any;
42
42
  } & {
43
43
  doReload(): void;
@@ -177,13 +177,13 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
177
177
  } & {
178
178
  readonly statsReadyAndRegionNotTooLarge: boolean;
179
179
  regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
180
- regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
180
+ regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react/jsx-runtime").JSX.Element | null;
181
181
  } & {
182
182
  featureIdUnderMouse: undefined | string;
183
183
  contextMenuFeature: undefined | import("@jbrowse/core/util").Feature;
184
184
  } & {
185
- readonly DisplayMessageComponent: import("react").FC<any> | undefined;
186
- readonly blockType: "dynamicBlocks" | "staticBlocks";
185
+ readonly DisplayMessageComponent: undefined | React.FC<any>;
186
+ readonly blockType: "staticBlocks" | "dynamicBlocks";
187
187
  readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
188
188
  } & {
189
189
  readonly renderDelay: number;
@@ -210,7 +210,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
210
210
  contextMenuItems(): MenuItem[];
211
211
  renderProps(): any;
212
212
  } & {
213
- renderSvg(opts: import("../BaseLinearDisplay").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
213
+ renderSvg(opts: import("../BaseLinearDisplay").ExportSvgDisplayOptions): Promise<import("react/jsx-runtime").JSX.Element>;
214
214
  afterAttach(): void;
215
215
  } & {
216
216
  readonly activeFilters: any;
@@ -290,7 +290,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
290
290
  status?: string;
291
291
  reactElement?: React.ReactElement;
292
292
  };
293
- }) => import("react").JSX.Element | undefined;
293
+ }) => import("react/jsx-runtime").JSX.Element | undefined;
294
294
  renderProps: any;
295
295
  } & {
296
296
  doReload(): void;
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
1
  import type { LinearGenomeViewModel } from '..';
3
2
  type LGV = LinearGenomeViewModel;
4
3
  declare const CenterLine: ({ model }: {
5
4
  model: LGV;
6
- }) => React.JSX.Element | null;
5
+ }) => import("react/jsx-runtime").JSX.Element | null;
7
6
  export default CenterLine;
@@ -1,4 +1,5 @@
1
- import React, { useRef } from 'react';
1
+ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
+ import { useRef } from 'react';
2
3
  import { observer } from 'mobx-react';
3
4
  import { makeStyles } from 'tss-react/mui';
4
5
  const useStyles = makeStyles()(theme => ({
@@ -24,16 +25,12 @@ const CenterLine = observer(function ({ model }) {
24
25
  const ref = useRef(null);
25
26
  const { classes } = useStyles();
26
27
  const startingPosition = width / 2;
27
- return tracks.length ? (React.createElement("div", { "data-testid": "centerline_container", className: classes.centerLineContainer, role: "presentation", ref: ref, style: {
28
+ return tracks.length ? (_jsx("div", { "data-testid": "centerline_container", className: classes.centerLineContainer, role: "presentation", ref: ref, style: {
28
29
  left: `${startingPosition}px`,
29
30
  width: Math.max(1 / bpPerPx, 1),
30
- } }, centerLineInfo && (React.createElement("div", { "data-testid": "centerline_text", className: classes.centerLineText, role: "presentation", style: {
31
- left: Math.max(1 / bpPerPx, 1) + 5,
32
- top: trackHeights,
33
- } },
34
- centerLineInfo.refName,
35
- ":",
36
- ' ',
37
- Math.max(Math.round(centerLineInfo.offset) + 1, 0))))) : null;
31
+ }, children: centerLineInfo && (_jsxs("div", { "data-testid": "centerline_text", className: classes.centerLineText, role: "presentation", style: {
32
+ left: Math.max(1 / bpPerPx, 1) + 5,
33
+ top: trackHeights,
34
+ }, children: [centerLineInfo.refName, ":", ' ', Math.max(Math.round(centerLineInfo.offset) + 1, 0)] })) })) : null;
38
35
  });
39
36
  export default CenterLine;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import type { Assembly } from '@jbrowse/core/assemblyManager/assembly';
3
2
  import type { Base1DViewModel } from '@jbrowse/core/util/Base1DViewModel';
4
3
  import type { ContentBlock } from '@jbrowse/core/util/blockTypes';
@@ -6,5 +5,5 @@ declare const Cytobands: ({ overview, block, assembly, }: {
6
5
  overview: Base1DViewModel;
7
6
  assembly?: Assembly;
8
7
  block: ContentBlock;
9
- }) => React.JSX.Element;
8
+ }) => import("react/jsx-runtime").JSX.Element;
10
9
  export default Cytobands;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { getFillProps } from '@jbrowse/core/util';
3
3
  import { observer } from 'mobx-react';
4
4
  import { getCytobands } from './util';
@@ -40,32 +40,32 @@ const Cytobands = observer(function ({ overview, block, assembly, }) {
40
40
  const rcap = reversed ? 0 : cytobands.length - 1;
41
41
  const h = HEADER_OVERVIEW_HEIGHT;
42
42
  let centromereSeen = false;
43
- return (React.createElement("g", { transform: `translate(-${offsetPx})` }, cytobands.map((args, index) => {
44
- const k = JSON.stringify(args);
45
- const { refName, type, start, end } = args;
46
- const s = overview.bpToPx({ refName, coord: start }) || 0;
47
- const e = overview.bpToPx({ refName, coord: end }) || 0;
48
- const l = Math.min(s, e);
49
- const w = Math.abs(e - s);
50
- const c = colorMap[type] || 'black';
51
- if (type === 'acen' && !centromereSeen) {
52
- centromereSeen = true;
53
- return (React.createElement("polygon", { key: k, points: reversed
54
- ? rightTriangle(s - w, 0, w, h)
55
- : leftTriangle(s, 0, w, h), ...getFillProps(c) }));
56
- }
57
- if (type === 'acen' && centromereSeen) {
58
- return (React.createElement("polygon", { key: k, points: reversed
59
- ? leftTriangle(s - w, 0, w, h)
60
- : rightTriangle(s, 0, w, h), ...getFillProps(c) }));
61
- }
62
- if (lcap === index) {
63
- return (React.createElement("path", { key: k, d: leftRoundedRect(l, 0, w, h, 8), ...getFillProps(c) }));
64
- }
65
- if (rcap === index) {
66
- return (React.createElement("path", { key: k, d: rightRoundedRect(l, 0, w, h, 8), ...getFillProps(c) }));
67
- }
68
- return (React.createElement("rect", { key: k, x: l, y: 0, width: w, height: h, ...getFillProps(c) }));
69
- })));
43
+ return (_jsx("g", { transform: `translate(-${offsetPx})`, children: cytobands.map((args, index) => {
44
+ const k = JSON.stringify(args);
45
+ const { refName, type, start, end } = args;
46
+ const s = overview.bpToPx({ refName, coord: start }) || 0;
47
+ const e = overview.bpToPx({ refName, coord: end }) || 0;
48
+ const l = Math.min(s, e);
49
+ const w = Math.abs(e - s);
50
+ const c = colorMap[type] || 'black';
51
+ if (type === 'acen' && !centromereSeen) {
52
+ centromereSeen = true;
53
+ return (_jsx("polygon", { points: reversed
54
+ ? rightTriangle(s - w, 0, w, h)
55
+ : leftTriangle(s, 0, w, h), ...getFillProps(c) }, k));
56
+ }
57
+ if (type === 'acen' && centromereSeen) {
58
+ return (_jsx("polygon", { points: reversed
59
+ ? leftTriangle(s - w, 0, w, h)
60
+ : rightTriangle(s, 0, w, h), ...getFillProps(c) }, k));
61
+ }
62
+ if (lcap === index) {
63
+ return (_jsx("path", { d: leftRoundedRect(l, 0, w, h, 8), ...getFillProps(c) }, k));
64
+ }
65
+ if (rcap === index) {
66
+ return (_jsx("path", { d: rightRoundedRect(l, 0, w, h, 8), ...getFillProps(c) }, k));
67
+ }
68
+ return (_jsx("rect", { x: l, y: 0, width: w, height: h, ...getFillProps(c) }, k));
69
+ }) }));
70
70
  });
71
71
  export default Cytobands;
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
- import type { ExportSvgOptions } from '..';
1
+ import type { ExportSvgOptions } from '../types';
3
2
  export default function ExportSvgDialog({ model, handleClose, }: {
4
3
  model: {
5
4
  exportSvg(opts: ExportSvgOptions): Promise<void>;
6
5
  };
7
6
  handleClose: () => void;
8
- }): React.JSX.Element;
7
+ }): import("react/jsx-runtime").JSX.Element;