@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,8 +1,7 @@
1
- import React from 'react';
2
1
  export default function SVGTrackLabel({ trackLabels, trackName, fontSize, trackLabelOffset, x, }: {
3
2
  trackName: string;
4
3
  trackLabels: string;
5
4
  fontSize: number;
6
5
  trackLabelOffset: number;
7
6
  x: number;
8
- }): React.JSX.Element | null;
7
+ }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,10 +1,7 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.default = SVGTrackLabel;
7
- const react_1 = __importDefault(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
8
5
  const util_1 = require("@jbrowse/core/util");
9
6
  const material_1 = require("@mui/material");
10
7
  function SVGTrackLabel({ trackLabels, trackName, fontSize, trackLabelOffset, x, }) {
@@ -13,5 +10,5 @@ function SVGTrackLabel({ trackLabels, trackName, fontSize, trackLabelOffset, x,
13
10
  const xoff = trackLabels === 'overlay' ? 5 : 0;
14
11
  const yoff = trackLabels === 'offset' ? 5 : 0;
15
12
  const name = (0, util_1.coarseStripHTML)(trackName);
16
- return trackLabels !== 'none' ? (react_1.default.createElement("g", null, trackLabels === 'left' ? (react_1.default.createElement("text", { x: trackLabelOffset - 40, y: 20, fill: fill, fontSize: fontSize, dominantBaseline: "hanging", textAnchor: "end" }, name)) : (react_1.default.createElement("text", { x: x + xoff, y: yoff, fill: fill, fontSize: fontSize, dominantBaseline: "hanging" }, name)))) : null;
13
+ return trackLabels !== 'none' ? ((0, jsx_runtime_1.jsx)("g", { children: trackLabels === 'left' ? ((0, jsx_runtime_1.jsx)("text", { x: trackLabelOffset - 40, y: 20, fill: fill, fontSize: fontSize, dominantBaseline: "hanging", textAnchor: "end", children: name })) : ((0, jsx_runtime_1.jsx)("text", { x: x + xoff, y: yoff, fill: fill, fontSize: fontSize, dominantBaseline: "hanging", children: name })) })) : null;
17
14
  }
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import type { LinearGenomeViewModel } from '..';
3
2
  import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
4
3
  type LGV = LinearGenomeViewModel;
@@ -18,5 +17,5 @@ export default function SVGTracks({ displayResults, model, textHeight, fontSize,
18
17
  fontSize: number;
19
18
  trackLabels?: string;
20
19
  trackLabelOffset?: number;
21
- }): React.JSX.Element;
20
+ }): import("react/jsx-runtime").JSX.Element;
22
21
  export {};
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.default = SVGTracks;
7
- const react_1 = __importDefault(require("react"));
7
+ const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const util_1 = require("@jbrowse/core/util");
9
9
  const tracks_1 = require("@jbrowse/core/util/tracks");
10
10
  const SVGRegionSeparators_1 = __importDefault(require("./SVGRegionSeparators"));
@@ -12,18 +12,21 @@ const SVGTrackLabel_1 = __importDefault(require("./SVGTrackLabel"));
12
12
  function SVGTracks({ displayResults, model, textHeight, fontSize, trackLabels = 'offset', trackLabelOffset = 0, }) {
13
13
  const session = (0, util_1.getSession)(model);
14
14
  const textOffset = trackLabels === 'offset' ? textHeight : 0;
15
- let offset = 0;
16
- return (react_1.default.createElement(react_1.default.Fragment, null, displayResults.map(({ track, result }) => {
17
- const current = offset;
18
- const conf = track.configuration;
19
- const trackName = (0, tracks_1.getTrackName)(conf, session);
20
- const display = track.displays[0];
21
- const x = Math.max(-model.offsetPx, 0);
22
- offset += display.height + textOffset;
23
- return (react_1.default.createElement("g", { key: conf.trackId, transform: `translate(0 ${current})` },
24
- react_1.default.createElement("g", { transform: `translate(${trackLabelOffset} ${textOffset})` },
25
- react_1.default.createElement(SVGRegionSeparators_1.default, { model: model, height: display.height }),
26
- result),
27
- react_1.default.createElement(SVGTrackLabel_1.default, { trackName: trackName, fontSize: fontSize, trackLabels: trackLabels, trackLabelOffset: trackLabelOffset, x: x })));
28
- })));
15
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: displayResults.reduce(({ prevOffset, reactElements }, { track, result }) => {
16
+ const conf = track.configuration;
17
+ const trackName = (0, tracks_1.getTrackName)(conf, session);
18
+ const display = track.displays[0];
19
+ const x = Math.max(-model.offsetPx, 0);
20
+ const currOffset = prevOffset + display.height + textOffset;
21
+ return {
22
+ prevOffset: currOffset,
23
+ reactElements: [
24
+ ...reactElements,
25
+ (0, jsx_runtime_1.jsxs)("g", { transform: `translate(0 ${prevOffset})`, children: [(0, jsx_runtime_1.jsxs)("g", { transform: `translate(${trackLabelOffset} ${textOffset})`, children: [(0, jsx_runtime_1.jsx)(SVGRegionSeparators_1.default, { model: model, height: display.height }), result] }), (0, jsx_runtime_1.jsx)(SVGTrackLabel_1.default, { trackName: trackName, fontSize: fontSize, trackLabels: trackLabels, trackLabelOffset: trackLabelOffset, x: x })] }, conf.trackId),
26
+ ],
27
+ };
28
+ }, {
29
+ prevOffset: 0,
30
+ reactElements: [],
31
+ }).reactElements }));
29
32
  }
