higlass 1.13.5 → 2.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/README.md +48 -54
  2. package/app/globals.d.ts +1 -1
  3. package/app/missing-types.d.ts +4 -1
  4. package/app/scripts/AddTrackDialog.jsx +11 -4
  5. package/app/scripts/AddTrackPositionMenu.jsx +28 -7
  6. package/app/scripts/Annotations1dTrack.js +90 -251
  7. package/app/scripts/Annotations2dTrack.js +12 -7
  8. package/app/scripts/Autocomplete.jsx +13 -28
  9. package/app/scripts/AxisPixi.js +6 -10
  10. package/app/scripts/BarTrack.js +3 -3
  11. package/app/scripts/BedLikeTrack.js +556 -449
  12. package/app/scripts/Button.jsx +1 -1
  13. package/app/scripts/CNVIntervalTrack.js +1 -1
  14. package/app/scripts/CenterTrack.jsx +8 -7
  15. package/app/scripts/Chromosome2DAnnotations.js +1 -1
  16. package/app/scripts/Chromosome2DLabels.js +1 -1
  17. package/app/scripts/ChromosomeGrid.js +49 -38
  18. package/app/scripts/ChromosomeInfo.js +1 -1
  19. package/app/scripts/CombinedTrack.js +3 -1
  20. package/app/scripts/ConfigTrackMenu.jsx +1 -1
  21. package/app/scripts/ConfigViewMenu.jsx +2 -2
  22. package/app/scripts/ContextMenuContainer.jsx +4 -2
  23. package/app/scripts/ContextMenuItem.jsx +14 -2
  24. package/app/scripts/CrossRule.js +1 -1
  25. package/app/scripts/CustomTrackDialog.jsx +2 -2
  26. package/app/scripts/Dialog.jsx +2 -2
  27. package/app/scripts/DragListeningDiv.jsx +1 -1
  28. package/app/scripts/DraggableDiv.jsx +2 -3
  29. package/app/scripts/ExportLinkDialog.jsx +1 -1
  30. package/app/scripts/FilledLine.js +349 -0
  31. package/app/scripts/GalleryTracks.jsx +77 -78
  32. package/app/scripts/GenomePositionSearchBox.jsx +184 -482
  33. package/app/scripts/HeatmapOptions.jsx +4 -2
  34. package/app/scripts/HeatmapTiledPixiTrack.js +23 -32
  35. package/app/scripts/HiGlassComponent.jsx +515 -444
  36. package/app/scripts/HiGlassComponentContext.js +5 -0
  37. package/app/scripts/Horizontal1dHeatmapTrack.js +1 -1
  38. package/app/scripts/Horizontal2DDomainsTrack.js +1 -1
  39. package/app/scripts/HorizontalChromosomeLabels.js +28 -22
  40. package/app/scripts/HorizontalGeneAnnotationsTrack.js +1 -1
  41. package/app/scripts/HorizontalHeatmapTrack.js +2 -2
  42. package/app/scripts/HorizontalMultivecTrack.js +6 -7
  43. package/app/scripts/HorizontalRule.js +1 -2
  44. package/app/scripts/HorizontalTiled1DPixiTrack.js +4 -4
  45. package/app/scripts/HorizontalTiledPlot.jsx +9 -9
  46. package/app/scripts/LeftTrackModifier.js +4 -0
  47. package/app/scripts/ListWrapper.jsx +1 -2
  48. package/app/scripts/MapboxTilesTrack.js +1 -2
  49. package/app/scripts/Modal.jsx +2 -2
  50. package/app/scripts/MoveableTrack.jsx +10 -12
  51. package/app/scripts/NestedContextMenu.jsx +2 -1
  52. package/app/scripts/OSMTileIdsTrack.js +1 -1
  53. package/app/scripts/OverlayTrack.js +4 -4
  54. package/app/scripts/PixiTrack.js +27 -13
  55. package/app/scripts/PlotTypeChooser.jsx +3 -4
  56. package/app/scripts/SearchField.js +5 -5
  57. package/app/scripts/SeriesListItems.jsx +3 -4
  58. package/app/scripts/SeriesListMenu.jsx +95 -53
  59. package/app/scripts/SeriesListSubmenuMixin.jsx +2 -1
  60. package/app/scripts/SketchInlinePicker.jsx +2 -2
  61. package/app/scripts/SortableList.jsx +1 -1
  62. package/app/scripts/Tiled1DPixiTrack.js +4 -1
  63. package/app/scripts/TiledPixiTrack.js +244 -102
  64. package/app/scripts/TiledPlot.jsx +565 -118
  65. package/app/scripts/TilesetFinder.jsx +12 -4
  66. package/app/scripts/Track.js +1 -1
  67. package/app/scripts/TrackArea.jsx +4 -0
  68. package/app/scripts/TrackControl.jsx +2 -2
  69. package/app/scripts/TrackRenderer.jsx +32 -33
  70. package/app/scripts/ValueIntervalTrack.js +1 -1
  71. package/app/scripts/VerticalRule.js +2 -2
  72. package/app/scripts/VerticalTiledPlot.jsx +7 -7
  73. package/app/scripts/ViewConfigEditor.jsx +1 -1
  74. package/app/scripts/ViewContextMenu.jsx +53 -5
  75. package/app/scripts/ViewHeader.jsx +9 -9
  76. package/app/scripts/ViewportTracker2D.js +1 -1
  77. package/app/scripts/api.js +92 -12
  78. package/app/scripts/configs/available-track-types.js +1 -1
  79. package/app/scripts/configs/index.js +6 -1
  80. package/app/scripts/configs/positions-by-datatype.js +2 -2
  81. package/app/scripts/configs/primitives.js +2 -0
  82. package/app/scripts/configs/themes.js +0 -1
  83. package/app/scripts/configs/tracks-info-by-type.js +11 -8
  84. package/app/scripts/configs/tracks-info.js +3 -2
  85. package/app/scripts/d3-context-menu.js +3 -4
  86. package/app/scripts/data-fetchers/DataFetcher.js +35 -36
  87. package/app/scripts/data-fetchers/genbank-fetcher.js +13 -22
  88. package/app/scripts/data-fetchers/local-tile-fetcher.js +10 -8
  89. package/app/scripts/hglib.jsx +62 -71
  90. package/app/scripts/hocs/with-modal.jsx +32 -10
  91. package/app/scripts/hocs/with-pub-sub.js +12 -3
  92. package/app/scripts/hocs/with-theme.jsx +21 -14
  93. package/app/scripts/icons.jsx +3 -2
  94. package/app/scripts/mixwith.js +2 -2
  95. package/app/scripts/options-info.js +49 -11
  96. package/app/scripts/plugins/get-data-fetcher.js +2 -3
  97. package/app/scripts/services/chrom-info.js +32 -4
  98. package/app/scripts/services/element-resize-listener.js +2 -2
  99. package/app/scripts/services/index.js +0 -1
  100. package/app/scripts/services/tile-proxy.js +368 -285
  101. package/app/scripts/services/worker.js +31 -28
  102. package/app/scripts/test-helpers/index.js +2 -1
  103. package/app/scripts/test-helpers/test-helpers.jsx +157 -69
  104. package/app/scripts/types.ts +118 -47
  105. package/app/scripts/utils/LruCache.js +3 -2
  106. package/app/scripts/utils/assert.js +19 -0
  107. package/app/scripts/utils/background-task-scheduler.js +2 -0
  108. package/app/scripts/utils/color-domain-to-rgba-array.js +13 -3
  109. package/app/scripts/utils/copy-text-to-clipboard.js +36 -0
  110. package/app/scripts/utils/decompress.js +33 -0
  111. package/app/scripts/utils/default-tracks.js +46 -0
  112. package/app/scripts/utils/dict-items.js +1 -0
  113. package/app/scripts/utils/dict-keys.js +1 -0
  114. package/app/scripts/utils/dict-values.js +1 -0
  115. package/app/scripts/utils/expand-combined-tracks.js +11 -7
  116. package/app/scripts/utils/fill-in-min-widths.js +47 -21
  117. package/app/scripts/utils/flatten.js +0 -1
  118. package/app/scripts/utils/get-aggregation-function.js +1 -1
  119. package/app/scripts/utils/get-default-track-for-datatype.js +37 -10
  120. package/app/scripts/utils/get-default-tracks-for-datatype.ts +46 -0
  121. package/app/scripts/utils/get-higlass-components.js +27 -3
  122. package/app/scripts/utils/get-track-position-by-uid.js +8 -1
  123. package/app/scripts/utils/get-xylofon.js +12 -9
  124. package/app/scripts/utils/has-parent.js +5 -5
  125. package/app/scripts/utils/hex-string-to-int.js +1 -1
  126. package/app/scripts/utils/index.js +1 -0
  127. package/app/scripts/utils/interval-tree.js +222 -177
  128. package/app/scripts/utils/load-chrom-infos.js +4 -1
  129. package/app/scripts/utils/pixi-text-to-svg.js +5 -9
  130. package/app/scripts/utils/positioned-tracks-to-all-tracks.js +55 -0
  131. package/app/scripts/utils/range-query-2d.js +3 -3
  132. package/app/scripts/utils/reduce.js +12 -5
  133. package/app/scripts/utils/segments-to-rows.js +14 -11
  134. package/app/scripts/utils/svg-line.js +7 -8
  135. package/app/scripts/utils/type-guards.js +16 -7
  136. package/app/scripts/utils/visit-positioned-tracks.js +9 -4
  137. package/app/styles/AddTrackPositionMenu.module.scss +37 -0
  138. package/app/styles/HiGlass.module.scss +3 -1
  139. package/app/styles/d3-context-menu.css +0 -1
  140. package/app/styles/prism.css +1 -0
  141. package/dist/app/schema.json +525 -0
  142. package/dist/app/scripts/AddTrackDialog.d.ts +64 -0
  143. package/dist/app/scripts/AddTrackPositionMenu.d.ts +5 -0
  144. package/dist/app/scripts/Annotations1dTrack.d.ts +15 -0
  145. package/dist/app/scripts/Annotations2dTrack.d.ts +95 -0
  146. package/dist/app/scripts/ArrowheadDomainsTrack.d.ts +36 -0
  147. package/dist/app/scripts/Autocomplete.d.ts +102 -0
  148. package/dist/app/scripts/AxisPixi.d.ts +25 -0
  149. package/dist/app/scripts/BarTrack.d.ts +28 -0
  150. package/dist/app/scripts/BedLikeTrack.d.ts +84 -0
  151. package/dist/app/scripts/Button.d.ts +3 -0
  152. package/dist/app/scripts/CNVIntervalTrack.d.ts +12 -0
  153. package/dist/app/scripts/CenterTiledPlot.d.ts +3 -0
  154. package/dist/app/scripts/CenterTrack.d.ts +92 -0
  155. package/dist/app/scripts/Chromosome2DAnnotations.d.ts +10 -0
  156. package/dist/app/scripts/Chromosome2DLabels.d.ts +13 -0
  157. package/dist/app/scripts/ChromosomeGrid.d.ts +24 -0
  158. package/dist/app/scripts/ChromosomeInfo.d.ts +14 -0
  159. package/dist/app/scripts/CloseTrackMenu.d.ts +10 -0
  160. package/dist/app/scripts/CombinedTrack.d.ts +32 -0
  161. package/dist/app/scripts/ConfigTrackMenu.d.ts +10 -0
  162. package/dist/app/scripts/ConfigViewMenu.d.ts +34 -0
  163. package/dist/app/scripts/ConfigureSeriesMenu.d.ts +3 -0
  164. package/dist/app/scripts/ContextMenuContainer.d.ts +36 -0
  165. package/dist/app/scripts/ContextMenuItem.d.ts +34 -0
  166. package/dist/app/scripts/Cross.d.ts +3 -0
  167. package/dist/app/scripts/CrossRule.d.ts +24 -0
  168. package/dist/app/scripts/CustomTrackDialog.d.ts +17 -0
  169. package/dist/app/scripts/Dialog.d.ts +5 -0
  170. package/dist/app/scripts/DivergentBarTrack.d.ts +4 -0
  171. package/dist/app/scripts/DragListeningDiv.d.ts +32 -0
  172. package/dist/app/scripts/DraggableDiv.d.ts +63 -0
  173. package/dist/app/scripts/ExportLinkDialog.d.ts +21 -0
  174. package/dist/app/scripts/FilledLine.d.ts +5 -0
  175. package/dist/app/scripts/FixedTrack.d.ts +5 -0
  176. package/dist/app/scripts/GalleryTracks.d.ts +20 -0
  177. package/dist/app/scripts/GenomePositionSearchBox.d.ts +95 -0
  178. package/dist/app/scripts/HeatmapOptions.d.ts +30 -0
  179. package/dist/app/scripts/HeatmapTiledPixiTrack.d.ts +184 -0
  180. package/dist/app/scripts/HiGlassComponent.d.ts +762 -0
  181. package/dist/app/scripts/HiGlassComponentContext.d.ts +3 -0
  182. package/dist/app/scripts/HiGlassTrackComponent.d.ts +37 -0
  183. package/dist/app/scripts/Horizontal1dHeatmapTrack.d.ts +9 -0
  184. package/dist/app/scripts/Horizontal2DDomainsTrack.d.ts +21 -0
  185. package/dist/app/scripts/HorizontalChromosomeLabels.d.ts +47 -0
  186. package/dist/app/scripts/HorizontalGeneAnnotationsTrack.d.ts +25 -0
  187. package/dist/app/scripts/HorizontalHeatmapTrack.d.ts +12 -0
  188. package/dist/app/scripts/HorizontalItem.d.ts +3 -0
  189. package/dist/app/scripts/HorizontalLine1DPixiTrack.d.ts +23 -0
  190. package/dist/app/scripts/HorizontalMultivecTrack.d.ts +50 -0
  191. package/dist/app/scripts/HorizontalPoint1DPixiTrack.d.ts +5 -0
  192. package/dist/app/scripts/HorizontalRule.d.ts +22 -0
  193. package/dist/app/scripts/HorizontalTiled1DPixiTrack.d.ts +26 -0
  194. package/dist/app/scripts/HorizontalTiledPlot.d.ts +49 -0
  195. package/dist/app/scripts/HorizontalTrack.d.ts +6 -0
  196. package/dist/app/scripts/Id2DTiledPixiTrack.d.ts +10 -0
  197. package/dist/app/scripts/IdHorizontal1DTiledPixiTrack.d.ts +6 -0
  198. package/dist/app/scripts/IdVertical1DTiledPixiTrack.d.ts +7 -0
  199. package/dist/app/scripts/LeftAxisTrack.d.ts +9 -0
  200. package/dist/app/scripts/LeftTrackModifier.d.ts +29 -0
  201. package/dist/app/scripts/ListWrapper.d.ts +64 -0
  202. package/dist/app/scripts/MapboxTilesTrack.d.ts +9 -0
  203. package/dist/app/scripts/Modal.d.ts +5 -0
  204. package/dist/app/scripts/MoveableTrack.d.ts +18 -0
  205. package/dist/app/scripts/NestedContextMenu.d.ts +7 -0
  206. package/dist/app/scripts/OSMTileIdsTrack.d.ts +5 -0
  207. package/dist/app/scripts/OSMTilesTrack.d.ts +129 -0
  208. package/dist/app/scripts/OverlayTrack.d.ts +13 -0
  209. package/dist/app/scripts/PixiTrack.d.ts +174 -0
  210. package/dist/app/scripts/PlotTypeChooser.d.ts +25 -0
  211. package/dist/app/scripts/PopupMenu.d.ts +28 -0
  212. package/dist/app/scripts/RasterTilesTrack.d.ts +9 -0
  213. package/dist/app/scripts/RuleMixin.d.ts +2 -0
  214. package/dist/app/scripts/SVGTrack.d.ts +15 -0
  215. package/dist/app/scripts/SearchField.d.ts +13 -0
  216. package/dist/app/scripts/SeriesListItems.d.ts +2 -0
  217. package/dist/app/scripts/SeriesListMenu.d.ts +51 -0
  218. package/dist/app/scripts/SeriesListSubmenuMixin.d.ts +2 -0
  219. package/dist/app/scripts/SketchInlinePicker.d.ts +25 -0
  220. package/dist/app/scripts/SortableList.d.ts +22 -0
  221. package/dist/app/scripts/SquareMarkersTrack.d.ts +22 -0
  222. package/dist/app/scripts/Tiled1DPixiTrack.d.ts +60 -0
  223. package/dist/app/scripts/TiledPixiTrack.d.ts +369 -0
  224. package/dist/app/scripts/TiledPlot.d.ts +313 -0
  225. package/dist/app/scripts/TilesetFinder.d.ts +65 -0
  226. package/dist/app/scripts/TopAxisTrack.d.ts +9 -0
  227. package/dist/app/scripts/Track.d.ts +196 -0
  228. package/dist/app/scripts/TrackArea.d.ts +26 -0
  229. package/dist/app/scripts/TrackControl.d.ts +5 -0
  230. package/dist/app/scripts/TrackRenderer.d.ts +724 -0
  231. package/dist/app/scripts/UnknownPixiTrack.d.ts +7 -0
  232. package/dist/app/scripts/ValueIntervalTrack.d.ts +6 -0
  233. package/dist/app/scripts/VerticalItem.d.ts +3 -0
  234. package/dist/app/scripts/VerticalRule.d.ts +21 -0
  235. package/dist/app/scripts/VerticalTiled1DPixiTrack.d.ts +6 -0
  236. package/dist/app/scripts/VerticalTiledPlot.d.ts +50 -0
  237. package/dist/app/scripts/VerticalTrack.d.ts +6 -0
  238. package/dist/app/scripts/ViewConfigEditor.d.ts +53 -0
  239. package/dist/app/scripts/ViewContextMenu.d.ts +17 -0
  240. package/dist/app/scripts/ViewHeader.d.ts +75 -0
  241. package/dist/app/scripts/ViewportTracker2D.d.ts +17 -0
  242. package/dist/app/scripts/ViewportTracker2DPixi.d.ts +11 -0
  243. package/dist/app/scripts/ViewportTrackerHorizontal.d.ts +17 -0
  244. package/dist/app/scripts/ViewportTrackerVertical.d.ts +17 -0
  245. package/dist/app/scripts/api.d.ts +640 -0
  246. package/dist/app/scripts/configs/available-track-types.d.ts +2 -0
  247. package/dist/app/scripts/configs/colormaps.d.ts +2 -0
  248. package/dist/app/scripts/configs/datatype-to-track-type.d.ts +4 -0
  249. package/dist/app/scripts/configs/default-tracks-for-datatype.d.ts +38 -0
  250. package/dist/app/scripts/configs/dense-data-extrema-config.d.ts +2 -0
  251. package/dist/app/scripts/configs/globals.d.ts +5 -0
  252. package/dist/app/scripts/configs/index.d.ts +16 -0
  253. package/dist/app/scripts/configs/positions-by-datatype.d.ts +2 -0
  254. package/dist/app/scripts/configs/primitives.d.ts +20 -0
  255. package/dist/app/scripts/configs/themes.d.ts +3 -0
  256. package/dist/app/scripts/configs/tracks-info-by-type.d.ts +4 -0
  257. package/dist/app/scripts/configs/tracks-info.d.ts +24 -0
  258. package/dist/app/scripts/d3-context-menu.d.ts +2 -0
  259. package/dist/app/scripts/data-fetchers/DataFetcher.d.ts +151 -0
  260. package/dist/app/scripts/data-fetchers/genbank-fetcher.d.ts +86 -0
  261. package/dist/app/scripts/data-fetchers/index.d.ts +3 -0
  262. package/dist/app/scripts/data-fetchers/local-tile-fetcher.d.ts +47 -0
  263. package/dist/app/scripts/gosling-exports.d.ts +17 -0
  264. package/dist/app/scripts/hglib.d.ts +24 -0
  265. package/dist/app/scripts/hocs/with-modal.d.ts +19 -0
  266. package/dist/app/scripts/hocs/with-pub-sub.d.ts +22 -0
  267. package/dist/app/scripts/hocs/with-theme.d.ts +13 -0
  268. package/dist/app/scripts/icons.d.ts +161 -0
  269. package/dist/app/scripts/mixwith.d.ts +27 -0
  270. package/dist/app/scripts/options-info.d.ts +1355 -0
  271. package/dist/app/scripts/plugins/available-for-plugins.d.ts +2338 -0
  272. package/dist/app/scripts/plugins/get-data-fetcher.d.ts +2 -0
  273. package/dist/app/scripts/plugins/index.d.ts +2 -0
  274. package/dist/app/scripts/services/chrom-info.d.ts +10 -0
  275. package/dist/app/scripts/services/dom-event.d.ts +7 -0
  276. package/dist/app/scripts/services/element-resize-listener.d.ts +5 -0
  277. package/dist/app/scripts/services/index.d.ts +5 -0
  278. package/dist/app/scripts/services/tile-proxy.d.ts +180 -0
  279. package/dist/app/scripts/services/worker.d.ts +157 -0
  280. package/dist/app/scripts/symbol.d.ts +13 -0
  281. package/dist/app/scripts/test-helpers/index.d.ts +1 -0
  282. package/dist/app/scripts/test-helpers/test-helpers.d.ts +33 -0
  283. package/dist/app/scripts/track-utils.d.ts +73 -0
  284. package/dist/app/scripts/types.d.ts +199 -0
  285. package/dist/app/scripts/utils/DenseDataExtrema1D.d.ts +88 -0
  286. package/dist/app/scripts/utils/DenseDataExtrema2D.d.ts +97 -0
  287. package/dist/app/scripts/utils/LruCache.d.ts +44 -0
  288. package/dist/app/scripts/utils/abs-to-chr.d.ts +14 -0
  289. package/dist/app/scripts/utils/accessor-transposition.d.ts +14 -0
  290. package/dist/app/scripts/utils/add-arrays.d.ts +18 -0
  291. package/dist/app/scripts/utils/add-class.d.ts +8 -0
  292. package/dist/app/scripts/utils/add-event-listener-once.d.ts +11 -0
  293. package/dist/app/scripts/utils/assert.d.ts +17 -0
  294. package/dist/app/scripts/utils/background-task-scheduler.d.ts +47 -0
  295. package/dist/app/scripts/utils/base64-to-canvas.d.ts +9 -0
  296. package/dist/app/scripts/utils/chr-to-abs.d.ts +10 -0
  297. package/dist/app/scripts/utils/chrom-info-bisector.d.ts +4 -0
  298. package/dist/app/scripts/utils/clone-event.d.ts +12 -0
  299. package/dist/app/scripts/utils/color-domain-to-rgba-array.d.ts +13 -0
  300. package/dist/app/scripts/utils/color-to-hex.d.ts +9 -0
  301. package/dist/app/scripts/utils/color-to-rgba.d.ts +9 -0
  302. package/dist/app/scripts/utils/copy-text-to-clipboard.d.ts +2 -0
  303. package/dist/app/scripts/utils/data-to-genomic-loci.d.ts +11 -0
  304. package/dist/app/scripts/utils/debounce.d.ts +5 -0
  305. package/dist/app/scripts/utils/dec-to-hex-str.d.ts +8 -0
  306. package/dist/app/scripts/utils/decompress.d.ts +27 -0
  307. package/dist/app/scripts/utils/default-tracks.d.ts +3 -0
  308. package/dist/app/scripts/utils/dict-from-tuples.d.ts +11 -0
  309. package/dist/app/scripts/utils/dict-items.d.ts +18 -0
  310. package/dist/app/scripts/utils/dict-keys.d.ts +10 -0
  311. package/dist/app/scripts/utils/dict-values.d.ts +8 -0
  312. package/dist/app/scripts/utils/download.d.ts +7 -0
  313. package/dist/app/scripts/utils/expand-combined-tracks.d.ts +11 -0
  314. package/dist/app/scripts/utils/fake-pub-sub.d.ts +11 -0
  315. package/dist/app/scripts/utils/fill-in-min-widths.d.ts +44 -0
  316. package/dist/app/scripts/utils/flatten.d.ts +9 -0
  317. package/dist/app/scripts/utils/for-each.d.ts +9 -0
  318. package/dist/app/scripts/utils/forward-event.d.ts +7 -0
  319. package/dist/app/scripts/utils/genome-loci-to-pixels.d.ts +9 -0
  320. package/dist/app/scripts/utils/genomic-range-to-chromosome-chunks.d.ts +21 -0
  321. package/dist/app/scripts/utils/get-aggregation-function.d.ts +10 -0
  322. package/dist/app/scripts/utils/get-default-track-for-datatype.d.ts +21 -0
  323. package/dist/app/scripts/utils/get-default-tracks-for-datatype.d.ts +3 -0
  324. package/dist/app/scripts/utils/get-element-dim.d.ts +7 -0
  325. package/dist/app/scripts/utils/get-higlass-components.d.ts +7 -0
  326. package/dist/app/scripts/utils/get-track-by-uid.d.ts +7 -0
  327. package/dist/app/scripts/utils/get-track-conf-from-hgc.d.ts +10 -0
  328. package/dist/app/scripts/utils/get-track-obj-by-id.d.ts +2 -0
  329. package/dist/app/scripts/utils/get-track-position-by-uid.d.ts +13 -0
  330. package/dist/app/scripts/utils/get-xylofon.d.ts +2 -0
  331. package/dist/app/scripts/utils/gradient.d.ts +14 -0
  332. package/dist/app/scripts/utils/has-class.d.ts +8 -0
  333. package/dist/app/scripts/utils/has-parent.d.ts +9 -0
  334. package/dist/app/scripts/utils/hex-string-to-int.d.ts +14 -0
  335. package/dist/app/scripts/utils/index.d.ts +89 -0
  336. package/dist/app/scripts/utils/interval-tree.d.ts +109 -0
  337. package/dist/app/scripts/utils/into-the-void.d.ts +6 -0
  338. package/dist/app/scripts/utils/is-track-or-child-track.d.ts +7 -0
  339. package/dist/app/scripts/utils/is-track-range-selectable.d.ts +2 -0
  340. package/dist/app/scripts/utils/is-within.d.ts +12 -0
  341. package/dist/app/scripts/utils/lat-to-y.d.ts +9 -0
  342. package/dist/app/scripts/utils/lng-to-x.d.ts +8 -0
  343. package/dist/app/scripts/utils/load-chrom-infos.d.ts +8 -0
  344. package/dist/app/scripts/utils/map.d.ts +13 -0
  345. package/dist/app/scripts/utils/max-non-zero.d.ts +6 -0
  346. package/dist/app/scripts/utils/max.d.ts +10 -0
  347. package/dist/app/scripts/utils/min-non-zero.d.ts +6 -0
  348. package/dist/app/scripts/utils/min.d.ts +10 -0
  349. package/dist/app/scripts/utils/mod.d.ts +9 -0
  350. package/dist/app/scripts/utils/ndarray-assign.d.ts +2 -0
  351. package/dist/app/scripts/utils/ndarray-flatten.d.ts +2 -0
  352. package/dist/app/scripts/utils/ndarray-to-list.d.ts +2 -0
  353. package/dist/app/scripts/utils/numericify-version.d.ts +6 -0
  354. package/dist/app/scripts/utils/obj-vals.d.ts +8 -0
  355. package/dist/app/scripts/utils/or.d.ts +8 -0
  356. package/dist/app/scripts/utils/parse-chromsizes-rows.d.ts +34 -0
  357. package/dist/app/scripts/utils/pixi-text-to-svg.d.ts +2 -0
  358. package/dist/app/scripts/utils/positioned-tracks-to-all-tracks.d.ts +26 -0
  359. package/dist/app/scripts/utils/q.d.ts +18 -0
  360. package/dist/app/scripts/utils/rad-to-deg.d.ts +7 -0
  361. package/dist/app/scripts/utils/range-query-2d.d.ts +17 -0
  362. package/dist/app/scripts/utils/reduce.d.ts +14 -0
  363. package/dist/app/scripts/utils/rel-to-abs-chrom-pos.d.ts +10 -0
  364. package/dist/app/scripts/utils/remove-class.d.ts +7 -0
  365. package/dist/app/scripts/utils/reset-d3-brush-style.d.ts +10 -0
  366. package/dist/app/scripts/utils/rgb-to-hex.d.ts +8 -0
  367. package/dist/app/scripts/utils/scales-center-and-k.d.ts +12 -0
  368. package/dist/app/scripts/utils/scales-to-genome-loci.d.ts +3 -0
  369. package/dist/app/scripts/utils/segments-to-rows.d.ts +15 -0
  370. package/dist/app/scripts/utils/selected-items-to-cum-weights.d.ts +12 -0
  371. package/dist/app/scripts/utils/selected-items-to-size.d.ts +13 -0
  372. package/dist/app/scripts/utils/show-mouse-position.d.ts +54 -0
  373. package/dist/app/scripts/utils/some.d.ts +10 -0
  374. package/dist/app/scripts/utils/sum.d.ts +8 -0
  375. package/dist/app/scripts/utils/svg-line.d.ts +2 -0
  376. package/dist/app/scripts/utils/throttle-and-debounce.d.ts +33 -0
  377. package/dist/app/scripts/utils/tile-to-canvas.d.ts +9 -0
  378. package/dist/app/scripts/utils/timeout.d.ts +3 -0
  379. package/dist/app/scripts/utils/to-void.d.ts +3 -0
  380. package/dist/app/scripts/utils/total-track-pixel-height.d.ts +27 -0
  381. package/dist/app/scripts/utils/trim-trailing-slash.d.ts +7 -0
  382. package/dist/app/scripts/utils/type-guards.d.ts +36 -0
  383. package/dist/app/scripts/utils/value-to-color.d.ts +12 -0
  384. package/dist/app/scripts/utils/visit-positioned-tracks.d.ts +18 -0
  385. package/dist/app/scripts/utils/visit-tracks.d.ts +9 -0
  386. package/dist/esm.html +1 -3
  387. package/dist/hglib.js +86315 -100592
  388. package/dist/hglib.min.js +123 -131
  389. package/dist/higlass.mjs +88861 -103138
  390. package/dist/index.html +1 -3
  391. package/dist/package.json +134 -0
  392. package/package.json +25 -27
