@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,15 +1,15 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { TextField } from '@mui/material';
3
3
  import EndAdornment from './EndAdornment';
4
4
  export default function AutocompleteTextField({ TextFieldProps, inputBoxVal, params, showHelp, setInputValue, setCurrentSearch, }) {
5
5
  const { helperText, InputProps = {} } = TextFieldProps;
6
- return (React.createElement(TextField, { onBlur: () => {
6
+ return (_jsx(TextField, { onBlur: () => {
7
7
  setInputValue(inputBoxVal);
8
8
  }, ...params, ...TextFieldProps, size: "small", helperText: helperText, slotProps: {
9
9
  input: {
10
10
  ...params.InputProps,
11
11
  ...InputProps,
12
- endAdornment: (React.createElement(EndAdornment, { showHelp: showHelp, endAdornment: params.InputProps.endAdornment })),
12
+ endAdornment: (_jsx(EndAdornment, { showHelp: showHelp, endAdornment: params.InputProps.endAdornment })),
13
13
  },
14
14
  }, placeholder: "Search for location", onChange: e => {
15
15
  setCurrentSearch(e.target.value);
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
1
  export default function EndAdornment({ showHelp, endAdornment, }: {
3
2
  showHelp?: boolean;
4
3
  endAdornment: React.ReactNode;
5
- }): React.JSX.Element;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,24 +1,17 @@
1
- import React, { Suspense, lazy, useState } from 'react';
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Suspense, lazy, useState } from 'react';
2
3
  import HelpIcon from '@mui/icons-material/Help';
3
4
  import SearchIcon from '@mui/icons-material/Search';
4
5
  import { IconButton, InputAdornment } from '@mui/material';
5
6
  const HelpDialog = lazy(() => import('./HelpDialog'));
6
7
  function HelpAdornment() {
7
8
  const [isHelpDialogDisplayed, setHelpDialogDisplayed] = useState(false);
8
- return (React.createElement(React.Fragment, null,
9
- React.createElement(IconButton, { onClick: () => {
10
- setHelpDialogDisplayed(true);
11
- }, size: "small" },
12
- React.createElement(HelpIcon, { fontSize: "small" })),
13
- isHelpDialogDisplayed ? (React.createElement(Suspense, { fallback: null },
14
- React.createElement(HelpDialog, { handleClose: () => {
15
- setHelpDialogDisplayed(false);
16
- } }))) : null));
9
+ return (_jsxs(_Fragment, { children: [_jsx(IconButton, { onClick: () => {
10
+ setHelpDialogDisplayed(true);
11
+ }, size: "small", children: _jsx(HelpIcon, { fontSize: "small" }) }), isHelpDialogDisplayed ? (_jsx(Suspense, { fallback: null, children: _jsx(HelpDialog, { handleClose: () => {
12
+ setHelpDialogDisplayed(false);
13
+ } }) })) : null] }));
17
14
  }
18
15
  export default function EndAdornment({ showHelp, endAdornment, }) {
19
- return (React.createElement(React.Fragment, null,
20
- React.createElement(InputAdornment, { position: "end", style: { marginRight: 7 } },
21
- React.createElement(SearchIcon, { fontSize: "small" }),
22
- showHelp ? React.createElement(HelpAdornment, null) : null),
23
- endAdornment));
16
+ return (_jsxs(_Fragment, { children: [_jsxs(InputAdornment, { position: "end", style: { marginRight: 7 }, children: [_jsx(SearchIcon, { fontSize: "small" }), showHelp ? _jsx(HelpAdornment, {}) : null] }), endAdornment] }));
24
17
  }
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  export default function HelpDialog({ handleClose, }: {
3
2
  handleClose: () => void;
4
- }): React.JSX.Element;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,44 +1,8 @@
1
- import React from 'react';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Dialog } from '@jbrowse/core/ui';
3
3
  import { Button, DialogActions, DialogContent, Divider } from '@mui/material';
4
4
  export default function HelpDialog({ handleClose, }) {
5
- return (React.createElement(Dialog, { open: true, maxWidth: "xl", onClose: handleClose, title: "Using the search box" },
6
- React.createElement(DialogContent, null,
7
- React.createElement("h3", null, "Searching"),
8
- React.createElement("ul", null,
9
- React.createElement("li", null, "Jump to a feature or reference sequence by typing its name in the location box and pressing Enter."),
10
- React.createElement("li", null,
11
- "Jump to a specific region by typing the region into the location box as: ",
12
- React.createElement("code", null, "ref:start..end"),
13
- " or ",
14
- React.createElement("code", null, "ref:start-end"),
15
- ". Commas are allowed in the start and end coordinates. A space-separated list of locstrings can be used to open up multiple chromosomes at a time")),
16
- React.createElement("h3", null, "Example Searches"),
17
- React.createElement("ul", null,
18
- React.createElement("li", null,
19
- React.createElement("code", null, "BRCA"),
20
- " - searches for the feature named BRCA"),
21
- React.createElement("li", null,
22
- React.createElement("code", null, "chr4"),
23
- " - jumps to chromosome 4"),
24
- React.createElement("li", null,
25
- React.createElement("code", null, "chr4:79,500,000..80,000,000"),
26
- " - jumps the region on chromosome 4 between 79.5Mb and 80Mb."),
27
- React.createElement("li", null,
28
- React.createElement("code", null, "chr1:1-100 chr2:1-100"),
29
- " - create a split view of chr1:1-100 and chr2:1-100"),
30
- React.createElement("li", null,
31
- React.createElement("code", null, "chr1 chr2 chr3"),
32
- " - open up multiple chromosomes at once"),
33
- React.createElement("li", null,
34
- React.createElement("code", null, "chr1:1-100[rev] chr2:1-100"),
35
- " - open up the first region in the horizontally flipped orientation"),
36
- React.createElement("li", null,
37
- React.createElement("code", null, "chr1 100 200"),
38
- " - use whitespace separated refname, start, end"))),
39
- React.createElement(Divider, null),
40
- React.createElement(DialogActions, null,
41
- React.createElement(Button, { onClick: () => {
42
- handleClose();
43
- }, color: "primary" }, "Close"))));
5
+ return (_jsxs(Dialog, { open: true, maxWidth: "xl", onClose: handleClose, title: "Using the search box", children: [_jsxs(DialogContent, { children: [_jsx("h3", { children: "Searching" }), _jsxs("ul", { children: [_jsx("li", { children: "Jump to a feature or reference sequence by typing its name in the location box and pressing Enter." }), _jsxs("li", { children: ["Jump to a specific region by typing the region into the location box as: ", _jsx("code", { children: "ref:start..end" }), " or ", _jsx("code", { children: "ref:start-end" }), ". Commas are allowed in the start and end coordinates. A space-separated list of locstrings can be used to open up multiple chromosomes at a time"] })] }), _jsx("h3", { children: "Example Searches" }), _jsxs("ul", { children: [_jsxs("li", { children: [_jsx("code", { children: "BRCA" }), " - searches for the feature named BRCA"] }), _jsxs("li", { children: [_jsx("code", { children: "chr4" }), " - jumps to chromosome 4"] }), _jsxs("li", { children: [_jsx("code", { children: "chr4:79,500,000..80,000,000" }), " - jumps the region on chromosome 4 between 79.5Mb and 80Mb."] }), _jsxs("li", { children: [_jsx("code", { children: "chr1:1-100 chr2:1-100" }), " - create a split view of chr1:1-100 and chr2:1-100"] }), _jsxs("li", { children: [_jsx("code", { children: "chr1 chr2 chr3" }), " - open up multiple chromosomes at once"] }), _jsxs("li", { children: [_jsx("code", { children: "chr1:1-100[rev] chr2:1-100" }), " - open up the first region in the horizontally flipped orientation"] }), _jsxs("li", { children: [_jsx("code", { children: "chr1 100 200" }), " - use whitespace separated refname, start, end"] })] })] }), _jsx(Divider, {}), _jsx(DialogActions, { children: _jsx(Button, { onClick: () => {
6
+ handleClose();
7
+ }, color: "primary", children: "Close" }) })] }));
44
8
  }
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import BaseResult from '@jbrowse/core/TextSearch/BaseResults';
3
2
  import type { LinearGenomeViewModel } from '../../model';
4
3
  import type { TextFieldProps as TFP } from '@mui/material';
@@ -14,5 +13,5 @@ declare const RefNameAutocomplete: ({ model, onSelect, assemblyName, style, fetc
14
13
  maxWidth?: number;
15
14
  showHelp?: boolean;
16
15
  TextFieldProps?: TFP;
17
- }) => React.JSX.Element;
16
+ }) => import("react/jsx-runtime").JSX.Element;
18
17
  export default RefNameAutocomplete;
@@ -1,4 +1,5 @@
1
- import React, { useEffect, useState } from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useEffect, useState } from 'react';
2
3
  import BaseResult, { RefSequenceResult, } from '@jbrowse/core/TextSearch/BaseResults';
3
4
  import { getSession, measureText, useDebounce } from '@jbrowse/core/util';
4
5
  import { Autocomplete } from '@mui/material';
@@ -44,7 +45,7 @@ const RefNameAutocomplete = observer(function ({ model, onSelect, assemblyName,
44
45
  matchedAttribute: 'refName',
45
46
  }),
46
47
  }))) || [];
47
- return (React.createElement(Autocomplete, { "data-testid": "autocomplete", disableListWrap: true, disableClearable: true, disabled: !assemblyName, freeSolo: true, includeInputInList: true, selectOnFocus: true, style: { ...style, width }, value: inputBoxVal, loading: !loaded, inputValue: inputValue, onInputChange: (_event, newInputValue) => {
48
+ return (_jsx(Autocomplete, { "data-testid": "autocomplete", disableListWrap: true, disableClearable: true, disabled: !assemblyName, freeSolo: true, includeInputInList: true, selectOnFocus: true, style: { ...style, width }, value: inputBoxVal, loading: !loaded, inputValue: inputValue, onInputChange: (_event, newInputValue) => {
48
49
  setInputValue(newInputValue);
49
50
  onChange === null || onChange === void 0 ? void 0 : onChange(newInputValue);
50
51
  }, loadingText: "loading results", open: open, onOpen: () => {
@@ -67,6 +68,6 @@ const RefNameAutocomplete = observer(function ({ model, onSelect, assemblyName,
67
68
  onSelect === null || onSelect === void 0 ? void 0 : onSelect(selectedOption.result);
68
69
  }
69
70
  setInputValue(inputBoxVal);
70
- }, options: (searchOptions === null || searchOptions === void 0 ? void 0 : searchOptions.length) ? searchOptions : regionOptions, getOptionDisabled: option => option.group === 'limitOption', filterOptions: (opts, { inputValue }) => getFiltered(opts, inputValue), renderInput: params => (React.createElement(AutocompleteTextField, { showHelp: showHelp, params: params, inputBoxVal: inputBoxVal, TextFieldProps: TextFieldProps, setCurrentSearch: setCurrentSearch, setInputValue: setInputValue })), getOptionLabel: opt => typeof opt === 'string' ? opt : opt.result.getDisplayString() }));
71
+ }, options: (searchOptions === null || searchOptions === void 0 ? void 0 : searchOptions.length) ? searchOptions : regionOptions, getOptionDisabled: option => option.group === 'limitOption', filterOptions: (opts, { inputValue }) => getFiltered(opts, inputValue), renderInput: params => (_jsx(AutocompleteTextField, { showHelp: showHelp, params: params, inputBoxVal: inputBoxVal, TextFieldProps: TextFieldProps, setCurrentSearch: setCurrentSearch, setInputValue: setInputValue })), getOptionLabel: opt => typeof opt === 'string' ? opt : opt.result.getDisplayString() }));
71
72
  });
72
73
  export default RefNameAutocomplete;
@@ -0,0 +1,6 @@
1
+ import type { LinearGenomeViewModel } from '../model';
2
+ declare const RegionWidthEditorDialog: ({ model, handleClose, }: {
3
+ model: LinearGenomeViewModel;
4
+ handleClose: () => void;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ export default RegionWidthEditorDialog;
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useEffect, useState } from 'react';
3
+ import { Dialog } from '@jbrowse/core/ui';
4
+ import { toLocale } from '@jbrowse/core/util';
5
+ import { Button, DialogActions, DialogContent, TextField, Typography, } from '@mui/material';
6
+ import { observer } from 'mobx-react';
7
+ const toP = (s = 0) => +(+s).toFixed(1);
8
+ const RegionWidthEditorDialog = observer(function ({ model, handleClose, }) {
9
+ const { bpPerPx, width } = model;
10
+ const [val, setVal] = useState(toLocale(toP(bpPerPx * width)));
11
+ useEffect(() => {
12
+ setVal(toLocale(bpPerPx * width));
13
+ }, [bpPerPx, width]);
14
+ const val2 = val.replace(/,/g, '');
15
+ return (_jsxs(Dialog, { title: "Edit zoom level", open: true, onClose: handleClose, children: [_jsxs(DialogContent, { style: {
16
+ display: 'flex',
17
+ flexDirection: 'column',
18
+ gap: 30,
19
+ }, children: [_jsx(Typography, { children: "Enter a specific number of base pairs to change the viewport to show. This is approximate and does not account for padding between regions or off-screen scrolling" }), _jsx(TextField, { helperText: "current zoom level (in bp)", value: val, onChange: event => {
20
+ setVal(event.target.value);
21
+ } })] }), _jsxs(DialogActions, { children: [_jsx(Button, { variant: "contained", color: "secondary", onClick: () => {
22
+ handleClose();
23
+ }, children: "Cancel" }), _jsx(Button, { variant: "contained", color: "primary", onClick: () => {
24
+ model.zoomTo(+val2 / model.width);
25
+ handleClose();
26
+ }, children: "Submit" })] })] }));
27
+ });
28
+ export default RegionWidthEditorDialog;
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
1
  import type { LinearGenomeViewModel } from '..';
3
2
  type LGV = LinearGenomeViewModel;
4
3
  declare const Rubberband: ({ model, ControlComponent, }: {
5
4
  model: LGV;
6
5
  ControlComponent?: React.ReactElement;
7
- }) => React.JSX.Element;
6
+ }) => import("react/jsx-runtime").JSX.Element;
8
7
  export default Rubberband;
