higlass 1.13.2 → 1.13.4

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 (244) hide show
  1. package/README.md +0 -2
  2. package/app/globals.d.ts +4 -4
  3. package/app/missing-types.d.ts +3 -3
  4. package/app/scripts/AddTrackDialog.jsx +1 -0
  5. package/app/scripts/AddTrackPositionMenu.jsx +17 -4
  6. package/app/scripts/Annotations1dTrack.js +1 -0
  7. package/app/scripts/Annotations2dTrack.js +1 -0
  8. package/app/scripts/ArrowheadDomainsTrack.js +1 -0
  9. package/app/scripts/Autocomplete.jsx +1 -0
  10. package/app/scripts/AxisPixi.js +1 -0
  11. package/app/scripts/BarTrack.js +1 -0
  12. package/app/scripts/BedLikeTrack.js +1 -0
  13. package/app/scripts/Button.jsx +1 -0
  14. package/app/scripts/CNVIntervalTrack.js +1 -0
  15. package/app/scripts/CenterTiledPlot.jsx +1 -0
  16. package/app/scripts/CenterTrack.jsx +1 -0
  17. package/app/scripts/Chromosome2DAnnotations.js +1 -0
  18. package/app/scripts/Chromosome2DLabels.js +1 -0
  19. package/app/scripts/ChromosomeGrid.js +1 -0
  20. package/app/scripts/ChromosomeInfo.js +1 -0
  21. package/app/scripts/CloseTrackMenu.jsx +1 -0
  22. package/app/scripts/CombinedTrack.js +1 -0
  23. package/app/scripts/ConfigTrackMenu.jsx +1 -0
  24. package/app/scripts/ConfigViewMenu.jsx +1 -0
  25. package/app/scripts/ConfigureSeriesMenu.jsx +1 -0
  26. package/app/scripts/ContextMenuContainer.jsx +1 -0
  27. package/app/scripts/ContextMenuItem.jsx +1 -0
  28. package/app/scripts/Cross.jsx +1 -0
  29. package/app/scripts/CrossRule.js +1 -0
  30. package/app/scripts/CustomTrackDialog.jsx +1 -0
  31. package/app/scripts/Dialog.jsx +1 -0
  32. package/app/scripts/DivergentBarTrack.js +1 -0
  33. package/app/scripts/DragListeningDiv.jsx +1 -0
  34. package/app/scripts/DraggableDiv.jsx +1 -0
  35. package/app/scripts/ExportLinkDialog.jsx +1 -0
  36. package/app/scripts/FixedTrack.jsx +1 -0
  37. package/app/scripts/GalleryTracks.jsx +1 -0
  38. package/app/scripts/GenomePositionSearchBox.jsx +1 -0
  39. package/app/scripts/HeatmapOptions.jsx +1 -0
  40. package/app/scripts/HeatmapTiledPixiTrack.js +1 -0
  41. package/app/scripts/HiGlassComponent.jsx +1 -0
  42. package/app/scripts/HiGlassTrackComponent.jsx +1 -0
  43. package/app/scripts/Horizontal1dHeatmapTrack.js +1 -0
  44. package/app/scripts/Horizontal2DDomainsTrack.js +1 -0
  45. package/app/scripts/HorizontalChromosomeLabels.js +1 -0
  46. package/app/scripts/HorizontalGeneAnnotationsTrack.js +1 -0
  47. package/app/scripts/HorizontalHeatmapTrack.js +1 -0
  48. package/app/scripts/HorizontalItem.jsx +1 -0
  49. package/app/scripts/HorizontalLine1DPixiTrack.js +1 -0
  50. package/app/scripts/HorizontalMultivecTrack.js +1 -0
  51. package/app/scripts/HorizontalPoint1DPixiTrack.js +1 -0
  52. package/app/scripts/HorizontalRule.js +1 -0
  53. package/app/scripts/HorizontalTiled1DPixiTrack.js +1 -0
  54. package/app/scripts/HorizontalTiledPlot.jsx +1 -0
  55. package/app/scripts/HorizontalTrack.jsx +1 -0
  56. package/app/scripts/Id2DTiledPixiTrack.js +1 -0
  57. package/app/scripts/IdHorizontal1DTiledPixiTrack.js +1 -0
  58. package/app/scripts/IdVertical1DTiledPixiTrack.js +1 -0
  59. package/app/scripts/LeftAxisTrack.js +1 -0
  60. package/app/scripts/LeftTrackModifier.js +1 -0
  61. package/app/scripts/ListWrapper.jsx +1 -0
  62. package/app/scripts/MapboxTilesTrack.js +1 -0
  63. package/app/scripts/Modal.jsx +1 -0
  64. package/app/scripts/MoveableTrack.jsx +1 -0
  65. package/app/scripts/NestedContextMenu.jsx +1 -0
  66. package/app/scripts/OSMTileIdsTrack.js +1 -0
  67. package/app/scripts/OSMTilesTrack.js +1 -0
  68. package/app/scripts/OverlayTrack.js +1 -0
  69. package/app/scripts/PixiTrack.js +0 -1
  70. package/app/scripts/PlotTypeChooser.jsx +1 -0
  71. package/app/scripts/PopupMenu.jsx +1 -0
  72. package/app/scripts/RasterTilesTrack.js +1 -0
  73. package/app/scripts/RuleMixin.js +1 -0
  74. package/app/scripts/SVGTrack.js +1 -0
  75. package/app/scripts/SearchField.js +1 -0
  76. package/app/scripts/SeriesListItems.jsx +1 -0
  77. package/app/scripts/SeriesListMenu.jsx +1 -0
  78. package/app/scripts/SeriesListSubmenuMixin.jsx +1 -0
  79. package/app/scripts/SketchInlinePicker.jsx +1 -0
  80. package/app/scripts/SortableList.jsx +1 -0
  81. package/app/scripts/SquareMarkersTrack.js +1 -0
  82. package/app/scripts/Tiled1DPixiTrack.js +1 -0
  83. package/app/scripts/TiledPixiTrack.js +1 -0
  84. package/app/scripts/TiledPlot.jsx +9 -0
  85. package/app/scripts/TilesetFinder.jsx +1 -0
  86. package/app/scripts/TopAxisTrack.js +1 -0
  87. package/app/scripts/Track.js +0 -1
  88. package/app/scripts/TrackArea.jsx +1 -0
  89. package/app/scripts/TrackControl.jsx +1 -0
  90. package/app/scripts/TrackRenderer.jsx +0 -1
  91. package/app/scripts/UnknownPixiTrack.js +1 -0
  92. package/app/scripts/ValueIntervalTrack.js +1 -0
  93. package/app/scripts/VerticalItem.jsx +1 -0
  94. package/app/scripts/VerticalRule.js +1 -0
  95. package/app/scripts/VerticalTiled1DPixiTrack.js +1 -0
  96. package/app/scripts/VerticalTiledPlot.jsx +1 -0
  97. package/app/scripts/VerticalTrack.jsx +1 -0
  98. package/app/scripts/ViewConfigEditor.jsx +1 -0
  99. package/app/scripts/ViewContextMenu.jsx +1 -0
  100. package/app/scripts/ViewHeader.jsx +1 -0
  101. package/app/scripts/ViewportTracker2D.js +1 -0
  102. package/app/scripts/ViewportTracker2DPixi.js +1 -0
  103. package/app/scripts/ViewportTrackerHorizontal.js +1 -0
  104. package/app/scripts/ViewportTrackerVertical.js +1 -0
  105. package/app/scripts/api.js +1 -0
  106. package/app/scripts/configs/available-track-types.js +1 -0
  107. package/app/scripts/configs/colormaps.js +1 -0
  108. package/app/scripts/configs/datatype-to-track-type.js +1 -0
  109. package/app/scripts/configs/default-tracks-for-datatype.js +0 -1
  110. package/app/scripts/configs/dense-data-extrema-config.js +1 -0
  111. package/app/scripts/configs/globals.js +1 -0
  112. package/app/scripts/configs/index.js +1 -0
  113. package/app/scripts/configs/positions-by-datatype.js +1 -0
  114. package/app/scripts/configs/primitives.js +0 -1
  115. package/app/scripts/configs/themes.js +1 -0
  116. package/app/scripts/configs/tracks-info-by-type.js +0 -1
  117. package/app/scripts/configs/tracks-info.js +0 -1
  118. package/app/scripts/d3-context-menu.js +1 -0
  119. package/app/scripts/data-fetchers/DataFetcher.js +193 -153
  120. package/app/scripts/data-fetchers/genbank-fetcher.js +205 -87
  121. package/app/scripts/data-fetchers/index.js +1 -0
  122. package/app/scripts/data-fetchers/local-tile-fetcher.js +37 -4
  123. package/app/scripts/hglib.jsx +1 -0
  124. package/app/scripts/hocs/with-modal.jsx +1 -0
  125. package/app/scripts/hocs/with-pub-sub.jsx +1 -0
  126. package/app/scripts/hocs/with-theme.jsx +1 -0
  127. package/app/scripts/icons.jsx +1 -0
  128. package/app/scripts/mixwith.js +1 -0
  129. package/app/scripts/options-info.js +1 -0
  130. package/app/scripts/plugins/available-for-plugins.js +1 -0
  131. package/app/scripts/plugins/get-data-fetcher.js +1 -0
  132. package/app/scripts/plugins/index.js +1 -0
  133. package/app/scripts/services/chrom-info.js +1 -0
  134. package/app/scripts/services/dom-event.js +1 -0
  135. package/app/scripts/services/element-resize-listener.js +1 -0
  136. package/app/scripts/services/index.js +1 -0
  137. package/app/scripts/services/tile-proxy.js +14 -10
  138. package/app/scripts/services/worker.js +161 -84
  139. package/app/scripts/symbol.js +1 -0
  140. package/app/scripts/test-helpers/index.js +1 -0
  141. package/app/scripts/test-helpers/test-helpers.jsx +1 -0
  142. package/app/scripts/track-utils.js +1 -0
  143. package/app/scripts/types.ts +59 -22
  144. package/app/scripts/utils/DenseDataExtrema1D.js +32 -19
  145. package/app/scripts/utils/DenseDataExtrema2D.js +51 -31
  146. package/app/scripts/utils/LruCache.js +1 -0
  147. package/app/scripts/utils/abs-to-chr.js +0 -1
  148. package/app/scripts/utils/accessor-transposition.js +0 -2
  149. package/app/scripts/utils/add-arrays.js +0 -2
  150. package/app/scripts/utils/add-class.js +0 -1
  151. package/app/scripts/utils/add-event-listener-once.js +0 -2
  152. package/app/scripts/utils/background-task-scheduler.js +0 -2
  153. package/app/scripts/utils/base64-to-canvas.js +0 -2
  154. package/app/scripts/utils/chr-to-abs.js +0 -2
  155. package/app/scripts/utils/chrom-info-bisector.js +0 -1
  156. package/app/scripts/utils/clone-event.js +0 -2
  157. package/app/scripts/utils/color-domain-to-rgba-array.js +1 -0
  158. package/app/scripts/utils/color-to-hex.js +0 -1
  159. package/app/scripts/utils/color-to-rgba.js +0 -1
  160. package/app/scripts/utils/data-to-genomic-loci.js +0 -1
  161. package/app/scripts/utils/debounce.js +0 -2
  162. package/app/scripts/utils/dec-to-hex-str.js +0 -1
  163. package/app/scripts/utils/dict-from-tuples.js +0 -2
  164. package/app/scripts/utils/dict-items.js +0 -2
  165. package/app/scripts/utils/dict-keys.js +0 -2
  166. package/app/scripts/utils/dict-values.js +0 -2
  167. package/app/scripts/utils/download.js +0 -2
  168. package/app/scripts/utils/expand-combined-tracks.js +1 -0
  169. package/app/scripts/utils/fill-in-min-widths.js +1 -0
  170. package/app/scripts/utils/flatten.js +1 -0
  171. package/app/scripts/utils/for-each.js +0 -1
  172. package/app/scripts/utils/forward-event.js +0 -1
  173. package/app/scripts/utils/genome-loci-to-pixels.js +0 -1
  174. package/app/scripts/utils/genomic-range-to-chromosome-chunks.js +0 -2
  175. package/app/scripts/utils/get-aggregation-function.js +6 -12
  176. package/app/scripts/utils/get-default-track-for-datatype.js +1 -0
  177. package/app/scripts/utils/get-element-dim.js +0 -1
  178. package/app/scripts/utils/get-higlass-components.js +1 -0
  179. package/app/scripts/utils/get-track-by-uid.js +1 -0
  180. package/app/scripts/utils/get-track-conf-from-hgc.js +1 -0
  181. package/app/scripts/utils/get-track-obj-by-id.js +1 -0
  182. package/app/scripts/utils/get-track-position-by-uid.js +1 -0
  183. package/app/scripts/utils/get-xylofon.js +1 -0
  184. package/app/scripts/utils/gradient.js +0 -2
  185. package/app/scripts/utils/has-class.js +0 -2
  186. package/app/scripts/utils/has-parent.js +1 -0
  187. package/app/scripts/utils/hex-string-to-int.js +0 -1
  188. package/app/scripts/utils/index.js +0 -1
  189. package/app/scripts/utils/interval-tree.js +1 -0
  190. package/app/scripts/utils/into-the-void.js +0 -1
  191. package/app/scripts/utils/is-track-or-child-track.js +0 -1
  192. package/app/scripts/utils/is-track-range-selectable.js +0 -1
  193. package/app/scripts/utils/is-within.js +0 -2
  194. package/app/scripts/utils/lat-to-y.js +0 -2
  195. package/app/scripts/utils/lng-to-x.js +0 -1
  196. package/app/scripts/utils/load-chrom-infos.js +1 -0
  197. package/app/scripts/utils/map.js +0 -1
  198. package/app/scripts/utils/max-non-zero.js +0 -1
  199. package/app/scripts/utils/max.js +0 -1
  200. package/app/scripts/utils/min-non-zero.js +0 -1
  201. package/app/scripts/utils/min.js +0 -1
  202. package/app/scripts/utils/mod.js +0 -1
  203. package/app/scripts/utils/ndarray-assign.js +1 -0
  204. package/app/scripts/utils/ndarray-flatten.js +1 -0
  205. package/app/scripts/utils/ndarray-to-list.js +1 -0
  206. package/app/scripts/utils/numericify-version.js +0 -1
  207. package/app/scripts/utils/obj-vals.js +1 -0
  208. package/app/scripts/utils/or.js +0 -1
  209. package/app/scripts/utils/parse-chromsizes-rows.js +0 -2
  210. package/app/scripts/utils/pixi-text-to-svg.js +1 -0
  211. package/app/scripts/utils/q.js +1 -0
  212. package/app/scripts/utils/rad-to-deg.js +0 -1
  213. package/app/scripts/utils/range-query-2d.js +1 -0
  214. package/app/scripts/utils/reduce.js +1 -0
  215. package/app/scripts/utils/rel-to-abs-chrom-pos.js +0 -2
  216. package/app/scripts/utils/remove-class.js +0 -1
  217. package/app/scripts/utils/reset-d3-brush-style.js +0 -2
  218. package/app/scripts/utils/rgb-to-hex.js +0 -2
  219. package/app/scripts/utils/scales-center-and-k.js +0 -2
  220. package/app/scripts/utils/scales-to-genome-loci.js +0 -1
  221. package/app/scripts/utils/segments-to-rows.js +1 -0
  222. package/app/scripts/utils/selected-items-to-cum-weights.js +0 -1
  223. package/app/scripts/utils/selected-items-to-size.js +0 -1
  224. package/app/scripts/utils/show-mouse-position.js +0 -1
  225. package/app/scripts/utils/some.js +0 -1
  226. package/app/scripts/utils/sum.js +0 -1
  227. package/app/scripts/utils/svg-line.js +1 -0
  228. package/app/scripts/utils/throttle-and-debounce.js +0 -1
  229. package/app/scripts/utils/tile-to-canvas.js +0 -1
  230. package/app/scripts/utils/timeout.js +0 -1
  231. package/app/scripts/utils/to-void.js +0 -1
  232. package/app/scripts/utils/total-track-pixel-height.js +0 -1
  233. package/app/scripts/utils/trim-trailing-slash.js +0 -1
  234. package/app/scripts/utils/type-guards.js +0 -2
  235. package/app/scripts/utils/value-to-color.js +0 -1
  236. package/app/scripts/utils/visit-positioned-tracks.js +0 -1
  237. package/app/scripts/utils/visit-tracks.js +0 -1
  238. package/dist/esm.html +13 -14
  239. package/dist/hglib.css +1 -1724
  240. package/dist/hglib.js +122664 -28
  241. package/dist/hglib.min.js +116 -119
  242. package/dist/higlass.mjs +122646 -28
  243. package/dist/index.html +5 -6
  244. package/package.json +23 -16