@@ -0,0 +1,38 @@
1
+ export interface BpOffset {
2
+ refName?: string;
3
+ index: number;
4
+ offset: number;
5
+ start?: number;
6
+ end?: number;
7
+ coord?: number;
8
+ reversed?: boolean;
9
+ assemblyName?: string;
10
+ oob?: boolean;
11
+ }
12
+ export interface ExportSvgOptions {
13
+ rasterizeLayers?: boolean;
14
+ filename?: string;
15
+ Wrapper?: React.FC<{
16
+ children: React.ReactNode;
17
+ }>;
18
+ fontSize?: number;
19
+ rulerHeight?: number;
20
+ textHeight?: number;
21
+ paddingHeight?: number;
22
+ headerHeight?: number;
23
+ cytobandHeight?: number;
24
+ trackLabels?: string;
25
+ themeName?: string;
26
+ }
27
+ export interface HighlightType {
28
+ start: number;
29
+ end: number;
30
+ assemblyName: string;
31
+ refName: string;
32
+ }
33
+ export interface NavLocation {
34
+ refName: string;
35
+ start?: number;
36
+ end?: number;
37
+ assemblyName?: string;
38
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,5 @@
1
1
  import type { AssemblyManager, ParsedLocString } from '@jbrowse/core/util';
2
+ import type { BaseBlock } from '@jbrowse/core/util/blockTypes';
2
3
  export declare function chooseGridPitch(scale: number, minMajorPitchPx: number, minMinorPitchPx: number): {
3
4
  majorPitch: number;
4
5
  minorPitch: number;
@@ -12,8 +13,9 @@ export declare function generateLocations(regions: ParsedLocString[], assemblyMa
12
13
  assemblyName: string;
13
14
  parentRegion: import("@jbrowse/core/assemblyManager/assembly").BasicRegion;
14
15
  end?: number | undefined;
15
- reversed?: boolean | undefined;
16
16
  start?: number | undefined;
17
17
  refName: string;
18
+ reversed?: boolean | undefined;
18
19
  }[]>;
19
20
  export declare function parseLocStrings(input: string, assemblyName: string, isValidRefName: (str: string, assemblyName: string) => boolean): ParsedLocString[];
21
+ export declare function calculateVisibleLocStrings(contentBlocks: BaseBlock[]): string;
@@ -4,6 +4,7 @@ exports.chooseGridPitch = chooseGridPitch;
4
4
  exports.makeTicks = makeTicks;
5
5
  exports.generateLocations = generateLocations;
6
6
  exports.parseLocStrings = parseLocStrings;
7
+ exports.calculateVisibleLocStrings = calculateVisibleLocStrings;
7
8
  const util_1 = require("@jbrowse/core/util");
8
9
  function chooseGridPitch(scale, minMajorPitchPx, minMinorPitchPx) {
9
10
  scale = Math.abs(scale);
@@ -106,3 +107,18 @@ function parseLocStrings(input, assemblyName, isValidRefName) {
106
107
  throw e;
107
108
  }
108
109
  }
110
+ function calculateVisibleLocStrings(contentBlocks) {
111
+ if (!contentBlocks.length) {
112
+ return '';
113
+ }
114
+ else {
115
+ const isSingleAssemblyName = contentBlocks.every(b => b.assemblyName === contentBlocks[0].assemblyName);
116
+ const locs = contentBlocks.map(block => (0, util_1.assembleLocString)({
117
+ ...block,
118
+ start: Math.round(block.start),
119
+ end: Math.round(block.end),
120
+ assemblyName: isSingleAssemblyName ? undefined : block.assemblyName,
121
+ }));
122
+ return locs.join(' ');
123
+ }
124
+ }
package/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
6
6
  BaseLinearDisplayComponent: (props: {
7
7
  model: import("./BaseLinearDisplay").BaseLinearDisplayModel;
8
8
  children?: React.ReactNode;
9
- }) => import("react").JSX.Element;
9
+ }) => import("react/jsx-runtime").JSX.Element;
10
10
  BaseLinearDisplay: import("mobx-state-tree").IModelType<{
11
11
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
12
12
  type: import("mobx-state-tree").ISimpleType<string>;
@@ -42,7 +42,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
42
42
  status?: string;
43
43
  reactElement?: React.ReactElement;
44
44
  };