@@ -1,4 +1,5 @@
1
- import React, { useRef } from 'react';
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useRef } from 'react';
2
3
  import { Menu } from '@jbrowse/core/ui';
3
4
  import { observer } from 'mobx-react';
4
5
  import { makeStyles } from 'tss-react/mui';
@@ -12,16 +13,13 @@ const useStyles = makeStyles()({
12
13
  minHeight: 8,
13
14
  },
14
15
  });
15
- const Rubberband = observer(function ({ model, ControlComponent = React.createElement("div", null), }) {
16
+ const Rubberband = observer(function ({ model, ControlComponent = _jsx("div", {}), }) {
16
17
  const ref = useRef(null);
17
18
  const { classes } = useStyles();
18
19
  const { guideX, rubberbandOn, leftBpOffset, rightBpOffset, numOfBpSelected, width, left, anchorPosition, open, handleMenuItemClick, handleClose, mouseMove, mouseDown, mouseOut, } = useRangeSelect(ref, model);
19
- return (React.createElement(React.Fragment, null,
20
- guideX !== undefined ? (React.createElement(VerticalGuide, { model: model, coordX: guideX })) : rubberbandOn ? (React.createElement(RubberbandSpan, { leftBpOffset: leftBpOffset, rightBpOffset: rightBpOffset, numOfBpSelected: numOfBpSelected, width: width, left: left })) : null,
21
- anchorPosition ? (React.createElement(Menu, { anchorReference: "anchorPosition", anchorPosition: {
22
- left: anchorPosition.clientX,
23
- top: anchorPosition.clientY,
24
- }, onMenuItemClick: handleMenuItemClick, open: open, onClose: handleClose, menuItems: model.rubberBandMenuItems() })) : null,
25
- React.createElement("div", { "data-testid": "rubberband_controls", className: classes.rubberbandControl, ref: ref, onMouseDown: mouseDown, onMouseMove: mouseMove, onMouseOut: mouseOut }, ControlComponent)));
20
+ return (_jsxs(_Fragment, { children: [guideX !== undefined ? (_jsx(VerticalGuide, { model: model, coordX: guideX })) : rubberbandOn ? (_jsx(RubberbandSpan, { leftBpOffset: leftBpOffset, rightBpOffset: rightBpOffset, numOfBpSelected: numOfBpSelected, width: width, left: left })) : null, anchorPosition ? (_jsx(Menu, { anchorReference: "anchorPosition", anchorPosition: {
21
+ left: anchorPosition.clientX,
22
+ top: anchorPosition.clientY,
23
+ }, onMenuItemClick: handleMenuItemClick, open: open, onClose: handleClose, menuItems: model.rubberBandMenuItems() })) : null, _jsx("div", { "data-testid": "rubberband_controls", className: classes.rubberbandControl, ref: ref, onMouseDown: mouseDown, onMouseMove: mouseMove, onMouseOut: mouseOut, children: ControlComponent })] }));
26
24
  });
27
25
  export default Rubberband;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  interface Offset {
3
2
  coord: number;
4
3
  refName?: string;
@@ -10,5 +9,5 @@ export default function RubberbandSpan({ leftBpOffset, rightBpOffset, numOfBpSel
10
9
  numOfBpSelected?: number;
11
10
  left: number;
12
11
  width: number;
13
- }): React.JSX.Element;
12
+ }): import("react/jsx-runtime").JSX.Element;
14
13
  export {};
@@ -1,4 +1,5 @@
1
- import React, { useRef } from 'react';
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useState } from 'react';
2
3
  import { stringify, toLocale } from '@jbrowse/core/util';
