higlass 1.13.6 → 2.0.1

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 (297) hide show
  1. package/app/scripts/AddTrackDialog.jsx +8 -1
  2. package/app/scripts/AddTrackPositionMenu.jsx +26 -5
  3. package/app/scripts/Annotations1dTrack.js +90 -251
  4. package/app/scripts/Annotations2dTrack.js +9 -2
  5. package/app/scripts/Autocomplete.jsx +1 -9
  6. package/app/scripts/BedLikeTrack.js +549 -441
  7. package/app/scripts/ContextMenuContainer.jsx +3 -0
  8. package/app/scripts/ContextMenuItem.jsx +13 -2
  9. package/app/scripts/FilledLine.js +349 -0
  10. package/app/scripts/GenomePositionSearchBox.jsx +178 -477
  11. package/app/scripts/HiGlassComponent.jsx +443 -349
  12. package/app/scripts/HiGlassComponentContext.js +5 -0
  13. package/app/scripts/SeriesListMenu.jsx +94 -44
  14. package/app/scripts/SeriesListSubmenuMixin.jsx +1 -0
  15. package/app/scripts/Tiled1DPixiTrack.js +0 -1
  16. package/app/scripts/TiledPixiTrack.js +72 -63
  17. package/app/scripts/TiledPlot.jsx +530 -77
  18. package/app/scripts/TrackRenderer.jsx +2 -2
  19. package/app/scripts/ViewContextMenu.jsx +50 -2
  20. package/app/scripts/ViewHeader.jsx +3 -2
  21. package/app/scripts/api.js +87 -6
  22. package/app/scripts/configs/index.js +6 -1
  23. package/app/scripts/configs/primitives.js +2 -0
  24. package/app/scripts/configs/tracks-info.js +1 -0
  25. package/app/scripts/data-fetchers/genbank-fetcher.js +9 -14
  26. package/app/scripts/data-fetchers/local-tile-fetcher.js +8 -2
  27. package/app/scripts/hglib.jsx +61 -70
  28. package/app/scripts/options-info.js +49 -11
  29. package/app/scripts/services/tile-proxy.js +0 -4
  30. package/app/scripts/services/worker.js +1 -0
  31. package/app/scripts/test-helpers/index.js +2 -1
  32. package/app/scripts/test-helpers/test-helpers.jsx +154 -66
  33. package/app/scripts/types.ts +68 -3
  34. package/app/scripts/utils/copy-text-to-clipboard.js +36 -0
  35. package/app/scripts/utils/decompress.js +33 -0
  36. package/app/scripts/utils/default-tracks.js +46 -0
  37. package/app/scripts/utils/get-default-track-for-datatype.js +2 -1
  38. package/app/scripts/utils/get-default-tracks-for-datatype.ts +46 -0
  39. package/app/scripts/utils/index.js +1 -0
  40. package/app/scripts/utils/positioned-tracks-to-all-tracks.js +55 -0
  41. package/app/scripts/utils/show-mouse-position.js +0 -16
  42. package/app/scripts/utils/visit-positioned-tracks.js +4 -1
  43. package/app/styles/AddTrackPositionMenu.module.scss +37 -0
  44. package/app/styles/HiGlass.module.scss +3 -1
  45. package/app/styles/TiledPlot.module.scss +20 -0
  46. package/dist/app/schema.json +525 -0
  47. package/dist/app/scripts/AddTrackDialog.d.ts +64 -0
  48. package/dist/app/scripts/AddTrackPositionMenu.d.ts +5 -0
  49. package/dist/app/scripts/Annotations1dTrack.d.ts +15 -0
  50. package/dist/app/scripts/Annotations2dTrack.d.ts +95 -0
  51. package/dist/app/scripts/ArrowheadDomainsTrack.d.ts +36 -0
  52. package/dist/app/scripts/Autocomplete.d.ts +102 -0
  53. package/dist/app/scripts/AxisPixi.d.ts +25 -0
  54. package/dist/app/scripts/BarTrack.d.ts +28 -0
  55. package/dist/app/scripts/BedLikeTrack.d.ts +84 -0
  56. package/dist/app/scripts/Button.d.ts +3 -0
  57. package/dist/app/scripts/CNVIntervalTrack.d.ts +12 -0
  58. package/dist/app/scripts/CenterTiledPlot.d.ts +3 -0
  59. package/dist/app/scripts/CenterTrack.d.ts +92 -0
  60. package/dist/app/scripts/Chromosome2DAnnotations.d.ts +10 -0
  61. package/dist/app/scripts/Chromosome2DLabels.d.ts +13 -0
  62. package/dist/app/scripts/ChromosomeGrid.d.ts +24 -0
  63. package/dist/app/scripts/ChromosomeInfo.d.ts +14 -0
  64. package/dist/app/scripts/CloseTrackMenu.d.ts +10 -0
  65. package/dist/app/scripts/CombinedTrack.d.ts +32 -0
  66. package/dist/app/scripts/ConfigTrackMenu.d.ts +10 -0
  67. package/dist/app/scripts/ConfigViewMenu.d.ts +34 -0
  68. package/dist/app/scripts/ConfigureSeriesMenu.d.ts +3 -0
  69. package/dist/app/scripts/ContextMenuContainer.d.ts +36 -0
  70. package/dist/app/scripts/ContextMenuItem.d.ts +34 -0
  71. package/dist/app/scripts/Cross.d.ts +3 -0
  72. package/dist/app/scripts/CrossRule.d.ts +24 -0
  73. package/dist/app/scripts/CustomTrackDialog.d.ts +17 -0
  74. package/dist/app/scripts/Dialog.d.ts +5 -0
  75. package/dist/app/scripts/DivergentBarTrack.d.ts +4 -0
  76. package/dist/app/scripts/DragListeningDiv.d.ts +32 -0
  77. package/dist/app/scripts/DraggableDiv.d.ts +63 -0
  78. package/dist/app/scripts/ExportLinkDialog.d.ts +21 -0
  79. package/dist/app/scripts/FilledLine.d.ts +5 -0
  80. package/dist/app/scripts/FixedTrack.d.ts +5 -0
  81. package/dist/app/scripts/GalleryTracks.d.ts +20 -0
  82. package/dist/app/scripts/GenomePositionSearchBox.d.ts +95 -0
  83. package/dist/app/scripts/HeatmapOptions.d.ts +30 -0
  84. package/dist/app/scripts/HeatmapTiledPixiTrack.d.ts +184 -0
  85. package/dist/app/scripts/HiGlassComponent.d.ts +762 -0
  86. package/dist/app/scripts/HiGlassComponentContext.d.ts +3 -0
  87. package/dist/app/scripts/HiGlassTrackComponent.d.ts +37 -0
  88. package/dist/app/scripts/Horizontal1dHeatmapTrack.d.ts +9 -0
  89. package/dist/app/scripts/Horizontal2DDomainsTrack.d.ts +21 -0
  90. package/dist/app/scripts/HorizontalChromosomeLabels.d.ts +47 -0
  91. package/dist/app/scripts/HorizontalGeneAnnotationsTrack.d.ts +25 -0
  92. package/dist/app/scripts/HorizontalHeatmapTrack.d.ts +12 -0
  93. package/dist/app/scripts/HorizontalItem.d.ts +3 -0
  94. package/dist/app/scripts/HorizontalLine1DPixiTrack.d.ts +23 -0
  95. package/dist/app/scripts/HorizontalMultivecTrack.d.ts +50 -0
  96. package/dist/app/scripts/HorizontalPoint1DPixiTrack.d.ts +5 -0
  97. package/dist/app/scripts/HorizontalRule.d.ts +22 -0
  98. package/dist/app/scripts/HorizontalTiled1DPixiTrack.d.ts +26 -0
  99. package/dist/app/scripts/HorizontalTiledPlot.d.ts +49 -0
  100. package/dist/app/scripts/HorizontalTrack.d.ts +6 -0
  101. package/dist/app/scripts/Id2DTiledPixiTrack.d.ts +10 -0
  102. package/dist/app/scripts/IdHorizontal1DTiledPixiTrack.d.ts +6 -0
  103. package/dist/app/scripts/IdVertical1DTiledPixiTrack.d.ts +7 -0
  104. package/dist/app/scripts/LeftAxisTrack.d.ts +9 -0
  105. package/dist/app/scripts/LeftTrackModifier.d.ts +29 -0
  106. package/dist/app/scripts/ListWrapper.d.ts +64 -0
  107. package/dist/app/scripts/MapboxTilesTrack.d.ts +9 -0
  108. package/dist/app/scripts/Modal.d.ts +5 -0
  109. package/dist/app/scripts/MoveableTrack.d.ts +18 -0
  110. package/dist/app/scripts/NestedContextMenu.d.ts +7 -0
  111. package/dist/app/scripts/OSMTileIdsTrack.d.ts +5 -0
  112. package/dist/app/scripts/OSMTilesTrack.d.ts +129 -0
  113. package/dist/app/scripts/OverlayTrack.d.ts +13 -0
  114. package/dist/app/scripts/PixiTrack.d.ts +174 -0
  115. package/dist/app/scripts/PlotTypeChooser.d.ts +25 -0
  116. package/dist/app/scripts/PopupMenu.d.ts +28 -0
  117. package/dist/app/scripts/RasterTilesTrack.d.ts +9 -0
  118. package/dist/app/scripts/RuleMixin.d.ts +2 -0
  119. package/dist/app/scripts/SVGTrack.d.ts +15 -0
  120. package/dist/app/scripts/SearchField.d.ts +13 -0
  121. package/dist/app/scripts/SeriesListItems.d.ts +2 -0
  122. package/dist/app/scripts/SeriesListMenu.d.ts +51 -0
  123. package/dist/app/scripts/SeriesListSubmenuMixin.d.ts +2 -0
  124. package/dist/app/scripts/SketchInlinePicker.d.ts +25 -0
  125. package/dist/app/scripts/SortableList.d.ts +22 -0
  126. package/dist/app/scripts/SquareMarkersTrack.d.ts +22 -0
  127. package/dist/app/scripts/Tiled1DPixiTrack.d.ts +60 -0
  128. package/dist/app/scripts/TiledPixiTrack.d.ts +369 -0
  129. package/dist/app/scripts/TiledPlot.d.ts +313 -0
  130. package/dist/app/scripts/TilesetFinder.d.ts +65 -0
  131. package/dist/app/scripts/TopAxisTrack.d.ts +9 -0
  132. package/dist/app/scripts/Track.d.ts +196 -0
  133. package/dist/app/scripts/TrackArea.d.ts +26 -0
  134. package/dist/app/scripts/TrackControl.d.ts +5 -0
  135. package/dist/app/scripts/TrackRenderer.d.ts +724 -0
  136. package/dist/app/scripts/UnknownPixiTrack.d.ts +7 -0
  137. package/dist/app/scripts/ValueIntervalTrack.d.ts +6 -0
  138. package/dist/app/scripts/VerticalItem.d.ts +3 -0
  139. package/dist/app/scripts/VerticalRule.d.ts +21 -0
  140. package/dist/app/scripts/VerticalTiled1DPixiTrack.d.ts +6 -0
  141. package/dist/app/scripts/VerticalTiledPlot.d.ts +50 -0
  142. package/dist/app/scripts/VerticalTrack.d.ts +6 -0
  143. package/dist/app/scripts/ViewConfigEditor.d.ts +53 -0
  144. package/dist/app/scripts/ViewContextMenu.d.ts +17 -0
  145. package/dist/app/scripts/ViewHeader.d.ts +75 -0
  146. package/dist/app/scripts/ViewportTracker2D.d.ts +17 -0
  147. package/dist/app/scripts/ViewportTracker2DPixi.d.ts +11 -0
  148. package/dist/app/scripts/ViewportTrackerHorizontal.d.ts +17 -0
  149. package/dist/app/scripts/ViewportTrackerVertical.d.ts +17 -0
  150. package/dist/app/scripts/api.d.ts +640 -0
  151. package/dist/app/scripts/configs/available-track-types.d.ts +2 -0
  152. package/dist/app/scripts/configs/colormaps.d.ts +2 -0
  153. package/dist/app/scripts/configs/datatype-to-track-type.d.ts +4 -0
  154. package/dist/app/scripts/configs/default-tracks-for-datatype.d.ts +38 -0
  155. package/dist/app/scripts/configs/dense-data-extrema-config.d.ts +2 -0
  156. package/dist/app/scripts/configs/globals.d.ts +5 -0
  157. package/dist/app/scripts/configs/index.d.ts +16 -0
  158. package/dist/app/scripts/configs/positions-by-datatype.d.ts +2 -0
  159. package/dist/app/scripts/configs/primitives.d.ts +20 -0
  160. package/dist/app/scripts/configs/themes.d.ts +3 -0
  161. package/dist/app/scripts/configs/tracks-info-by-type.d.ts +4 -0
  162. package/dist/app/scripts/configs/tracks-info.d.ts +24 -0
  163. package/dist/app/scripts/d3-context-menu.d.ts +2 -0
  164. package/dist/app/scripts/data-fetchers/DataFetcher.d.ts +151 -0
  165. package/dist/app/scripts/data-fetchers/genbank-fetcher.d.ts +86 -0
  166. package/dist/app/scripts/data-fetchers/index.d.ts +3 -0
  167. package/dist/app/scripts/data-fetchers/local-tile-fetcher.d.ts +47 -0
  168. package/dist/app/scripts/gosling-exports.d.ts +17 -0
  169. package/dist/app/scripts/hglib.d.ts +24 -0
  170. package/dist/app/scripts/hocs/with-modal.d.ts +19 -0
  171. package/dist/app/scripts/hocs/with-pub-sub.d.ts +22 -0
  172. package/dist/app/scripts/hocs/with-theme.d.ts +13 -0
  173. package/dist/app/scripts/icons.d.ts +161 -0
  174. package/dist/app/scripts/mixwith.d.ts +27 -0
  175. package/dist/app/scripts/options-info.d.ts +1355 -0
  176. package/dist/app/scripts/plugins/available-for-plugins.d.ts +2338 -0
  177. package/dist/app/scripts/plugins/get-data-fetcher.d.ts +2 -0
  178. package/dist/app/scripts/plugins/index.d.ts +2 -0
  179. package/dist/app/scripts/services/chrom-info.d.ts +10 -0
  180. package/dist/app/scripts/services/dom-event.d.ts +7 -0
  181. package/dist/app/scripts/services/element-resize-listener.d.ts +5 -0
  182. package/dist/app/scripts/services/index.d.ts +5 -0
  183. package/dist/app/scripts/services/tile-proxy.d.ts +180 -0
  184. package/dist/app/scripts/services/worker.d.ts +157 -0
  185. package/dist/app/scripts/symbol.d.ts +13 -0
  186. package/dist/app/scripts/test-helpers/index.d.ts +1 -0
  187. package/dist/app/scripts/test-helpers/test-helpers.d.ts +33 -0
  188. package/dist/app/scripts/track-utils.d.ts +73 -0
  189. package/dist/app/scripts/types.d.ts +199 -0
  190. package/dist/app/scripts/utils/DenseDataExtrema1D.d.ts +88 -0
  191. package/dist/app/scripts/utils/DenseDataExtrema2D.d.ts +97 -0
  192. package/dist/app/scripts/utils/LruCache.d.ts +44 -0
  193. package/dist/app/scripts/utils/abs-to-chr.d.ts +14 -0
  194. package/dist/app/scripts/utils/accessor-transposition.d.ts +14 -0
  195. package/dist/app/scripts/utils/add-arrays.d.ts +18 -0
  196. package/dist/app/scripts/utils/add-class.d.ts +8 -0
  197. package/dist/app/scripts/utils/add-event-listener-once.d.ts +11 -0
  198. package/dist/app/scripts/utils/assert.d.ts +17 -0
  199. package/dist/app/scripts/utils/background-task-scheduler.d.ts +47 -0
  200. package/dist/app/scripts/utils/base64-to-canvas.d.ts +9 -0
  201. package/dist/app/scripts/utils/chr-to-abs.d.ts +10 -0
  202. package/dist/app/scripts/utils/chrom-info-bisector.d.ts +4 -0
  203. package/dist/app/scripts/utils/clone-event.d.ts +12 -0
  204. package/dist/app/scripts/utils/color-domain-to-rgba-array.d.ts +13 -0
  205. package/dist/app/scripts/utils/color-to-hex.d.ts +9 -0
  206. package/dist/app/scripts/utils/color-to-rgba.d.ts +9 -0
  207. package/dist/app/scripts/utils/copy-text-to-clipboard.d.ts +2 -0
  208. package/dist/app/scripts/utils/data-to-genomic-loci.d.ts +11 -0
  209. package/dist/app/scripts/utils/debounce.d.ts +5 -0
  210. package/dist/app/scripts/utils/dec-to-hex-str.d.ts +8 -0
  211. package/dist/app/scripts/utils/decompress.d.ts +27 -0
  212. package/dist/app/scripts/utils/default-tracks.d.ts +3 -0
  213. package/dist/app/scripts/utils/dict-from-tuples.d.ts +11 -0
  214. package/dist/app/scripts/utils/dict-items.d.ts +18 -0
  215. package/dist/app/scripts/utils/dict-keys.d.ts +10 -0
  216. package/dist/app/scripts/utils/dict-values.d.ts +8 -0
  217. package/dist/app/scripts/utils/download.d.ts +7 -0
  218. package/dist/app/scripts/utils/expand-combined-tracks.d.ts +11 -0
  219. package/dist/app/scripts/utils/fake-pub-sub.d.ts +11 -0
  220. package/dist/app/scripts/utils/fill-in-min-widths.d.ts +44 -0
  221. package/dist/app/scripts/utils/flatten.d.ts +9 -0
  222. package/dist/app/scripts/utils/for-each.d.ts +9 -0
  223. package/dist/app/scripts/utils/forward-event.d.ts +7 -0
  224. package/dist/app/scripts/utils/genome-loci-to-pixels.d.ts +9 -0
  225. package/dist/app/scripts/utils/genomic-range-to-chromosome-chunks.d.ts +21 -0
  226. package/dist/app/scripts/utils/get-aggregation-function.d.ts +10 -0
  227. package/dist/app/scripts/utils/get-default-track-for-datatype.d.ts +21 -0
  228. package/dist/app/scripts/utils/get-default-tracks-for-datatype.d.ts +3 -0
  229. package/dist/app/scripts/utils/get-element-dim.d.ts +7 -0
  230. package/dist/app/scripts/utils/get-higlass-components.d.ts +7 -0
  231. package/dist/app/scripts/utils/get-track-by-uid.d.ts +7 -0
  232. package/dist/app/scripts/utils/get-track-conf-from-hgc.d.ts +10 -0
  233. package/dist/app/scripts/utils/get-track-obj-by-id.d.ts +2 -0
  234. package/dist/app/scripts/utils/get-track-position-by-uid.d.ts +13 -0
  235. package/dist/app/scripts/utils/get-xylofon.d.ts +2 -0
  236. package/dist/app/scripts/utils/gradient.d.ts +14 -0
  237. package/dist/app/scripts/utils/has-class.d.ts +8 -0
  238. package/dist/app/scripts/utils/has-parent.d.ts +9 -0
  239. package/dist/app/scripts/utils/hex-string-to-int.d.ts +14 -0
  240. package/dist/app/scripts/utils/index.d.ts +89 -0
  241. package/dist/app/scripts/utils/interval-tree.d.ts +109 -0
  242. package/dist/app/scripts/utils/into-the-void.d.ts +6 -0
  243. package/dist/app/scripts/utils/is-track-or-child-track.d.ts +7 -0
  244. package/dist/app/scripts/utils/is-track-range-selectable.d.ts +2 -0
  245. package/dist/app/scripts/utils/is-within.d.ts +12 -0
  246. package/dist/app/scripts/utils/lat-to-y.d.ts +9 -0
  247. package/dist/app/scripts/utils/lng-to-x.d.ts +8 -0
  248. package/dist/app/scripts/utils/load-chrom-infos.d.ts +8 -0
  249. package/dist/app/scripts/utils/map.d.ts +13 -0
  250. package/dist/app/scripts/utils/max-non-zero.d.ts +6 -0
  251. package/dist/app/scripts/utils/max.d.ts +10 -0
  252. package/dist/app/scripts/utils/min-non-zero.d.ts +6 -0
  253. package/dist/app/scripts/utils/min.d.ts +10 -0
  254. package/dist/app/scripts/utils/mod.d.ts +9 -0
  255. package/dist/app/scripts/utils/ndarray-assign.d.ts +2 -0
  256. package/dist/app/scripts/utils/ndarray-flatten.d.ts +2 -0
  257. package/dist/app/scripts/utils/ndarray-to-list.d.ts +2 -0
  258. package/dist/app/scripts/utils/numericify-version.d.ts +6 -0
  259. package/dist/app/scripts/utils/obj-vals.d.ts +8 -0
  260. package/dist/app/scripts/utils/or.d.ts +8 -0
  261. package/dist/app/scripts/utils/parse-chromsizes-rows.d.ts +34 -0
  262. package/dist/app/scripts/utils/pixi-text-to-svg.d.ts +2 -0
  263. package/dist/app/scripts/utils/positioned-tracks-to-all-tracks.d.ts +26 -0
  264. package/dist/app/scripts/utils/q.d.ts +18 -0
  265. package/dist/app/scripts/utils/rad-to-deg.d.ts +7 -0
  266. package/dist/app/scripts/utils/range-query-2d.d.ts +17 -0
  267. package/dist/app/scripts/utils/reduce.d.ts +14 -0
  268. package/dist/app/scripts/utils/rel-to-abs-chrom-pos.d.ts +10 -0
  269. package/dist/app/scripts/utils/remove-class.d.ts +7 -0
  270. package/dist/app/scripts/utils/reset-d3-brush-style.d.ts +10 -0
  271. package/dist/app/scripts/utils/rgb-to-hex.d.ts +8 -0
  272. package/dist/app/scripts/utils/scales-center-and-k.d.ts +12 -0
  273. package/dist/app/scripts/utils/scales-to-genome-loci.d.ts +3 -0
  274. package/dist/app/scripts/utils/segments-to-rows.d.ts +15 -0
  275. package/dist/app/scripts/utils/selected-items-to-cum-weights.d.ts +12 -0
  276. package/dist/app/scripts/utils/selected-items-to-size.d.ts +13 -0
  277. package/dist/app/scripts/utils/show-mouse-position.d.ts +54 -0
  278. package/dist/app/scripts/utils/some.d.ts +10 -0
  279. package/dist/app/scripts/utils/sum.d.ts +8 -0
  280. package/dist/app/scripts/utils/svg-line.d.ts +2 -0
  281. package/dist/app/scripts/utils/throttle-and-debounce.d.ts +33 -0
  282. package/dist/app/scripts/utils/tile-to-canvas.d.ts +9 -0
  283. package/dist/app/scripts/utils/timeout.d.ts +3 -0
  284. package/dist/app/scripts/utils/to-void.d.ts +3 -0
  285. package/dist/app/scripts/utils/total-track-pixel-height.d.ts +27 -0
  286. package/dist/app/scripts/utils/trim-trailing-slash.d.ts +7 -0
  287. package/dist/app/scripts/utils/type-guards.d.ts +36 -0
  288. package/dist/app/scripts/utils/value-to-color.d.ts +12 -0
  289. package/dist/app/scripts/utils/visit-positioned-tracks.d.ts +18 -0
  290. package/dist/app/scripts/utils/visit-tracks.d.ts +9 -0
  291. package/dist/esm.html +1 -3
  292. package/dist/hglib.js +65302 -79868
  293. package/dist/hglib.min.js +104 -112
  294. package/dist/higlass.mjs +64214 -78780
  295. package/dist/index.html +1 -3
  296. package/dist/package.json +134 -0
  297. package/package.json +13 -10