45
- }) => import("react").JSX.Element | undefined;
45
+ }) => import("react/jsx-runtime").JSX.Element | undefined;
46
46
  renderProps: any;
47
47
  } & {
48
48
  doReload(): void;
@@ -174,13 +174,13 @@ export default class LinearGenomeViewPlugin extends Plugin {
174
174
  } & {
175
175
  readonly statsReadyAndRegionNotTooLarge: boolean;
176
176
  regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
177
- regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
177
+ regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react/jsx-runtime").JSX.Element | null;
178
178
  } & {
179
179
  featureIdUnderMouse: undefined | string;
180
180
  contextMenuFeature: undefined | import("@jbrowse/core/util").Feature;
181
181
  } & {
182
- readonly DisplayMessageComponent: import("react").FC<any> | undefined;
183
- readonly blockType: "dynamicBlocks" | "staticBlocks";
182
+ readonly DisplayMessageComponent: undefined | React.FC<any>;
183
+ readonly blockType: "staticBlocks" | "dynamicBlocks";
184
184
  readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
185
185
  } & {
186
186
  readonly renderDelay: number;
@@ -207,7 +207,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
207
207
  contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
208
208
  renderProps(): any;
209
209
  } & {
210
- renderSvg(opts: import("./BaseLinearDisplay").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
210
+ renderSvg(opts: import("./BaseLinearDisplay").ExportSvgDisplayOptions): Promise<import("react/jsx-runtime").JSX.Element>;
211
211
  afterAttach(): void;
212
212
  }, import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
213
213
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
@@ -244,7 +244,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
244
244
  status?: string;
245
245
  reactElement?: React.ReactElement;
246
246
  };
247
- }) => import("react").JSX.Element | undefined;
247
+ }) => import("react/jsx-runtime").JSX.Element | undefined;
248
248
  renderProps: any;