3
4
  import { Popover, Typography, alpha } from '@mui/material';
4
5
  import { makeStyles } from 'tss-react/mui';
@@ -32,16 +33,20 @@ const useStyles = makeStyles()(theme => {
32
33
  },
33
34
  };
34
35
  });
36
+ function Tooltip({ anchorEl, side, text, }) {
37
+ const { classes } = useStyles();
38
+ return (_jsx(Popover, { className: classes.popover, classes: { paper: classes.paper }, open: true, anchorEl: anchorEl, anchorOrigin: {
39
+ vertical: 'top',
40
+ horizontal: side === 'left' ? 'right' : 'left',
41
+ }, transformOrigin: {
42
+ vertical: 'bottom',
43
+ horizontal: side === 'left' ? 'left' : 'right',
44
+ }, keepMounted: true, disableRestoreFocus: true, children: _jsx(Typography, { children: text }) }));
45
+ }
35
46
  export default function RubberbandSpan({ leftBpOffset, rightBpOffset, numOfBpSelected, left, width, }) {
36
- const ref = useRef(null);
37
47
  const { classes } = useStyles();
38
- return (React.createElement(React.Fragment, null,
39
- ref.current ? (React.createElement(React.Fragment, null,
40
- React.createElement(Popover, { className: classes.popover, classes: { paper: classes.paper }, open: true, anchorEl: ref.current, anchorOrigin: { vertical: 'top', horizontal: 'left' }, transformOrigin: { vertical: 'bottom', horizontal: 'right' }, keepMounted: true, disableRestoreFocus: true },
41
- React.createElement(Typography, null, stringify(leftBpOffset))),
42
- React.createElement(Popover, { className: classes.popover, classes: { paper: classes.paper }, open: true, anchorEl: ref.current, anchorOrigin: { vertical: 'top', horizontal: 'right' }, transformOrigin: { vertical: 'bottom', horizontal: 'left' }, keepMounted: true, disableRestoreFocus: true },
43
- React.createElement(Typography, null, stringify(rightBpOffset))))) : null,
44
- React.createElement("div", { ref: ref, className: classes.rubberband, style: { left, width } }, numOfBpSelected ? (React.createElement(Typography, { variant: "h6", className: classes.rubberbandText },
45
- toLocale(numOfBpSelected),
46
- " bp")) : null)));
48
+ const [anchorEl, setAnchorEl] = useState(null);
49
+ return (_jsxs(_Fragment, { children: [anchorEl ? (_jsxs(_Fragment, { children: [_jsx(Tooltip, { side: "left", anchorEl: anchorEl, text: stringify(leftBpOffset) }), _jsx(Tooltip, { side: "right", anchorEl: anchorEl, text: stringify(rightBpOffset) })] })) : null, _jsx("div", { ref: el => {
50
+ setAnchorEl(el);
51
+ }, className: classes.rubberband, style: { left, width }, children: numOfBpSelected ? (_jsxs(Typography, { variant: "h6", className: classes.rubberbandText, children: [toLocale(numOfBpSelected), " bp"] })) : null })] }));
47
52
  }
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  import type { LinearGenomeViewModel } from '..';
3
3
  type LGV = LinearGenomeViewModel;