@@ -0,0 +1,64 @@
1
+ export class AddTrackDialog extends React.Component<any, any, any> {
2
+ constructor(props: any);
3
+ options: {};
4
+ state: {
5
+ selectedTilesets: {
6
+ datatype: string;
7
+ }[];
8
+ allTracksSameDatatype: boolean;
9
+ };
10
+ handleSubmitBound: (evt: any) => void;
11
+ handleTilesetPickerDoubleClickBound: (tileset: any) => void;
12
+ selectedTilesetsChangedBound: (selectedTilesetsIn: any) => void;
13
+ /**
14
+ * Get the track available track orientations for the given
15
+ * track position. Generally "top" or "bottom" equal "1d-horizontal",
16
+ * "left" or "right" correspond to "1d-vertical" and "center" means "2d".
17
+ *
18
+ * Arguments
19
+ * ---------
20
+ * position: string
21
+ *
22
+ * Returns
23
+ * -------
24
+ *
25
+ * A string containing the track orientation.
26
+ */
27
+ getOrientation(position: any): string;
28
+ handleSubmit(evt: any): void;
29
+ /**
30
+ * The user double clicked a tileset in the tileset finder dialog.
31
+ * This means that only one is selected.
32
+ *
33
+ * Arguments
34
+ * ---------
35
+ * tileset: { uuid: 'CXCX', filetype: 'cooler' ....}
36
+ */
37
+ handleTilesetPickerDoubleClick(tileset: any): void;
38
+ handleOptionsChanged(newOptions: any): void;
39
+ handlePlotTypeSelected(newPlotType: any): void;
40
+ selectedPlotType: any;
41
+ selectedTilesetsChanged(selectedTilesetsIn: any): void;
42
+ render(): React.JSX.Element;
43
+ tilesetFinder: import("./TilesetFinder").TilesetFinder | null | undefined;
44
+ plotTypeChooser: PlotTypeChooser | null | undefined;
45
+ }
46
+ export namespace AddTrackDialog {
47
+ namespace defaultProps {
48
+ let position: string;
49
+ }
50
+ namespace propTypes {
51
+ export let datatype: PropTypes.Requireable<string>;
52
+ export let extent: PropTypes.Requireable<string>;
53
+ export let host: PropTypes.Requireable<string>;
54
+ export let onCancel: PropTypes.Validator<(...args: any[]) => any>;
55
+ export let onTracksChosen: PropTypes.Validator<(...args: any[]) => any>;
56
+ let position_1: PropTypes.Requireable<string>;
57
+ export { position_1 as position };
58
+ export let trackSourceServers: PropTypes.Validator<any[]>;
59
+ }
60
+ }
61
+ export default AddTrackDialog;
62
+ import React from 'react';
63
+ import PlotTypeChooser from './PlotTypeChooser';
64
+ import PropTypes from 'prop-types';
@@ -0,0 +1,5 @@
1
+ declare const _default: typeof React.Component<{
2
+ theme?: Theme;
3
+ }>;
4
+ export default _default;
5
+ import React from 'react';
@@ -0,0 +1,15 @@
1
+ export function rectsAtPoint(track: any, x: any, y: any): [];
2
+ export default Annotations1dTrack;
3
+ declare class Annotations1dTrack extends BedLikeTrack {
4
+ constructor(context: any, options: any, isVertical: any);
5
+ /**
6
+ * @param {x} x position of the evt relative to the track
7
+ * @param {y} y position of the evt relative to the track
8
+ */
9
+ click(x: any, y: any): {
10
+ type: string;
11
+ event: null;
12
+ payload: [];
13
+ };
14
+ }
15
+ import BedLikeTrack from './BedLikeTrack';
@@ -0,0 +1,95 @@
1
+ export default Annotations2dTrack;
2
+ declare class Annotations2dTrack extends TiledPixiTrack<any> {
3
+ constructor(context: any, options: any);
4
+ drawnAnnotations: {};
5
+ drawnAnnoGfx: {};
6
+ selectedAnno: {
7
+ graphics: any;
8
+ uid: any;
9
+ } | null;
10
+ publish: any;
11
+ subscribe: any;
12
+ unsubscribe: any;
13
+ sT: number;
14
+ annoSelectedBound: (uid: any) => void;
15
+ get minX(): number;
16
+ get maxX(): any;
17
+ get minY(): number;
18
+ get maxY(): any;
19
+ get maxSize(): any;
20
+ /**
21
+ * Point projection from the data to the view (pixel) coordinates
22
+ * @param {number} x Data X coordinate
23
+ * @param {number} y Data Y coordinate
24
+ * @return {array} Tuple [x,y] containing the translated view coordinates.
25
+ */
26
+ projection([x, y]: number): array;
27
+ /**
28
+ * The local tile identifier
29
+ *
30
+ * @param {Array} tile Array containing [zoomLevel, xPos, yPos]
31
+ * @return {String} Joined ID string
32
+ */
33
+ tileToLocalId(tile: any[]): string;
34
+ /**
35
+ * The tile identifier used on the server
36
+ *
37
+ * @param {Array} tile Array containing [zoomLevel, xPos, yPos]
38
+ * @return {String} Joined ID string
39
+ */
40
+ tileToRemoteId(tile: any[]): string;
41
+ localToRemoteId(remoteId: any): any;
42
+ /**
43
+ * Set which tiles are visible right now.
44
+ *
45
+ * @param tiles: A set of tiles which will be considered the currently visible
46
+ * tile positions.
47
+ */
48
+ setVisibleTiles(tilePositions: any): void;
49
+ calculateVisibleTiles(): void;
50
+ zoomLevel: number | undefined;
51
+ xTiles: number[] | undefined;
52
+ yTiles: number[] | undefined;
53
+ drawTile(tile: any, force?: boolean, silent?: boolean): void;
54
+ prepAnnotation(graphics: any, uid: any, startX: any, startY: any, width: any, height: any, td: any): {
55
+ graphics: any;
56
+ id: any;
57
+ uid: any;
58
+ annotation: {
59
+ x: any;
60
+ y: any;
61
+ width: any;
62
+ height: any;
63
+ };
64
+ dataPos: any[];
65
+ importance: any;
66
+ info: any;
67
+ };
68
+ drawAnnotation({ graphics, id, uid, annotation, dataPos, importance, info }: {
69
+ graphics: any;
70
+ id: any;
71
+ uid: any;
72
+ annotation: any;
73
+ dataPos: any;
74
+ importance: any;
75
+ info: any;
76
+ }, silent: any): void;
77
+ _drawRect(graphics: any, viewPos: any, uid: any): void;
78
+ context(graphics: any, viewPos: any, uid: any): (proc: any) => any;
79
+ click(graphics: any, viewPos: any, uid: any, event: any, payload: any): void;
80
+ mouseDown(): void;
81
+ mouseUp(graphics: any, viewPos: any, uid: any, event: any, payload: any): void;
82
+ hover(graphics: any, viewPos: any, uid: any): void;
83
+ hoveredAnno: any;
84
+ focus(graphics: any, viewPos: any, uid: any): void;
85
+ blur(graphics: any, viewPos: any, uid: any): void;
86
+ select(graphics: any, viewPos: any, uid: any, silent?: boolean): void;
87
+ unselect(): void;
88
+ annoSelected(uid: any): void;
89
+ exportSVG(): HTMLElement[];
90
+ setBorderStyle(graphics: any, color?: any, width?: any, alpha?: any): void;
91
+ setFill(graphics: any, color?: any, alpha?: any): void;
92
+ setPosition(newPosition: any): void;
93
+ zoomed(newXScale: any, newYScale: any): void;
94
+ }
95
+ import TiledPixiTrack from './TiledPixiTrack';
@@ -0,0 +1,36 @@
1
+ export default ArrowheadDomainsTrack;
2
+ declare class ArrowheadDomainsTrack extends TiledPixiTrack<any> {
3
+ constructor(...args: any[]);
4
+ drawnRects: {};
5
+ publish: any;
6
+ subscribe: any;
7
+ unsubscribe: any;
8
+ tileToLocalId(tile: any): string;
9
+ /**
10
+ * The tile identifier used on the server
11
+ */
12
+ tileToRemoteId(tile: any): string;
13
+ localToRemoteId(remoteId: any): any;
14
+ /**
15
+ * Set which tiles are visible right now.
16
+ *
17
+ * @param tiles: A set of tiles which will be considered the currently visible
18
+ * tile positions.
19
+ */
20
+ setVisibleTiles(tilePositions: any): void;
21
+ calculateVisibleTiles(): void;
22
+ zoomLevel: number | undefined;
23
+ xTiles: number[] | undefined;
24
+ yTiles: number[] | undefined;
25
+ /**
26
+ * Create whatever is needed to draw this tile.
27
+ */
28
+ initTile(): void;
29
+ destroyTile(): void;
30
+ drawTile(tile: any): void;
31
+ exportSVG(): HTMLElement[];
32
+ setPosition(newPosition: any): void;
33
+ zoomed(newXScale: any, newYScale: any): void;
34
+ leftTrackDraw(): void;
35
+ }
36
+ import TiledPixiTrack from './TiledPixiTrack';
@@ -0,0 +1,102 @@
1
+ export default Autocomplete;
2
+ declare class Autocomplete extends React.Component<any, any, any> {
3
+ constructor(props: any);
4
+ state: {
5
+ highlightedIndex: null;
6
+ menuTop: number;
7
+ menuLeft: number;
8
+ menuWidth: number;
9
+ isOpen: boolean;
10
+ };
11
+ keyDownHandlers: {
12
+ ArrowDown(event: any): void;
13
+ ArrowUp(event: any): void;
14
+ Enter(event: any): void;
15
+ Escape(): void;
16
+ };
17
+ getInitialState(): {
18
+ isOpen: boolean;
19
+ highlightedIndex: null;
20
+ };
21
+ UNSAFE_componentWillMount(): void;
22
+ _ignoreBlur: any;
23
+ _performAutoCompleteOnUpdate: boolean | undefined;
24
+ _performAutoCompleteOnKeyUp: boolean | undefined;
25
+ UNSAFE_componentWillReceiveProps(nextProps: any): void;
26
+ componentDidUpdate(prevProps: any, prevState: any): void;
27
+ maybeScrollItemIntoView(): void;
28
+ handleKeyDown(event: any): void;
29
+ handleChange(event: any): void;
30
+ handleKeyUp(): void;
31
+ getFilteredItems(): any;
32
+ maybeAutoCompleteText(): void;
33
+ setMenuPositions(): void;
34
+ highlightItemFromMouse(index: any): void;
35
+ selectItemFromMouse(item: any): void;
36
+ setIgnoreBlur(ignore: any): void;
37
+ renderMenu(): React.FunctionComponentElement<{
38
+ ref: string;
39
+ }> | null;
40
+ handleInputBlur(): void;
41
+ handleInputFocus(): void;
42
+ _ignoreClick: boolean | undefined;
43
+ isInputFocused(): boolean;
44
+ handleInputClick(): void;
45
+ composeEventHandlers(internal: any, external: any): any;
46
+ render(): React.JSX.Element;
47
+ inputEl: HTMLInputElement | null | undefined;
48
+ }
49
+ declare namespace Autocomplete {
50
+ namespace defaultProps {
51
+ let value: string;
52
+ let wrapperProps: {};
53
+ namespace wrapperStyle {
54
+ let display: string;
55
+ }
56
+ let inputProps: {};
57
+ function onChange(): void;
58
+ function onSelect(): void;
59
+ function renderMenu(items: any, value: any, style: any): React.JSX.Element;
60
+ function shouldItemRender(): boolean;
61
+ namespace menuStyle {
62
+ let borderRadius: string;
63
+ let boxShadow: string;
64
+ let background: string;
65
+ let padding: string;
66
+ let fontSize: string;
67
+ let position: string;
68
+ let overflow: string;
69
+ let maxHeight: string;
70
+ }
71
+ let autoHighlight: boolean;
72
+ function onMenuVisibilityChange(): void;
73
+ }
74
+ namespace propTypes {
75
+ let autoHighlight_1: PropTypes.Requireable<boolean>;
76
+ export { autoHighlight_1 as autoHighlight };
77
+ export let debug: PropTypes.Requireable<boolean>;
78
+ export let getItemValue: PropTypes.Validator<(...args: any[]) => any>;
79
+ let inputProps_1: PropTypes.Requireable<object>;
80
+ export { inputProps_1 as inputProps };
81
+ export let items: PropTypes.Requireable<any[]>;
82
+ let menuStyle_1: PropTypes.Requireable<object>;
83
+ export { menuStyle_1 as menuStyle };
84
+ export let onChange: PropTypes.Requireable<(...args: any[]) => any>;
85
+ export let onFocus: PropTypes.Requireable<(...args: any[]) => any>;
86
+ export let onMenuVisibilityChange: PropTypes.Requireable<(...args: any[]) => any>;
87
+ export let onSelect: PropTypes.Requireable<(...args: any[]) => any>;
88
+ export let open: PropTypes.Requireable<boolean>;
89
+ export let renderItem: PropTypes.Validator<(...args: any[]) => any>;
90
+ export let renderMenu: PropTypes.Requireable<(...args: any[]) => any>;
91
+ export let shouldItemRender: PropTypes.Requireable<(...args: any[]) => any>;
92
+ export let sortItems: PropTypes.Requireable<(...args: any[]) => any>;
93
+ let value_1: PropTypes.Requireable<any>;
94
+ export { value_1 as value };
95
+ let wrapperProps_1: PropTypes.Requireable<object>;
96
+ export { wrapperProps_1 as wrapperProps };
97
+ let wrapperStyle_1: PropTypes.Requireable<object>;
98
+ export { wrapperStyle_1 as wrapperStyle };
99
+ }
100
+ }
101
+ import React from 'react';
102
+ import PropTypes from 'prop-types';
@@ -0,0 +1,25 @@
1
+ export default AxisPixi;
2
+ declare class AxisPixi {
3
+ constructor(track: any);
4
+ pAxis: import("pixi.js").Graphics;
5
+ track: any;
6
+ axisTexts: any[];
7
+ axisTextFontFamily: string;
8
+ axisTextFontSize: number;
9
+ startAxis(axisHeight: any): void;
10
+ createAxisTexts(valueScale: any, axisHeight: any): void;
11
+ tickValues: any;
12
+ tickFormat: ((n: number | {
13
+ valueOf(): number;
14
+ }) => string) | ((x: any) => any) | undefined;
15
+ calculateAxisTickValues(valueScale: any, axisHeight: any): any;
16
+ drawAxisLeft(valueScale: any, axisHeight: any): void;
17
+ drawAxisRight(valueScale: any, axisHeight: any): void;
18
+ hideOverlappingAxisLabels(): void;
19
+ exportVerticalAxis(axisHeight: any): HTMLElement;
20
+ createAxisSVGLine(): HTMLElement;
21
+ createAxisSVGText(text: any): HTMLElement;
22
+ exportAxisLeftSVG(valueScale: any, axisHeight: any): HTMLElement;
23
+ exportAxisRightSVG(valueScale: any, axisHeight: any): HTMLElement;
24
+ clearAxis(): void;
25
+ }
@@ -0,0 +1,28 @@
1
+ export default BarTrack;
2
+ declare class BarTrack extends HorizontalLine1DPixiTrack {
3
+ constructor(...args: any[]);
4
+ zeroLine: import("pixi.js").Graphics;
5
+ valueScaleTransform: import("d3-zoom").ZoomTransform;
6
+ initialized: boolean;
7
+ setColorScale(colorRange: any): void;
8
+ colorScale: any;
9
+ setColorGradient(colorGradient: any): void;
10
+ colorGradientColors: any;
11
+ drawZeroLine(): void;
12
+ drawZeroLineSvg(output: any): void;
13
+ getXScaleAndOffset(drawnAtScale: any): number[];
14
+ movedY(dY: any): void;
15
+ zoomedY(yPos: any, kMultiplier: any): void;
16
+ /**
17
+ * Adds information to recreate the track in SVG to the tile
18
+ *
19
+ * @param tile
20
+ * @param x x value of bar
21
+ * @param y y value of bar
22
+ * @param width width of bar
23
+ * @param height height of bar
24
+ * @param color color of bar (not converted to hex)
25
+ */
26
+ addSVGInfo(tile: any, x: any, y: any, width: any, height: any, color: any): void;
27
+ }
28
+ import HorizontalLine1DPixiTrack from './HorizontalLine1DPixiTrack';
@@ -0,0 +1,84 @@
1
+ export function polyToPoly(poly: any, kx: any, px: any, ky: any, py: any): any[][];
2
+ export function uniqueify(elements: any): any[];
3
+ export class TextManager {
4
+ constructor(track: any);
5
+ track: any;
6
+ texts: {};
7
+ textsList: any[];
8
+ textWidths: {};
9
+ textHeights: {};
10
+ textGraphics: import("pixi.js").Graphics;
11
+ fontSize: number;
12
+ hideOverlaps(): void;
13
+ startDraw(): void;
14
+ allBoxes: any[] | undefined;
15
+ allTexts: any[] | undefined;
16
+ lightUpdateSingleText(td: any, xMiddle: any, yMiddle: any, textInfo: any): void;
17
+ updateSingleText(td: any, xMiddle: any, yMiddle: any, textText: any): void;
18
+ updateTexts(): void;
19
+ }
20
+ export default BedLikeTrack;
21
+ declare class BedLikeTrack extends HorizontalTiled1DPixiTrack {
22
+ valueScaleTransform: import("d3-zoom").ZoomTransform;
23
+ textManager: TextManager;
24
+ vertY: number;
25
+ vertK: number;
26
+ prevY: number;
27
+ prevK: number;
28
+ minRawValue: any;
29
+ maxRawValue: any;
30
+ rectGraphics: import("pixi.js").Graphics;
31
+ selectedRect: any;
32
+ uniqueSegments: any[];
33
+ /** Factor out some initialization code for the track. This is
34
+ necessary because we can now load tiles synchronously and so
35
+ we have to check if the track is initialized in renderTiles
36
+ and not in the constructor */
37
+ initialize(): void;
38
+ drawnRects: {} | undefined;
39
+ colorScale: import("./utils/color-domain-to-rgba-array").Color[] | number[][] | undefined;
40
+ initialized: boolean | undefined;
41
+ plusStrandRows: import("./utils/segments-to-rows").Segment[][] | {
42
+ value: any;
43
+ }[][] | undefined;
44
+ minusStrandRows: any[] | undefined;
45
+ selectRect(uid: any): void;
46
+ /**
47
+ * Remove the tile's rectangles from the list of drawnRects so that they
48
+ * can be drawn again.
49
+ */
50
+ destroyTile(tile: any): void;
51
+ removeTiles(toRemoveIds: any): void;
52
+ drawTile(tile: any): void;
53
+ valueScale: any;
54
+ /**
55
+ * Use this only when there's one row
56
+ *
57
+ * @return {[type]} [description]
58
+ */
59
+ allVisibleRects(): [type];
60
+ drawSegmentStyle(xStartPos: any, xEndPos: any, rectY: any, rectHeight: any, strand: any): any[];
61
+ drawPoly(xStartPos: any, xEndPos: any, rectY: any, rectHeight: any, strand: any): any[];
62
+ /** The value scale is used to arrange annotations vertically
63
+ based on a value */
64
+ setValueScale(): void;
65
+ /** The color value scale is used to map some value to a coloring */
66
+ setColorValueScale(): void;
67
+ colorValueScale: import("d3-scale").ScaleLinear<number, number, never> | null | undefined;
68
+ renderRows(rows: any, maxRows: any, startY: any, endY: any, fill: any): void;
69
+ render(): void;
70
+ prevVertY: number | undefined;
71
+ drawnAtScale: import("d3-scale").ScaleContinuousNumeric<number, number, never> | undefined;
72
+ minVisibleValueInTiles(valueColumn: any): number;
73
+ maxVisibleValueInTiles(valueColumn: any): number;
74
+ calculateMedianVisibleValue(valueColumn: any): void;
75
+ setPosition(newPosition: any): void;
76
+ setDimensions(newDimensions: any): void;
77
+ zoomed(newXScale: any, newYScale: any): void;
78
+ /** Move event for the y-axis */
79
+ movedY(dY: any): void;
80
+ /** Zoomed along the y-axis */
81
+ zoomedY(yPos: any, kMultiplier: any): void;
82
+ getMouseOverHtml(trackX: any, trackY: any): any;
83
+ }
84
+ import HorizontalTiled1DPixiTrack from './HorizontalTiled1DPixiTrack';
@@ -0,0 +1,3 @@
1
+ export default Button;
2
+ declare const Button: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
3
+ import React from 'react';
@@ -0,0 +1,12 @@
1
+ export default CNVIntervalTrack;
2
+ declare class CNVIntervalTrack extends HorizontalTiled1DPixiTrack {
3
+ seen: Set<any>;
4
+ rows: any[];
5
+ uid(item: any): any;
6
+ segmentOverlap(segment1: any, segment2: any): void;
7
+ drawAll(allTileData: any): void;
8
+ maxRows(): number;
9
+ destroyTile(tile: any): void;
10
+ drawTile(tile: any): void;
11
+ }
12
+ import HorizontalTiled1DPixiTrack from './HorizontalTiled1DPixiTrack';
@@ -0,0 +1,3 @@
1
+ export default CenterTiledPlot;
2
+ declare function CenterTiledPlot(): React.JSX.Element;
3
+ import React from 'react';
@@ -0,0 +1,92 @@
1
+ export default CenterTrack;
2
+ declare class CenterTrack extends React.Component<any, any, any> {
3
+ constructor(props: any);
4
+ state: {
5
+ isVisible: boolean;
6
+ };
7
+ brushBehaviorX: import("d3-brush").BrushBehavior<any>;
8
+ brushBehaviorY: import("d3-brush").BrushBehavior<any>;
9
+ brushBehaviorXY: import("d3-brush").BrushBehavior<any>;
10
+ componentDidMount(): void;
11
+ shouldComponentUpdate(nextProps: any, nextState: any): any;
12
+ rangeSelectionTriggeredXY: boolean | undefined;
13
+ rangeSelectionTriggeredXYEnd: boolean | undefined;
14
+ rangeSelectionTriggeredX: boolean | undefined;
15
+ rangeSelectionTriggeredXEnd: boolean | undefined;
16
+ rangeSelectionTriggeredY: boolean | undefined;
17
+ rangeSelectionTriggeredYEnd: boolean | undefined;
18
+ componentDidUpdate(): void;
19
+ addBrush1d(): void;
20
+ brushElXOld: any;
21
+ brushElYOld: any;
22
+ brushIs1dBound: boolean | undefined;
23
+ addBrush2d(): void;
24
+ brushElXYOld: any;
25
+ brushIs2dBound: boolean | undefined;
26
+ brushedX(event: any): void;
27
+ rangeSelectionMoved: boolean | undefined;
28
+ brushedXEnded(event: any): void;
29
+ rangeSelectionMovedEnd: boolean | undefined;
30
+ brushedY(event: any): void;
31
+ brushedYEnded(event: any): void;
32
+ brushedXY(event: any): void;
33
+ brushedXYEnded(event: any): void;
34
+ brushStarted(event: any): void;
35
+ moveBrushX(rangeSelection: any, animate?: boolean): void;
36
+ moveBrushY(rangeSelection: any, animate?: boolean): void;
37
+ moveBrushXY(rangeSelection: any, animate?: boolean): void;
38
+ mouseEnterHandler(): void;
39
+ mouseLeaveHandler(): void;
40
+ removeBrush1d(): void;
41
+ removeBrush2d(): void;
42
+ render(): React.JSX.Element;
43
+ brushElX: import("d3-selection").Selection<SVGGElement | null, any, null, undefined> | undefined;
44
+ brushElY: import("d3-selection").Selection<SVGGElement | null, any, null, undefined> | undefined;
45
+ brushElXY: import("d3-selection").Selection<SVGGElement | null, any, null, undefined> | undefined;
46
+ }
47
+ declare namespace CenterTrack {
48
+ namespace defaultProps {
49
+ let className: string;
50
+ let configTrackMenuId: null;
51
+ let is1dRangeSelection: boolean;
52
+ let rangeSelectionEnd: PropTypes.Requireable<boolean>;
53
+ let isRangeSelectionActive: boolean;
54
+ function scaleX(x: any): any;
55
+ function scaleY(x: any): any;
56
+ }
57
+ namespace propTypes {
58
+ let className_1: PropTypes.Requireable<string>;
59
+ export { className_1 as className };
60
+ let configTrackMenuId_1: PropTypes.Requireable<string>;
61
+ export { configTrackMenuId_1 as configTrackMenuId };
62
+ export let editable: PropTypes.Requireable<boolean>;
63
+ export let height: PropTypes.Validator<number>;
64
+ let is1dRangeSelection_1: PropTypes.Requireable<boolean>;
65
+ export { is1dRangeSelection_1 as is1dRangeSelection };
66
+ let isRangeSelectionActive_1: PropTypes.Requireable<boolean>;
67
+ export { isRangeSelectionActive_1 as isRangeSelectionActive };
68
+ export let onAddSeries: PropTypes.Validator<(...args: any[]) => any>;
69
+ export let onCloseTrackMenuOpened: PropTypes.Validator<(...args: any[]) => any>;
70
+ export let onConfigTrackMenuOpened: PropTypes.Validator<(...args: any[]) => any>;
71
+ export let onRangeSelectionX: PropTypes.Validator<(...args: any[]) => any>;
72
+ export let onRangeSelectionXEnd: PropTypes.Validator<(...args: any[]) => any>;
73
+ export let onRangeSelectionY: PropTypes.Validator<(...args: any[]) => any>;
74
+ export let onRangeSelectionYEnd: PropTypes.Validator<(...args: any[]) => any>;
75
+ export let onRangeSelectionXY: PropTypes.Validator<(...args: any[]) => any>;
76
+ export let onRangeSelectionXYEnd: PropTypes.Validator<(...args: any[]) => any>;
77
+ export let onRangeSelectionReset: PropTypes.Validator<(...args: any[]) => any>;
78
+ export let onRangeSelectionStart: PropTypes.Validator<(...args: any[]) => any>;
79
+ export let rangeSelection: PropTypes.Validator<any[]>;
80
+ let rangeSelectionEnd_1: PropTypes.Requireable<boolean>;
81
+ export { rangeSelectionEnd_1 as rangeSelectionEnd };
82
+ let scaleX_1: PropTypes.Requireable<(...args: any[]) => any>;
83
+ export { scaleX_1 as scaleX };
84
+ let scaleY_1: PropTypes.Requireable<(...args: any[]) => any>;
85
+ export { scaleY_1 as scaleY };
86
+ export let tracks: PropTypes.Validator<any[]>;
87
+ export let uid: PropTypes.Validator<string>;
88
+ export let width: PropTypes.Validator<number>;
89
+ }
90
+ }
91
+ import React from 'react';
92
+ import PropTypes from 'prop-types';
@@ -0,0 +1,10 @@
1
+ export default Chromosome2DAnnotations;
2
+ declare class Chromosome2DAnnotations extends PixiTrack<any> {
3
+ constructor(context: any, options: any);
4
+ pubSub: any;
5
+ rects: {};
6
+ chromInfo: any;
7
+ setPosition(newPosition: any): void;
8
+ zoomed(newXScale: any, newYScale: any): void;
9
+ }
10
+ import PixiTrack from './PixiTrack';
@@ -0,0 +1,13 @@
1
+ export default Chromosome2DLabels;
2
+ declare class Chromosome2DLabels extends PixiTrack<any> {
3
+ constructor(context: any, options: any);
4
+ searchField: SearchField | null;
5
+ chromInfo: any;
6
+ animate: any;
7
+ texts: any[];
8
+ hideOverlaps(allTexts: any): void;
9
+ setPosition(newPosition: any): void;
10
+ zoomed(newXScale: any, newYScale: any): void;
11
+ }
12
+ import PixiTrack from './PixiTrack';
13
+ import SearchField from './SearchField';
@@ -0,0 +1,24 @@
1
+ export default ChromosomeGrid;
2
+ declare class ChromosomeGrid extends TiledPixiTrack<any> {
3
+ constructor(context: any, options: any);
4
+ chromInfo: any;
5
+ animate: any;
6
+ orientation: any;
7
+ isOverlay: any;
8
+ texts: any[] | undefined;
9
+ lineGraphics: import("pixi.js").Graphics | undefined;
10
+ lineGraphics1dH: import("pixi.js").Graphics | undefined;
11
+ lineGraphics1dV: import("pixi.js").Graphics | undefined;
12
+ lineGraphics2d: import("pixi.js").Graphics | undefined;
13
+ mask1dH: import("pixi.js").Graphics | undefined;
14
+ mask1dV: import("pixi.js").Graphics | undefined;
15
+ mask2d: import("pixi.js").Graphics | undefined;
16
+ calculateVisibleTiles(): never[];
17
+ drawLines(orientation?: any, left?: number, top?: number): void;
18
+ setPosition(newPosition: any): void;
19
+ zoomed(newXScale: any, newYScale: any): void;
20
+ createSvgLine(x1: any, x2: any, y1: any, y2: any, stroke: any, strokeWidth: any): HTMLElement;
21
+ drawLinesSvg(output: any, orientation: any, width: any, height: any, left?: number, top?: number): void;
22
+ exportSVG(): HTMLElement[];
23
+ }
24
+ import TiledPixiTrack from './TiledPixiTrack';
@@ -0,0 +1,14 @@
1
+ export default ChromosomeInfo;
2
+ declare function ChromosomeInfo(filepath: any, success: any, pubSub?: {
3
+ __fake__: boolean;
4
+ publish: () => void;
5
+ subscribe: () => {
6
+ event: string;
7
+ handler: () => void;
8
+ };
9
+ unsubscribe: () => void;
10
+ clear: () => void;
11
+ }): Promise<{
12
+ absToChr(absPos: any): import("./utils/abs-to-chr").ChromosomePosition<string> | null;
13
+ chrToAbs([chrName, chrPos]?: [any?, any?]): number | null;
14
+ }>;
@@ -0,0 +1,10 @@
1
+ export default CloseTrackMenu;
2
+ declare function CloseTrackMenu(props: any): React.JSX.Element;
3
+ declare namespace CloseTrackMenu {
4
+ namespace propTypes {
5
+ let onCloseTrack: PropTypes.Validator<(...args: any[]) => any>;
6
+ let tracks: PropTypes.Validator<any[]>;
7
+ }
8
+ }
9
+ import React from 'react';
10
+ import PropTypes from 'prop-types';