package/README.md CHANGED
@@ -57,8 +57,6 @@ Useful commands:
57
57
  - Run a specific test or "glob" of tests: `npm test -- test/APITests.js [--watch]`
58
58
  - Manually run individual tests in an open browser window: `npm test -- --manual`
59
59
 
60
- There can sometimes be import issues due to timeouts when running tests after a clean installation. It is best to run `npm run optimize` prior to running tests for the first time.
61
-
62
60
  **Troubleshooting:**
63
61
 
64
62
  - If the installation fails due to `sharp` > `node-gyp` try installing the node packages using `python2`:
package/app/globals.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- export {}
1
+ export {};
2
2
  /* eslint-disable */
3
3
  declare global {
4
4
  interface Window {
5
5
  higlassTracksByType?: {
6
6
  [trackType: string]: {
7
- config: import('./scripts/configs/tracks-info').TrackInfo
8
- }
9
- }
7
+ config: import('./scripts/configs/tracks-info').TrackInfo;
8
+ };
9
+ };
10
10
  }
11
11
  }
@@ -5,17 +5,17 @@ declare module 'pub-sub-es' {
5
5
  export type Subscription = {
6
6
  event: string;
7
7
  handler: (news: any) => void;
8
- }
8
+ };
9
9
  type PublishOptions = {
10
10
  async?: boolean;
11
11
  isNoGlobalBroadCast?: boolean;
12
- }
12
+ };
13
13
  export type PubSub = {
14
14
  publish(event: string, news?: any, options?: PublishOptions): void;
15
15
  subscribe(event: string, handler: (news: any) => void): Subscription;
16
16
  unsubscribe(subscription: Subscription): void;
17
17
  clear(): void;
18
- }
18
+ };
19
19
  export function createPubSub(): PubSub;