4
4
  interface ScalebarProps {
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { forwardRef } from 'react';
2
3
  import { Paper } from '@mui/material';
3
4
  import { observer } from 'mobx-react';
4
5
  import { makeStyles } from 'tss-react/mui';
@@ -19,20 +20,16 @@ const useStyles = makeStyles()({
19
20
  pointerEvents: 'none',
20
21
  },
21
22
  });
22
- const Scalebar = observer(React.forwardRef(function Scalebar2({ model, style, className, ...other }, ref) {
23
+ const Scalebar = observer(forwardRef(function Scalebar2({ model, style, className, ...other }, ref) {
23
24
  const { classes, cx } = useStyles();
24
25
  const { staticBlocks, offsetPx, scaleFactor } = model;
25
26
  const offsetLeft = staticBlocks.offsetPx - offsetPx;
26
- return (React.createElement(Paper, { "data-resizer": "true", className: cx(classes.container, className), variant: "outlined", ref: ref, style: style, ...other },
27
- React.createElement("div", { className: classes.zoomContainer, style: {
28
- transform: scaleFactor !== 1 ? `scaleX(${scaleFactor})` : undefined,
29
- } },
30
- React.createElement("div", { className: classes.scalebar, style: {
31
- left: offsetLeft - 1,
32
- width: staticBlocks.totalWidthPx,
33
- ...style,
34
- } },
35
- React.createElement(ScalebarCoordinateLabels, { model: model }))),
36
- React.createElement(ScalebarRefNameLabels, { model: model })));
27
+ return (_jsxs(Paper, { "data-resizer": "true", className: cx(classes.container, className), variant: "outlined", ref: ref, style: style, ...other, children: [_jsx("div", { className: classes.zoomContainer, style: {
28
+ transform: scaleFactor !== 1 ? `scaleX(${scaleFactor})` : undefined,
29
+ }, children: _jsx("div", { className: classes.scalebar, style: {
30
+ left: offsetLeft - 1,
31
+ width: staticBlocks.totalWidthPx,
32
+ ...style,
33
+ }, children: _jsx(ScalebarCoordinateLabels, { model: model }) }) }), _jsx(ScalebarRefNameLabels, { model: model })] }));
37
34
  }));
38
35
  export default Scalebar;
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
1
  import type { LinearGenomeViewModel } from '..';
3
2
  type LGV = LinearGenomeViewModel;
4
3
  declare const ScalebarCoordinateLabels: ({ model }: {
5
4
  model: LGV;
6
- }) => React.JSX.Element;
5
+ }) => import("react/jsx-runtime").JSX.Element;
7
6
  export default ScalebarCoordinateLabels;
@@ -1,24 +1,24 @@
1
- import React from 'react';
1
+ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { observer } from 'mobx-react';
3
3
  import ScalebarCoordinateTicks from './ScalebarCoordinateTicks';
4
4
  import { ElidedBlock as ElidedBlockComponent, InterRegionPaddingBlock as InterRegionPaddingBlockComponent, } from '../../BaseLinearDisplay/components/Block';
5
5
  const ScalebarCoordinateLabels = observer(function ({ model }) {
6
6
  const { staticBlocks, bpPerPx } = model;
7
- return (React.createElement(React.Fragment, null, staticBlocks.map((b, idx) => {
8
- const { key, widthPx } = b;
9
- const k = `${key}-${idx}`;
10
- if (b.type === 'ContentBlock') {
11
- return React.createElement(ScalebarCoordinateTicks, { key: k, block: b, bpPerPx: bpPerPx });
12
- }
13
- else if (b.type === 'ElidedBlock') {
14
- return React.createElement(ElidedBlockComponent, { key: k, width: widthPx });
15
- }
16
- else if (b.type === 'InterRegionPaddingBlock') {
17
- return (React.createElement(InterRegionPaddingBlockComponent, { key: k, width: widthPx, style: { background: 'none' }, boundary: b.variant === 'boundary' }));
18
- }
19
- else {
20
- return null;
21
- }
22
- })));
7
+ return (_jsx(_Fragment, { children: staticBlocks.map((b, idx) => {
8
+ const { key, widthPx } = b;
9
+ const k = `${key}-${idx}`;
10
+ if (b.type === 'ContentBlock') {
11
+ return _jsx(ScalebarCoordinateTicks, { block: b, bpPerPx: bpPerPx }, k);
12
+ }
13
+ else if (b.type === 'ElidedBlock') {
14
+ return _jsx(ElidedBlockComponent, { width: widthPx }, k);
15
+ }
16
+ else if (b.type === 'InterRegionPaddingBlock') {
17
+ return (_jsx(InterRegionPaddingBlockComponent, { width: widthPx, style: { background: 'none' }, boundary: b.variant === 'boundary' }, k));
18
+ }
19
+ else {
20
+ return null;
21
+ }
22
+ }) }));
23
23
  });
24
24
  export default ScalebarCoordinateLabels;
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
1
  import type { ContentBlock } from '@jbrowse/core/util/blockTypes';
3
2
  declare const ScalebarCoordinateTicks: ({ block, bpPerPx, }: {
4
3
  block: ContentBlock;
5
4
  bpPerPx: number;
6
- }) => React.JSX.Element;
5
+ }) => import("react/jsx-runtime").JSX.Element;
7
6
  export default ScalebarCoordinateTicks;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { getTickDisplayStr } from '@jbrowse/core/util';
