@jbrowse/plugin-linear-genome-view 3.6.5 → 4.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 (392) hide show
  1. package/esm/BaseLinearDisplay/SVGLegend.d.ts +6 -0
  2. package/esm/BaseLinearDisplay/SVGLegend.js +17 -0
  3. package/esm/BaseLinearDisplay/calculateSvgLegendWidth.d.ts +2 -0
  4. package/esm/BaseLinearDisplay/calculateSvgLegendWidth.js +11 -0
  5. package/esm/BaseLinearDisplay/components/BaseLinearDisplay.d.ts +3 -3
  6. package/esm/BaseLinearDisplay/components/BaseLinearDisplay.js +13 -24
  7. package/esm/BaseLinearDisplay/components/Block.js +2 -2
  8. package/esm/BaseLinearDisplay/components/BlockErrorMessage.js +2 -2
  9. package/esm/BaseLinearDisplay/components/BlockMsg.js +11 -2
  10. package/esm/BaseLinearDisplay/components/CollapseIntronsDialog/CollapseIntronsDialog.d.ts +9 -0
  11. package/esm/BaseLinearDisplay/components/CollapseIntronsDialog/CollapseIntronsDialog.js +42 -0
  12. package/esm/BaseLinearDisplay/components/CollapseIntronsDialog/TranscriptTable.d.ts +11 -0
  13. package/esm/BaseLinearDisplay/components/CollapseIntronsDialog/TranscriptTable.js +40 -0
  14. package/esm/BaseLinearDisplay/components/CollapseIntronsDialog/util.d.ts +19 -0
  15. package/esm/BaseLinearDisplay/components/CollapseIntronsDialog/util.js +45 -0
  16. package/esm/BaseLinearDisplay/components/FloatingLabels.d.ts +5 -0
  17. package/esm/BaseLinearDisplay/components/FloatingLabels.js +89 -0
  18. package/esm/BaseLinearDisplay/components/FloatingLegend.d.ts +8 -0
  19. package/esm/BaseLinearDisplay/components/FloatingLegend.js +43 -0
  20. package/esm/BaseLinearDisplay/components/LinearBlocks.d.ts +1 -5
  21. package/esm/BaseLinearDisplay/components/LinearBlocks.js +5 -42
  22. package/esm/BaseLinearDisplay/components/LoadingOverlay.d.ts +4 -0
  23. package/esm/BaseLinearDisplay/components/LoadingOverlay.js +49 -0
  24. package/esm/BaseLinearDisplay/components/MaxHeightReachedIndicator.d.ts +4 -0
  25. package/esm/BaseLinearDisplay/components/MaxHeightReachedIndicator.js +26 -0
  26. package/esm/BaseLinearDisplay/components/MenuPage.d.ts +8 -0
  27. package/esm/BaseLinearDisplay/components/MenuPage.js +24 -0
  28. package/esm/BaseLinearDisplay/components/NonBlockCanvasDisplayComponent.d.ts +19 -0
  29. package/esm/BaseLinearDisplay/components/NonBlockCanvasDisplayComponent.js +48 -0
  30. package/esm/BaseLinearDisplay/components/RenderedBlocks.d.ts +12 -0
  31. package/esm/BaseLinearDisplay/components/RenderedBlocks.js +22 -0
  32. package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.d.ts +4 -4
  33. package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +5 -8
  34. package/esm/BaseLinearDisplay/components/TooLargeMessage.js +3 -3
  35. package/esm/BaseLinearDisplay/components/Tooltip.d.ts +2 -0
  36. package/esm/BaseLinearDisplay/components/Tooltip.js +10 -7
  37. package/esm/BaseLinearDisplay/components/types.d.ts +1 -0
  38. package/esm/BaseLinearDisplay/components/types.js +1 -0
  39. package/esm/BaseLinearDisplay/components/util.d.ts +21 -0
  40. package/esm/BaseLinearDisplay/components/util.js +116 -0
  41. package/esm/BaseLinearDisplay/index.d.ts +17 -8
  42. package/esm/BaseLinearDisplay/index.js +13 -6
  43. package/esm/BaseLinearDisplay/model.d.ts +1177 -0
  44. package/esm/BaseLinearDisplay/model.js +424 -0
  45. package/esm/BaseLinearDisplay/models/FeatureDensityMixin.d.ts +5 -5
  46. package/esm/BaseLinearDisplay/models/FeatureDensityMixin.js +11 -14
  47. package/esm/BaseLinearDisplay/models/NonBlockCanvasDisplayMixin.d.ts +21 -0
  48. package/esm/BaseLinearDisplay/models/NonBlockCanvasDisplayMixin.js +46 -0
  49. package/esm/BaseLinearDisplay/models/TrackHeightMixin.d.ts +3 -3
  50. package/esm/BaseLinearDisplay/models/TrackHeightMixin.js +2 -3
  51. package/esm/BaseLinearDisplay/models/autorunFeatureDensityStats.d.ts +1 -1
  52. package/esm/BaseLinearDisplay/models/autorunFeatureDensityStats.js +2 -3
  53. package/esm/BaseLinearDisplay/models/calculateLabelPositions.d.ts +24 -0
  54. package/esm/BaseLinearDisplay/models/calculateLabelPositions.js +60 -0
  55. package/esm/BaseLinearDisplay/models/configSchema.d.ts +2 -2
  56. package/esm/BaseLinearDisplay/models/configSchema.js +3 -3
  57. package/esm/BaseLinearDisplay/models/renderSvg.d.ts +3 -7
  58. package/esm/BaseLinearDisplay/models/renderSvg.js +22 -11
  59. package/esm/BaseLinearDisplay/models/serverSideRenderedBlock.d.ts +37 -19
  60. package/esm/BaseLinearDisplay/models/serverSideRenderedBlock.js +151 -135
  61. package/esm/BaseLinearDisplay/models/util.d.ts +4 -4
  62. package/esm/BaseLinearDisplay/models/util.js +16 -13
  63. package/esm/BaseLinearDisplay/renderSvg.d.ts +3 -0
  64. package/esm/BaseLinearDisplay/renderSvg.js +59 -0
  65. package/esm/BaseLinearDisplay/types.d.ts +47 -0
  66. package/esm/BaseLinearDisplay/types.js +3 -0
  67. package/esm/BaseLinearDisplay/util.d.ts +15 -0
  68. package/esm/BaseLinearDisplay/util.js +61 -0
  69. package/esm/BasicTrack/configSchema.d.ts +16 -11
  70. package/esm/BasicTrack/index.js +1 -1
  71. package/esm/FeatureTrack/configSchema.d.ts +16 -11
  72. package/esm/FeatureTrack/index.js +1 -1
  73. package/esm/LaunchLinearGenomeView/index.js +12 -62
  74. package/esm/LinearBareDisplay/configSchema.d.ts +4 -4
  75. package/esm/LinearBareDisplay/configSchema.js +1 -1
  76. package/esm/LinearBareDisplay/index.d.ts +2 -2
  77. package/esm/LinearBareDisplay/index.js +5 -5
  78. package/esm/LinearBareDisplay/model.d.ts +959 -92
  79. package/esm/LinearBareDisplay/model.js +3 -6
  80. package/esm/LinearBasicDisplay/components/LinearBasicDisplayComponent.d.ts +5 -0
  81. package/esm/LinearBasicDisplay/components/LinearBasicDisplayComponent.js +9 -0
  82. package/esm/LinearBasicDisplay/configSchema.d.ts +4 -4
  83. package/esm/LinearBasicDisplay/configSchema.js +1 -1
  84. package/esm/LinearBasicDisplay/index.d.ts +2 -2
  85. package/esm/LinearBasicDisplay/index.js +6 -6
  86. package/esm/LinearBasicDisplay/model.d.ts +1134 -122
  87. package/esm/LinearBasicDisplay/model.js +116 -116
  88. package/esm/{LinearBasicDisplay → LinearFeatureDisplay}/components/AddFiltersDialog.js +2 -2
  89. package/esm/{LinearBasicDisplay → LinearFeatureDisplay}/components/SetMaxHeightDialog.js +3 -3
  90. package/{dist/LinearBasicDisplay → esm/LinearFeatureDisplay}/configSchema.d.ts +4 -4
  91. package/esm/LinearFeatureDisplay/configSchema.js +11 -0
  92. package/esm/LinearFeatureDisplay/index.d.ts +3 -0
  93. package/esm/LinearFeatureDisplay/index.js +2 -0
  94. package/esm/LinearFeatureDisplay/model.d.ts +1415 -0
  95. package/esm/LinearFeatureDisplay/model.js +265 -0
  96. package/esm/LinearGenomeView/SVGErrorBox.d.ts +5 -0
  97. package/esm/LinearGenomeView/SVGErrorBox.js +4 -0
  98. package/esm/LinearGenomeView/afterAttach.d.ts +5 -0
  99. package/esm/LinearGenomeView/afterAttach.js +95 -0
  100. package/esm/LinearGenomeView/components/CenterLine.js +6 -4
  101. package/esm/LinearGenomeView/components/Cytobands.js +4 -4
  102. package/esm/LinearGenomeView/components/ExportSvgDialog.d.ts +1 -1
  103. package/esm/LinearGenomeView/components/ExportSvgDialog.js +5 -1
  104. package/esm/LinearGenomeView/components/GetSequenceDialog.d.ts +8 -2
  105. package/esm/LinearGenomeView/components/GetSequenceDialog.js +13 -16
  106. package/esm/LinearGenomeView/components/Gridlines.js +18 -15
  107. package/esm/LinearGenomeView/components/Header.js +9 -9
  108. package/esm/LinearGenomeView/components/HeaderPanControls.js +2 -2
  109. package/esm/LinearGenomeView/components/HeaderRegionWidth.js +4 -5
  110. package/esm/LinearGenomeView/components/HeaderTrackSelectorButton.js +2 -2
  111. package/esm/LinearGenomeView/components/HeaderZoomControls.js +3 -3
  112. package/esm/LinearGenomeView/components/Highlight.d.ts +1 -1
  113. package/esm/LinearGenomeView/components/Highlight.js +6 -6
  114. package/esm/LinearGenomeView/components/ImportForm.d.ts +1 -1
  115. package/esm/LinearGenomeView/components/ImportForm.js +14 -12
  116. package/esm/LinearGenomeView/components/ImportFormRefNameAutocomplete.js +3 -3
  117. package/esm/LinearGenomeView/components/LinearGenomeView.js +7 -7
  118. package/esm/LinearGenomeView/components/LinearGenomeViewContainer.js +7 -8
  119. package/esm/LinearGenomeView/components/MiniControls.js +6 -6
  120. package/esm/LinearGenomeView/components/NoTracksActiveButton.js +2 -2
  121. package/esm/LinearGenomeView/components/OverviewHighlight.d.ts +1 -1
  122. package/esm/LinearGenomeView/components/OverviewHighlight.js +5 -5
  123. package/esm/LinearGenomeView/components/OverviewRubberband.js +4 -4
  124. package/esm/LinearGenomeView/components/OverviewRubberbandHoverTooltip.js +9 -5
  125. package/esm/LinearGenomeView/components/OverviewScalebar.js +36 -28
  126. package/esm/LinearGenomeView/components/OverviewScalebarPolygon.js +5 -5
  127. package/esm/LinearGenomeView/components/OverviewScalebarTickLabels.js +7 -7
  128. package/esm/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.js +1 -1
  129. package/esm/LinearGenomeView/components/RefNameAutocomplete/index.d.ts +1 -1
  130. package/esm/LinearGenomeView/components/RefNameAutocomplete/index.js +10 -10
  131. package/esm/LinearGenomeView/components/RegionWidthEditorDialog.d.ts +1 -1
  132. package/esm/LinearGenomeView/components/RegionWidthEditorDialog.js +6 -4
  133. package/esm/LinearGenomeView/components/Rubberband.js +9 -7
  134. package/esm/LinearGenomeView/components/RubberbandSpan.js +4 -5
  135. package/esm/LinearGenomeView/components/Scalebar.js +8 -10
  136. package/esm/LinearGenomeView/components/ScalebarCoordinateLabels.d.ts +1 -1
  137. package/esm/LinearGenomeView/components/ScalebarCoordinateLabels.js +50 -17
  138. package/esm/LinearGenomeView/components/ScalebarRefNameLabels.d.ts +1 -1
  139. package/esm/LinearGenomeView/components/ScalebarRefNameLabels.js +13 -11
  140. package/esm/LinearGenomeView/components/SearchBox.d.ts +1 -1
  141. package/esm/LinearGenomeView/components/SearchBox.js +8 -9
  142. package/esm/LinearGenomeView/components/SearchResultsDialog.d.ts +1 -1
  143. package/esm/LinearGenomeView/components/SearchResultsDialog.js +2 -2
  144. package/esm/LinearGenomeView/components/SearchResultsTable.d.ts +1 -1
  145. package/esm/LinearGenomeView/components/SearchResultsTable.js +4 -6
  146. package/esm/LinearGenomeView/components/SequenceSearchDialog.js +6 -6
  147. package/esm/LinearGenomeView/components/TrackContainer.js +32 -20
  148. package/esm/LinearGenomeView/components/TrackLabel.js +10 -11
  149. package/esm/LinearGenomeView/components/TrackLabelContainer.js +7 -8
  150. package/esm/LinearGenomeView/components/TrackLabelDragHandle.js +1 -1
  151. package/esm/LinearGenomeView/components/TrackLabelMenu.js +80 -68
  152. package/esm/LinearGenomeView/components/TrackRenderingContainer.d.ts +1 -2
  153. package/esm/LinearGenomeView/components/TrackRenderingContainer.js +5 -5
  154. package/esm/LinearGenomeView/components/TracksContainer.js +18 -15
  155. package/esm/LinearGenomeView/components/VerticalGuide.js +5 -3
  156. package/esm/LinearGenomeView/components/fetchSequence.d.ts +7 -2
  157. package/esm/LinearGenomeView/components/useRangeSelect.d.ts +27 -2
  158. package/esm/LinearGenomeView/components/useRangeSelect.js +26 -20
  159. package/esm/LinearGenomeView/components/useWheelScroll.js +22 -12
  160. package/esm/LinearGenomeView/components/util.d.ts +2 -13
  161. package/esm/LinearGenomeView/components/util.js +12 -31
  162. package/esm/LinearGenomeView/index.d.ts +1 -1
  163. package/esm/LinearGenomeView/index.js +3 -3
  164. package/esm/LinearGenomeView/keyboardHandler.d.ts +2 -0
  165. package/esm/LinearGenomeView/keyboardHandler.js +29 -0
  166. package/esm/LinearGenomeView/menuItems.d.ts +7 -0
  167. package/esm/LinearGenomeView/menuItems.js +299 -0
  168. package/esm/LinearGenomeView/model.d.ts +92 -89
  169. package/esm/LinearGenomeView/model.js +166 -414
  170. package/esm/LinearGenomeView/svgExportUtil.d.ts +9 -0
  171. package/esm/LinearGenomeView/svgExportUtil.js +6 -0
  172. package/{dist/LinearGenomeView/svgcomponents/SVGRegionSeparators.d.ts → esm/LinearGenomeView/svgcomponents/SVGGridlines.d.ts} +2 -2
  173. package/esm/LinearGenomeView/svgcomponents/SVGGridlines.js +20 -0
  174. package/esm/LinearGenomeView/svgcomponents/SVGHeader.js +5 -5
  175. package/esm/LinearGenomeView/svgcomponents/SVGLinearGenomeView.d.ts +4 -3
  176. package/esm/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js +24 -12
  177. package/esm/LinearGenomeView/svgcomponents/SVGRuler.js +13 -5
  178. package/esm/LinearGenomeView/svgcomponents/SVGTracks.js +2 -2
  179. package/esm/LinearGenomeView/types.d.ts +5 -1
  180. package/esm/LinearGenomeView/util.d.ts +2 -2
  181. package/esm/LinearGenomeView/util.js +8 -6
  182. package/esm/index.d.ts +975 -94
  183. package/esm/index.js +37 -38
  184. package/esm/searchUtils.d.ts +1 -1
  185. package/esm/searchUtils.js +6 -4
  186. package/package.json +28 -33
  187. package/dist/BaseLinearDisplay/components/BaseLinearDisplay.d.ts +0 -8
  188. package/dist/BaseLinearDisplay/components/BaseLinearDisplay.js +0 -72
  189. package/dist/BaseLinearDisplay/components/Block.d.ts +0 -14
  190. package/dist/BaseLinearDisplay/components/Block.js +0 -50
  191. package/dist/BaseLinearDisplay/components/BlockErrorMessage.d.ts +0 -7
  192. package/dist/BaseLinearDisplay/components/BlockErrorMessage.js +0 -27
  193. package/dist/BaseLinearDisplay/components/BlockLoadingMessage.d.ts +0 -6
  194. package/dist/BaseLinearDisplay/components/BlockLoadingMessage.js +0 -26
  195. package/dist/BaseLinearDisplay/components/BlockMsg.d.ts +0 -6
  196. package/dist/BaseLinearDisplay/components/BlockMsg.js +0 -20
  197. package/dist/BaseLinearDisplay/components/LinearBlocks.d.ts +0 -9
  198. package/dist/BaseLinearDisplay/components/LinearBlocks.js +0 -61
  199. package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.d.ts +0 -11
  200. package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +0 -59
  201. package/dist/BaseLinearDisplay/components/TooLargeMessage.d.ts +0 -10
  202. package/dist/BaseLinearDisplay/components/TooLargeMessage.js +0 -25
  203. package/dist/BaseLinearDisplay/components/Tooltip.d.ts +0 -11
  204. package/dist/BaseLinearDisplay/components/Tooltip.js +0 -24
  205. package/dist/BaseLinearDisplay/index.d.ts +0 -8
  206. package/dist/BaseLinearDisplay/index.js +0 -20
  207. package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +0 -311
  208. package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.js +0 -325
  209. package/dist/BaseLinearDisplay/models/FeatureDensityMixin.d.ts +0 -32
  210. package/dist/BaseLinearDisplay/models/FeatureDensityMixin.js +0 -122
  211. package/dist/BaseLinearDisplay/models/TrackHeightMixin.d.ts +0 -11
  212. package/dist/BaseLinearDisplay/models/TrackHeightMixin.js +0 -35
  213. package/dist/BaseLinearDisplay/models/autorunFeatureDensityStats.d.ts +0 -2
  214. package/dist/BaseLinearDisplay/models/autorunFeatureDensityStats.js +0 -33
  215. package/dist/BaseLinearDisplay/models/configSchema.d.ts +0 -29
  216. package/dist/BaseLinearDisplay/models/configSchema.js +0 -35
  217. package/dist/BaseLinearDisplay/models/renderSvg.d.ts +0 -7
  218. package/dist/BaseLinearDisplay/models/renderSvg.js +0 -80
  219. package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.d.ts +0 -78
  220. package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.js +0 -229
  221. package/dist/BaseLinearDisplay/models/util.d.ts +0 -22
  222. package/dist/BaseLinearDisplay/models/util.js +0 -45
  223. package/dist/BasicTrack/configSchema.d.ts +0 -80
  224. package/dist/BasicTrack/configSchema.js +0 -10
  225. package/dist/BasicTrack/index.d.ts +0 -2
  226. package/dist/BasicTrack/index.js +0 -18
  227. package/dist/FeatureTrack/configSchema.d.ts +0 -80
  228. package/dist/FeatureTrack/configSchema.js +0 -10
  229. package/dist/FeatureTrack/index.d.ts +0 -2
  230. package/dist/FeatureTrack/index.js +0 -19
  231. package/dist/LaunchLinearGenomeView/index.d.ts +0 -2
  232. package/dist/LaunchLinearGenomeView/index.js +0 -70
  233. package/dist/LinearBareDisplay/configSchema.d.ts +0 -32
  234. package/dist/LinearBareDisplay/configSchema.js +0 -13
  235. package/dist/LinearBareDisplay/index.d.ts +0 -4
  236. package/dist/LinearBareDisplay/index.js +0 -26
  237. package/dist/LinearBareDisplay/model.d.ts +0 -309
  238. package/dist/LinearBareDisplay/model.js +0 -38
  239. package/dist/LinearBasicDisplay/components/AddFiltersDialog.js +0 -61
  240. package/dist/LinearBasicDisplay/components/SetMaxHeightDialog.js +0 -28
  241. package/dist/LinearBasicDisplay/configSchema.js +0 -13
  242. package/dist/LinearBasicDisplay/index.d.ts +0 -4
  243. package/dist/LinearBasicDisplay/index.js +0 -29
  244. package/dist/LinearBasicDisplay/model.d.ts +0 -346
  245. package/dist/LinearBasicDisplay/model.js +0 -192
  246. package/dist/LinearGenomeView/components/CenterLine.d.ts +0 -6
  247. package/dist/LinearGenomeView/components/CenterLine.js +0 -38
  248. package/dist/LinearGenomeView/components/Cytobands.d.ts +0 -9
  249. package/dist/LinearGenomeView/components/Cytobands.js +0 -89
  250. package/dist/LinearGenomeView/components/ExportSvgDialog.d.ts +0 -7
  251. package/dist/LinearGenomeView/components/ExportSvgDialog.js +0 -57
  252. package/dist/LinearGenomeView/components/GetSequenceDialog.d.ts +0 -6
  253. package/dist/LinearGenomeView/components/GetSequenceDialog.js +0 -109
  254. package/dist/LinearGenomeView/components/Gridlines.d.ts +0 -7
  255. package/dist/LinearGenomeView/components/Gridlines.js +0 -70
  256. package/dist/LinearGenomeView/components/Header.d.ts +0 -5
  257. package/dist/LinearGenomeView/components/Header.js +0 -38
  258. package/dist/LinearGenomeView/components/HeaderPanControls.d.ts +0 -6
  259. package/dist/LinearGenomeView/components/HeaderPanControls.js +0 -27
  260. package/dist/LinearGenomeView/components/HeaderRegionWidth.d.ts +0 -5
  261. package/dist/LinearGenomeView/components/HeaderRegionWidth.js +0 -21
  262. package/dist/LinearGenomeView/components/HeaderTrackSelectorButton.d.ts +0 -5
  263. package/dist/LinearGenomeView/components/HeaderTrackSelectorButton.js +0 -19
  264. package/dist/LinearGenomeView/components/HeaderZoomControls.d.ts +0 -5
  265. package/dist/LinearGenomeView/components/HeaderZoomControls.js +0 -109
  266. package/dist/LinearGenomeView/components/Highlight.d.ts +0 -12
  267. package/dist/LinearGenomeView/components/Highlight.js +0 -95
  268. package/dist/LinearGenomeView/components/ImportForm.d.ts +0 -6
  269. package/dist/LinearGenomeView/components/ImportForm.js +0 -80
  270. package/dist/LinearGenomeView/components/ImportFormRefNameAutocomplete.d.ts +0 -11
  271. package/dist/LinearGenomeView/components/ImportFormRefNameAutocomplete.js +0 -32
  272. package/dist/LinearGenomeView/components/LinearGenomeView.d.ts +0 -5
  273. package/dist/LinearGenomeView/components/LinearGenomeView.js +0 -57
  274. package/dist/LinearGenomeView/components/LinearGenomeViewContainer.d.ts +0 -5
  275. package/dist/LinearGenomeView/components/LinearGenomeViewContainer.js +0 -98
  276. package/dist/LinearGenomeView/components/MiniControls.d.ts +0 -5
  277. package/dist/LinearGenomeView/components/MiniControls.js +0 -36
  278. package/dist/LinearGenomeView/components/NoTracksActiveButton.d.ts +0 -5
  279. package/dist/LinearGenomeView/components/NoTracksActiveButton.js +0 -23
  280. package/dist/LinearGenomeView/components/OverviewHighlight.d.ts +0 -8
  281. package/dist/LinearGenomeView/components/OverviewHighlight.js +0 -50
  282. package/dist/LinearGenomeView/components/OverviewRubberband.d.ts +0 -9
  283. package/dist/LinearGenomeView/components/OverviewRubberband.js +0 -113
  284. package/dist/LinearGenomeView/components/OverviewRubberbandHoverTooltip.d.ts +0 -10
  285. package/dist/LinearGenomeView/components/OverviewRubberbandHoverTooltip.js +0 -28
  286. package/dist/LinearGenomeView/components/OverviewScalebar.d.ts +0 -7
  287. package/dist/LinearGenomeView/components/OverviewScalebar.js +0 -146
  288. package/dist/LinearGenomeView/components/OverviewScalebarPolygon.d.ts +0 -8
  289. package/dist/LinearGenomeView/components/OverviewScalebarPolygon.js +0 -41
  290. package/dist/LinearGenomeView/components/OverviewScalebarTickLabels.d.ts +0 -10
  291. package/dist/LinearGenomeView/components/OverviewScalebarTickLabels.js +0 -37
  292. package/dist/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.d.ts +0 -8
  293. package/dist/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.js +0 -18
  294. package/dist/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.d.ts +0 -3
  295. package/dist/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.js +0 -56
  296. package/dist/LinearGenomeView/components/RefNameAutocomplete/HelpDialog.d.ts +0 -3
  297. package/dist/LinearGenomeView/components/RefNameAutocomplete/HelpDialog.js +0 -11
  298. package/dist/LinearGenomeView/components/RefNameAutocomplete/index.d.ts +0 -16
  299. package/dist/LinearGenomeView/components/RefNameAutocomplete/index.js +0 -127
  300. package/dist/LinearGenomeView/components/RefNameAutocomplete/util.d.ts +0 -10
  301. package/dist/LinearGenomeView/components/RefNameAutocomplete/util.js +0 -53
  302. package/dist/LinearGenomeView/components/RegionWidthEditorDialog.d.ts +0 -6
  303. package/dist/LinearGenomeView/components/RegionWidthEditorDialog.js +0 -30
  304. package/dist/LinearGenomeView/components/Rubberband.d.ts +0 -7
  305. package/dist/LinearGenomeView/components/Rubberband.js +0 -35
  306. package/dist/LinearGenomeView/components/RubberbandSpan.d.ts +0 -15
  307. package/dist/LinearGenomeView/components/RubberbandSpan.js +0 -39
  308. package/dist/LinearGenomeView/components/RubberbandTooltip.d.ts +0 -5
  309. package/dist/LinearGenomeView/components/RubberbandTooltip.js +0 -20
  310. package/dist/LinearGenomeView/components/Scalebar.d.ts +0 -10
  311. package/dist/LinearGenomeView/components/Scalebar.js +0 -40
  312. package/dist/LinearGenomeView/components/ScalebarCoordinateLabels.d.ts +0 -6
  313. package/dist/LinearGenomeView/components/ScalebarCoordinateLabels.js +0 -29
  314. package/dist/LinearGenomeView/components/ScalebarCoordinateTicks.d.ts +0 -6
  315. package/dist/LinearGenomeView/components/ScalebarCoordinateTicks.js +0 -38
  316. package/dist/LinearGenomeView/components/ScalebarRefNameLabels.d.ts +0 -6
  317. package/dist/LinearGenomeView/components/ScalebarRefNameLabels.js +0 -46
  318. package/dist/LinearGenomeView/components/SearchBox.d.ts +0 -6
  319. package/dist/LinearGenomeView/components/SearchBox.js +0 -88
  320. package/dist/LinearGenomeView/components/SearchResultsDialog.d.ts +0 -9
  321. package/dist/LinearGenomeView/components/SearchResultsDialog.js +0 -15
  322. package/dist/LinearGenomeView/components/SearchResultsTable.d.ts +0 -8
  323. package/dist/LinearGenomeView/components/SearchResultsTable.js +0 -74
  324. package/dist/LinearGenomeView/components/SequenceSearchDialog.d.ts +0 -8
  325. package/dist/LinearGenomeView/components/SequenceSearchDialog.js +0 -67
  326. package/dist/LinearGenomeView/components/TrackContainer.d.ts +0 -8
  327. package/dist/LinearGenomeView/components/TrackContainer.js +0 -51
  328. package/dist/LinearGenomeView/components/TrackLabel.d.ts +0 -7
  329. package/dist/LinearGenomeView/components/TrackLabel.js +0 -49
  330. package/dist/LinearGenomeView/components/TrackLabelContainer.d.ts +0 -8
  331. package/dist/LinearGenomeView/components/TrackLabelContainer.js +0 -31
  332. package/dist/LinearGenomeView/components/TrackLabelDragHandle.d.ts +0 -8
  333. package/dist/LinearGenomeView/components/TrackLabelDragHandle.js +0 -32
  334. package/dist/LinearGenomeView/components/TrackLabelMenu.d.ts +0 -5
  335. package/dist/LinearGenomeView/components/TrackLabelMenu.js +0 -93
  336. package/dist/LinearGenomeView/components/TrackRenderingContainer.d.ts +0 -9
  337. package/dist/LinearGenomeView/components/TrackRenderingContainer.js +0 -50
  338. package/dist/LinearGenomeView/components/TracksContainer.d.ts +0 -7
  339. package/dist/LinearGenomeView/components/TracksContainer.js +0 -84
  340. package/dist/LinearGenomeView/components/VerticalGuide.d.ts +0 -7
  341. package/dist/LinearGenomeView/components/VerticalGuide.js +0 -31
  342. package/dist/LinearGenomeView/components/fetchSequence.d.ts +0 -4
  343. package/dist/LinearGenomeView/components/fetchSequence.js +0 -29
  344. package/dist/LinearGenomeView/components/useRangeSelect.d.ts +0 -59
  345. package/dist/LinearGenomeView/components/useRangeSelect.js +0 -131
  346. package/dist/LinearGenomeView/components/useSideScroll.d.ts +0 -6
  347. package/dist/LinearGenomeView/components/useSideScroll.js +0 -60
  348. package/dist/LinearGenomeView/components/useWheelScroll.d.ts +0 -7
  349. package/dist/LinearGenomeView/components/useWheelScroll.js +0 -62
  350. package/dist/LinearGenomeView/components/util.d.ts +0 -25
  351. package/dist/LinearGenomeView/components/util.js +0 -49
  352. package/dist/LinearGenomeView/consts.d.ts +0 -7
  353. package/dist/LinearGenomeView/consts.js +0 -10
  354. package/dist/LinearGenomeView/index.d.ts +0 -3
  355. package/dist/LinearGenomeView/index.js +0 -53
  356. package/dist/LinearGenomeView/model.d.ts +0 -268
  357. package/dist/LinearGenomeView/model.js +0 -1109
  358. package/dist/LinearGenomeView/svgcomponents/SVGBackground.d.ts +0 -5
  359. package/dist/LinearGenomeView/svgcomponents/SVGBackground.js +0 -10
  360. package/dist/LinearGenomeView/svgcomponents/SVGHeader.d.ts +0 -7
  361. package/dist/LinearGenomeView/svgcomponents/SVGHeader.js +0 -47
  362. package/dist/LinearGenomeView/svgcomponents/SVGLinearGenomeView.d.ts +0 -6
  363. package/dist/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js +0 -42
  364. package/dist/LinearGenomeView/svgcomponents/SVGRegionSeparators.js +0 -8
  365. package/dist/LinearGenomeView/svgcomponents/SVGRuler.d.ts +0 -7
  366. package/dist/LinearGenomeView/svgcomponents/SVGRuler.js +0 -39
  367. package/dist/LinearGenomeView/svgcomponents/SVGScalebar.d.ts +0 -7
  368. package/dist/LinearGenomeView/svgcomponents/SVGScalebar.js +0 -17
  369. package/dist/LinearGenomeView/svgcomponents/SVGTrackLabel.d.ts +0 -7
  370. package/dist/LinearGenomeView/svgcomponents/SVGTrackLabel.js +0 -14
  371. package/dist/LinearGenomeView/svgcomponents/SVGTracks.d.ts +0 -21
  372. package/dist/LinearGenomeView/svgcomponents/SVGTracks.js +0 -32
  373. package/dist/LinearGenomeView/svgcomponents/util.d.ts +0 -8
  374. package/dist/LinearGenomeView/svgcomponents/util.js +0 -8
  375. package/dist/LinearGenomeView/types.d.ts +0 -43
  376. package/dist/LinearGenomeView/types.js +0 -2
  377. package/dist/LinearGenomeView/util.d.ts +0 -26
  378. package/dist/LinearGenomeView/util.js +0 -138
  379. package/dist/index.d.ts +0 -353
  380. package/dist/index.js +0 -120
  381. package/dist/searchUtils.d.ts +0 -26
  382. package/dist/searchUtils.js +0 -80
  383. package/esm/BaseLinearDisplay/components/BlockLoadingMessage.d.ts +0 -6
  384. package/esm/BaseLinearDisplay/components/BlockLoadingMessage.js +0 -24
  385. package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +0 -311
  386. package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.js +0 -286
  387. package/esm/LinearBasicDisplay/components/AddFiltersDialog.d.ts +0 -9
  388. package/esm/LinearBasicDisplay/components/SetMaxHeightDialog.d.ts +0 -8
  389. package/esm/LinearGenomeView/components/ScalebarCoordinateTicks.d.ts +0 -6
  390. package/esm/LinearGenomeView/components/ScalebarCoordinateTicks.js +0 -36
  391. /package/{dist/LinearBasicDisplay → esm/LinearFeatureDisplay}/components/AddFiltersDialog.d.ts +0 -0
  392. /package/{dist/LinearBasicDisplay → esm/LinearFeatureDisplay}/components/SetMaxHeightDialog.d.ts +0 -0
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.default = FeatureTrackF;
7
- const pluggableElementTypes_1 = require("@jbrowse/core/pluggableElementTypes");
8
- const configSchema_1 = __importDefault(require("./configSchema"));
9
- function FeatureTrackF(pm) {
10
- pm.addTrackType(() => {
11
- const configSchema = (0, configSchema_1.default)(pm);
12
- return new pluggableElementTypes_1.TrackType({
13
- name: 'FeatureTrack',
14
- displayName: 'Feature track',
15
- configSchema,
16
- stateModel: (0, pluggableElementTypes_1.createBaseTrackModel)(pm, 'FeatureTrack', configSchema),
17
- });
18
- });
19
- }
@@ -1,2 +0,0 @@
1
- import type PluginManager from '@jbrowse/core/PluginManager';
2
- export default function LaunchLinearGenomeViewF(pluginManager: PluginManager): void;
@@ -1,70 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = LaunchLinearGenomeViewF;
4
- const util_1 = require("@jbrowse/core/util");
5
- const searchUtils_1 = require("../searchUtils");
6
- function LaunchLinearGenomeViewF(pluginManager) {
7
- pluginManager.addToExtensionPoint('LaunchView-LinearGenomeView', async ({ session, assembly, loc, tracks = [], tracklist, nav, highlight, }) => {
8
- try {
9
- const { assemblyManager } = session;
10
- const view = session.addView('LinearGenomeView', {});
11
- await (0, util_1.when)(() => !!view.volatileWidth);
12
- if (!assembly) {
13
- throw new Error('No assembly provided when launching linear genome view');
14
- }
15
- const asm = await assemblyManager.waitForAssembly(assembly);
16
- if (!asm) {
17
- throw new Error(`Assembly "${assembly}" not found when launching linear genome view`);
18
- }
19
- if (tracklist) {
20
- view.activateTrackSelector();
21
- }
22
- if (nav !== undefined) {
23
- view.setHideHeader(!nav);
24
- }
25
- if (highlight !== undefined) {
26
- for (const h of highlight) {
27
- const p = (0, util_1.parseLocString)(h, refName => assemblyManager.isValidRefName(refName, assembly));
28
- const { start, end } = p;
29
- if (start !== undefined && end !== undefined) {
30
- view.addToHighlights({
31
- ...p,
32
- start,
33
- end,
34
- assemblyName: assembly,
35
- });
36
- }
37
- }
38
- }
39
- await (0, searchUtils_1.handleSelectedRegion)({
40
- input: loc,
41
- model: view,
42
- assembly: asm,
43
- });
44
- const idsNotFound = [];
45
- for (const track of tracks) {
46
- tryTrack(view, track, idsNotFound);
47
- }
48
- if (idsNotFound.length) {
49
- throw new Error(`Could not resolve identifiers: ${idsNotFound.join(',')}`);
50
- }
51
- }
52
- catch (e) {
53
- session.notifyError(`${e}`, e);
54
- throw e;
55
- }
56
- });
57
- }
58
- function tryTrack(model, trackId, idsNotFound) {
59
- try {
60
- model.showTrack(trackId);
61
- }
62
- catch (e) {
63
- if (/Could not resolve identifier/.exec(`${e}`)) {
64
- idsNotFound.push(trackId);
65
- }
66
- else {
67
- throw e;
68
- }
69
- }
70
- }
@@ -1,32 +0,0 @@
1
- import type PluginManager from '@jbrowse/core/PluginManager';
2
- declare function configSchemaFactory(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
3
- renderer: import("mobx-state-tree").IAnyModelType;
4
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
5
- maxFeatureScreenDensity: {
6
- type: string;
7
- description: string;
8
- defaultValue: number;
9
- };
10
- fetchSizeLimit: {
11
- type: string;
12
- defaultValue: number;
13
- description: string;
14
- };
15
- height: {
16
- type: string;
17
- defaultValue: number;
18
- description: string;
19
- };
20
- mouseover: {
21
- type: string;
22
- description: string;
23
- defaultValue: string;
24
- contextVariable: string[];
25
- };
26
- jexlFilters: {
27
- type: string;
28
- description: string;
29
- defaultValue: never[];
30
- };
31
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>;
32
- export { configSchemaFactory };
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.configSchemaFactory = configSchemaFactory;
4
- const configuration_1 = require("@jbrowse/core/configuration");
5
- const BaseLinearDisplay_1 = require("../BaseLinearDisplay");
6
- function configSchemaFactory(pluginManager) {
7
- return (0, configuration_1.ConfigurationSchema)('LinearBareDisplay', {
8
- renderer: pluginManager.pluggableConfigSchemaType('renderer'),
9
- }, {
10
- baseConfiguration: BaseLinearDisplay_1.baseLinearDisplayConfigSchema,
11
- explicitlyTyped: true,
12
- });
13
- }
@@ -1,4 +0,0 @@
1
- import type PluginManager from '@jbrowse/core/PluginManager';
2
- export default function LinearBareDisplayF(pluginManager: PluginManager): void;
3
- export { configSchemaFactory } from './configSchema';
4
- export { stateModelFactory } from './model';
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.stateModelFactory = exports.configSchemaFactory = void 0;
4
- exports.default = LinearBareDisplayF;
5
- const pluggableElementTypes_1 = require("@jbrowse/core/pluggableElementTypes");
6
- const configSchema_1 = require("./configSchema");
7
- const model_1 = require("./model");
8
- const BaseLinearDisplay_1 = require("../BaseLinearDisplay/");
9
- function LinearBareDisplayF(pluginManager) {
10
- pluginManager.addDisplayType(() => {
11
- const configSchema = (0, configSchema_1.configSchemaFactory)(pluginManager);
12
- return new pluggableElementTypes_1.DisplayType({
13
- name: 'LinearBareDisplay',
14
- configSchema,
15
- displayName: 'Bare feature display',
16
- stateModel: (0, model_1.stateModelFactory)(configSchema),
17
- trackType: 'BasicTrack',
18
- viewType: 'LinearGenomeView',
19
- ReactComponent: BaseLinearDisplay_1.BaseLinearDisplayComponent,
20
- });
21
- });
22
- }
23
- var configSchema_2 = require("./configSchema");
24
- Object.defineProperty(exports, "configSchemaFactory", { enumerable: true, get: function () { return configSchema_2.configSchemaFactory; } });
25
- var model_2 = require("./model");
26
- Object.defineProperty(exports, "stateModelFactory", { enumerable: true, get: function () { return model_2.stateModelFactory; } });
@@ -1,309 +0,0 @@
1
- import type { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
2
- export declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
3
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
4
- type: import("mobx-state-tree").ISimpleType<string>;
5
- rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
6
- } & {
7
- heightPreConfig: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
8
- } & {
9
- userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
10
- userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
11
- } & {
12
- blockState: import("mobx-state-tree").IMapType<import("mobx-state-tree").IModelType<{
13
- key: import("mobx-state-tree").ISimpleType<string>;
14
- region: import("mobx-state-tree").IType<import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region>;
15
- reloadFlag: import("mobx-state-tree").IType<number | undefined, number, number>;
16
- isLeftEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
17
- isRightEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
18
- }, {
19
- stopToken: string | undefined;
20
- filled: boolean;
21
- reactElement: React.ReactElement | undefined;
22
- features: Map<string, import("@jbrowse/core/util").Feature> | undefined;
23
- layout: any;
24
- status: string;
25
- error: unknown;
26
- message: string | undefined;
27
- maxHeightReached: boolean;
28
- ReactComponent: ({ model, }: {
29
- model: {
30
- error?: unknown;
31
- reload: () => void;
32
- message: React.ReactNode;
33
- filled?: boolean;
34
- status?: string;
35
- reactElement?: React.ReactElement;
36
- };
37
- }) => import("react/jsx-runtime").JSX.Element | undefined;
38
- renderProps: any;
39
- } & {
40
- doReload(): void;
41
- afterAttach(): void;
42
- setStatus(message: string): void;
43
- setLoading(newStopToken: string): void;
44
- setMessage(messageText: string): void;
45
- setRendered(props: import("../BaseLinearDisplay/models/serverSideRenderedBlock").RenderedProps | undefined): void;
46
- setError(error: unknown): void;
47
- reload(): void;
48
- beforeDestroy(): void;
49
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
50
- configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
51
- maxFeatureScreenDensity: {
52
- type: string;
53
- description: string;
54
- defaultValue: number;
55
- };
56
- fetchSizeLimit: {
57
- type: string;
58
- defaultValue: number;
59
- description: string;
60
- };
61
- height: {
62
- type: string;
63
- defaultValue: number;
64
- description: string;
65
- };
66
- mouseover: {
67
- type: string;
68
- description: string;
69
- defaultValue: string;
70
- contextVariable: string[];
71
- };
72
- jexlFilters: {
73
- type: string;
74
- description: string;
75
- defaultValue: never[];
76
- };
77
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
78
- } & {
79
- type: import("mobx-state-tree").ISimpleType<"LinearBareDisplay">;
80
- configuration: AnyConfigurationSchemaType;
81
- }, {
82
- rendererTypeName: string;
83
- error: unknown;
84
- message: string | undefined;
85
- } & {
86
- readonly RenderingComponent: React.FC<{
87
- model: {
88
- id: string;
89
- type: string;
90
- rpcDriverName: string | undefined;
91
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
92
- rendererTypeName: string;
93
- error: unknown;
94
- message: string | undefined;
95
- } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
96
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
97
- type: import("mobx-state-tree").ISimpleType<string>;
98
- rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
99
- }, {
100
- rendererTypeName: string;
101
- error: unknown;
102
- message: string | undefined;
103
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
104
- onHorizontalScroll?: () => void;
105
- blockState?: Record<string, any>;
106
- }>;
107
- readonly DisplayBlurb: React.FC<{
108
- model: {
109
- id: string;
110
- type: string;
111
- rpcDriverName: string | undefined;
112
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
113
- rendererTypeName: string;
114
- error: unknown;
115
- message: string | undefined;
116
- } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
117
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
118
- type: import("mobx-state-tree").ISimpleType<string>;
119
- rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
120
- }, {
121
- rendererTypeName: string;
122
- error: unknown;
123
- message: string | undefined;
124
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
125
- }> | null;
126
- readonly adapterConfig: any;
127
- readonly parentTrack: any;
128
- renderProps(): any;
129
- readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
130
- readonly DisplayMessageComponent: undefined | React.FC<any>;
131
- trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
132
- readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
133
- regionCannotBeRendered(): null;
134
- } & {
135
- setMessage(arg?: string): void;
136
- setError(error?: unknown): void;
137
- setRpcDriverName(rpcDriverName: string): void;
138
- reload(): void;
139
- } & {
140
- scrollTop: number;
141
- } & {
142
- readonly height: number;
143
- } & {
144
- setScrollTop(scrollTop: number): void;
145
- setHeight(displayHeight: number): number;
146
- resizeHeight(distance: number): number;
147
- } & {
148
- featureDensityStatsP: undefined | Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats>;
149
- featureDensityStats: undefined | import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats;
150
- currStatsBpPerPx: number;
151
- } & {
152
- readonly currentBytesRequested: number;
153
- readonly currentFeatureScreenDensity: number;
154
- readonly maxFeatureScreenDensity: any;
155
- readonly featureDensityStatsReady: boolean;
156
- readonly maxAllowableBytes: number;
157
- } & {
158
- afterAttach(): void;
159
- } & {
160
- setCurrStatsBpPerPx(n: number): void;
161
- setFeatureDensityStatsLimit(stats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats): void;
162
- getFeatureDensityStats(): Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats>;
163
- setFeatureDensityStatsP(arg: any): void;
164
- setFeatureDensityStats(featureDensityStats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats): void;
165
- clearFeatureDensityStats(): void;
166
- } & {
167
- readonly regionTooLarge: boolean;
168
- readonly regionTooLargeReason: string;
169
- } & {
170
- readonly statsReadyAndRegionNotTooLarge: boolean;
171
- regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
172
- regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react/jsx-runtime").JSX.Element | null;
173
- } & {
174
- featureIdUnderMouse: undefined | string;
175
- contextMenuFeature: undefined | import("@jbrowse/core/util").Feature;
176
- } & {
177
- readonly DisplayMessageComponent: undefined | React.FC<any>;
178
- readonly blockType: "staticBlocks" | "dynamicBlocks";
179
- readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
180
- } & {
181
- readonly renderDelay: number;
182
- readonly TooltipComponent: import("@jbrowse/core/util").AnyReactComponentType;
183
- readonly selectedFeatureId: string | undefined;
184
- copyInfoToClipboard(feature: import("@jbrowse/core/util").Feature): void;
185
- } & {
186
- readonly features: import("@jbrowse/core/util/compositeMap").default<string, import("@jbrowse/core/util").Feature>;
187
- readonly featureUnderMouse: import("@jbrowse/core/util").Feature | undefined;
188
- getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
189
- getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
190
- searchFeatureByID(id: string): [number, number, number, number] | undefined;
191
- } & {
192
- addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
193
- deleteBlock(key: string): void;
194
- selectFeature(feature: import("@jbrowse/core/util").Feature): void;
195
- navToFeature(feature: import("@jbrowse/core/util").Feature): void;
196
- clearFeatureSelection(): void;
197
- setFeatureIdUnderMouse(feature?: string): void;
198
- setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature): void;
199
- } & {
200
- reload(): Promise<void>;
201
- } & {
202
- trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
203
- contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
204
- renderProps(): any;
205
- } & {
206
- renderSvg(opts: import("../BaseLinearDisplay").ExportSvgDisplayOptions): Promise<import("react/jsx-runtime").JSX.Element>;
207
- afterAttach(): void;
208
- } & {
209
- readonly rendererConfig: {
210
- [x: string]: any;
211
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
212
- setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
213
- [x: string]: any;
214
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
215
- setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
216
- [x: string]: any;
217
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
218
- } & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
219
- } & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>;
220
- readonly rendererTypeName: any;
221
- } & {
222
- renderProps(): any;
223
- }, {
224
- type: string;
225
- } & Partial<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
226
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
227
- type: import("mobx-state-tree").ISimpleType<string>;
228
- rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
229
- } & {
230
- heightPreConfig: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
231
- } & {
232
- userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
233
- userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
234
- } & {
235
- blockState: import("mobx-state-tree").IMapType<import("mobx-state-tree").IModelType<{
236
- key: import("mobx-state-tree").ISimpleType<string>;
237
- region: import("mobx-state-tree").IType<import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region>;
238
- reloadFlag: import("mobx-state-tree").IType<number | undefined, number, number>;
239
- isLeftEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
240
- isRightEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
241
- }, {
242
- stopToken: string | undefined;
243
- filled: boolean;
244
- reactElement: React.ReactElement | undefined;
245
- features: Map<string, import("@jbrowse/core/util").Feature> | undefined;
246
- layout: any;
247
- status: string;
248
- error: unknown;
249
- message: string | undefined;
250
- maxHeightReached: boolean;
251
- ReactComponent: ({ model, }: {
252
- model: {
253
- error?: unknown;
254
- reload: () => void;
255
- message: React.ReactNode;
256
- filled?: boolean;
257
- status?: string;
258
- reactElement?: React.ReactElement;
259
- };
260
- }) => import("react/jsx-runtime").JSX.Element | undefined;
261
- renderProps: any;
262
- } & {
263
- doReload(): void;
264
- afterAttach(): void;
265
- setStatus(message: string): void;
266
- setLoading(newStopToken: string): void;
267
- setMessage(messageText: string): void;
268
- setRendered(props: import("../BaseLinearDisplay/models/serverSideRenderedBlock").RenderedProps | undefined): void;
269
- setError(error: unknown): void;
270
- reload(): void;
271
- beforeDestroy(): void;
272
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
273
- configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
274
- maxFeatureScreenDensity: {
275
- type: string;
276
- description: string;
277
- defaultValue: number;
278
- };
279
- fetchSizeLimit: {
280
- type: string;
281
- defaultValue: number;
282
- description: string;
283
- };
284
- height: {
285
- type: string;
286
- defaultValue: number;
287
- description: string;
288
- };
289
- mouseover: {
290
- type: string;
291
- description: string;
292
- defaultValue: string;
293
- contextVariable: string[];
294
- };
295
- jexlFilters: {
296
- type: string;
297
- description: string;
298
- defaultValue: never[];
299
- };
300
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
301
- }>> & import("mobx-state-tree/dist/internal").NonEmptyObject & import("mobx-state-tree")._NotCustomized, {
302
- type: string;
303
- id: string;
304
- configuration: import("mobx-state-tree").ModelSnapshotType<Record<string, any>>;
305
- rpcDriverName: string | undefined;
306
- heightPreConfig: number | undefined;
307
- userBpPerPxLimit: number | undefined;
308
- userByteSizeLimit: number | undefined;
309
- } & import("mobx-state-tree")._NotCustomized>;
@@ -1,38 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.stateModelFactory = stateModelFactory;
4
- const configuration_1 = require("@jbrowse/core/configuration");
5
- const util_1 = require("@jbrowse/core/util");
6
- const tracks_1 = require("@jbrowse/core/util/tracks");
7
- const mobx_state_tree_1 = require("mobx-state-tree");
8
- const BaseLinearDisplay_1 = require("../BaseLinearDisplay");
9
- function stateModelFactory(configSchema) {
10
- return mobx_state_tree_1.types
11
- .compose('LinearBareDisplay', BaseLinearDisplay_1.BaseLinearDisplay, mobx_state_tree_1.types.model({
12
- type: mobx_state_tree_1.types.literal('LinearBareDisplay'),
13
- configuration: (0, configuration_1.ConfigurationReference)(configSchema),
14
- }))
15
- .views(self => ({
16
- get rendererConfig() {
17
- const configBlob = (0, configuration_1.getConf)(self, ['renderer']) || {};
18
- const config = configBlob;
19
- return self.rendererType.configSchema.create(config, (0, util_1.getEnv)(self));
20
- },
21
- get rendererTypeName() {
22
- return (0, configuration_1.getConf)(self, ['renderer', 'type']);
23
- },
24
- }))
25
- .views(self => {
26
- const { renderProps: superRenderProps } = self;
27
- return {
28
- renderProps() {
29
- return {
30
- ...superRenderProps(),
31
- ...(0, tracks_1.getParentRenderProps)(self),
32
- rpcDriverName: self.rpcDriverName,
33
- config: self.rendererConfig,
34
- };
35
- },
36
- };
37
- });
38
- }
@@ -1,61 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const jsx_runtime_1 = require("react/jsx-runtime");
4
- const react_1 = require("react");
5
- const ui_1 = require("@jbrowse/core/ui");
6
- const jexlStrings_1 = require("@jbrowse/core/util/jexlStrings");
7
- const material_1 = require("@mui/material");
8
- const mobx_react_1 = require("mobx-react");
9
- const mui_1 = require("tss-react/mui");
10
- const useStyles = (0, mui_1.makeStyles)()({
11
- dialogContent: {
12
- width: '80em',
13
- },
14
- textAreaFont: {
15
- fontFamily: 'Courier New',
16
- },
17
- error: {
18
- color: 'red',
19
- fontSize: '0.8em',
20
- },
21
- });
22
- function checkJexl(code) {
23
- (0, jexlStrings_1.stringToJexlExpression)(code);
24
- }
25
- const AddFiltersDialog = (0, mobx_react_1.observer)(function ({ model, handleClose, }) {
26
- const { classes } = useStyles();
27
- const { activeFilters } = model;
28
- const [data, setData] = (0, react_1.useState)(activeFilters.join('\n'));
29
- const [error, setError] = (0, react_1.useState)();
30
- (0, react_1.useEffect)(() => {
31
- try {
32
- data
33
- .split('\n')
34
- .map(line => line.trim())
35
- .filter(line => !!line)
36
- .map(line => {
37
- checkJexl(line.trim());
38
- });
39
- setError(undefined);
40
- }
41
- catch (e) {
42
- console.error(e);
43
- setError(e);
44
- }
45
- }, [data]);
46
- return ((0, jsx_runtime_1.jsxs)(ui_1.Dialog, { maxWidth: "xl", open: true, onClose: handleClose, title: "Add track filters", children: [(0, jsx_runtime_1.jsxs)(material_1.DialogContent, { children: [(0, jsx_runtime_1.jsxs)("div", { children: ["Add filters, in jexl format, one per line, starting with the string jexl:. Examples:", ' ', (0, jsx_runtime_1.jsxs)("ul", { children: [(0, jsx_runtime_1.jsxs)("li", { children: [(0, jsx_runtime_1.jsx)("code", { children: "jexl:get(feature,'name')=='BRCA1'" }), " - show only feature where the name attribute is BRCA1"] }), (0, jsx_runtime_1.jsxs)("li", { children: [(0, jsx_runtime_1.jsx)("code", { children: "jexl:get(feature,'type')=='gene'" }), " - show only gene type features in a GFF that has many other feature types"] }), (0, jsx_runtime_1.jsxs)("li", { children: [(0, jsx_runtime_1.jsx)("code", { children: "jexl:get(feature,'score') > 400" }), " - show only features that have a score greater than 400"] }), (0, jsx_runtime_1.jsxs)("li", { children: [(0, jsx_runtime_1.jsx)("code", { children: "jexl:get(feature,'end') - get(feature,'start') < 1000000" }), ' ', "- show only features with length less than 1Mbp"] })] })] }), error ? (0, jsx_runtime_1.jsx)("p", { className: classes.error, children: `${error}` }) : null, (0, jsx_runtime_1.jsx)(material_1.TextField, { variant: "outlined", multiline: true, minRows: 5, maxRows: 10, className: classes.dialogContent, fullWidth: true, value: data, onChange: event => {
47
- setData(event.target.value);
48
- }, slotProps: {
49
- input: {
50
- classes: {
51
- input: classes.textAreaFont,
52
- },
53
- },
54
- } })] }), (0, jsx_runtime_1.jsxs)(material_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", color: "primary", type: "submit", autoFocus: true, disabled: !!error, onClick: () => {
55
- model.setJexlFilters(data.split('\n'));
56
- handleClose();
57
- }, children: "Submit" }), (0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", color: "secondary", onClick: () => {
58
- handleClose();
59
- }, children: "Cancel" })] })] }));
60
- });
61
- exports.default = AddFiltersDialog;
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const jsx_runtime_1 = require("react/jsx-runtime");
4
- const react_1 = require("react");
5
- const ui_1 = require("@jbrowse/core/ui");
6
- const material_1 = require("@mui/material");
7
- const mobx_react_1 = require("mobx-react");
8
- const mui_1 = require("tss-react/mui");
9
- const useStyles = (0, mui_1.makeStyles)()({
10
- root: {
11
- width: 500,
12
- },
13
- });
14
- const SetMaxHeightDialog = (0, mobx_react_1.observer)(function ({ model, handleClose, }) {
15
- const { classes } = useStyles();
16
- const { maxHeight = '' } = model;
17
- const [max, setMax] = (0, react_1.useState)(`${maxHeight}`);
18
- const ok = max !== '' && !Number.isNaN(+max);
19
- return ((0, jsx_runtime_1.jsxs)(ui_1.Dialog, { open: true, onClose: handleClose, title: "Set max height", children: [(0, jsx_runtime_1.jsxs)(material_1.DialogContent, { className: classes.root, children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { children: "Set max height for the track. For example, you can increase this if the layout says \"Max height reached\"" }), (0, jsx_runtime_1.jsx)(material_1.TextField, { value: max, onChange: event => {
20
- setMax(event.target.value);
21
- }, placeholder: "Enter max score" }), !ok ? (0, jsx_runtime_1.jsx)("div", { style: { color: 'red' }, children: "Invalid number" }) : null] }), (0, jsx_runtime_1.jsxs)(material_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", color: "primary", type: "submit", autoFocus: true, disabled: !ok, onClick: () => {
22
- model.setMaxHeight(+max);
23
- handleClose();
24
- }, children: "Submit" }), (0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", color: "secondary", onClick: () => {
25
- handleClose();
26
- }, children: "Cancel" })] })] }));
27
- });
28
- exports.default = SetMaxHeightDialog;
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const configuration_1 = require("@jbrowse/core/configuration");
4
- const BaseLinearDisplay_1 = require("../BaseLinearDisplay");
5
- function configSchemaFactory(pluginManager) {
6
- return (0, configuration_1.ConfigurationSchema)('LinearBasicDisplay', {
7
- renderer: pluginManager.pluggableConfigSchemaType('renderer'),
8
- }, {
9
- baseConfiguration: BaseLinearDisplay_1.baseLinearDisplayConfigSchema,
10
- explicitlyTyped: true,
11
- });
12
- }
13
- exports.default = configSchemaFactory;
@@ -1,4 +0,0 @@
1
- import type PluginManager from '@jbrowse/core/PluginManager';
2
- export default function LinearBasicDisplay(pluginManager: PluginManager): void;
3
- export { default as modelFactory } from './model';
4
- export { default as configSchema } from './configSchema';