@jbrowse/plugin-linear-genome-view 3.7.0 → 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 (396) 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 +12 -8
  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 +9 -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 -1
  21. package/esm/BaseLinearDisplay/components/LinearBlocks.js +4 -6
  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 +3 -2
  25. package/esm/BaseLinearDisplay/components/MaxHeightReachedIndicator.js +5 -3
  26. package/esm/BaseLinearDisplay/components/MenuPage.d.ts +2 -2
  27. package/esm/BaseLinearDisplay/components/MenuPage.js +1 -1
  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 +4 -1
  31. package/esm/BaseLinearDisplay/components/RenderedBlocks.js +4 -4
  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 +1 -0
  36. package/esm/BaseLinearDisplay/components/Tooltip.js +6 -6
  37. package/esm/BaseLinearDisplay/components/util.d.ts +21 -0
  38. package/esm/BaseLinearDisplay/components/util.js +116 -0
  39. package/esm/BaseLinearDisplay/index.d.ts +17 -8
  40. package/esm/BaseLinearDisplay/index.js +13 -6
  41. package/esm/BaseLinearDisplay/model.d.ts +954 -101
  42. package/esm/BaseLinearDisplay/model.js +211 -88
  43. package/esm/BaseLinearDisplay/models/FeatureDensityMixin.d.ts +5 -5
  44. package/esm/BaseLinearDisplay/models/FeatureDensityMixin.js +11 -14
  45. package/esm/BaseLinearDisplay/models/NonBlockCanvasDisplayMixin.d.ts +21 -0
  46. package/esm/BaseLinearDisplay/models/NonBlockCanvasDisplayMixin.js +46 -0
  47. package/esm/BaseLinearDisplay/models/TrackHeightMixin.d.ts +3 -3
  48. package/esm/BaseLinearDisplay/models/TrackHeightMixin.js +2 -3
  49. package/esm/BaseLinearDisplay/models/autorunFeatureDensityStats.d.ts +1 -1
  50. package/esm/BaseLinearDisplay/models/autorunFeatureDensityStats.js +2 -3
  51. package/esm/BaseLinearDisplay/models/calculateLabelPositions.d.ts +24 -0
  52. package/esm/BaseLinearDisplay/models/calculateLabelPositions.js +60 -0
  53. package/esm/BaseLinearDisplay/models/configSchema.d.ts +2 -2
  54. package/esm/BaseLinearDisplay/models/configSchema.js +2 -2
  55. package/esm/BaseLinearDisplay/models/renderSvg.d.ts +3 -7
  56. package/esm/BaseLinearDisplay/models/renderSvg.js +22 -11
  57. package/esm/BaseLinearDisplay/models/serverSideRenderedBlock.d.ts +37 -19
  58. package/esm/BaseLinearDisplay/models/serverSideRenderedBlock.js +151 -135
  59. package/esm/BaseLinearDisplay/models/util.d.ts +4 -4
  60. package/esm/BaseLinearDisplay/models/util.js +16 -13
  61. package/esm/BaseLinearDisplay/renderSvg.d.ts +3 -0
  62. package/esm/BaseLinearDisplay/renderSvg.js +59 -0
  63. package/esm/BaseLinearDisplay/types.d.ts +47 -0
  64. package/esm/BaseLinearDisplay/types.js +3 -0
  65. package/esm/BaseLinearDisplay/util.d.ts +15 -0
  66. package/esm/BaseLinearDisplay/util.js +61 -0
  67. package/esm/BasicTrack/configSchema.d.ts +16 -11
  68. package/esm/BasicTrack/index.js +1 -1
  69. package/esm/FeatureTrack/configSchema.d.ts +16 -11
  70. package/esm/FeatureTrack/index.js +1 -1
  71. package/esm/LaunchLinearGenomeView/index.js +12 -62
  72. package/esm/LinearBareDisplay/configSchema.d.ts +4 -4
  73. package/esm/LinearBareDisplay/configSchema.js +1 -1
  74. package/esm/LinearBareDisplay/index.d.ts +2 -2
  75. package/esm/LinearBareDisplay/index.js +5 -5
  76. package/esm/LinearBareDisplay/model.d.ts +957 -105
  77. package/esm/LinearBareDisplay/model.js +3 -6
  78. package/esm/LinearBasicDisplay/components/LinearBasicDisplayComponent.d.ts +5 -0
  79. package/esm/LinearBasicDisplay/components/LinearBasicDisplayComponent.js +9 -0
  80. package/esm/LinearBasicDisplay/configSchema.d.ts +4 -4
  81. package/esm/LinearBasicDisplay/configSchema.js +1 -1
  82. package/esm/LinearBasicDisplay/index.d.ts +2 -2
  83. package/esm/LinearBasicDisplay/index.js +6 -6
  84. package/esm/LinearBasicDisplay/model.d.ts +1132 -135
  85. package/esm/LinearBasicDisplay/model.js +116 -116
  86. package/esm/{LinearBasicDisplay → LinearFeatureDisplay}/components/AddFiltersDialog.js +2 -2
  87. package/esm/{LinearBasicDisplay → LinearFeatureDisplay}/components/SetMaxHeightDialog.js +3 -3
  88. package/{dist/LinearBasicDisplay → esm/LinearFeatureDisplay}/configSchema.d.ts +4 -4
  89. package/esm/LinearFeatureDisplay/configSchema.js +11 -0
  90. package/esm/LinearFeatureDisplay/index.d.ts +3 -0
  91. package/esm/LinearFeatureDisplay/index.js +2 -0
  92. package/esm/LinearFeatureDisplay/model.d.ts +1415 -0
  93. package/esm/LinearFeatureDisplay/model.js +265 -0
  94. package/esm/LinearGenomeView/SVGErrorBox.d.ts +5 -0
  95. package/esm/LinearGenomeView/SVGErrorBox.js +4 -0
  96. package/esm/LinearGenomeView/afterAttach.d.ts +5 -0
  97. package/esm/LinearGenomeView/afterAttach.js +95 -0
  98. package/esm/LinearGenomeView/components/CenterLine.js +6 -4
  99. package/esm/LinearGenomeView/components/Cytobands.js +4 -4
  100. package/esm/LinearGenomeView/components/ExportSvgDialog.d.ts +1 -1
  101. package/esm/LinearGenomeView/components/ExportSvgDialog.js +5 -1
  102. package/esm/LinearGenomeView/components/GetSequenceDialog.d.ts +8 -2
  103. package/esm/LinearGenomeView/components/GetSequenceDialog.js +13 -16
  104. package/esm/LinearGenomeView/components/Gridlines.js +18 -15
  105. package/esm/LinearGenomeView/components/Header.js +9 -9
  106. package/esm/LinearGenomeView/components/HeaderPanControls.js +2 -2
  107. package/esm/LinearGenomeView/components/HeaderRegionWidth.js +4 -5
  108. package/esm/LinearGenomeView/components/HeaderTrackSelectorButton.js +2 -2
  109. package/esm/LinearGenomeView/components/HeaderZoomControls.js +3 -3
  110. package/esm/LinearGenomeView/components/Highlight.d.ts +1 -1
  111. package/esm/LinearGenomeView/components/Highlight.js +6 -6
  112. package/esm/LinearGenomeView/components/ImportForm.d.ts +1 -1
  113. package/esm/LinearGenomeView/components/ImportForm.js +14 -12
  114. package/esm/LinearGenomeView/components/ImportFormRefNameAutocomplete.js +3 -3
  115. package/esm/LinearGenomeView/components/LinearGenomeView.js +7 -7
  116. package/esm/LinearGenomeView/components/LinearGenomeViewContainer.js +7 -8
  117. package/esm/LinearGenomeView/components/MiniControls.js +6 -6
  118. package/esm/LinearGenomeView/components/NoTracksActiveButton.js +2 -2
  119. package/esm/LinearGenomeView/components/OverviewHighlight.d.ts +1 -1
  120. package/esm/LinearGenomeView/components/OverviewHighlight.js +5 -5
  121. package/esm/LinearGenomeView/components/OverviewRubberband.js +4 -4
  122. package/esm/LinearGenomeView/components/OverviewRubberbandHoverTooltip.js +9 -5
  123. package/esm/LinearGenomeView/components/OverviewScalebar.js +36 -28
  124. package/esm/LinearGenomeView/components/OverviewScalebarPolygon.js +5 -5
  125. package/esm/LinearGenomeView/components/OverviewScalebarTickLabels.js +7 -7
  126. package/esm/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.js +1 -1
  127. package/esm/LinearGenomeView/components/RefNameAutocomplete/index.d.ts +1 -1
  128. package/esm/LinearGenomeView/components/RefNameAutocomplete/index.js +10 -10
  129. package/esm/LinearGenomeView/components/RegionWidthEditorDialog.d.ts +1 -1
  130. package/esm/LinearGenomeView/components/RegionWidthEditorDialog.js +6 -4
  131. package/esm/LinearGenomeView/components/Rubberband.js +9 -7
  132. package/esm/LinearGenomeView/components/RubberbandSpan.js +4 -5
  133. package/esm/LinearGenomeView/components/Scalebar.js +8 -10
  134. package/esm/LinearGenomeView/components/ScalebarCoordinateLabels.d.ts +1 -1
  135. package/esm/LinearGenomeView/components/ScalebarCoordinateLabels.js +50 -17
  136. package/esm/LinearGenomeView/components/ScalebarRefNameLabels.d.ts +1 -1
  137. package/esm/LinearGenomeView/components/ScalebarRefNameLabels.js +13 -11
  138. package/esm/LinearGenomeView/components/SearchBox.d.ts +1 -1
  139. package/esm/LinearGenomeView/components/SearchBox.js +8 -9
  140. package/esm/LinearGenomeView/components/SearchResultsDialog.d.ts +1 -1
  141. package/esm/LinearGenomeView/components/SearchResultsDialog.js +2 -2
  142. package/esm/LinearGenomeView/components/SearchResultsTable.d.ts +1 -1
  143. package/esm/LinearGenomeView/components/SearchResultsTable.js +4 -6
  144. package/esm/LinearGenomeView/components/SequenceSearchDialog.js +5 -5
  145. package/esm/LinearGenomeView/components/TrackContainer.js +25 -17
  146. package/esm/LinearGenomeView/components/TrackLabel.js +10 -11
  147. package/esm/LinearGenomeView/components/TrackLabelContainer.js +7 -8
  148. package/esm/LinearGenomeView/components/TrackLabelDragHandle.js +1 -1
  149. package/esm/LinearGenomeView/components/TrackLabelMenu.js +80 -68
  150. package/esm/LinearGenomeView/components/TrackRenderingContainer.d.ts +1 -2
  151. package/esm/LinearGenomeView/components/TrackRenderingContainer.js +5 -5
  152. package/esm/LinearGenomeView/components/TracksContainer.js +18 -15
  153. package/esm/LinearGenomeView/components/VerticalGuide.js +5 -3
  154. package/esm/LinearGenomeView/components/fetchSequence.d.ts +7 -2
  155. package/esm/LinearGenomeView/components/useRangeSelect.d.ts +27 -2
  156. package/esm/LinearGenomeView/components/useRangeSelect.js +19 -9
  157. package/esm/LinearGenomeView/components/useWheelScroll.js +22 -12
  158. package/esm/LinearGenomeView/components/util.d.ts +2 -13
  159. package/esm/LinearGenomeView/components/util.js +12 -31
  160. package/esm/LinearGenomeView/index.d.ts +1 -1
  161. package/esm/LinearGenomeView/index.js +3 -3
  162. package/esm/LinearGenomeView/keyboardHandler.d.ts +2 -0
  163. package/esm/LinearGenomeView/keyboardHandler.js +29 -0
  164. package/esm/LinearGenomeView/menuItems.d.ts +7 -0
  165. package/esm/LinearGenomeView/menuItems.js +299 -0
  166. package/esm/LinearGenomeView/model.d.ts +92 -89
  167. package/esm/LinearGenomeView/model.js +166 -414
  168. package/esm/LinearGenomeView/svgExportUtil.d.ts +9 -0
  169. package/esm/LinearGenomeView/svgExportUtil.js +6 -0
  170. package/{dist/LinearGenomeView/svgcomponents/SVGRegionSeparators.d.ts → esm/LinearGenomeView/svgcomponents/SVGGridlines.d.ts} +2 -2
  171. package/esm/LinearGenomeView/svgcomponents/SVGGridlines.js +20 -0
  172. package/esm/LinearGenomeView/svgcomponents/SVGHeader.js +5 -5
  173. package/esm/LinearGenomeView/svgcomponents/SVGLinearGenomeView.d.ts +4 -3
  174. package/esm/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js +24 -12
  175. package/esm/LinearGenomeView/svgcomponents/SVGRuler.js +13 -5
  176. package/esm/LinearGenomeView/svgcomponents/SVGTracks.js +2 -2
  177. package/esm/LinearGenomeView/types.d.ts +5 -1
  178. package/esm/LinearGenomeView/util.d.ts +2 -2
  179. package/esm/LinearGenomeView/util.js +7 -5
  180. package/esm/index.d.ts +973 -107
  181. package/esm/index.js +37 -38
  182. package/esm/searchUtils.d.ts +1 -1
  183. package/esm/searchUtils.js +6 -4
  184. package/package.json +28 -33
  185. package/dist/BaseLinearDisplay/components/BaseLinearDisplay.d.ts +0 -8
  186. package/dist/BaseLinearDisplay/components/BaseLinearDisplay.js +0 -57
  187. package/dist/BaseLinearDisplay/components/Block.d.ts +0 -14
  188. package/dist/BaseLinearDisplay/components/Block.js +0 -50
  189. package/dist/BaseLinearDisplay/components/BlockErrorMessage.d.ts +0 -7
  190. package/dist/BaseLinearDisplay/components/BlockErrorMessage.js +0 -27
  191. package/dist/BaseLinearDisplay/components/BlockLoadingMessage.d.ts +0 -6
  192. package/dist/BaseLinearDisplay/components/BlockLoadingMessage.js +0 -26
  193. package/dist/BaseLinearDisplay/components/BlockMsg.d.ts +0 -6
  194. package/dist/BaseLinearDisplay/components/BlockMsg.js +0 -22
  195. package/dist/BaseLinearDisplay/components/LinearBlocks.d.ts +0 -5
  196. package/dist/BaseLinearDisplay/components/LinearBlocks.js +0 -28
  197. package/dist/BaseLinearDisplay/components/MaxHeightReachedIndicator.d.ts +0 -3
  198. package/dist/BaseLinearDisplay/components/MaxHeightReachedIndicator.js +0 -27
  199. package/dist/BaseLinearDisplay/components/MenuPage.d.ts +0 -8
  200. package/dist/BaseLinearDisplay/components/MenuPage.js +0 -26
  201. package/dist/BaseLinearDisplay/components/RenderedBlocks.d.ts +0 -9
  202. package/dist/BaseLinearDisplay/components/RenderedBlocks.js +0 -27
  203. package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.d.ts +0 -11
  204. package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +0 -59
  205. package/dist/BaseLinearDisplay/components/TooLargeMessage.d.ts +0 -10
  206. package/dist/BaseLinearDisplay/components/TooLargeMessage.js +0 -25
  207. package/dist/BaseLinearDisplay/components/Tooltip.d.ts +0 -12
  208. package/dist/BaseLinearDisplay/components/Tooltip.js +0 -27
  209. package/dist/BaseLinearDisplay/components/types.d.ts +0 -1
  210. package/dist/BaseLinearDisplay/components/types.js +0 -2
  211. package/dist/BaseLinearDisplay/index.d.ts +0 -8
  212. package/dist/BaseLinearDisplay/index.js +0 -20
  213. package/dist/BaseLinearDisplay/model.d.ts +0 -324
  214. package/dist/BaseLinearDisplay/model.js +0 -340
  215. package/dist/BaseLinearDisplay/models/FeatureDensityMixin.d.ts +0 -32
  216. package/dist/BaseLinearDisplay/models/FeatureDensityMixin.js +0 -122
  217. package/dist/BaseLinearDisplay/models/TrackHeightMixin.d.ts +0 -11
  218. package/dist/BaseLinearDisplay/models/TrackHeightMixin.js +0 -35
  219. package/dist/BaseLinearDisplay/models/autorunFeatureDensityStats.d.ts +0 -2
  220. package/dist/BaseLinearDisplay/models/autorunFeatureDensityStats.js +0 -33
  221. package/dist/BaseLinearDisplay/models/configSchema.d.ts +0 -29
  222. package/dist/BaseLinearDisplay/models/configSchema.js +0 -35
  223. package/dist/BaseLinearDisplay/models/renderSvg.d.ts +0 -7
  224. package/dist/BaseLinearDisplay/models/renderSvg.js +0 -80
  225. package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.d.ts +0 -78
  226. package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.js +0 -229
  227. package/dist/BaseLinearDisplay/models/util.d.ts +0 -22
  228. package/dist/BaseLinearDisplay/models/util.js +0 -45
  229. package/dist/BasicTrack/configSchema.d.ts +0 -80
  230. package/dist/BasicTrack/configSchema.js +0 -10
  231. package/dist/BasicTrack/index.d.ts +0 -2
  232. package/dist/BasicTrack/index.js +0 -18
  233. package/dist/FeatureTrack/configSchema.d.ts +0 -80
  234. package/dist/FeatureTrack/configSchema.js +0 -10
  235. package/dist/FeatureTrack/index.d.ts +0 -2
  236. package/dist/FeatureTrack/index.js +0 -19
  237. package/dist/LaunchLinearGenomeView/index.d.ts +0 -2
  238. package/dist/LaunchLinearGenomeView/index.js +0 -70
  239. package/dist/LinearBareDisplay/configSchema.d.ts +0 -32
  240. package/dist/LinearBareDisplay/configSchema.js +0 -13
  241. package/dist/LinearBareDisplay/index.d.ts +0 -4
  242. package/dist/LinearBareDisplay/index.js +0 -26
  243. package/dist/LinearBareDisplay/model.d.ts +0 -324
  244. package/dist/LinearBareDisplay/model.js +0 -38
  245. package/dist/LinearBasicDisplay/components/AddFiltersDialog.js +0 -61
  246. package/dist/LinearBasicDisplay/components/SetMaxHeightDialog.js +0 -28
  247. package/dist/LinearBasicDisplay/configSchema.js +0 -13
  248. package/dist/LinearBasicDisplay/index.d.ts +0 -4
  249. package/dist/LinearBasicDisplay/index.js +0 -29
  250. package/dist/LinearBasicDisplay/model.d.ts +0 -361
  251. package/dist/LinearBasicDisplay/model.js +0 -192
  252. package/dist/LinearGenomeView/components/CenterLine.d.ts +0 -6
  253. package/dist/LinearGenomeView/components/CenterLine.js +0 -38
  254. package/dist/LinearGenomeView/components/Cytobands.d.ts +0 -9
  255. package/dist/LinearGenomeView/components/Cytobands.js +0 -89
  256. package/dist/LinearGenomeView/components/ExportSvgDialog.d.ts +0 -7
  257. package/dist/LinearGenomeView/components/ExportSvgDialog.js +0 -57
  258. package/dist/LinearGenomeView/components/GetSequenceDialog.d.ts +0 -6
  259. package/dist/LinearGenomeView/components/GetSequenceDialog.js +0 -109
  260. package/dist/LinearGenomeView/components/Gridlines.d.ts +0 -7
  261. package/dist/LinearGenomeView/components/Gridlines.js +0 -70
  262. package/dist/LinearGenomeView/components/Header.d.ts +0 -5
  263. package/dist/LinearGenomeView/components/Header.js +0 -38
  264. package/dist/LinearGenomeView/components/HeaderPanControls.d.ts +0 -6
  265. package/dist/LinearGenomeView/components/HeaderPanControls.js +0 -27
  266. package/dist/LinearGenomeView/components/HeaderRegionWidth.d.ts +0 -5
  267. package/dist/LinearGenomeView/components/HeaderRegionWidth.js +0 -21
  268. package/dist/LinearGenomeView/components/HeaderTrackSelectorButton.d.ts +0 -5
  269. package/dist/LinearGenomeView/components/HeaderTrackSelectorButton.js +0 -19
  270. package/dist/LinearGenomeView/components/HeaderZoomControls.d.ts +0 -5
  271. package/dist/LinearGenomeView/components/HeaderZoomControls.js +0 -109
  272. package/dist/LinearGenomeView/components/Highlight.d.ts +0 -12
  273. package/dist/LinearGenomeView/components/Highlight.js +0 -95
  274. package/dist/LinearGenomeView/components/ImportForm.d.ts +0 -6
  275. package/dist/LinearGenomeView/components/ImportForm.js +0 -80
  276. package/dist/LinearGenomeView/components/ImportFormRefNameAutocomplete.d.ts +0 -11
  277. package/dist/LinearGenomeView/components/ImportFormRefNameAutocomplete.js +0 -32
  278. package/dist/LinearGenomeView/components/LinearGenomeView.d.ts +0 -5
  279. package/dist/LinearGenomeView/components/LinearGenomeView.js +0 -57
  280. package/dist/LinearGenomeView/components/LinearGenomeViewContainer.d.ts +0 -5
  281. package/dist/LinearGenomeView/components/LinearGenomeViewContainer.js +0 -98
  282. package/dist/LinearGenomeView/components/MiniControls.d.ts +0 -5
  283. package/dist/LinearGenomeView/components/MiniControls.js +0 -36
  284. package/dist/LinearGenomeView/components/NoTracksActiveButton.d.ts +0 -5
  285. package/dist/LinearGenomeView/components/NoTracksActiveButton.js +0 -23
  286. package/dist/LinearGenomeView/components/OverviewHighlight.d.ts +0 -8
  287. package/dist/LinearGenomeView/components/OverviewHighlight.js +0 -50
  288. package/dist/LinearGenomeView/components/OverviewRubberband.d.ts +0 -9
  289. package/dist/LinearGenomeView/components/OverviewRubberband.js +0 -113
  290. package/dist/LinearGenomeView/components/OverviewRubberbandHoverTooltip.d.ts +0 -10
  291. package/dist/LinearGenomeView/components/OverviewRubberbandHoverTooltip.js +0 -28
  292. package/dist/LinearGenomeView/components/OverviewScalebar.d.ts +0 -7
  293. package/dist/LinearGenomeView/components/OverviewScalebar.js +0 -146
  294. package/dist/LinearGenomeView/components/OverviewScalebarPolygon.d.ts +0 -8
  295. package/dist/LinearGenomeView/components/OverviewScalebarPolygon.js +0 -41
  296. package/dist/LinearGenomeView/components/OverviewScalebarTickLabels.d.ts +0 -10
  297. package/dist/LinearGenomeView/components/OverviewScalebarTickLabels.js +0 -37
  298. package/dist/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.d.ts +0 -8
  299. package/dist/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.js +0 -18
  300. package/dist/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.d.ts +0 -3
  301. package/dist/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.js +0 -56
  302. package/dist/LinearGenomeView/components/RefNameAutocomplete/HelpDialog.d.ts +0 -3
  303. package/dist/LinearGenomeView/components/RefNameAutocomplete/HelpDialog.js +0 -11
  304. package/dist/LinearGenomeView/components/RefNameAutocomplete/index.d.ts +0 -16
  305. package/dist/LinearGenomeView/components/RefNameAutocomplete/index.js +0 -127
  306. package/dist/LinearGenomeView/components/RefNameAutocomplete/util.d.ts +0 -10
  307. package/dist/LinearGenomeView/components/RefNameAutocomplete/util.js +0 -53
  308. package/dist/LinearGenomeView/components/RegionWidthEditorDialog.d.ts +0 -6
  309. package/dist/LinearGenomeView/components/RegionWidthEditorDialog.js +0 -30
  310. package/dist/LinearGenomeView/components/Rubberband.d.ts +0 -7
  311. package/dist/LinearGenomeView/components/Rubberband.js +0 -35
  312. package/dist/LinearGenomeView/components/RubberbandSpan.d.ts +0 -15
  313. package/dist/LinearGenomeView/components/RubberbandSpan.js +0 -39
  314. package/dist/LinearGenomeView/components/RubberbandTooltip.d.ts +0 -5
  315. package/dist/LinearGenomeView/components/RubberbandTooltip.js +0 -20
  316. package/dist/LinearGenomeView/components/Scalebar.d.ts +0 -10
  317. package/dist/LinearGenomeView/components/Scalebar.js +0 -40
  318. package/dist/LinearGenomeView/components/ScalebarCoordinateLabels.d.ts +0 -6
  319. package/dist/LinearGenomeView/components/ScalebarCoordinateLabels.js +0 -29
  320. package/dist/LinearGenomeView/components/ScalebarCoordinateTicks.d.ts +0 -6
  321. package/dist/LinearGenomeView/components/ScalebarCoordinateTicks.js +0 -38
  322. package/dist/LinearGenomeView/components/ScalebarRefNameLabels.d.ts +0 -6
  323. package/dist/LinearGenomeView/components/ScalebarRefNameLabels.js +0 -46
  324. package/dist/LinearGenomeView/components/SearchBox.d.ts +0 -6
  325. package/dist/LinearGenomeView/components/SearchBox.js +0 -88
  326. package/dist/LinearGenomeView/components/SearchResultsDialog.d.ts +0 -9
  327. package/dist/LinearGenomeView/components/SearchResultsDialog.js +0 -15
  328. package/dist/LinearGenomeView/components/SearchResultsTable.d.ts +0 -8
  329. package/dist/LinearGenomeView/components/SearchResultsTable.js +0 -74
  330. package/dist/LinearGenomeView/components/SequenceSearchDialog.d.ts +0 -8
  331. package/dist/LinearGenomeView/components/SequenceSearchDialog.js +0 -67
  332. package/dist/LinearGenomeView/components/TrackContainer.d.ts +0 -8
  333. package/dist/LinearGenomeView/components/TrackContainer.js +0 -55
  334. package/dist/LinearGenomeView/components/TrackLabel.d.ts +0 -7
  335. package/dist/LinearGenomeView/components/TrackLabel.js +0 -49
  336. package/dist/LinearGenomeView/components/TrackLabelContainer.d.ts +0 -8
  337. package/dist/LinearGenomeView/components/TrackLabelContainer.js +0 -31
  338. package/dist/LinearGenomeView/components/TrackLabelDragHandle.d.ts +0 -8
  339. package/dist/LinearGenomeView/components/TrackLabelDragHandle.js +0 -32
  340. package/dist/LinearGenomeView/components/TrackLabelMenu.d.ts +0 -5
  341. package/dist/LinearGenomeView/components/TrackLabelMenu.js +0 -93
  342. package/dist/LinearGenomeView/components/TrackRenderingContainer.d.ts +0 -9
  343. package/dist/LinearGenomeView/components/TrackRenderingContainer.js +0 -50
  344. package/dist/LinearGenomeView/components/TracksContainer.d.ts +0 -7
  345. package/dist/LinearGenomeView/components/TracksContainer.js +0 -84
  346. package/dist/LinearGenomeView/components/VerticalGuide.d.ts +0 -7
  347. package/dist/LinearGenomeView/components/VerticalGuide.js +0 -31
  348. package/dist/LinearGenomeView/components/fetchSequence.d.ts +0 -4
  349. package/dist/LinearGenomeView/components/fetchSequence.js +0 -29
  350. package/dist/LinearGenomeView/components/useRangeSelect.d.ts +0 -59
  351. package/dist/LinearGenomeView/components/useRangeSelect.js +0 -127
  352. package/dist/LinearGenomeView/components/useSideScroll.d.ts +0 -6
  353. package/dist/LinearGenomeView/components/useSideScroll.js +0 -60
  354. package/dist/LinearGenomeView/components/useWheelScroll.d.ts +0 -7
  355. package/dist/LinearGenomeView/components/useWheelScroll.js +0 -62
  356. package/dist/LinearGenomeView/components/util.d.ts +0 -25
  357. package/dist/LinearGenomeView/components/util.js +0 -49
  358. package/dist/LinearGenomeView/consts.d.ts +0 -7
  359. package/dist/LinearGenomeView/consts.js +0 -10
  360. package/dist/LinearGenomeView/index.d.ts +0 -3
  361. package/dist/LinearGenomeView/index.js +0 -53
  362. package/dist/LinearGenomeView/model.d.ts +0 -268
  363. package/dist/LinearGenomeView/model.js +0 -1109
  364. package/dist/LinearGenomeView/svgcomponents/SVGBackground.d.ts +0 -5
  365. package/dist/LinearGenomeView/svgcomponents/SVGBackground.js +0 -10
  366. package/dist/LinearGenomeView/svgcomponents/SVGHeader.d.ts +0 -7
  367. package/dist/LinearGenomeView/svgcomponents/SVGHeader.js +0 -47
  368. package/dist/LinearGenomeView/svgcomponents/SVGLinearGenomeView.d.ts +0 -6
  369. package/dist/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js +0 -42
  370. package/dist/LinearGenomeView/svgcomponents/SVGRegionSeparators.js +0 -8
  371. package/dist/LinearGenomeView/svgcomponents/SVGRuler.d.ts +0 -7
  372. package/dist/LinearGenomeView/svgcomponents/SVGRuler.js +0 -39
  373. package/dist/LinearGenomeView/svgcomponents/SVGScalebar.d.ts +0 -7
  374. package/dist/LinearGenomeView/svgcomponents/SVGScalebar.js +0 -17
  375. package/dist/LinearGenomeView/svgcomponents/SVGTrackLabel.d.ts +0 -7
  376. package/dist/LinearGenomeView/svgcomponents/SVGTrackLabel.js +0 -14
  377. package/dist/LinearGenomeView/svgcomponents/SVGTracks.d.ts +0 -21
  378. package/dist/LinearGenomeView/svgcomponents/SVGTracks.js +0 -32
  379. package/dist/LinearGenomeView/svgcomponents/util.d.ts +0 -8
  380. package/dist/LinearGenomeView/svgcomponents/util.js +0 -8
  381. package/dist/LinearGenomeView/types.d.ts +0 -43
  382. package/dist/LinearGenomeView/types.js +0 -2
  383. package/dist/LinearGenomeView/util.d.ts +0 -26
  384. package/dist/LinearGenomeView/util.js +0 -138
  385. package/dist/index.d.ts +0 -368
  386. package/dist/index.js +0 -120
  387. package/dist/searchUtils.d.ts +0 -26
  388. package/dist/searchUtils.js +0 -80
  389. package/esm/BaseLinearDisplay/components/BlockLoadingMessage.d.ts +0 -6
  390. package/esm/BaseLinearDisplay/components/BlockLoadingMessage.js +0 -24
  391. package/esm/LinearBasicDisplay/components/AddFiltersDialog.d.ts +0 -9
  392. package/esm/LinearBasicDisplay/components/SetMaxHeightDialog.d.ts +0 -8
  393. package/esm/LinearGenomeView/components/ScalebarCoordinateTicks.d.ts +0 -6
  394. package/esm/LinearGenomeView/components/ScalebarCoordinateTicks.js +0 -36
  395. /package/{dist/LinearBasicDisplay → esm/LinearFeatureDisplay}/components/AddFiltersDialog.d.ts +0 -0
  396. /package/{dist/LinearBasicDisplay → esm/LinearFeatureDisplay}/components/SetMaxHeightDialog.d.ts +0 -0