249
249
  } & {
250
250
  doReload(): void;
@@ -325,13 +325,13 @@ export default class LinearGenomeViewPlugin extends Plugin {
325
325
  SearchBox: ({ model, showHelp, }: {
326
326
  showHelp?: boolean;
327
327
  model: import("./LinearGenomeView").LinearGenomeViewModel;
328
- }) => import("react").JSX.Element;
328
+ }) => import("react/jsx-runtime").JSX.Element;
329
329
  ZoomControls: ({ model, }: {
330
330
  model: import("./LinearGenomeView").LinearGenomeViewModel;
331
- }) => import("react").JSX.Element;
331
+ }) => import("react/jsx-runtime").JSX.Element;
332
332
  LinearGenomeView: ({ model, }: {
333
333
  model: import("./LinearGenomeView").LinearGenomeViewModel;
334
- }) => import("react").JSX.Element;
334
+ }) => import("react/jsx-runtime").JSX.Element;
335
335
  };
336
336
  configurationSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
337
337
  trackLabels: {
package/dist/index.js CHANGED
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
37
  };
@@ -39,6 +49,7 @@ const LaunchLinearGenomeView_1 = __importDefault(require("./LaunchLinearGenomeVi
39
49
  const LinearBareDisplay_1 = __importDefault(require("./LinearBareDisplay"));
40
50
  const LinearBasicDisplay_1 = __importDefault(require("./LinearBasicDisplay"));
41
51
  const LinearGenomeView_1 = __importStar(require("./LinearGenomeView"));
52
+ const HeaderZoomControls_1 = __importDefault(require("./LinearGenomeView/components/HeaderZoomControls"));
42
53
  class LinearGenomeViewPlugin extends Plugin_1.default {
43
54
  constructor() {
44
55
  super(...arguments);
@@ -48,7 +59,7 @@ class LinearGenomeViewPlugin extends Plugin_1.default {
48
59
  BaseLinearDisplay: BaseLinearDisplay_1.BaseLinearDisplay,
49
60
  baseLinearDisplayConfigSchema: BaseLinearDisplay_1.baseLinearDisplayConfigSchema,
50
61
  SearchBox: LinearGenomeView_1.SearchBox,
51
- ZoomControls: LinearGenomeView_1.ZoomControls,
62
+ ZoomControls: HeaderZoomControls_1.default,
52
63
  LinearGenomeView: LinearGenomeView_1.LinearGenomeView,
53
64
  };
54
65
  this.configurationSchema = (0, configuration_1.ConfigurationSchema)('LinearGenomeViewConfigSchema', {
@@ -1,9 +1,8 @@
1
- import React from 'react';
2
1
  import type { BaseLinearDisplayModel } from '../models/BaseLinearDisplayModel';
3
2
  declare const BaseLinearDisplay: (props: {
4
3
  model: BaseLinearDisplayModel;
5
4
  children?: React.ReactNode;
6
- }) => React.JSX.Element;
5
+ }) => import("react/jsx-runtime").JSX.Element;
7
6
  export default BaseLinearDisplay;
8
7
  export { default as Tooltip } from './Tooltip';
9
8
  export { default as BlockMsg } from './BlockMsg';
@@ -1,4 +1,5 @@
1
- import React, { Suspense, useRef, useState } from 'react';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Suspense, useRef, useState } from 'react';
2
3
  import { getConf } from '@jbrowse/core/configuration';
3
4
  import { Menu } from '@jbrowse/core/ui';
4
5
  import { useTheme } from '@mui/material';
@@ -25,7 +26,7 @@ const BaseLinearDisplay = observer(function (props) {
25
26
  const { model, children } = props;
26
27
  const { TooltipComponent, DisplayMessageComponent, height } = model;
27
28
  const items = model.contextMenuItems();
28
- return (React.createElement("div", { ref: ref, "data-testid": `display-${getConf(model, 'displayId')}`, className: classes.display, onContextMenu: event => {
29
+ return (_jsxs("div", { ref: ref, "data-testid": `display-${getConf(model, 'displayId')}`, className: classes.display, onContextMenu: event => {
29
30
  event.preventDefault();
30
31
  if (contextCoord) {
31
32
  setContextCoord(undefined);
@@ -42,27 +43,22 @@ const BaseLinearDisplay = observer(function (props) {
42
43
  setOffsetMouseCoord([event.clientX - left, event.clientY - top]);
43
44
  setClientMouseCoord([event.clientX, event.clientY]);
44
45
  setClientRect(rect);
45
- } },
46
- DisplayMessageComponent ? (React.createElement(DisplayMessageComponent, { model: model })) : (React.createElement(LinearBlocks, { ...props })),
47
- children,
48
- React.createElement(Suspense, { fallback: null },
49
- React.createElement(TooltipComponent, { model: model, height: height, offsetMouseCoord: offsetMouseCoord, clientMouseCoord: clientMouseCoord, clientRect: clientRect, mouseCoord: offsetMouseCoord })),
50
- React.createElement(Menu, { open: Boolean(contextCoord) && items.length > 0, onMenuItemClick: (_, callback) => {
51
- callback();
52
- setContextCoord(undefined);
53
- }, onClose: () => {
54
- setContextCoord(undefined);
55
- model.setContextMenuFeature(undefined);
56
- }, TransitionProps: {
57
- onExit: () => {
46
+ }, children: [DisplayMessageComponent ? (_jsx(DisplayMessageComponent, { model: model })) : (_jsx(LinearBlocks, { ...props })), children, _jsx(Suspense, { fallback: null, children: _jsx(TooltipComponent, { model: model, height: height, offsetMouseCoord: offsetMouseCoord, clientMouseCoord: clientMouseCoord, clientRect: clientRect, mouseCoord: offsetMouseCoord }) }), _jsx(Menu, { open: Boolean(contextCoord) && items.length > 0, onMenuItemClick: (_, callback) => {
47
+ callback();
48
+ setContextCoord(undefined);
49
+ }, onClose: () => {
58
50
  setContextCoord(undefined);
59
51
  model.setContextMenuFeature(undefined);
60
- },
61
- }, anchorReference: "anchorPosition", anchorPosition: contextCoord
62
- ? { top: contextCoord[1], left: contextCoord[0] }
63
- : undefined, style: {
64
- zIndex: theme.zIndex.tooltip,
65
- }, menuItems: items })));
52
+ }, TransitionProps: {
53
+ onExit: () => {
54
+ setContextCoord(undefined);
55
+ model.setContextMenuFeature(undefined);
56
+ },
57
+ }, anchorReference: "anchorPosition", anchorPosition: contextCoord
58
+ ? { top: contextCoord[1], left: contextCoord[0] }
59
+ : undefined, style: {
60
+ zIndex: theme.zIndex.tooltip,
61
+ }, menuItems: items })] }));
66
62
  });
67
63
  export default BaseLinearDisplay;
68
64
  export { default as Tooltip } from './Tooltip';
@@ -1,15 +1,14 @@
1
- import React from 'react';
2
1
  import type { BaseBlock } from '@jbrowse/core/util/blockTypes';
3
2
  declare const ContentBlock: ({ block, children, }: {
4
3
  block: BaseBlock;
5
4
  children: React.ReactNode;
6
- }) => React.JSX.Element;
5
+ }) => import("react/jsx-runtime").JSX.Element;
7
6
  declare function ElidedBlock({ width }: {
8
7
  width: number;
9
- }): React.JSX.Element;
8
+ }): import("react/jsx-runtime").JSX.Element;
10
9
  declare function InterRegionPaddingBlock({ boundary, width, style, }: {
11
10
  boundary: boolean;
12
11
  width: number;
13
12
  style?: React.CSSProperties;
14
- }): React.JSX.Element;
13
+ }): import("react/jsx-runtime").JSX.Element;
15
14
  export { ContentBlock, ElidedBlock, InterRegionPaddingBlock };
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { observer } from 'mobx-react';
3
3
  import { makeStyles } from 'tss-react/mui';