20
20
  export const globalPubSub: PubSub;
21
21
  }
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import React from 'react';
2
3
  import PropTypes from 'prop-types';
3
4
 
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import PropTypes from 'prop-types';
2
3
  import React from 'react';
3
4
  import clsx from 'clsx';
@@ -19,14 +20,20 @@ function AddTrackPositionMenu(props) {
19
20
  >
20
21
  <tbody>
21
22
  <tr style={{ height: '30px' }}>
22
- <td className={classes['add-track-position-other']} />
23
+ <td
24
+ aria-hidden="true"
25
+ className={classes['add-track-position-other']}
26
+ />
23
27
  <td
24
28
  className={classes['add-track-position-top-center']}
25
29
  onClick={() => props.onTrackPositionChosen('top')}
26
30
  >
27
31
  top
28
32
  </td>
29
- <td className={classes['add-track-position-other']} />
33
+ <td
34
+ aria-hidden="true"
35
+ className={classes['add-track-position-other']}
36
+ />
30
37
  </tr>
31
38
  <tr style={{ height: '80px' }}>
32
39
  <td
@@ -49,14 +56,20 @@ function AddTrackPositionMenu(props) {
49
56
  </td>
50
57
  </tr>
51
58
  <tr style={{ height: '30px' }}>
52
- <td className={classes['add-track-position-other']} />
59
+ <td
60
+ aria-hidden="true"
61
+ className={classes['add-track-position-other']}
62
+ />
53
63
  <td
54
64
  className={classes['add-track-position-bottom-middle']}
55
65
  onClick={() => props.onTrackPositionChosen('bottom')}
56
66
  >
57
67
  bottom
58
68
  </td>
59
- <td className={classes['add-track-position-other']} />
69
+ <td
70
+ aria-hidden="true"
71
+ className={classes['add-track-position-other']}
72
+ />
60
73
  </tr>
61
74
  </tbody>
62
75
  </table>
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import { color } from 'd3-color';
2
3
  import PixiTrack from './PixiTrack';
3
4
 
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import createPubSub from 'pub-sub-es';
2
3
 
3
4
  import TiledPixiTrack from './TiledPixiTrack';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import createPubSub from 'pub-sub-es';
2
3
 
3
4
  import TiledPixiTrack from './TiledPixiTrack';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  /* eslint-disable react/jsx-props-no-spreading */
2
3
  import React from 'react';
3
4
  import { findDOMNode } from 'react-dom';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import { format } from 'd3-format';
2
3
 
3
4
  // Configs
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import { scaleLinear } from 'd3-scale';
2
3
  import { zoomIdentity } from 'd3-zoom';
3
4
 
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import boxIntersect from 'box-intersect';
2
3
  import { median, range } from 'd3-array';
3
4
  import { scaleBand, scaleLinear } from 'd3-scale';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import React from 'react';
2
3
  import PropTypes from 'prop-types';
3
4
 
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import { scaleBand } from 'd3-scale';
2
3
  import { range } from 'd3-array';
3
4
  import { segmentsToRows } from './utils';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import React from 'react';
2
3
 
3
4
  function CenterTiledPlot() {
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import PropTypes from 'prop-types';
2
3
  import React from 'react';
3
4
  import { brush, brushX, brushY } from 'd3-brush';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import { color } from 'd3-color';
2
3
 
3
4
  import PixiTrack from './PixiTrack';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import boxIntersect from 'box-intersect';
2
3
 
3
4
  import PixiTrack from './PixiTrack';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import PixiTrack from './PixiTrack';
2
3
  import ChromosomeInfo from './ChromosomeInfo';
3
4
  import SearchField from './SearchField';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import { tsvParseRows } from 'd3-dsv';
2
3
  import { tileProxy } from './services';
3
4
  import { absToChr, chrToAbs, parseChromsizesRows } from './utils';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import PropTypes from 'prop-types';
2
3
  import React from 'react';
3
4
 
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import slugid from 'slugid';
2
3
 
3
4
  class CombinedTrack {
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import React from 'react';
2
3
  import clsx from 'clsx';
3
4
  import { mix } from './mixwith';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import React from 'react';
2
3
  import PropTypes from 'prop-types';
3
4
  import clsx from 'clsx';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import React from 'react';
2
3
 
3
4
  import ContextMenuContainer from './ContextMenuContainer';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import PropTypes from 'prop-types';
2
3
  import React from 'react';
3
4
  import ReactDOM from 'react-dom';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import PropTypes from 'prop-types';
2
3
  import React from 'react';
3
4
 
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import React from 'react';
2
3
 
3
4
  import classes from '../styles/Cross.module.scss';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import { colorToHex } from './utils';
2
3
  import { mix } from './mixwith';
3
4
 
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import React from 'react';
2
3
  import PropTypes from 'prop-types';
3
4
 
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import React from 'react';
2
3
  import PropTypes from 'prop-types';
3
4
  import clsx from 'clsx';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import { scaleLinear, scaleLog } from 'd3-scale';
2
3
 
3
4
  import BarTrack from './BarTrack';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import PropTypes from 'prop-types';
2
3
  import React from 'react';
3
4
  import slugid from 'slugid';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import { drag } from 'd3-drag';
2
3
  import { pointer, select } from 'd3-selection';
3
4
  import PropTypes from 'prop-types';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import React from 'react';
2
3
  import PropTypes from 'prop-types';
3
4
 
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import React from 'react';
2
3
  import TrackArea from './TrackArea';
3
4
 
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import PropTypes from 'prop-types';
2
3
  import React from 'react';
3
4
  import clsx from 'clsx';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import { select } from 'd3-selection';
2
3
  import React from 'react';
3
4
  import slugid from 'slugid';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import PropTypes from 'prop-types';
2
3
  import React from 'react';
3
4
  import Dialog from './Dialog';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import ndarray from 'ndarray';
2
3
  import { brushY } from 'd3-brush';
3
4
  import { format } from 'd3-format';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import React from 'react';
2
3
  import PropTypes from 'prop-types';
3
4
  import { select, pointer } from 'd3-selection';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import PropTypes from 'prop-types';
2
3
  import React from 'react';
3
4
 
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import { scaleLinear } from 'd3-scale';
2
3
  import HorizontalLine1DPixiTrack from './HorizontalLine1DPixiTrack';
3
4
 
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import TiledPixiTrack from './TiledPixiTrack';
2
3
 
3
4
  import { tileProxy } from './services';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import boxIntersect from 'box-intersect';
2
3
  import { scaleLinear } from 'd3-scale';
3
4
  import { format, precisionPrefix, formatPrefix } from 'd3-format';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import boxIntersect from 'box-intersect';
2
3
  import classifyPoint from 'robust-point-in-polygon';
3
4
 
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import HeatmapTiledPixiTrack from './HeatmapTiledPixiTrack';
2
3
 
3
4
  // Services
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import React from 'react';
2
3
  import { SortableElement } from 'react-sortable-hoc';
3
4
 
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import { format } from 'd3-format';
2
3
  import { scaleLinear } from 'd3-scale';
3
4
 
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import { format } from 'd3-format';
2
3
 
3
4
  import HeatmapTiledPixiTrack from './HeatmapTiledPixiTrack';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import { scaleLinear, scaleLog } from 'd3-scale';
2
3
  import HorizontalLine1DPixiTrack from './HorizontalLine1DPixiTrack';
3
4
  import { colorToHex, dictValues } from './utils';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  /* eslint-disable max-classes-per-file */
2
3
 
3
4
  import { mix, Mixin } from './mixwith';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import Tiled1DPixiTrack from './Tiled1DPixiTrack';
2
3
  import AxisPixi from './AxisPixi';
3
4
 
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import PropTypes from 'prop-types';
2
3
  import React from 'react';
3
4
  import { brushX } from 'd3-brush';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import React from 'react';
2
3
 
3
4
  import MoveableTrack from './MoveableTrack';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import HeatmapTiledPixiTrack from './HeatmapTiledPixiTrack';
2
3
 
3
4
  // Configs
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import HorizontalTiled1DPixiTrack from './HorizontalTiled1DPixiTrack';
2
3
 
3
4
  // Configs
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  // Configs
2
3
  import { GLOBALS } from './configs';
3
4
 
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import { axisLeft } from 'd3-axis';
2
3
 
3
4
  import SVGTrack from './SVGTrack';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  // Configs
2
3
  import { GLOBALS } from './configs';
3
4
 
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  /* eslint-disable react/jsx-props-no-spreading */
2
3
  import PropTypes from 'prop-types';
3
4
  import React from 'react';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import OSMTilesTrack from './OSMTilesTrack';
2
3
 
3
4
  /**
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import React from 'react';
2
3
  import PropTypes from 'prop-types';
3
4
  import clsx from 'clsx';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import PropTypes from 'prop-types';
2
3
  import React from 'react';
3
4
 
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import React from 'react';
2
3
  import clsx from 'clsx';
3
4
 
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import { initTile, drawTile } from './Id2DTiledPixiTrack';
2
3
  import OSMTilesTrack from './OSMTilesTrack';
3
4
 
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import slugid from 'slugid';
2
3
 
3
4
  import PixiTrack from './PixiTrack';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import PixiTrack from './PixiTrack';
2
3
 
3
4
  // Utils
@@ -1,4 +1,3 @@
1
- // @ts-check
2
1
  import { formatPrefix, precisionPrefix } from 'd3-format';
3
2
  import slugid from 'slugid';
4
3
 
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import PropTypes from 'prop-types';
2
3
  import React from 'react';
3
4
 
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import PropTypes from 'prop-types';
2
3
  import React from 'react';
3
4
  import ReactDOM from 'react-dom';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import OSMTilesTrack from './OSMTilesTrack';
2
3
 
3
4
  /**
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import { Mixin } from './mixwith';
2
3
 
3
4
  const RuleMixin = Mixin(
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import { select } from 'd3-selection';
2
3
  import slugid from 'slugid';
3
4
 
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import { bisector } from 'd3-array';
2
3
  import { format } from 'd3-format';
3
4
  import absToChr from './utils/abs-to-chr';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import React from 'react';
2
3
 
3
4
  import ContextMenuItem from './ContextMenuItem';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import React from 'react';
2
3
  import clsx from 'clsx';
3
4
 
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import React from 'react';
2
3
  import { Mixin } from './mixwith';
3
4
 
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import PropTypes from 'prop-types';
2
3
  import { rgb as d3rgb } from 'd3-color';
3
4
  import React from 'react';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  /* eslint-disable react/jsx-props-no-spreading */
2
3
  import React from 'react';
3
4
  import { SortableContainer } from 'react-sortable-hoc';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import TiledPixiTrack from './TiledPixiTrack';
2
3
 
3
4
  import { tileProxy } from './services';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import { scaleLinear } from 'd3-scale';
2
3
 
3
4
  import TiledPixiTrack from './TiledPixiTrack';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import { scaleLinear, scaleLog, scaleQuantile } from 'd3-scale';
2
3
  import { median, range, ticks } from 'd3-array';
3
4
  import slugid from 'slugid';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import { pointer } from 'd3-selection';
2
3
  import slugid from 'slugid';
3
4
  import React from 'react';
@@ -1629,6 +1630,14 @@ class TiledPlot extends React.Component {
1629
1630
  */
1630
1631
  getIdealizedTrackPositionsOverlay() {
1631
1632
  const evtJson = this.props.draggingHappening;
1633
+
1634
+ // For whatever reason, evtJson is sometimes a boolean. This rest of
1635
+ // this code block assumes it's an object, so we return undefined if
1636
+ // it's not.
1637
+ if (typeof evtJson === 'boolean') {
1638
+ return undefined;
1639
+ }
1640
+
1632
1641
  const datatype = evtJson.datatype;
1633
1642
 
1634
1643
  if (!(datatype in DEFAULT_TRACKS_FOR_DATATYPE) && !evtJson.defaultTracks) {
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import React from 'react';
2
3
  import PropTypes from 'prop-types';
3
4
  import slugid from 'slugid';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import { axisTop } from 'd3-axis';
2
3
 
3
4
  import SVGTrack from './SVGTrack';