@@ -1,29 +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.configSchema = exports.modelFactory = void 0;
7
- exports.default = LinearBasicDisplay;
8
- const pluggableElementTypes_1 = require("@jbrowse/core/pluggableElementTypes");
9
- const BaseLinearDisplay_1 = require("../BaseLinearDisplay");
10
- const configSchema_1 = __importDefault(require("./configSchema"));
11
- const model_1 = __importDefault(require("./model"));
12
- function LinearBasicDisplay(pluginManager) {
13
- pluginManager.addDisplayType(() => {
14
- const config = (0, configSchema_1.default)(pluginManager);
15
- return new pluggableElementTypes_1.DisplayType({
16
- name: 'LinearBasicDisplay',
17
- displayName: 'Basic feature display',
18
- configSchema: config,
19
- stateModel: (0, model_1.default)(config),
20
- trackType: 'FeatureTrack',
21
- viewType: 'LinearGenomeView',
22
- ReactComponent: BaseLinearDisplay_1.BaseLinearDisplayComponent,
23
- });
24
- });
25
- }
26
- var model_2 = require("./model");
27
- Object.defineProperty(exports, "modelFactory", { enumerable: true, get: function () { return __importDefault(model_2).default; } });
28
- var configSchema_2 = require("./configSchema");
29
- Object.defineProperty(exports, "configSchema", { enumerable: true, get: function () { return __importDefault(configSchema_2).default; } });
@@ -1,361 +0,0 @@
1
- import SerializableFilterChain from '@jbrowse/core/pluggableElementTypes/renderers/util/serializableFilterChain';
2
- import type { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
3
- import type { MenuItem } from '@jbrowse/core/ui';
4
- import type { Instance } from 'mobx-state-tree';
5
- declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
6
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
7
- type: import("mobx-state-tree").ISimpleType<string>;
8
- rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
9
- } & {
10
- heightPreConfig: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
11
- } & {
12
- userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
13
- userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
14
- } & {
15
- blockState: import("mobx-state-tree").IMapType<import("mobx-state-tree").IModelType<{
16
- key: import("mobx-state-tree").ISimpleType<string>;
17
- region: import("mobx-state-tree").IType<import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region>;
18
- reloadFlag: import("mobx-state-tree").IType<number | undefined, number, number>;
19
- isLeftEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
20
- isRightEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
21
- }, {
22
- stopToken: string | undefined;
23
- filled: boolean;
24
- reactElement: React.ReactElement | undefined;
25
- features: Map<string, import("@jbrowse/core/util").Feature> | undefined;
26
- layout: any;
27
- status: string;
28
- error: unknown;
29
- message: string | undefined;
30
- maxHeightReached: boolean;
31
- ReactComponent: ({ model, }: {
32
- model: {
33
- error?: unknown;
34
- reload: () => void;
35
- message: React.ReactNode;
36
- filled?: boolean;
37
- status?: string;
38
- reactElement?: React.ReactElement;
39
- };
40
- }) => import("react/jsx-runtime").JSX.Element | undefined;
41
- renderProps: any;
42
- } & {
43
- doReload(): void;
44
- afterAttach(): void;
45
- setStatus(message: string): void;
46
- setLoading(newStopToken: string): void;
47
- setMessage(messageText: string): void;
48
- setRendered(props: import("../BaseLinearDisplay/models/serverSideRenderedBlock").RenderedProps | undefined): void;
49
- setError(error: unknown): void;
50
- reload(): void;
51
- beforeDestroy(): void;
52
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
53
- configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
54
- maxFeatureScreenDensity: {
55
- type: string;
56
- description: string;
57
- defaultValue: number;
58
- };
59
- fetchSizeLimit: {
60
- type: string;
61
- defaultValue: number;
62
- description: string;
63
- };
64
- height: {
65
- type: string;
66
- defaultValue: number;
67
- description: string;
68
- };
69
- mouseover: {
70
- type: string;
71
- description: string;
72
- defaultValue: string;
73
- contextVariable: string[];
74
- };
75
- jexlFilters: {
76
- type: string;
77
- description: string;
78
- defaultValue: never[];
79
- };
80
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
81
- } & {
82
- type: import("mobx-state-tree").ISimpleType<"LinearBasicDisplay">;
83
- trackShowLabels: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
84
- trackShowDescriptions: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
85
- trackDisplayMode: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
86
- trackMaxHeight: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
87
- configuration: AnyConfigurationSchemaType;
88
- jexlFilters: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>>;
89
- }, {
90
- rendererTypeName: string;
91
- error: unknown;
92
- message: string | undefined;
93
- } & {
94
- readonly RenderingComponent: React.FC<{
95
- model: {
96
- id: string;
97
- type: string;
98
- rpcDriverName: string | undefined;
99
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
100
- rendererTypeName: string;
101
- error: unknown;
102
- message: string | undefined;
103
- } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
104
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
105
- type: import("mobx-state-tree").ISimpleType<string>;
106
- rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
107
- }, {
108
- rendererTypeName: string;
109
- error: unknown;
110
- message: string | undefined;
111
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
112
- onHorizontalScroll?: () => void;
113
- blockState?: Record<string, any>;
114
- }>;
115
- readonly DisplayBlurb: React.FC<{
116
- model: {
117
- id: string;
118
- type: string;
119
- rpcDriverName: string | undefined;
120
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
121
- rendererTypeName: string;
122
- error: unknown;
123
- message: string | undefined;
124
- } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
125
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
126
- type: import("mobx-state-tree").ISimpleType<string>;
127
- rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
128
- }, {
129
- rendererTypeName: string;
130
- error: unknown;
131
- message: string | undefined;
132
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
133
- }> | null;
134
- readonly adapterConfig: any;
135
- readonly parentTrack: any;
136
- renderProps(): any;
137
- readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
138
- readonly DisplayMessageComponent: undefined | React.FC<any>;
139
- trackMenuItems(): MenuItem[];
140
- readonly viewMenuActions: MenuItem[];
141
- regionCannotBeRendered(): null;
142
- } & {
143
- setMessage(arg?: string): void;
144
- setError(error?: unknown): void;
145
- setRpcDriverName(rpcDriverName: string): void;
146
- reload(): void;
147
- } & {
148
- scrollTop: number;
149
- } & {
150
- readonly height: number;
151
- } & {
152
- setScrollTop(scrollTop: number): void;
153
- setHeight(displayHeight: number): number;
154
- resizeHeight(distance: number): number;
155
- } & {
156
- featureDensityStatsP: undefined | Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats>;
157
- featureDensityStats: undefined | import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats;
158
- currStatsBpPerPx: number;
159
- } & {
160
- readonly currentBytesRequested: number;
161
- readonly currentFeatureScreenDensity: number;
162
- readonly maxFeatureScreenDensity: any;
163
- readonly featureDensityStatsReady: boolean;
164
- readonly maxAllowableBytes: number;
165
- } & {
166
- afterAttach(): void;
167
- } & {
168
- setCurrStatsBpPerPx(n: number): void;
169
- setFeatureDensityStatsLimit(stats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats): void;
170
- getFeatureDensityStats(): Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats>;
171
- setFeatureDensityStatsP(arg: any): void;
172
- setFeatureDensityStats(featureDensityStats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats): void;
173
- clearFeatureDensityStats(): void;
174
- } & {
175
- readonly regionTooLarge: boolean;
176
- readonly regionTooLargeReason: string;
177
- } & {
178
- readonly statsReadyAndRegionNotTooLarge: boolean;
179
- regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
180
- regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react/jsx-runtime").JSX.Element | null;
181
- } & {
182
- mouseoverExtraInformation: string | undefined;
183
- featureIdUnderMouse: undefined | string;
184
- contextMenuFeature: undefined | import("@jbrowse/core/util").Feature;
185
- } & {
186
- readonly DisplayMessageComponent: undefined | React.FC<any>;
187
- readonly blockType: "staticBlocks" | "dynamicBlocks";
188
- readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
189
- } & {
190
- readonly renderDelay: number;
191
- readonly TooltipComponent: import("@jbrowse/core/util").AnyReactComponentType;
192
- readonly selectedFeatureId: string | undefined;
193
- copyInfoToClipboard(feature: import("@jbrowse/core/util").Feature): void;
194
- } & {
195
- readonly features: import("@jbrowse/core/util/compositeMap").default<string, import("@jbrowse/core/util").Feature>;
196
- readonly featureUnderMouse: import("@jbrowse/core/util").Feature | undefined;
197
- readonly layoutFeatures: import("@jbrowse/core/util/compositeMap").default<string, [number, number, number, number] | [number, number, number, number, {
198
- label?: string;
199
- description?: string;
200
- refName: string;
201
- }]>;
202
- getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
203
- getFeatureByID(blockKey: string, id: string): ([number, number, number, number] | [number, number, number, number, {
204
- label?: string;
205
- description?: string;
206
- refName: string;
207
- }]) | undefined;
208
- searchFeatureByID(id: string): ([number, number, number, number] | [number, number, number, number, {
209
- label?: string;
210
- description?: string;
211
- refName: string;
212
- }]) | undefined;
213
- } & {
214
- addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
215
- deleteBlock(key: string): void;
216
- selectFeature(feature: import("@jbrowse/core/util").Feature): void;
217
- navToFeature(feature: import("@jbrowse/core/util").Feature): void;
218
- clearFeatureSelection(): void;
219
- setFeatureIdUnderMouse(feature?: string): void;
220
- setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature): void;
221
- setMouseoverExtraInformation(extra?: string): void;
222
- } & {
223
- reload(): Promise<void>;
224
- } & {
225
- trackMenuItems(): MenuItem[];
226
- contextMenuItems(): MenuItem[];
227
- renderProps(): any;
228
- } & {
229
- renderSvg(opts: import("../BaseLinearDisplay").ExportSvgDisplayOptions): Promise<import("react/jsx-runtime").JSX.Element>;
230
- afterAttach(): void;
231
- } & {
232
- readonly activeFilters: any;
233
- readonly rendererTypeName: any;
234
- readonly showLabels: any;
235
- readonly showDescriptions: any;
236
- readonly maxHeight: any;
237
- readonly displayMode: any;
238
- } & {
239
- readonly rendererConfig: {
240
- [x: string]: any;
241
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
242
- setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
243
- [x: string]: any;
244
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
245
- setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
246
- [x: string]: any;
247
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
248
- } & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
249
- } & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>;
250
- } & {
251
- setJexlFilters(f?: string[]): void;
252
- toggleShowLabels(): void;
253
- toggleShowDescriptions(): void;
254
- setDisplayMode(val: string): void;
255
- setMaxHeight(val?: number): void;
256
- } & {
257
- renderProps(): {
258
- config: {
259
- [x: string]: any;
260
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
261
- setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
262
- [x: string]: any;
263
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
264
- setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
265
- [x: string]: any;
266
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
267
- } & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
268
- } & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>;
269
- filters: SerializableFilterChain;
270
- };
271
- trackMenuItems(): MenuItem[];
272
- }, {
273
- type: string;
274
- } & Partial<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
275
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
276
- type: import("mobx-state-tree").ISimpleType<string>;
277
- rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
278
- } & {
279
- heightPreConfig: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
280
- } & {
281
- userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
282
- userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
283
- } & {
284
- blockState: import("mobx-state-tree").IMapType<import("mobx-state-tree").IModelType<{
285
- key: import("mobx-state-tree").ISimpleType<string>;
286
- region: import("mobx-state-tree").IType<import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region>;
287
- reloadFlag: import("mobx-state-tree").IType<number | undefined, number, number>;
288
- isLeftEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
289
- isRightEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
290
- }, {
291
- stopToken: string | undefined;
292
- filled: boolean;
293
- reactElement: React.ReactElement | undefined;
294
- features: Map<string, import("@jbrowse/core/util").Feature> | undefined;
295
- layout: any;
296
- status: string;
297
- error: unknown;
298
- message: string | undefined;
299
- maxHeightReached: boolean;
300
- ReactComponent: ({ model, }: {
301
- model: {
302
- error?: unknown;
303
- reload: () => void;
304
- message: React.ReactNode;
305
- filled?: boolean;
306
- status?: string;
307
- reactElement?: React.ReactElement;
308
- };
309
- }) => import("react/jsx-runtime").JSX.Element | undefined;
310
- renderProps: any;
311
- } & {
312
- doReload(): void;
313
- afterAttach(): void;
314
- setStatus(message: string): void;
315
- setLoading(newStopToken: string): void;
316
- setMessage(messageText: string): void;
317
- setRendered(props: import("../BaseLinearDisplay/models/serverSideRenderedBlock").RenderedProps | undefined): void;
318
- setError(error: unknown): void;
319
- reload(): void;
320
- beforeDestroy(): void;
321
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
322
- configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
323
- maxFeatureScreenDensity: {
324
- type: string;
325
- description: string;
326
- defaultValue: number;
327
- };
328
- fetchSizeLimit: {
329
- type: string;
330
- defaultValue: number;
331
- description: string;
332
- };
333
- height: {
334
- type: string;
335
- defaultValue: number;
336
- description: string;
337
- };
338
- mouseover: {
339
- type: string;
340
- description: string;
341
- defaultValue: string;
342
- contextVariable: string[];
343
- };
344
- jexlFilters: {
345
- type: string;
346
- description: string;
347
- defaultValue: never[];
348
- };
349
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
350
- }>> & import("mobx-state-tree/dist/internal").NonEmptyObject & import("mobx-state-tree")._NotCustomized, {
351
- type: string;
352
- id: string;
353
- configuration: import("mobx-state-tree").ModelSnapshotType<Record<string, any>>;
354
- rpcDriverName: string | undefined;
355
- heightPreConfig: number | undefined;
356
- userBpPerPxLimit: number | undefined;
357
- userByteSizeLimit: number | undefined;
358
- } & import("mobx-state-tree")._NotCustomized>;
359
- export type FeatureTrackStateModel = ReturnType<typeof stateModelFactory>;
360
- export type FeatureTrackModel = Instance<FeatureTrackStateModel>;
361
- export default stateModelFactory;
@@ -1,192 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
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
- })();
35
- var __importDefault = (this && this.__importDefault) || function (mod) {
36
- return (mod && mod.__esModule) ? mod : { "default": mod };
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- const react_1 = require("react");
40
- const configuration_1 = require("@jbrowse/core/configuration");
41
- const serializableFilterChain_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/renderers/util/serializableFilterChain"));
42
- const util_1 = require("@jbrowse/core/util");
43
- const Visibility_1 = __importDefault(require("@mui/icons-material/Visibility"));
44
- const mobx_state_tree_1 = require("mobx-state-tree");
45
- const BaseLinearDisplay_1 = require("../BaseLinearDisplay");
46
- const SetMaxHeightDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./components/SetMaxHeightDialog'))));
47
- const AddFiltersDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./components/AddFiltersDialog'))));
48
- function stateModelFactory(configSchema) {
49
- return mobx_state_tree_1.types
50
- .compose('LinearBasicDisplay', BaseLinearDisplay_1.BaseLinearDisplay, mobx_state_tree_1.types.model({
51
- type: mobx_state_tree_1.types.literal('LinearBasicDisplay'),
52
- trackShowLabels: mobx_state_tree_1.types.maybe(mobx_state_tree_1.types.boolean),
53
- trackShowDescriptions: mobx_state_tree_1.types.maybe(mobx_state_tree_1.types.boolean),
54
- trackDisplayMode: mobx_state_tree_1.types.maybe(mobx_state_tree_1.types.string),
55
- trackMaxHeight: mobx_state_tree_1.types.maybe(mobx_state_tree_1.types.number),
56
- configuration: (0, configuration_1.ConfigurationReference)(configSchema),
57
- jexlFilters: mobx_state_tree_1.types.maybe(mobx_state_tree_1.types.array(mobx_state_tree_1.types.string)),
58
- }))
59
- .views(self => ({
60
- get activeFilters() {
61
- var _a;
62
- return ((_a = self.jexlFilters) !== null && _a !== void 0 ? _a : (0, configuration_1.getConf)(self, 'jexlFilters').map((r) => `jexl:${r}`));
63
- },
64
- get rendererTypeName() {
65
- return (0, configuration_1.getConf)(self, ['renderer', 'type']);
66
- },
67
- get showLabels() {
68
- var _a;
69
- return (_a = self.trackShowLabels) !== null && _a !== void 0 ? _a : (0, configuration_1.getConf)(self, ['renderer', 'showLabels']);
70
- },
71
- get showDescriptions() {
72
- var _a;
73
- return ((_a = self.trackShowDescriptions) !== null && _a !== void 0 ? _a : (0, configuration_1.getConf)(self, ['renderer', 'showDescriptions']));
74
- },
75
- get maxHeight() {
76
- var _a;
77
- return (_a = self.trackMaxHeight) !== null && _a !== void 0 ? _a : (0, configuration_1.getConf)(self, ['renderer', 'maxHeight']);
78
- },
79
- get displayMode() {
80
- var _a;
81
- return ((_a = self.trackDisplayMode) !== null && _a !== void 0 ? _a : (0, configuration_1.getConf)(self, ['renderer', 'displayMode']));
82
- },
83
- }))
84
- .views(self => ({
85
- get rendererConfig() {
86
- const configBlob = (0, configuration_1.getConf)(self, ['renderer']) || {};
87
- const config = configBlob;
88
- return self.rendererType.configSchema.create({
89
- ...config,
90
- showLabels: self.showLabels,
91
- showDescriptions: self.showDescriptions,
92
- displayMode: self.displayMode,
93
- maxHeight: self.maxHeight,
94
- }, (0, mobx_state_tree_1.getEnv)(self));
95
- },
96
- }))
97
- .actions(self => ({
98
- setJexlFilters(f) {
99
- self.jexlFilters = (0, mobx_state_tree_1.cast)(f);
100
- },
101
- toggleShowLabels() {
102
- self.trackShowLabels = !self.showLabels;
103
- },
104
- toggleShowDescriptions() {
105
- self.trackShowDescriptions = !self.showDescriptions;
106
- },
107
- setDisplayMode(val) {
108
- self.trackDisplayMode = val;
109
- },
110
- setMaxHeight(val) {
111
- self.trackMaxHeight = val;
112
- },
113
- }))
114
- .views(self => {
115
- const { trackMenuItems: superTrackMenuItems, renderProps: superRenderProps, } = self;
116
- return {
117
- renderProps() {
118
- const superProps = superRenderProps();
119
- return {
120
- ...superProps,
121
- config: self.rendererConfig,
122
- filters: new serializableFilterChain_1.default({
123
- filters: self.activeFilters,
124
- }),
125
- };
126
- },
127
- trackMenuItems() {
128
- return [
129
- ...superTrackMenuItems(),
130
- {
131
- label: 'Show labels',
132
- icon: Visibility_1.default,
133
- type: 'checkbox',
134
- checked: self.showLabels,
135
- onClick: () => {
136
- self.toggleShowLabels();
137
- },
138
- },
139
- {
140
- label: 'Show descriptions',
141
- icon: Visibility_1.default,
142
- type: 'checkbox',
143
- checked: self.showDescriptions,
144
- onClick: () => {
145
- self.toggleShowDescriptions();
146
- },
147
- },
148
- {
149
- label: 'Display mode',
150
- icon: Visibility_1.default,
151
- subMenu: [
152
- 'compact',
153
- 'reducedRepresentation',
154
- 'normal',
155
- 'collapse',
156
- ].map(val => ({
157
- label: val,
158
- onClick: () => {
159
- self.setDisplayMode(val);
160
- },
161
- })),
162
- },
163
- {
164
- label: 'Set max height',
165
- onClick: () => {
166
- (0, util_1.getSession)(self).queueDialog(handleClose => [
167
- SetMaxHeightDialog,
168
- {
169
- model: self,
170
- handleClose,
171
- },
172
- ]);
173
- },
174
- },
175
- {
176
- label: 'Edit filters',
177
- onClick: () => {
178
- (0, util_1.getSession)(self).queueDialog(handleClose => [
179
- AddFiltersDialog,
180
- {
181
- model: self,
182
- handleClose,
183
- },
184
- ]);
185
- },
186
- },
187
- ];
188
- },
189
- };
190
- });
191
- }
192
- exports.default = stateModelFactory;
@@ -1,6 +0,0 @@
1
- import type { LinearGenomeViewModel } from '..';
2
- type LGV = LinearGenomeViewModel;
3
- declare const CenterLine: ({ model }: {
4
- model: LGV;
5
- }) => import("react/jsx-runtime").JSX.Element | null;
6
- export default CenterLine;
@@ -1,38 +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 mobx_react_1 = require("mobx-react");
6
- const mui_1 = require("tss-react/mui");
7
- const useStyles = (0, mui_1.makeStyles)()(theme => ({
8
- centerLineContainer: {
9
- background: 'transparent',
10
- height: '100%',
11
- zIndex: 4,
12
- position: 'absolute',
13
- border: `1px ${theme.palette.action.active} dashed`,
14
- borderTop: 'none',
15
- borderBottom: 'none',
16
- pointerEvents: 'none',
17
- },
18
- centerLineText: {
19
- position: 'absolute',
20
- pointerEvents: 'none',
21
- whiteSpace: 'nowrap',
22
- fontWeight: 'bold',
23
- },
24
- }));
25
- const CenterLine = (0, mobx_react_1.observer)(function ({ model }) {
26
- const { bpPerPx, centerLineInfo, trackHeights, tracks, width } = model;
27
- const ref = (0, react_1.useRef)(null);
28
- const { classes } = useStyles();
29
- const startingPosition = width / 2;
30
- return tracks.length ? ((0, jsx_runtime_1.jsx)("div", { "data-testid": "centerline_container", className: classes.centerLineContainer, role: "presentation", ref: ref, style: {
31
- left: `${startingPosition}px`,
32
- width: Math.max(1 / bpPerPx, 1),
33
- }, children: centerLineInfo && ((0, jsx_runtime_1.jsxs)("div", { "data-testid": "centerline_text", className: classes.centerLineText, role: "presentation", style: {
34
- left: Math.max(1 / bpPerPx, 1) + 5,
35
- top: trackHeights,
36
- }, children: [centerLineInfo.refName, ":", ' ', Math.max(Math.round(centerLineInfo.offset) + 1, 0)] })) })) : null;
37
- });
38
- exports.default = CenterLine;
@@ -1,9 +0,0 @@
1
- import type { Assembly } from '@jbrowse/core/assemblyManager/assembly';
2
- import type { Base1DViewModel } from '@jbrowse/core/util/Base1DViewModel';
3
- import type { ContentBlock } from '@jbrowse/core/util/blockTypes';
4
- declare const Cytobands: ({ overview, block, assembly, }: {
5
- overview: Base1DViewModel;
6
- assembly?: Assembly;
7
- block: ContentBlock;
8
- }) => import("react/jsx-runtime").JSX.Element;
9
- export default Cytobands;