3
3
  import { Typography } from '@mui/material';
4
4
  import { makeStyles } from 'tss-react/mui';
@@ -24,13 +24,13 @@ const ScalebarCoordinateTicks = function ({ block, bpPerPx, }) {
24
24
  const { classes } = useStyles();
25
25
  const { reversed, start, end } = block;
26
26
  const ticks = makeTicks(start, end, bpPerPx, true, false);
27
- return (React.createElement(ContentBlockComponent, { block: block }, ticks.map(({ type, base }) => {
28
- if (type === 'major') {
29
- const x = (reversed ? end - base : base - start) / bpPerPx;
30
- const baseNumber = base + 1;
31
- return (React.createElement("div", { key: base, className: classes.tick, style: { left: x } }, baseNumber ? (React.createElement(Typography, { className: classes.majorTickLabel }, getTickDisplayStr(baseNumber, bpPerPx))) : null));
32
- }
33
- return null;
34
- })));
27
+ return (_jsx(ContentBlockComponent, { block: block, children: ticks.map(({ type, base }) => {
28
+ if (type === 'major') {
29
+ const x = (reversed ? end - base : base - start) / bpPerPx;
30
+ const baseNumber = base + 1;
31
+ return (_jsx("div", { className: classes.tick, style: { left: x }, children: baseNumber ? (_jsx(Typography, { className: classes.majorTickLabel, children: getTickDisplayStr(baseNumber, bpPerPx) })) : null }, base));
32
+ }
33
+ return null;
34
+ }) }));
35
35
  };