4
4
  const useStyles = makeStyles()(theme => ({
@@ -27,15 +27,15 @@ const useStyles = makeStyles()(theme => ({
27
27
  const ContentBlock = observer(function ({ block, children, }) {
28
28
  const { classes } = useStyles();
29
29
  const { widthPx } = block;
30
- return (React.createElement("div", { style: { width: widthPx }, className: classes.contentBlock }, children));
30
+ return (_jsx("div", { style: { width: widthPx }, className: classes.contentBlock, children: children }));
31
31
  });
32
32
  function ElidedBlock({ width }) {
33
33
  const { classes } = useStyles();
34
- return React.createElement("div", { className: classes.elidedBlock, style: { width } });
34
+ return _jsx("div", { className: classes.elidedBlock, style: { width } });
35
35
  }
36
36
  function InterRegionPaddingBlock({ boundary, width, style = {}, }) {
37
37
  const { classes } = useStyles();
38
- return (React.createElement("div", { style: {
38
+ return (_jsx("div", { style: {
39
39
  ...style,
40
40
  width,
41
41
  }, className: boundary
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
1
  declare const BlockError: ({ model }: {
3
2
  model: any;
4
- }) => React.JSX.Element;
3
+ }) => import("react/jsx-runtime").JSX.Element;
5
4
  export default BlockError;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import ErrorMessageStackTraceDialog from '@jbrowse/core/ui/ErrorMessageStackTraceDialog';
3
3
  import { getSession } from '@jbrowse/core/util';
4
4
  import RefreshIcon from '@mui/icons-material/Refresh';
@@ -7,19 +7,13 @@ import { IconButton, Tooltip } from '@mui/material';
7
7
  import { observer } from 'mobx-react';
8
8
  import BlockMsg from './BlockMsg';
9
9
  const BlockError = observer(function ({ model }) {
10
- return (React.createElement(BlockMsg, { message: `${model.error}`, severity: "error", action: React.createElement(React.Fragment, null,
11
- React.createElement(Tooltip, { title: "Reload track" },
12
- React.createElement(IconButton, { "data-testid": "reload_button", onClick: () => {
13
- model.reload();
14
- } },
15
- React.createElement(RefreshIcon, null))),
16
- React.createElement(Tooltip, { title: "Show stack trace" },
17
- React.createElement(IconButton, { onClick: () => {
18
- getSession(model).queueDialog(onClose => [
19
- ErrorMessageStackTraceDialog,
20
- { onClose, error: model.error },
21
- ]);
22
- } },
23
- React.createElement(ReportIcon, null)))) }));
10
+ return (_jsx(BlockMsg, { message: `${model.error}`, severity: "error", action: _jsxs(_Fragment, { children: [_jsx(Tooltip, { title: "Reload track", children: _jsx(IconButton, { "data-testid": "reload_button", onClick: () => {
11
+ model.reload();
12
+ }, children: _jsx(RefreshIcon, {}) }) }), _jsx(Tooltip, { title: "Show stack trace", children: _jsx(IconButton, { onClick: () => {
13
+ getSession(model).queueDialog(onClose => [
14
+ ErrorMessageStackTraceDialog,
15
+ { onClose, error: model.error },
16
+ ]);
17
+ }, children: _jsx(ReportIcon, {}) }) })] }) }));
24
18
  });
25
19
  export default BlockError;
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
1
  import type { AlertColor } from '@mui/material';
3
2
  export default function BlockMsg({ message, severity, action, }: {
4
3
  message: string;
5
4
  severity?: AlertColor;
6
5
  action?: React.ReactNode;
7
- }): React.JSX.Element;
6
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Alert, Tooltip } from '@mui/material';
3
3
  import { makeStyles } from 'tss-react/mui';
4
4
  const useStyles = makeStyles()({
@@ -9,9 +9,7 @@ const useStyles = makeStyles()({
9
9
  });
10
10
  export default function BlockMsg({ message, severity, action, }) {
11
11
  const { classes } = useStyles();
12
- return (React.createElement(Alert, { onClick: event => {
12
+ return (_jsx(Alert, { onClick: event => {
13
13
  event.stopPropagation();
14
- }, severity: severity, action: action, classes: { message: classes.ellipses } },
15
- React.createElement(Tooltip, { title: message },
16
- React.createElement("div", null, message))));
14
+ }, severity: severity, action: action, classes: { message: classes.ellipses }, children: _jsx(Tooltip, { title: message, children: _jsx("div", { children: message }) }) }));
17
15
  }
@@ -1,10 +1,9 @@
1
- import React from 'react';
2
1
  import type { BaseLinearDisplayModel } from '../models/BaseLinearDisplayModel';
3
2
  declare const RenderedBlocks: ({ model, }: {
4
3
  model: BaseLinearDisplayModel;
5
- }) => React.JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
6
5
  export { RenderedBlocks };
7
6
  declare const LinearBlocks: ({ model, }: {
8
7
  model: BaseLinearDisplayModel;
9
- }) => React.JSX.Element;
8
+ }) => import("react/jsx-runtime").JSX.Element;
10
9
  export default LinearBlocks;
@@ -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 { getContainingView } from '@jbrowse/core/util';
3
3
  import { observer } from 'mobx-react';
4
4
  import { makeStyles } from 'tss-react/mui';
@@ -27,35 +27,32 @@ const useStyles = makeStyles()({
27
27
  const RenderedBlocks = observer(function ({ model, }) {
28
28
  const { classes } = useStyles();
29
29
  const { blockDefinitions, blockState } = model;
30
- return (React.createElement(React.Fragment, null, blockDefinitions.map(block => {
31
- const key = `${model.id}-${block.key}`;
32
- if (block.type === 'ContentBlock') {
33
- const state = blockState.get(block.key);
34
- return (React.createElement(ContentBlockComponent, { block: block, key: key },
35
- (state === null || state === void 0 ? void 0 : state.ReactComponent) ? (React.createElement(state.ReactComponent, { model: state })) : null,
36
- (state === null || state === void 0 ? void 0 : state.maxHeightReached) ? (React.createElement("div", { className: classes.heightOverflowed, style: {
37
- top: state.layout.getTotalHeight() - 16,
38
- pointerEvents: 'none',
39
- height: 16,
40
- } }, "Max height reached")) : null));
41
- }
42
- if (block.type === 'ElidedBlock') {
43
- return React.createElement(ElidedBlockComponent, { key: key, width: block.widthPx });
44
- }
45
- if (block.type === 'InterRegionPaddingBlock') {
46
- return (React.createElement(InterRegionPaddingBlockComponent, { key: key, width: block.widthPx, style: { background: 'none' }, boundary: block.variant === 'boundary' }));
47
- }
48
- throw new Error(`invalid block type ${JSON.stringify(block)}`);
49
- })));
30
+ return (_jsx(_Fragment, { children: blockDefinitions.map(block => {
31
+ const key = `${model.id}-${block.key}`;
32
+ if (block.type === 'ContentBlock') {
33
+ const state = blockState.get(block.key);
34
+ return (_jsxs(ContentBlockComponent, { block: block, children: [(state === null || state === void 0 ? void 0 : state.ReactComponent) ? (_jsx(state.ReactComponent, { model: state })) : null, (state === null || state === void 0 ? void 0 : state.maxHeightReached) ? (_jsx("div", { className: classes.heightOverflowed, style: {
35
+ top: state.layout.getTotalHeight() - 16,
36
+ pointerEvents: 'none',
37
+ height: 16,
38
+ }, children: "Max height reached" })) : null] }, key));
39
+ }
40
+ if (block.type === 'ElidedBlock') {
41
+ return _jsx(ElidedBlockComponent, { width: block.widthPx }, key);
42
+ }
43
+ if (block.type === 'InterRegionPaddingBlock') {
44
+ return (_jsx(InterRegionPaddingBlockComponent, { width: block.widthPx, style: { background: 'none' }, boundary: block.variant === 'boundary' }, key));
45
+ }
46
+ throw new Error(`invalid block type ${JSON.stringify(block)}`);
47
+ }) }));
50
48
  });
51
49
  export { RenderedBlocks };
52
50
  const LinearBlocks = observer(function ({ model, }) {
53
51
  const { classes } = useStyles();
54
52
  const { blockDefinitions } = model;
55
53
  const viewModel = getContainingView(model);
56
- return (React.createElement("div", { className: classes.linearBlocks, style: {
54
+ return (_jsx("div", { className: classes.linearBlocks, style: {
57
55
  left: blockDefinitions.offsetPx - viewModel.offsetPx,
58
- } },
59
- React.createElement(RenderedBlocks, { model: model })));
56
+ }, children: _jsx(RenderedBlocks, { model: model }) }));
60
57
  });
61
58
  export default LinearBlocks;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  declare const ServerSideRenderedBlockContent: ({ model, }: {
3
2
  model: {
4
3
  error?: unknown;
@@ -8,5 +7,5 @@ declare const ServerSideRenderedBlockContent: ({ model, }: {
8
7
  status?: string;
9
8
  reactElement?: React.ReactElement;
10
9
  };
11
- }) => React.JSX.Element | undefined;
10
+ }) => import("react/jsx-runtime").JSX.Element | undefined;
12
11
  export default ServerSideRenderedBlockContent;
@@ -1,4 +1,5 @@
1
- import React, { Suspense, lazy } from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Suspense, isValidElement, lazy } from 'react';
2
3
  import { LoadingEllipses } from '@jbrowse/core/ui';
3
4
  import { observer } from 'mobx-react';
4
5
  import { getParent } from 'mobx-state-tree';
@@ -21,19 +22,17 @@ const LoadingMessage = observer(({ model }) => {
21
22
  const { status: blockStatus } = model;
22
23
  const { message: displayStatus } = getParent(model, 2);
23
24
  const status = displayStatus || blockStatus;
24
- return (React.createElement("div", { className: classes.loading },
25
- React.createElement(LoadingEllipses, { message: status })));
25
+ return (_jsx("div", { className: classes.loading, children: _jsx(LoadingEllipses, { message: status }) }));
26
26
  });
27
27
  const ServerSideRenderedBlockContent = observer(function ({ model, }) {
28
28
  if (model.error) {
29
- return (React.createElement(Suspense, { fallback: null },
30
- React.createElement(BlockError, { model: model })));
29
+ return (_jsx(Suspense, { fallback: null, children: _jsx(BlockError, { model: model }) }));
31
30
  }
32
31
  else if (model.message) {
33
- return React.isValidElement(model.message) ? (model.message) : (React.createElement(BlockMsg, { message: `${model.message}`, severity: "info" }));
32
+ return isValidElement(model.message) ? (model.message) : (_jsx(BlockMsg, { message: `${model.message}`, severity: "info" }));
34
33
  }
35
34
  else if (!model.filled) {
36
- return React.createElement(LoadingMessage, { model: model });
35
+ return _jsx(LoadingMessage, { model: model });
37
36
  }
38
37
  else {
39
38
  return model.reactElement;
@@ -1,11 +1,10 @@
1
- import React from 'react';
2
1
  import type { FeatureDensityStats } from '@jbrowse/core/data_adapters/BaseAdapter';
3
- declare function TooLargeMessage({ model, }: {
2
+ declare const TooLargeMessage: ({ model, }: {
4
3
  model: {
5
4
  regionTooLargeReason: string;
6
5
  featureDensityStats?: FeatureDensityStats;
7
6
  setFeatureDensityStatsLimit: (s?: FeatureDensityStats) => void;
8
7
  reload: () => void;
9
8
  };
10
- }): React.JSX.Element;
9
+ }) => import("react/jsx-runtime").JSX.Element;
11
10
  export default TooLargeMessage;