@@ -0,0 +1,3 @@
1
+ export default HiGlassComponentContext;
2
+ declare const HiGlassComponentContext: React.Context<null>;
3
+ import * as React from 'react';
@@ -0,0 +1,37 @@
1
+ export function trackViewer(element: any, [xMin, xMax, yMin, yMax]: [any, any, any, any] | any[], trackConfig: any): Object;
2
+ /**
3
+ * React component wrapper around trackViewer.
4
+ * Accepts x, y, width, and height props, in addition to trackConfig,
5
+ * so HiGlass can be used to provide background imagery for Deck.gl.
6
+ */
7
+ declare class HiGlassTrackComponent extends React.Component<any, any, any> {
8
+ constructor(props: any);
9
+ id: string;
10
+ componentDidMount(): void;
11
+ shouldComponentUpdate(nextProps: any): boolean;
12
+ initTrackViewer(): void;
13
+ viewUid: any;
14
+ viewer: any;
15
+ /**
16
+ * Zoom to a particular position.
17
+ *
18
+ * @param {Number} x Left side of viewport
19
+ * @param {Number} y Top side of viewport
20
+ * @param {Number} width Width of viewport
21
+ * @param {Number} height Height of viewport
22
+ */
23
+ zoomTo(x: number, y: number, width: number, height: number): void;
24
+ render(): React.JSX.Element;
25
+ }
26
+ declare namespace HiGlassTrackComponent {
27
+ namespace propTypes {
28
+ let trackConfig: PropTypes.Requireable<object>;
29
+ let width: PropTypes.Requireable<number>;
30
+ let height: PropTypes.Requireable<number>;
31
+ let x: PropTypes.Requireable<number>;
32
+ let y: PropTypes.Requireable<number>;
33
+ }
34
+ }
35
+ export default HiGlassTrackComponent;
36
+ import React from 'react';
37
+ import PropTypes from 'prop-types';
@@ -0,0 +1,9 @@
1
+ export default Horizontal1dHeatmapTrack;
2
+ declare class Horizontal1dHeatmapTrack extends HorizontalLine1DPixiTrack {
3
+ opacity: any;
4
+ setColorScale(colorRange: any): void;
5
+ colorScale: any;
6
+ rerender(options: any): void;
7
+ drawAxis(): void;
8
+ }
9
+ import HorizontalLine1DPixiTrack from './HorizontalLine1DPixiTrack';
@@ -0,0 +1,21 @@
1
+ export default Horizontal2DDomainsTrack;
2
+ declare class Horizontal2DDomainsTrack extends TiledPixiTrack<any> {
3
+ constructor(context: any, options: any);
4
+ drawnRects: Set<any>;
5
+ tileToLocalId(tile: any): string;
6
+ tileToRemoteId(tile: any): string;
7
+ localToRemoteId(remoteId: any): any;
8
+ setVisibleTiles(tilePositions: any): void;
9
+ calculateVisibleTiles(): void;
10
+ zoomLevel: number | undefined;
11
+ xTiles: number[] | undefined;
12
+ yTiles: number[] | undefined;
13
+ initTile(tile: any): void;
14
+ destroyTile(tile: any, graphics: any): void;
15
+ drawTile(tile: any): void;
16
+ setPosition(newPosition: any): void;
17
+ refScalesChanged(refXScale: any, refYScale: any): void;
18
+ zoomed(newXScale: any, newYScale: any, k: any, tx: any, ty: any): void;
19
+ leftTrackDraw(): void;
20
+ }
21
+ import TiledPixiTrack from './TiledPixiTrack';
@@ -0,0 +1,47 @@
1
+ export default HorizontalChromosomeLabels;
2
+ declare class HorizontalChromosomeLabels extends TiledPixiTrack<any> {
3
+ constructor(context: any, options: any);
4
+ chromInfo: any;
5
+ dataConfig: any;
6
+ pTicks: import("pixi.js").Graphics;
7
+ gTicks: {};
8
+ tickTexts: {};
9
+ isShowGlobalMousePosition: any;
10
+ textFontSize: number;
11
+ textFontFamily: string;
12
+ textFontColor: string;
13
+ textStrokeColor: string;
14
+ pixiTextConfig: {
15
+ fontSize: string;
16
+ fontFamily: string;
17
+ fill: any;
18
+ lineJoin: string;
19
+ stroke: any;
20
+ strokeThickness: number;
21
+ };
22
+ stroke: number;
23
+ tickWidth: number;
24
+ tickHeight: number;
25
+ tickTextSeparation: number;
26
+ tickColor: number;
27
+ animate: any;
28
+ pubSubs: any[];
29
+ hideMousePosition: Function | undefined;
30
+ calculateVisibleTiles(): never[];
31
+ initBoundsTicks(): void;
32
+ gBoundTicks: import("pixi.js").Graphics | null | undefined;
33
+ leftBoundTick: import("pixi.js").Text | undefined;
34
+ rightBoundTick: import("pixi.js").Text | undefined;
35
+ texts: any[] | undefined;
36
+ initChromLabels(): void;
37
+ rerender(options: any, force: any): void;
38
+ formatTick(pos: any): string;
39
+ drawBoundsTicks(x1: any, x2: any): void;
40
+ drawTicks(cumPos: any): number;
41
+ allTexts: any[] | undefined;
42
+ hideOverlaps(allTexts: any): void;
43
+ setPosition(newPosition: any): void;
44
+ zoomed(newXScale: any, newYScale: any): void;
45
+ exportSVG(): HTMLElement[];
46
+ }
47
+ import TiledPixiTrack from './TiledPixiTrack';
@@ -0,0 +1,25 @@
1
+ export default HorizontalGeneAnnotationsTrack;
2
+ declare class HorizontalGeneAnnotationsTrack extends HorizontalTiled1DPixiTrack {
3
+ fontSize: number;
4
+ geneLabelPos: any;
5
+ geneRectHeight: number;
6
+ geneStrandSpacing: number;
7
+ geneStrandHSpacing: number;
8
+ geneRectHHeight: number;
9
+ /** cleanup */
10
+ destroyTile(tile: any): void;
11
+ drawTile(): void;
12
+ geneId(geneInfo: any, type: any): string;
13
+ renderTile(tile: any): void;
14
+ allTexts: any[] | undefined;
15
+ allBoxes: any[] | undefined;
16
+ geneAreaHeight: number | undefined;
17
+ renderTextBg(allBoxes: any, allTexts: any, allTiles: any): void;
18
+ hideOverlaps(allBoxes: any, allTexts: any): void;
19
+ setPosition(newPosition: any): void;
20
+ setDimensions(newDimensions: any): void;
21
+ halfRectHHeight: number | undefined;
22
+ zoomed(newXScale: any, newYScale: any): void;
23
+ getMouseOverHtml(trackX: any, trackY: any): string;
24
+ }
25
+ import HorizontalTiled1DPixiTrack from './HorizontalTiled1DPixiTrack';
@@ -0,0 +1,12 @@
1
+ export default HorizontalHeatmapTrack;
2
+ declare class HorizontalHeatmapTrack extends HeatmapTiledPixiTrack {
3
+ /**
4
+ * @param scene: A PIXI.js scene to draw everything to.
5
+ * @param dataConfig: An object defining where the data should be pulled from
6
+ */
7
+ constructor(context: any, options: any);
8
+ pubSubs: any[];
9
+ setSpriteProperties(sprite: any, zoomLevel: any, tilePos: any, mirrored: any): void;
10
+ leftTrackDraw(): void;
11
+ }
12
+ import HeatmapTiledPixiTrack from './HeatmapTiledPixiTrack';
@@ -0,0 +1,3 @@
1
+ export default HorizontalItem;
2
+ declare const HorizontalItem: React.ComponentClass<any, any>;
3
+ import React from 'react';
@@ -0,0 +1,23 @@
1
+ export default HorizontalLine1DPixiTrack;
2
+ declare class HorizontalLine1DPixiTrack extends HorizontalTiled1DPixiTrack {
3
+ stopHover(): void;
4
+ getMouseOverHtml(trackX: any): string;
5
+ renderTile(tile: any): void;
6
+ drawTile(tile: any): void;
7
+ valueScale: import("d3-scale").ScaleContinuousNumeric<number, number, never> | (import("d3-scale").ScaleQuantile<number, never> & {
8
+ ticks?: ((count: number) => number[]) | undefined;
9
+ }) | undefined;
10
+ setPosition(newPosition: any): void;
11
+ zoomed(newXScale: any, newYScale: any): void;
12
+ superSVG(): HTMLElement[];
13
+ /**
14
+ * Export an SVG representation of this track
15
+ *
16
+ * @returns {Array} The two returned DOM nodes are both SVG
17
+ * elements [base,track]. Base is a parent which contains track as a
18
+ * child. Track is clipped with a clipping rectangle contained in base.
19
+ *
20
+ */
21
+ exportSVG(): any[];
22
+ }
23
+ import HorizontalTiled1DPixiTrack from './HorizontalTiled1DPixiTrack';
@@ -0,0 +1,50 @@
1
+ export default class HorizontalMultivecTrack extends HeatmapTiledPixiTrack {
2
+ updateDataFetcher(options: any): void;
3
+ selectRowsCumWeights: Float64Array<ArrayBufferLike> | undefined;
4
+ setSpriteProperties(sprite: any, zoomLevel: any, tilePos: any): void;
5
+ leftTrackZoomed(newXScale: any, newYScale: any, k: any, tx: any, ty: any): void;
6
+ zoomed(newXScale: any, newYScale: any, k: any, tx: any): void;
7
+ calculateZoomLevel(): number | undefined;
8
+ /**
9
+ * Create the local tile identifier, which be used with the
10
+ * tile stores in TiledPixiTrack
11
+ *
12
+ * @param {array} tile: [zoomLevel, xPos]
13
+ */
14
+ tileToLocalId(tile: array): any;
15
+ /**
16
+ * Create the remote tile identifier, which will be used to identify the
17
+ * tile on the server
18
+ *
19
+ * @param {array} tile: [zoomLevel, xPos]
20
+ */
21
+ tileToRemoteId(tile: array): any;
22
+ /**
23
+ * Calculate the tile position at the given track position
24
+ *
25
+ * @param {Number} trackX: The track's X position
26
+ * @param {Number} trackY: The track's Y position
27
+ *
28
+ * @return {array} [zoomLevel, tilePos]
29
+ */
30
+ getTilePosAtPosition(trackX: number, trackY: number): array;
31
+ /**
32
+ * Return the data currently visible at position X and Y
33
+ *
34
+ * @param {Number} trackX: The x position relative to the track's start and end
35
+ * @param {Number} trakcY: The y position relative to the track's start and end
36
+ */
37
+ getVisibleData(trackX: number, trackY: any): string;
38
+ /**
39
+ * Get some information to display when the mouse is over this
40
+ * track
41
+ *
42
+ * @param {Number} trackX: the x position of the mouse over the track
43
+ * @param {Number} trackY: the y position of the mouse over the track
44
+ *
45
+ * @return {string}: A HTML string containing the information to display
46
+ *
47
+ */
48
+ getMouseOverHtml(trackX: number, trackY: number): string;
49
+ }
50
+ import HeatmapTiledPixiTrack from './HeatmapTiledPixiTrack';
@@ -0,0 +1,5 @@
1
+ export default HorizontalPoint1DPixiTrack;
2
+ declare class HorizontalPoint1DPixiTrack extends HorizontalLine1DPixiTrack {
3
+ zoomed(newXScale: any, newYScale: any, k: any, tx: any, ty: any): void;
4
+ }
5
+ import HorizontalLine1DPixiTrack from './HorizontalLine1DPixiTrack';
@@ -0,0 +1,22 @@
1
+ export const HorizontalRuleMixin: Function;
2
+ export default HorizontalRule;
3
+ declare class HorizontalRule {
4
+ constructor(context: any, options: any);
5
+ yPosition: any;
6
+ strokeWidth: number;
7
+ strokeOpacity: number;
8
+ dashLength: number;
9
+ dashGap: number;
10
+ mouseMoveHandler(mousePos: any): void;
11
+ highlighted: boolean | undefined;
12
+ draw(): void;
13
+ /**
14
+ * Export an SVG representation of this track
15
+ *
16
+ * @returns {Array} The two returned DOM nodes are both SVG
17
+ * elements [base,track]. Base is a parent which contains track as a
18
+ * child. Track is clipped with a clipping rectangle contained in base.
19
+ *
20
+ */
21
+ exportSVG(): any[];
22
+ }
@@ -0,0 +1,26 @@
1
+ export default HorizontalTiled1DPixiTrack;
2
+ declare class HorizontalTiled1DPixiTrack extends Tiled1DPixiTrack {
3
+ constIndicator: import("pixi.js").Graphics;
4
+ axis: AxisPixi;
5
+ animate: any;
6
+ isShowGlobalMousePosition: any;
7
+ pubSubs: any[];
8
+ hideMousePosition: Function | undefined;
9
+ rerender(options: any, force: any): void;
10
+ /**
11
+ * Which scale should we use for calculating tile positions?
12
+ *
13
+ * Horizontal tracks should use the xScale and vertical tracks
14
+ * should use the yScale
15
+ *
16
+ * This function should be overwritten by HorizontalTiled1DPixiTrack.js
17
+ * and VerticalTiled1DPixiTrack.js
18
+ */
19
+ relevantScale(): import("d3-scale").ScaleContinuousNumeric<number, number, never>;
20
+ drawAxis(valueScale: any): void;
21
+ mouseMoveZoomHandler(absX?: any, absY?: any): void;
22
+ drawConstIndicator(): void;
23
+ exportSVG(): HTMLElement[];
24
+ }
25
+ import Tiled1DPixiTrack from './Tiled1DPixiTrack';
26
+ import AxisPixi from './AxisPixi';
@@ -0,0 +1,49 @@
1
+ export default HorizontalTiledPlot;
2
+ declare class HorizontalTiledPlot extends React.Component<any, any, any> {
3
+ constructor(props: any);
4
+ brushBehavior: import("d3-brush").BrushBehavior<any>;
5
+ componentDidMount(): void;
6
+ shouldComponentUpdate(nextProps: any, nextState: any): boolean;
7
+ rangeSelectionTriggered: boolean | undefined;
8
+ rangeSelectionTriggeredEnd: boolean | undefined;
9
+ componentDidUpdate(): void;
10
+ addBrush(): void;
11
+ brushElAddedBefore: any;
12
+ brushed(event: any): void;
13
+ rangeSelectionMoved: boolean | undefined;
14
+ brushStarted(event: any): void;
15
+ brushedEnded(event: any): void;
16
+ rangeSelectionMovedEnd: boolean | undefined;
17
+ moveBrush(rangeSelection: any, animate?: boolean): void;
18
+ removeBrush(): void;
19
+ render(): React.JSX.Element;
20
+ brushEl: import("d3-selection").Selection<SVGSVGElement | null, any, null, undefined> | undefined;
21
+ }
22
+ declare namespace HorizontalTiledPlot {
23
+ namespace propTypes {
24
+ let configTrackMenuId: PropTypes.Requireable<string>;
25
+ let editable: PropTypes.Requireable<boolean>;
26
+ let handleConfigTrack: PropTypes.Requireable<(...args: any[]) => any>;
27
+ let handleResizeTrack: PropTypes.Requireable<(...args: any[]) => any>;
28
+ let handleSortEnd: PropTypes.Requireable<(...args: any[]) => any>;
29
+ let is1dRangeSelection: PropTypes.Requireable<boolean>;
30
+ let isRangeSelectionActive: PropTypes.Requireable<boolean>;
31
+ let onAddSeries: PropTypes.Requireable<(...args: any[]) => any>;
32
+ let onCloseTrack: PropTypes.Requireable<(...args: any[]) => any>;
33
+ let onCloseTrackMenuOpened: PropTypes.Requireable<(...args: any[]) => any>;
34
+ let onConfigTrackMenuOpened: PropTypes.Requireable<(...args: any[]) => any>;
35
+ let onRangeSelection: PropTypes.Requireable<(...args: any[]) => any>;
36
+ let onRangeSelectionEnd: PropTypes.Requireable<(...args: any[]) => any>;
37
+ let onRangeSelectionReset: PropTypes.Requireable<(...args: any[]) => any>;
38
+ let onRangeSelectionStart: PropTypes.Requireable<(...args: any[]) => any>;
39
+ let rangeSelection: PropTypes.Requireable<any[]>;
40
+ let rangeSelectionEnd: PropTypes.Requireable<boolean>;
41
+ let referenceAncestor: PropTypes.Requireable<(...args: any[]) => any>;
42
+ let resizeHandles: PropTypes.Requireable<object>;
43
+ let scale: PropTypes.Requireable<(...args: any[]) => any>;
44
+ let tracks: PropTypes.Requireable<any[]>;
45
+ let width: PropTypes.Requireable<number>;
46
+ }
47
+ }
48
+ import React from 'react';
49
+ import PropTypes from 'prop-types';
@@ -0,0 +1,6 @@
1
+ export default HorizontalTrack;
2
+ declare class HorizontalTrack extends MoveableTrack {
3
+ getControls(isVisible: any): React.JSX.Element;
4
+ }
5
+ import MoveableTrack from './MoveableTrack';
6
+ import React from 'react';
@@ -0,0 +1,10 @@
1
+ export function drawTile(tile: any): void;
2
+ export function initTile(tile: any): void;
3
+ export default Id2DTiledPixiTrack;
4
+ declare class Id2DTiledPixiTrack extends HeatmapTiledPixiTrack {
5
+ initTile(tile: any): void;
6
+ destroyTile(tile: any, graphics: any): void;
7
+ drawTile(tile: any): void;
8
+ fetchNewTiles(toFetch: any): void;
9
+ }
10
+ import HeatmapTiledPixiTrack from './HeatmapTiledPixiTrack';
@@ -0,0 +1,6 @@
1
+ export default IdHorizontal1DTiledPixiTrack;
2
+ declare class IdHorizontal1DTiledPixiTrack extends HorizontalTiled1DPixiTrack {
3
+ destroyTile(tile: any): void;
4
+ drawTile(tile: any): void;
5
+ }
6
+ import HorizontalTiled1DPixiTrack from './HorizontalTiled1DPixiTrack';
@@ -0,0 +1,7 @@
1
+ export default IdVertical1DTiledPixiTrack;
2
+ declare class IdVertical1DTiledPixiTrack extends VerticalTiled1DPixiTrack {
3
+ destroyTile(tile: any, graphics: any): void;
4
+ drawTile(tile: any): void;
5
+ fetchNewTiles(toFetch: any): void;
6
+ }
7
+ import VerticalTiled1DPixiTrack from './VerticalTiled1DPixiTrack';
@@ -0,0 +1,9 @@
1
+ export default LeftAxisTrack;
2
+ declare class LeftAxisTrack extends SVGTrack {
3
+ axis: import("d3-axis").Axis<import("d3-scale").NumberValue>;
4
+ gAxis: import("d3-selection").Selection<SVGGElement, any, null, undefined>;
5
+ tilesetInfo: boolean;
6
+ draw(): this;
7
+ zoomed(newXScale: any, newYScale: any): void;
8
+ }
9
+ import SVGTrack from './SVGTrack';
@@ -0,0 +1,29 @@
1
+ export default LeftTrackModifier;
2
+ declare class LeftTrackModifier {
3
+ constructor(originalTrack: any);
4
+ scene: any;
5
+ originalTrack: any;
6
+ pBase: import("pixi.js").Graphics;
7
+ moveToOrigin: import("pixi.js").Graphics;
8
+ svgOutput: any;
9
+ remove(): void;
10
+ setDimensions(newDimensions: any): void;
11
+ dimensions: any;
12
+ setPosition(newPosition: any): void;
13
+ position: any;
14
+ refXScale(_: any, ...args: any[]): any;
15
+ refYScale(_: any, ...args: any[]): any;
16
+ xScale(_: any, ...args: any[]): any;
17
+ yScale(_: any, ...args: any[]): any;
18
+ getMouseOverHtml(trackX: any, trackY: any): any;
19
+ clickOutside(): void;
20
+ click(...args: any[]): void;
21
+ draw(): void;
22
+ zoomed(newXScale: any, newYScale: any, k?: number, tx?: number, ty?: number, xPositionOffset?: number, yPositionOffset?: number): void;
23
+ zoomedY(yPos: any, kMultiplier: any): void;
24
+ movedY(dY: any): void;
25
+ refScalesChanged(refXScale: any, refYScale: any): void;
26
+ rerender(options: any): void;
27
+ exportSVG(): HTMLElement[];
28
+ respondsToPosition(x: any, y: any): boolean;
29
+ }
@@ -0,0 +1,64 @@
1
+ export default ListWrapper;
2
+ declare class ListWrapper extends React.Component<any, any, any> {
3
+ constructor({ items }: {
4
+ items: any;
5
+ });
6
+ state: {
7
+ items: any;
8
+ isSorting: boolean;
9
+ };
10
+ UNSAFE_componentWillReceiveProps(nextProps: any): void;
11
+ onSortStart({ node, index, collection }: {
12
+ node: any;
13
+ index: any;
14
+ collection: any;
15
+ }, e: any): void;
16
+ sortingIndex: any;
17
+ sortStartTop: any;
18
+ sortStartLeft: any;
19
+ onSortMove(): void;
20
+ onSortEnd({ oldIndex, newIndex }: {
21
+ oldIndex: any;
22
+ newIndex: any;
23
+ }): void;
24
+ render(): React.JSX.Element;
25
+ ref: any;
26
+ }
27
+ declare namespace ListWrapper {
28
+ namespace propTypes {
29
+ let axis: PropTypes.Requireable<string>;
30
+ let className: PropTypes.Requireable<string>;
31
+ let component: PropTypes.Requireable<(...args: any[]) => any>;
32
+ let editable: PropTypes.Requireable<boolean>;
33
+ let handleConfigTrack: PropTypes.Requireable<(...args: any[]) => any>;
34
+ let handleResizeTrack: PropTypes.Requireable<(...args: any[]) => any>;
35
+ let height: PropTypes.Requireable<number>;
36
+ let helperClass: PropTypes.Requireable<string>;
37
+ let itemClass: PropTypes.Requireable<string>;
38
+ let itemControlAlignLeft: PropTypes.Requireable<boolean>;
39
+ let itemReactClass: PropTypes.Requireable<(...args: any[]) => any>;
40
+ let items: PropTypes.Requireable<any[]>;
41
+ let onAddSeries: PropTypes.Requireable<(...args: any[]) => any>;
42
+ let onCloseTrack: PropTypes.Requireable<(...args: any[]) => any>;
43
+ let onCloseTrackMenuOpened: PropTypes.Requireable<(...args: any[]) => any>;
44
+ let onConfigTrackMenuOpened: PropTypes.Requireable<(...args: any[]) => any>;
45
+ let onSortEnd: PropTypes.Requireable<(...args: any[]) => any>;
46
+ let onSortStart: PropTypes.Requireable<(...args: any[]) => any>;
47
+ let referenceAncestor: PropTypes.Requireable<string>;
48
+ let resizeHandles: PropTypes.Requireable<object>;
49
+ let useDragHandle: PropTypes.Requireable<boolean>;
50
+ let width: PropTypes.Requireable<number>;
51
+ }
52
+ namespace defaultProps {
53
+ let className_1: string;
54
+ export { className_1 as className };
55
+ let itemClass_1: string;
56
+ export { itemClass_1 as itemClass };
57
+ let width_1: number;
58
+ export { width_1 as width };
59
+ let height_1: number;
60
+ export { height_1 as height };
61
+ }
62
+ }
63
+ import React from 'react';
64
+ import PropTypes from 'prop-types';
@@ -0,0 +1,9 @@
1
+ export default MapboxTilesTrack;
2
+ /**
3
+ * A track that must pull remote tiles
4
+ */
5
+ declare class MapboxTilesTrack extends OSMTilesTrack {
6
+ style: any;
7
+ rerender(newOptions: any): void;
8
+ }
9
+ import OSMTilesTrack from './OSMTilesTrack';
@@ -0,0 +1,5 @@
1
+ declare const _default: typeof React.Component<{
2
+ modal?: Modal;
3
+ }>;
4
+ export default _default;
5
+ import React from 'react';
@@ -0,0 +1,18 @@
1
+ export default MoveableTrack;
2
+ declare class MoveableTrack extends TrackArea {
3
+ moveable: boolean;
4
+ render(): React.JSX.Element;
5
+ el: HTMLDivElement | null | undefined;
6
+ }
7
+ declare namespace MoveableTrack {
8
+ namespace propTypes {
9
+ let className: PropTypes.Requireable<string>;
10
+ let uid: PropTypes.Requireable<string>;
11
+ let item: PropTypes.Requireable<object>;
12
+ let height: PropTypes.Requireable<number>;
13
+ let width: PropTypes.Requireable<number>;
14
+ }
15
+ }
16
+ import TrackArea from './TrackArea';
17
+ import React from 'react';
18
+ import PropTypes from 'prop-types';
@@ -0,0 +1,7 @@
1
+ export default NestedContextMenu;
2
+ declare class NestedContextMenu extends ContextMenuContainer {
3
+ getSubmenu(): React.JSX.Element;
4
+ componentWillUnmount(): void;
5
+ }
6
+ import ContextMenuContainer from './ContextMenuContainer';
7
+ import React from 'react';
@@ -0,0 +1,5 @@
1
+ export default OSMTileIdsTrack;
2
+ declare class OSMTileIdsTrack extends OSMTilesTrack {
3
+ drawTile(tile: any): void;
4
+ }
5
+ import OSMTilesTrack from './OSMTilesTrack';