36
36
  export default ScalebarCoordinateTicks;
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
1
  import type { LinearGenomeViewModel } from '..';
3
2
  type LGV = LinearGenomeViewModel;
4
3
  declare const ScalebarRefNameLabels: ({ model }: {
5
4
  model: LGV;
6
- }) => React.JSX.Element;
5
+ }) => import("react/jsx-runtime").JSX.Element;
7
6
  export default ScalebarRefNameLabels;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { Typography } from '@mui/material';
3
3
  import { observer } from 'mobx-react';
4
4
  import { makeStyles } from 'tss-react/mui';
@@ -29,20 +29,16 @@ const ScalebarRefNameLabels = observer(function ({ model }) {
29
29
  });
30
30
  const val = scaleBarDisplayPrefix();
31
31
  const b0 = staticBlocks.blocks[0];
32
- return (React.createElement(React.Fragment, null,
33
- (b0 === null || b0 === void 0 ? void 0 : b0.type) !== 'ContentBlock' && val ? (React.createElement(Typography, { className: cx(classes.b0, classes.refLabel) }, val)) : null,
34
- staticBlocks.map((block, index) => {
35
- const { offsetPx: blockOffsetPx, isLeftEndOfDisplayedRegion, key, type, refName, } = block;
36
- const last = index === lastLeftBlock;
37
- return type === 'ContentBlock' &&
38
- (isLeftEndOfDisplayedRegion || last) ? (React.createElement(Typography, { key: `refLabel-${key}-${index}`, style: {
39
- left: last
40
- ? Math.max(0, -offsetPx)
41
- : blockOffsetPx - offsetPx - 1,
42
- paddingLeft: last ? 0 : 1,
43
- }, className: classes.refLabel, "data-testid": `refLabel-${refName}` },
44
- last && val ? `${val}:` : '',
45
- refName)) : null;
46
- })));
32
+ return (_jsxs(_Fragment, { children: [(b0 === null || b0 === void 0 ? void 0 : b0.type) !== 'ContentBlock' && val ? (_jsx(Typography, { className: cx(classes.b0, classes.refLabel), children: val })) : null, staticBlocks.map((block, index) => {
33
+ const { offsetPx: blockOffsetPx, isLeftEndOfDisplayedRegion, key, type, refName, } = block;
34
+ const last = index === lastLeftBlock;
35
+ return type === 'ContentBlock' &&
36
+ (isLeftEndOfDisplayedRegion || last) ? (_jsxs(Typography, { style: {
37
+ left: last
38
+ ? Math.max(0, -offsetPx)
39
+ : blockOffsetPx - offsetPx - 1,
40
+ paddingLeft: last ? 0 : 1,
41
+ }, className: classes.refLabel, "data-testid": `refLabel-${refName}`, children: [last && val ? `${val}:` : '', refName] }, `refLabel-${key}-${index}`)) : null;
42
+ })] }));
47
43
  });
48
44
  export default ScalebarRefNameLabels;
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
1
  import type { LinearGenomeViewModel } from '..';
3
2
  declare const SearchBox: ({ model, showHelp, }: {
4
3
  showHelp?: boolean;
5
4
  model: LinearGenomeViewModel;
6
- }) => React.JSX.Element;
5
+ }) => import("react/jsx-runtime").JSX.Element;
7
6
  export default SearchBox;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { getSession } from '@jbrowse/core/util';
3
3
  import { alpha, useTheme } from '@mui/material';
4
4
  import { observer } from 'mobx-react';
@@ -21,7 +21,7 @@ const SearchBox = observer(function ({ model, showHelp, }) {
21
21
  const assemblyName = assemblyNames[0];
22
22
  const assembly = assemblyManager.get(assemblyName);
23
23
  const searchScope = model.searchScope(assemblyName);
24
- return (React.createElement(RefNameAutocomplete, { showHelp: showHelp, onSelect: async (option) => {
24
+ return (_jsx(RefNameAutocomplete, { showHelp: showHelp, onSelect: async (option) => {
25
25
  var _a;
26
26
  try {
27
27
  if (option.hasLocation()) {
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import type { LinearGenomeViewModel } from '../..';
3
2
  import type BaseResult from '@jbrowse/core/TextSearch/BaseResults';
4
3
  export default function SearchResultsDialog({ model, assemblyName, searchQuery, searchResults, handleClose, }: {
@@ -7,4 +6,4 @@ export default function SearchResultsDialog({ model, assemblyName, searchQuery,
7
6
  searchQuery: string;
8
7
  searchResults?: BaseResult[];
9
8
  handleClose: () => void;
10
- }): React.JSX.Element;
9
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,19 +1,9 @@
1
- import React from 'react';
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { Dialog } from '@jbrowse/core/ui';
3
3
  import { Button, DialogActions, DialogContent, Divider, Typography, } from '@mui/material';
4
4
  import SearchResultsTable from './SearchResultsTable';
5
5
  export default function SearchResultsDialog({ model, assemblyName, searchQuery, searchResults, handleClose, }) {
6
- return (React.createElement(Dialog, { open: true, maxWidth: "xl", onClose: handleClose, title: "Search results" },
7
- React.createElement(DialogContent, null, !(searchResults === null || searchResults === void 0 ? void 0 : searchResults.length) ? (React.createElement(Typography, null,
8
- "No results found for ",
9
- React.createElement("b", null, searchQuery))) : (React.createElement(React.Fragment, null,
10
- React.createElement(Typography, null,
11
- "Showing results for ",
12
- React.createElement("b", null, searchQuery)),
13
- React.createElement(SearchResultsTable, { model: model, handleClose: handleClose, assemblyName: assemblyName, searchResults: searchResults })))),
14
- React.createElement(Divider, null),
15
- React.createElement(DialogActions, null,
16
- React.createElement(Button, { onClick: () => {
17
- handleClose();
18
- }, color: "primary" }, "Cancel"))));
6
+ return (_jsxs(Dialog, { open: true, maxWidth: "xl", onClose: handleClose, title: "Search results", children: [_jsx(DialogContent, { children: !(searchResults === null || searchResults === void 0 ? void 0 : searchResults.length) ? (_jsxs(Typography, { children: ["No results found for ", _jsx("b", { children: searchQuery })] })) : (_jsxs(_Fragment, { children: [_jsxs(Typography, { children: ["Showing results for ", _jsx("b", { children: searchQuery })] }), _jsx(SearchResultsTable, { model: model, handleClose: handleClose, assemblyName: assemblyName, searchResults: searchResults })] })) }), _jsx(Divider, {}), _jsx(DialogActions, { children: _jsx(Button, { onClick: () => {
7
+ handleClose();
8
+ }, color: "primary", children: "Cancel" }) })] }));
19
9
  }
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import type { LinearGenomeViewModel } from '../..';
3
2
  import type BaseResult from '@jbrowse/core/TextSearch/BaseResults';
4
3
  export default function SearchResultsTable({ searchResults, assemblyName: optAssemblyName, model, handleClose, }: {
@@ -6,4 +5,4 @@ export default function SearchResultsTable({ searchResults, assemblyName: optAss
6
5
  assemblyName?: string;
7
6
  model: LinearGenomeViewModel;
8
7
  handleClose: () => void;
9
- }): React.JSX.Element;
8
+ }): import("react/jsx-runtime").JSX.Element;