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.
- package/README.md +48 -54
- package/app/globals.d.ts +1 -1
- package/app/missing-types.d.ts +4 -1
- package/app/scripts/AddTrackDialog.jsx +11 -4
- package/app/scripts/AddTrackPositionMenu.jsx +28 -7
- package/app/scripts/Annotations1dTrack.js +90 -251
- package/app/scripts/Annotations2dTrack.js +12 -7
- package/app/scripts/Autocomplete.jsx +13 -28
- package/app/scripts/AxisPixi.js +6 -10
- package/app/scripts/BarTrack.js +3 -3
- package/app/scripts/BedLikeTrack.js +556 -449
- package/app/scripts/Button.jsx +1 -1
- package/app/scripts/CNVIntervalTrack.js +1 -1
- package/app/scripts/CenterTrack.jsx +8 -7
- package/app/scripts/Chromosome2DAnnotations.js +1 -1
- package/app/scripts/Chromosome2DLabels.js +1 -1
- package/app/scripts/ChromosomeGrid.js +49 -38
- package/app/scripts/ChromosomeInfo.js +1 -1
- package/app/scripts/CombinedTrack.js +3 -1
- package/app/scripts/ConfigTrackMenu.jsx +1 -1
- package/app/scripts/ConfigViewMenu.jsx +2 -2
- package/app/scripts/ContextMenuContainer.jsx +4 -2
- package/app/scripts/ContextMenuItem.jsx +14 -2
- package/app/scripts/CrossRule.js +1 -1
- package/app/scripts/CustomTrackDialog.jsx +2 -2
- package/app/scripts/Dialog.jsx +2 -2
- package/app/scripts/DragListeningDiv.jsx +1 -1
- package/app/scripts/DraggableDiv.jsx +2 -3
- package/app/scripts/ExportLinkDialog.jsx +1 -1
- package/app/scripts/FilledLine.js +349 -0
- package/app/scripts/GalleryTracks.jsx +77 -78
- package/app/scripts/GenomePositionSearchBox.jsx +184 -482
- package/app/scripts/HeatmapOptions.jsx +4 -2
- package/app/scripts/HeatmapTiledPixiTrack.js +23 -32
- package/app/scripts/HiGlassComponent.jsx +515 -444
- package/app/scripts/HiGlassComponentContext.js +5 -0
- package/app/scripts/Horizontal1dHeatmapTrack.js +1 -1
- package/app/scripts/Horizontal2DDomainsTrack.js +1 -1
- package/app/scripts/HorizontalChromosomeLabels.js +28 -22
- package/app/scripts/HorizontalGeneAnnotationsTrack.js +1 -1
- package/app/scripts/HorizontalHeatmapTrack.js +2 -2
- package/app/scripts/HorizontalMultivecTrack.js +6 -7
- package/app/scripts/HorizontalRule.js +1 -2
- package/app/scripts/HorizontalTiled1DPixiTrack.js +4 -4
- package/app/scripts/HorizontalTiledPlot.jsx +9 -9
- package/app/scripts/LeftTrackModifier.js +4 -0
- package/app/scripts/ListWrapper.jsx +1 -2
- package/app/scripts/MapboxTilesTrack.js +1 -2
- package/app/scripts/Modal.jsx +2 -2
- package/app/scripts/MoveableTrack.jsx +10 -12
- package/app/scripts/NestedContextMenu.jsx +2 -1
- package/app/scripts/OSMTileIdsTrack.js +1 -1
- package/app/scripts/OverlayTrack.js +4 -4
- package/app/scripts/PixiTrack.js +27 -13
- package/app/scripts/PlotTypeChooser.jsx +3 -4
- package/app/scripts/SearchField.js +5 -5
- package/app/scripts/SeriesListItems.jsx +3 -4
- package/app/scripts/SeriesListMenu.jsx +95 -53
- package/app/scripts/SeriesListSubmenuMixin.jsx +2 -1
- package/app/scripts/SketchInlinePicker.jsx +2 -2
- package/app/scripts/SortableList.jsx +1 -1
- package/app/scripts/Tiled1DPixiTrack.js +4 -1
- package/app/scripts/TiledPixiTrack.js +244 -102
- package/app/scripts/TiledPlot.jsx +565 -118
- package/app/scripts/TilesetFinder.jsx +12 -4
- package/app/scripts/Track.js +1 -1
- package/app/scripts/TrackArea.jsx +4 -0
- package/app/scripts/TrackControl.jsx +2 -2
- package/app/scripts/TrackRenderer.jsx +32 -33
- package/app/scripts/ValueIntervalTrack.js +1 -1
- package/app/scripts/VerticalRule.js +2 -2
- package/app/scripts/VerticalTiledPlot.jsx +7 -7
- package/app/scripts/ViewConfigEditor.jsx +1 -1
- package/app/scripts/ViewContextMenu.jsx +53 -5
- package/app/scripts/ViewHeader.jsx +9 -9
- package/app/scripts/ViewportTracker2D.js +1 -1
- package/app/scripts/api.js +92 -12
- package/app/scripts/configs/available-track-types.js +1 -1
- package/app/scripts/configs/index.js +6 -1
- package/app/scripts/configs/positions-by-datatype.js +2 -2
- package/app/scripts/configs/primitives.js +2 -0
- package/app/scripts/configs/themes.js +0 -1
- package/app/scripts/configs/tracks-info-by-type.js +11 -8
- package/app/scripts/configs/tracks-info.js +3 -2
- package/app/scripts/d3-context-menu.js +3 -4
- package/app/scripts/data-fetchers/DataFetcher.js +35 -36
- package/app/scripts/data-fetchers/genbank-fetcher.js +13 -22
- package/app/scripts/data-fetchers/local-tile-fetcher.js +10 -8
- package/app/scripts/hglib.jsx +62 -71
- package/app/scripts/hocs/with-modal.jsx +32 -10
- package/app/scripts/hocs/with-pub-sub.js +12 -3
- package/app/scripts/hocs/with-theme.jsx +21 -14
- package/app/scripts/icons.jsx +3 -2
- package/app/scripts/mixwith.js +2 -2
- package/app/scripts/options-info.js +49 -11
- package/app/scripts/plugins/get-data-fetcher.js +2 -3
- package/app/scripts/services/chrom-info.js +32 -4
- package/app/scripts/services/element-resize-listener.js +2 -2
- package/app/scripts/services/index.js +0 -1
- package/app/scripts/services/tile-proxy.js +368 -285
- package/app/scripts/services/worker.js +31 -28
- package/app/scripts/test-helpers/index.js +2 -1
- package/app/scripts/test-helpers/test-helpers.jsx +157 -69
- package/app/scripts/types.ts +118 -47
- package/app/scripts/utils/LruCache.js +3 -2
- package/app/scripts/utils/assert.js +19 -0
- package/app/scripts/utils/background-task-scheduler.js +2 -0
- package/app/scripts/utils/color-domain-to-rgba-array.js +13 -3
- package/app/scripts/utils/copy-text-to-clipboard.js +36 -0
- package/app/scripts/utils/decompress.js +33 -0
- package/app/scripts/utils/default-tracks.js +46 -0
- package/app/scripts/utils/dict-items.js +1 -0
- package/app/scripts/utils/dict-keys.js +1 -0
- package/app/scripts/utils/dict-values.js +1 -0
- package/app/scripts/utils/expand-combined-tracks.js +11 -7
- package/app/scripts/utils/fill-in-min-widths.js +47 -21
- package/app/scripts/utils/flatten.js +0 -1
- package/app/scripts/utils/get-aggregation-function.js +1 -1
- package/app/scripts/utils/get-default-track-for-datatype.js +37 -10
- package/app/scripts/utils/get-default-tracks-for-datatype.ts +46 -0
- package/app/scripts/utils/get-higlass-components.js +27 -3
- package/app/scripts/utils/get-track-position-by-uid.js +8 -1
- package/app/scripts/utils/get-xylofon.js +12 -9
- package/app/scripts/utils/has-parent.js +5 -5
- package/app/scripts/utils/hex-string-to-int.js +1 -1
- package/app/scripts/utils/index.js +1 -0
- package/app/scripts/utils/interval-tree.js +222 -177
- package/app/scripts/utils/load-chrom-infos.js +4 -1
- package/app/scripts/utils/pixi-text-to-svg.js +5 -9
- package/app/scripts/utils/positioned-tracks-to-all-tracks.js +55 -0
- package/app/scripts/utils/range-query-2d.js +3 -3
- package/app/scripts/utils/reduce.js +12 -5
- package/app/scripts/utils/segments-to-rows.js +14 -11
- package/app/scripts/utils/svg-line.js +7 -8
- package/app/scripts/utils/type-guards.js +16 -7
- package/app/scripts/utils/visit-positioned-tracks.js +9 -4
- package/app/styles/AddTrackPositionMenu.module.scss +37 -0
- package/app/styles/HiGlass.module.scss +3 -1
- package/app/styles/d3-context-menu.css +0 -1
- package/app/styles/prism.css +1 -0
- package/dist/app/schema.json +525 -0
- package/dist/app/scripts/AddTrackDialog.d.ts +64 -0
- package/dist/app/scripts/AddTrackPositionMenu.d.ts +5 -0
- package/dist/app/scripts/Annotations1dTrack.d.ts +15 -0
- package/dist/app/scripts/Annotations2dTrack.d.ts +95 -0
- package/dist/app/scripts/ArrowheadDomainsTrack.d.ts +36 -0
- package/dist/app/scripts/Autocomplete.d.ts +102 -0
- package/dist/app/scripts/AxisPixi.d.ts +25 -0
- package/dist/app/scripts/BarTrack.d.ts +28 -0
- package/dist/app/scripts/BedLikeTrack.d.ts +84 -0
- package/dist/app/scripts/Button.d.ts +3 -0
- package/dist/app/scripts/CNVIntervalTrack.d.ts +12 -0
- package/dist/app/scripts/CenterTiledPlot.d.ts +3 -0
- package/dist/app/scripts/CenterTrack.d.ts +92 -0
- package/dist/app/scripts/Chromosome2DAnnotations.d.ts +10 -0
- package/dist/app/scripts/Chromosome2DLabels.d.ts +13 -0
- package/dist/app/scripts/ChromosomeGrid.d.ts +24 -0
- package/dist/app/scripts/ChromosomeInfo.d.ts +14 -0
- package/dist/app/scripts/CloseTrackMenu.d.ts +10 -0
- package/dist/app/scripts/CombinedTrack.d.ts +32 -0
- package/dist/app/scripts/ConfigTrackMenu.d.ts +10 -0
- package/dist/app/scripts/ConfigViewMenu.d.ts +34 -0
- package/dist/app/scripts/ConfigureSeriesMenu.d.ts +3 -0
- package/dist/app/scripts/ContextMenuContainer.d.ts +36 -0
- package/dist/app/scripts/ContextMenuItem.d.ts +34 -0
- package/dist/app/scripts/Cross.d.ts +3 -0
- package/dist/app/scripts/CrossRule.d.ts +24 -0
- package/dist/app/scripts/CustomTrackDialog.d.ts +17 -0
- package/dist/app/scripts/Dialog.d.ts +5 -0
- package/dist/app/scripts/DivergentBarTrack.d.ts +4 -0
- package/dist/app/scripts/DragListeningDiv.d.ts +32 -0
- package/dist/app/scripts/DraggableDiv.d.ts +63 -0
- package/dist/app/scripts/ExportLinkDialog.d.ts +21 -0
- package/dist/app/scripts/FilledLine.d.ts +5 -0
- package/dist/app/scripts/FixedTrack.d.ts +5 -0
- package/dist/app/scripts/GalleryTracks.d.ts +20 -0
- package/dist/app/scripts/GenomePositionSearchBox.d.ts +95 -0
- package/dist/app/scripts/HeatmapOptions.d.ts +30 -0
- package/dist/app/scripts/HeatmapTiledPixiTrack.d.ts +184 -0
- package/dist/app/scripts/HiGlassComponent.d.ts +762 -0
- package/dist/app/scripts/HiGlassComponentContext.d.ts +3 -0
- package/dist/app/scripts/HiGlassTrackComponent.d.ts +37 -0
- package/dist/app/scripts/Horizontal1dHeatmapTrack.d.ts +9 -0
- package/dist/app/scripts/Horizontal2DDomainsTrack.d.ts +21 -0
- package/dist/app/scripts/HorizontalChromosomeLabels.d.ts +47 -0
- package/dist/app/scripts/HorizontalGeneAnnotationsTrack.d.ts +25 -0
- package/dist/app/scripts/HorizontalHeatmapTrack.d.ts +12 -0
- package/dist/app/scripts/HorizontalItem.d.ts +3 -0
- package/dist/app/scripts/HorizontalLine1DPixiTrack.d.ts +23 -0
- package/dist/app/scripts/HorizontalMultivecTrack.d.ts +50 -0
- package/dist/app/scripts/HorizontalPoint1DPixiTrack.d.ts +5 -0
- package/dist/app/scripts/HorizontalRule.d.ts +22 -0
- package/dist/app/scripts/HorizontalTiled1DPixiTrack.d.ts +26 -0
- package/dist/app/scripts/HorizontalTiledPlot.d.ts +49 -0
- package/dist/app/scripts/HorizontalTrack.d.ts +6 -0
- package/dist/app/scripts/Id2DTiledPixiTrack.d.ts +10 -0
- package/dist/app/scripts/IdHorizontal1DTiledPixiTrack.d.ts +6 -0
- package/dist/app/scripts/IdVertical1DTiledPixiTrack.d.ts +7 -0
- package/dist/app/scripts/LeftAxisTrack.d.ts +9 -0
- package/dist/app/scripts/LeftTrackModifier.d.ts +29 -0
- package/dist/app/scripts/ListWrapper.d.ts +64 -0
- package/dist/app/scripts/MapboxTilesTrack.d.ts +9 -0
- package/dist/app/scripts/Modal.d.ts +5 -0
- package/dist/app/scripts/MoveableTrack.d.ts +18 -0
- package/dist/app/scripts/NestedContextMenu.d.ts +7 -0
- package/dist/app/scripts/OSMTileIdsTrack.d.ts +5 -0
- package/dist/app/scripts/OSMTilesTrack.d.ts +129 -0
- package/dist/app/scripts/OverlayTrack.d.ts +13 -0
- package/dist/app/scripts/PixiTrack.d.ts +174 -0
- package/dist/app/scripts/PlotTypeChooser.d.ts +25 -0
- package/dist/app/scripts/PopupMenu.d.ts +28 -0
- package/dist/app/scripts/RasterTilesTrack.d.ts +9 -0
- package/dist/app/scripts/RuleMixin.d.ts +2 -0
- package/dist/app/scripts/SVGTrack.d.ts +15 -0
- package/dist/app/scripts/SearchField.d.ts +13 -0
- package/dist/app/scripts/SeriesListItems.d.ts +2 -0
- package/dist/app/scripts/SeriesListMenu.d.ts +51 -0
- package/dist/app/scripts/SeriesListSubmenuMixin.d.ts +2 -0
- package/dist/app/scripts/SketchInlinePicker.d.ts +25 -0
- package/dist/app/scripts/SortableList.d.ts +22 -0
- package/dist/app/scripts/SquareMarkersTrack.d.ts +22 -0
- package/dist/app/scripts/Tiled1DPixiTrack.d.ts +60 -0
- package/dist/app/scripts/TiledPixiTrack.d.ts +369 -0
- package/dist/app/scripts/TiledPlot.d.ts +313 -0
- package/dist/app/scripts/TilesetFinder.d.ts +65 -0
- package/dist/app/scripts/TopAxisTrack.d.ts +9 -0
- package/dist/app/scripts/Track.d.ts +196 -0
- package/dist/app/scripts/TrackArea.d.ts +26 -0
- package/dist/app/scripts/TrackControl.d.ts +5 -0
- package/dist/app/scripts/TrackRenderer.d.ts +724 -0
- package/dist/app/scripts/UnknownPixiTrack.d.ts +7 -0
- package/dist/app/scripts/ValueIntervalTrack.d.ts +6 -0
- package/dist/app/scripts/VerticalItem.d.ts +3 -0
- package/dist/app/scripts/VerticalRule.d.ts +21 -0
- package/dist/app/scripts/VerticalTiled1DPixiTrack.d.ts +6 -0
- package/dist/app/scripts/VerticalTiledPlot.d.ts +50 -0
- package/dist/app/scripts/VerticalTrack.d.ts +6 -0
- package/dist/app/scripts/ViewConfigEditor.d.ts +53 -0
- package/dist/app/scripts/ViewContextMenu.d.ts +17 -0
- package/dist/app/scripts/ViewHeader.d.ts +75 -0
- package/dist/app/scripts/ViewportTracker2D.d.ts +17 -0
- package/dist/app/scripts/ViewportTracker2DPixi.d.ts +11 -0
- package/dist/app/scripts/ViewportTrackerHorizontal.d.ts +17 -0
- package/dist/app/scripts/ViewportTrackerVertical.d.ts +17 -0
- package/dist/app/scripts/api.d.ts +640 -0
- package/dist/app/scripts/configs/available-track-types.d.ts +2 -0
- package/dist/app/scripts/configs/colormaps.d.ts +2 -0
- package/dist/app/scripts/configs/datatype-to-track-type.d.ts +4 -0
- package/dist/app/scripts/configs/default-tracks-for-datatype.d.ts +38 -0
- package/dist/app/scripts/configs/dense-data-extrema-config.d.ts +2 -0
- package/dist/app/scripts/configs/globals.d.ts +5 -0
- package/dist/app/scripts/configs/index.d.ts +16 -0
- package/dist/app/scripts/configs/positions-by-datatype.d.ts +2 -0
- package/dist/app/scripts/configs/primitives.d.ts +20 -0
- package/dist/app/scripts/configs/themes.d.ts +3 -0
- package/dist/app/scripts/configs/tracks-info-by-type.d.ts +4 -0
- package/dist/app/scripts/configs/tracks-info.d.ts +24 -0
- package/dist/app/scripts/d3-context-menu.d.ts +2 -0
- package/dist/app/scripts/data-fetchers/DataFetcher.d.ts +151 -0
- package/dist/app/scripts/data-fetchers/genbank-fetcher.d.ts +86 -0
- package/dist/app/scripts/data-fetchers/index.d.ts +3 -0
- package/dist/app/scripts/data-fetchers/local-tile-fetcher.d.ts +47 -0
- package/dist/app/scripts/gosling-exports.d.ts +17 -0
- package/dist/app/scripts/hglib.d.ts +24 -0
- package/dist/app/scripts/hocs/with-modal.d.ts +19 -0
- package/dist/app/scripts/hocs/with-pub-sub.d.ts +22 -0
- package/dist/app/scripts/hocs/with-theme.d.ts +13 -0
- package/dist/app/scripts/icons.d.ts +161 -0
- package/dist/app/scripts/mixwith.d.ts +27 -0
- package/dist/app/scripts/options-info.d.ts +1355 -0
- package/dist/app/scripts/plugins/available-for-plugins.d.ts +2338 -0
- package/dist/app/scripts/plugins/get-data-fetcher.d.ts +2 -0
- package/dist/app/scripts/plugins/index.d.ts +2 -0
- package/dist/app/scripts/services/chrom-info.d.ts +10 -0
- package/dist/app/scripts/services/dom-event.d.ts +7 -0
- package/dist/app/scripts/services/element-resize-listener.d.ts +5 -0
- package/dist/app/scripts/services/index.d.ts +5 -0
- package/dist/app/scripts/services/tile-proxy.d.ts +180 -0
- package/dist/app/scripts/services/worker.d.ts +157 -0
- package/dist/app/scripts/symbol.d.ts +13 -0
- package/dist/app/scripts/test-helpers/index.d.ts +1 -0
- package/dist/app/scripts/test-helpers/test-helpers.d.ts +33 -0
- package/dist/app/scripts/track-utils.d.ts +73 -0
- package/dist/app/scripts/types.d.ts +199 -0
- package/dist/app/scripts/utils/DenseDataExtrema1D.d.ts +88 -0
- package/dist/app/scripts/utils/DenseDataExtrema2D.d.ts +97 -0
- package/dist/app/scripts/utils/LruCache.d.ts +44 -0
- package/dist/app/scripts/utils/abs-to-chr.d.ts +14 -0
- package/dist/app/scripts/utils/accessor-transposition.d.ts +14 -0
- package/dist/app/scripts/utils/add-arrays.d.ts +18 -0
- package/dist/app/scripts/utils/add-class.d.ts +8 -0
- package/dist/app/scripts/utils/add-event-listener-once.d.ts +11 -0
- package/dist/app/scripts/utils/assert.d.ts +17 -0
- package/dist/app/scripts/utils/background-task-scheduler.d.ts +47 -0
- package/dist/app/scripts/utils/base64-to-canvas.d.ts +9 -0
- package/dist/app/scripts/utils/chr-to-abs.d.ts +10 -0
- package/dist/app/scripts/utils/chrom-info-bisector.d.ts +4 -0
- package/dist/app/scripts/utils/clone-event.d.ts +12 -0
- package/dist/app/scripts/utils/color-domain-to-rgba-array.d.ts +13 -0
- package/dist/app/scripts/utils/color-to-hex.d.ts +9 -0
- package/dist/app/scripts/utils/color-to-rgba.d.ts +9 -0
- package/dist/app/scripts/utils/copy-text-to-clipboard.d.ts +2 -0
- package/dist/app/scripts/utils/data-to-genomic-loci.d.ts +11 -0
- package/dist/app/scripts/utils/debounce.d.ts +5 -0
- package/dist/app/scripts/utils/dec-to-hex-str.d.ts +8 -0
- package/dist/app/scripts/utils/decompress.d.ts +27 -0
- package/dist/app/scripts/utils/default-tracks.d.ts +3 -0
- package/dist/app/scripts/utils/dict-from-tuples.d.ts +11 -0
- package/dist/app/scripts/utils/dict-items.d.ts +18 -0
- package/dist/app/scripts/utils/dict-keys.d.ts +10 -0
- package/dist/app/scripts/utils/dict-values.d.ts +8 -0
- package/dist/app/scripts/utils/download.d.ts +7 -0
- package/dist/app/scripts/utils/expand-combined-tracks.d.ts +11 -0
- package/dist/app/scripts/utils/fake-pub-sub.d.ts +11 -0
- package/dist/app/scripts/utils/fill-in-min-widths.d.ts +44 -0
- package/dist/app/scripts/utils/flatten.d.ts +9 -0
- package/dist/app/scripts/utils/for-each.d.ts +9 -0
- package/dist/app/scripts/utils/forward-event.d.ts +7 -0
- package/dist/app/scripts/utils/genome-loci-to-pixels.d.ts +9 -0
- package/dist/app/scripts/utils/genomic-range-to-chromosome-chunks.d.ts +21 -0
- package/dist/app/scripts/utils/get-aggregation-function.d.ts +10 -0
- package/dist/app/scripts/utils/get-default-track-for-datatype.d.ts +21 -0
- package/dist/app/scripts/utils/get-default-tracks-for-datatype.d.ts +3 -0
- package/dist/app/scripts/utils/get-element-dim.d.ts +7 -0
- package/dist/app/scripts/utils/get-higlass-components.d.ts +7 -0
- package/dist/app/scripts/utils/get-track-by-uid.d.ts +7 -0
- package/dist/app/scripts/utils/get-track-conf-from-hgc.d.ts +10 -0
- package/dist/app/scripts/utils/get-track-obj-by-id.d.ts +2 -0
- package/dist/app/scripts/utils/get-track-position-by-uid.d.ts +13 -0
- package/dist/app/scripts/utils/get-xylofon.d.ts +2 -0
- package/dist/app/scripts/utils/gradient.d.ts +14 -0
- package/dist/app/scripts/utils/has-class.d.ts +8 -0
- package/dist/app/scripts/utils/has-parent.d.ts +9 -0
- package/dist/app/scripts/utils/hex-string-to-int.d.ts +14 -0
- package/dist/app/scripts/utils/index.d.ts +89 -0
- package/dist/app/scripts/utils/interval-tree.d.ts +109 -0
- package/dist/app/scripts/utils/into-the-void.d.ts +6 -0
- package/dist/app/scripts/utils/is-track-or-child-track.d.ts +7 -0
- package/dist/app/scripts/utils/is-track-range-selectable.d.ts +2 -0
- package/dist/app/scripts/utils/is-within.d.ts +12 -0
- package/dist/app/scripts/utils/lat-to-y.d.ts +9 -0
- package/dist/app/scripts/utils/lng-to-x.d.ts +8 -0
- package/dist/app/scripts/utils/load-chrom-infos.d.ts +8 -0
- package/dist/app/scripts/utils/map.d.ts +13 -0
- package/dist/app/scripts/utils/max-non-zero.d.ts +6 -0
- package/dist/app/scripts/utils/max.d.ts +10 -0
- package/dist/app/scripts/utils/min-non-zero.d.ts +6 -0
- package/dist/app/scripts/utils/min.d.ts +10 -0
- package/dist/app/scripts/utils/mod.d.ts +9 -0
- package/dist/app/scripts/utils/ndarray-assign.d.ts +2 -0
- package/dist/app/scripts/utils/ndarray-flatten.d.ts +2 -0
- package/dist/app/scripts/utils/ndarray-to-list.d.ts +2 -0
- package/dist/app/scripts/utils/numericify-version.d.ts +6 -0
- package/dist/app/scripts/utils/obj-vals.d.ts +8 -0
- package/dist/app/scripts/utils/or.d.ts +8 -0
- package/dist/app/scripts/utils/parse-chromsizes-rows.d.ts +34 -0
- package/dist/app/scripts/utils/pixi-text-to-svg.d.ts +2 -0
- package/dist/app/scripts/utils/positioned-tracks-to-all-tracks.d.ts +26 -0
- package/dist/app/scripts/utils/q.d.ts +18 -0
- package/dist/app/scripts/utils/rad-to-deg.d.ts +7 -0
- package/dist/app/scripts/utils/range-query-2d.d.ts +17 -0
- package/dist/app/scripts/utils/reduce.d.ts +14 -0
- package/dist/app/scripts/utils/rel-to-abs-chrom-pos.d.ts +10 -0
- package/dist/app/scripts/utils/remove-class.d.ts +7 -0
- package/dist/app/scripts/utils/reset-d3-brush-style.d.ts +10 -0
- package/dist/app/scripts/utils/rgb-to-hex.d.ts +8 -0
- package/dist/app/scripts/utils/scales-center-and-k.d.ts +12 -0
- package/dist/app/scripts/utils/scales-to-genome-loci.d.ts +3 -0
- package/dist/app/scripts/utils/segments-to-rows.d.ts +15 -0
- package/dist/app/scripts/utils/selected-items-to-cum-weights.d.ts +12 -0
- package/dist/app/scripts/utils/selected-items-to-size.d.ts +13 -0
- package/dist/app/scripts/utils/show-mouse-position.d.ts +54 -0
- package/dist/app/scripts/utils/some.d.ts +10 -0
- package/dist/app/scripts/utils/sum.d.ts +8 -0
- package/dist/app/scripts/utils/svg-line.d.ts +2 -0
- package/dist/app/scripts/utils/throttle-and-debounce.d.ts +33 -0
- package/dist/app/scripts/utils/tile-to-canvas.d.ts +9 -0
- package/dist/app/scripts/utils/timeout.d.ts +3 -0
- package/dist/app/scripts/utils/to-void.d.ts +3 -0
- package/dist/app/scripts/utils/total-track-pixel-height.d.ts +27 -0
- package/dist/app/scripts/utils/trim-trailing-slash.d.ts +7 -0
- package/dist/app/scripts/utils/type-guards.d.ts +36 -0
- package/dist/app/scripts/utils/value-to-color.d.ts +12 -0
- package/dist/app/scripts/utils/visit-positioned-tracks.d.ts +18 -0
- package/dist/app/scripts/utils/visit-tracks.d.ts +9 -0
- package/dist/esm.html +1 -3
- package/dist/hglib.js +86315 -100592
- package/dist/hglib.min.js +123 -131
- package/dist/higlass.mjs +88861 -103138
- package/dist/index.html +1 -3
- package/dist/package.json +134 -0
- package/package.json +25 -27
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export default CombinedTrack;
|
|
2
|
+
declare class CombinedTrack {
|
|
3
|
+
constructor(context: any);
|
|
4
|
+
context: any;
|
|
5
|
+
childTracks: any;
|
|
6
|
+
createdTracks: {};
|
|
7
|
+
uid: string;
|
|
8
|
+
updateContents(newContents: any, trackCreator: any): this;
|
|
9
|
+
setPosition(newPosition: any): void;
|
|
10
|
+
/**
|
|
11
|
+
* Setting the position of this track simply means setting the positions
|
|
12
|
+
* of its children.
|
|
13
|
+
*/
|
|
14
|
+
position: any;
|
|
15
|
+
setDimensions(newDimensions: any): void;
|
|
16
|
+
dimensions: any;
|
|
17
|
+
zoomed(newXScale: any, newYScale: any, k: any, x: any, y: any, xPositionOffset: any, yPositionOffset: any): void;
|
|
18
|
+
_xScale: any;
|
|
19
|
+
_yScale: any;
|
|
20
|
+
clickOutside(): void;
|
|
21
|
+
click(...args: any[]): void;
|
|
22
|
+
draw(): void;
|
|
23
|
+
refScalesChanged(refXScale: any, refYScale: any): void;
|
|
24
|
+
remove(): void;
|
|
25
|
+
exportSVG(): HTMLElement[];
|
|
26
|
+
rerender(options: any): void;
|
|
27
|
+
minValue(_: any, ...args: any[]): number | undefined;
|
|
28
|
+
maxValue(_: any, ...args: any[]): number | undefined;
|
|
29
|
+
respondsToPosition(x: any, y: any): boolean;
|
|
30
|
+
stopHover(): void;
|
|
31
|
+
getMouseOverHtml(trackX: any, trackY: any): string;
|
|
32
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default ConfigTrackMenu;
|
|
2
|
+
declare class ConfigTrackMenu {
|
|
3
|
+
constructor(props: any);
|
|
4
|
+
seriesRefs: {};
|
|
5
|
+
seriesListMenu: any;
|
|
6
|
+
componentDidMount(): void;
|
|
7
|
+
render(): React.JSX.Element;
|
|
8
|
+
div: HTMLDivElement | null | undefined;
|
|
9
|
+
}
|
|
10
|
+
import React from 'react';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export default ConfigViewMenu;
|
|
2
|
+
declare class ConfigViewMenu extends ContextMenuContainer {
|
|
3
|
+
state: {
|
|
4
|
+
submenuShown: boolean;
|
|
5
|
+
};
|
|
6
|
+
getConfigureViewMenu(position: any, bbox: any): React.JSX.Element;
|
|
7
|
+
getSubmenu(): React.JSX.Element;
|
|
8
|
+
}
|
|
9
|
+
declare namespace ConfigViewMenu {
|
|
10
|
+
namespace propTypes {
|
|
11
|
+
let onEditViewConfig: PropTypes.Validator<(...args: any[]) => any>;
|
|
12
|
+
let onExportSVG: PropTypes.Requireable<(...args: any[]) => any>;
|
|
13
|
+
let onExportPNG: PropTypes.Requireable<(...args: any[]) => any>;
|
|
14
|
+
let onExportViewAsJSON: PropTypes.Requireable<(...args: any[]) => any>;
|
|
15
|
+
let onExportViewAsLink: PropTypes.Requireable<(...args: any[]) => any>;
|
|
16
|
+
let onLockLocation: PropTypes.Requireable<(...args: any[]) => any>;
|
|
17
|
+
let onLockZoom: PropTypes.Requireable<(...args: any[]) => any>;
|
|
18
|
+
let onLockZoomAndLocation: PropTypes.Requireable<(...args: any[]) => any>;
|
|
19
|
+
let onProjectViewport: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
|
+
let onTakeAndLockZoomAndLocation: PropTypes.Requireable<(...args: any[]) => any>;
|
|
21
|
+
let onTogglePositionSearchBox: PropTypes.Requireable<(...args: any[]) => any>;
|
|
22
|
+
let onUnlockLocation: PropTypes.Requireable<(...args: any[]) => any>;
|
|
23
|
+
let onUnlockZoom: PropTypes.Requireable<(...args: any[]) => any>;
|
|
24
|
+
let onUnlockZoomAndLocation: PropTypes.Requireable<(...args: any[]) => any>;
|
|
25
|
+
let onYankLocation: PropTypes.Requireable<(...args: any[]) => any>;
|
|
26
|
+
let onYankZoom: PropTypes.Requireable<(...args: any[]) => any>;
|
|
27
|
+
let onYankZoomAndLocation: PropTypes.Requireable<(...args: any[]) => any>;
|
|
28
|
+
let onZoomToData: PropTypes.Requireable<(...args: any[]) => any>;
|
|
29
|
+
let theme: PropTypes.Requireable<symbol>;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
import ContextMenuContainer from './ContextMenuContainer';
|
|
33
|
+
import React from 'react';
|
|
34
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export default ContextMenuContainer;
|
|
2
|
+
declare class ContextMenuContainer extends React.Component<any, any, any> {
|
|
3
|
+
constructor(props: any);
|
|
4
|
+
adjusted: boolean;
|
|
5
|
+
state: {
|
|
6
|
+
orientation: any;
|
|
7
|
+
left: any;
|
|
8
|
+
top: any;
|
|
9
|
+
submenuShown: null;
|
|
10
|
+
};
|
|
11
|
+
componentDidMount(): void;
|
|
12
|
+
UNSAFE_componentWillReceiveProps(newProps: any): void;
|
|
13
|
+
componentDidUpdate(): void;
|
|
14
|
+
handleItemMouseEnterWithRect(clientRect: any, series: any): void;
|
|
15
|
+
/**
|
|
16
|
+
* @param {React.MouseEvent} evt
|
|
17
|
+
*/
|
|
18
|
+
handleItemMouseEnter(evt: React.MouseEvent, series: any): void;
|
|
19
|
+
handleMouseLeave(): void;
|
|
20
|
+
handleOtherMouseEnter(): void;
|
|
21
|
+
updateOrientation(): void;
|
|
22
|
+
divDom: Element | Text | null | undefined;
|
|
23
|
+
render(): React.JSX.Element;
|
|
24
|
+
div: HTMLDivElement | null | undefined;
|
|
25
|
+
}
|
|
26
|
+
declare namespace ContextMenuContainer {
|
|
27
|
+
namespace propTypes {
|
|
28
|
+
let children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
29
|
+
let orientation: PropTypes.Requireable<string>;
|
|
30
|
+
let parentBbox: PropTypes.Requireable<object>;
|
|
31
|
+
let position: PropTypes.Requireable<object>;
|
|
32
|
+
let theme: PropTypes.Validator<symbol>;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
import React from 'react';
|
|
36
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export default ContextMenuItem;
|
|
2
|
+
export type ContextMenuItemProps = {
|
|
3
|
+
className?: string | undefined;
|
|
4
|
+
onClick: (evt: React.MouseEvent) => void;
|
|
5
|
+
onMouseEnter: (evt: React.MouseEvent) => void;
|
|
6
|
+
onMouseLeave: (evt: React.MouseEvent) => void;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* @typedef ContextMenuItemProps
|
|
10
|
+
* @prop {string} [className]
|
|
11
|
+
* @prop {(evt: React.MouseEvent) => void} onClick
|
|
12
|
+
* @prop {(evt: React.MouseEvent) => void} onMouseEnter
|
|
13
|
+
* @prop {(evt: React.MouseEvent) => void} onMouseLeave
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* @param {React.PropsWithChildren<ContextMenuItemProps>} props
|
|
17
|
+
*/
|
|
18
|
+
declare function ContextMenuItem(props: React.PropsWithChildren<ContextMenuItemProps>): React.JSX.Element;
|
|
19
|
+
declare namespace ContextMenuItem {
|
|
20
|
+
namespace defaultProps {
|
|
21
|
+
function onMouseEnter(): undefined;
|
|
22
|
+
function onMouseLeave(): undefined;
|
|
23
|
+
}
|
|
24
|
+
namespace propTypes {
|
|
25
|
+
export let children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
26
|
+
export let onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
27
|
+
let onMouseEnter_1: PropTypes.Requireable<(...args: any[]) => any>;
|
|
28
|
+
export { onMouseEnter_1 as onMouseEnter };
|
|
29
|
+
let onMouseLeave_1: PropTypes.Requireable<(...args: any[]) => any>;
|
|
30
|
+
export { onMouseLeave_1 as onMouseLeave };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
import React from 'react';
|
|
34
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export default CrossRule;
|
|
2
|
+
declare class CrossRule {
|
|
3
|
+
constructor(context: any, options: any);
|
|
4
|
+
xPosition: any;
|
|
5
|
+
yPosition: any;
|
|
6
|
+
strokeWidth: number;
|
|
7
|
+
strokeOpacity: number;
|
|
8
|
+
dashLength: number;
|
|
9
|
+
dashGap: number;
|
|
10
|
+
draw(): void;
|
|
11
|
+
mouseMoveHandler(mousePos: any): void;
|
|
12
|
+
highlighted: any;
|
|
13
|
+
drawHorizontalRule(graphics: any): void;
|
|
14
|
+
isMouseOverHorizontalLine(mousePos: any): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Export an SVG representation of this track
|
|
17
|
+
*
|
|
18
|
+
* @returns {Array} The two returned DOM nodes are both SVG
|
|
19
|
+
* elements [base,track]. Base is a parent which contains track as a
|
|
20
|
+
* child. Track is clipped with a clipping rectangle contained in base.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
exportSVG(): any[];
|
|
24
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default CustomTrackDialog;
|
|
2
|
+
declare class CustomTrackDialog extends React.PureComponent<any, any, any> {
|
|
3
|
+
constructor(props: any);
|
|
4
|
+
constructor(props: any, context: any);
|
|
5
|
+
render(): React.JSX.Element;
|
|
6
|
+
}
|
|
7
|
+
declare namespace CustomTrackDialog {
|
|
8
|
+
let defaultProps: {};
|
|
9
|
+
namespace propTypes {
|
|
10
|
+
let onCancel: PropTypes.Validator<(...args: any[]) => any>;
|
|
11
|
+
let title: PropTypes.Requireable<string>;
|
|
12
|
+
let bodyProps: PropTypes.Requireable<any[]>;
|
|
13
|
+
let children: PropTypes.Requireable<any[]>;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
import React from 'react';
|
|
17
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare const _default: typeof DragListeningDiv;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare class DragListeningDiv extends React.Component<any, any, any> {
|
|
4
|
+
constructor(props: any);
|
|
5
|
+
state: {
|
|
6
|
+
dragOnTop: boolean;
|
|
7
|
+
};
|
|
8
|
+
render(): React.JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
declare namespace DragListeningDiv {
|
|
11
|
+
namespace defaultProps {
|
|
12
|
+
let enabled: boolean;
|
|
13
|
+
let style: {};
|
|
14
|
+
let draggingHappening: {};
|
|
15
|
+
function onTrackDropped(): void;
|
|
16
|
+
}
|
|
17
|
+
namespace propTypes {
|
|
18
|
+
let enabled_1: PropTypes.Requireable<boolean>;
|
|
19
|
+
export { enabled_1 as enabled };
|
|
20
|
+
let style_1: PropTypes.Requireable<object>;
|
|
21
|
+
export { style_1 as style };
|
|
22
|
+
export let defaultTrackType: PropTypes.Requireable<object>;
|
|
23
|
+
let draggingHappening_1: PropTypes.Requireable<object>;
|
|
24
|
+
export { draggingHappening_1 as draggingHappening };
|
|
25
|
+
let onTrackDropped_1: PropTypes.Requireable<(...args: any[]) => any>;
|
|
26
|
+
export { onTrackDropped_1 as onTrackDropped };
|
|
27
|
+
export let position: PropTypes.Validator<string>;
|
|
28
|
+
export let pubSub: PropTypes.Validator<object>;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
import React from 'react';
|
|
32
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
declare const _default: typeof DraggableDiv;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare class DraggableDiv extends React.Component<any, any, any> {
|
|
4
|
+
constructor(props: any);
|
|
5
|
+
dragTopRight: import("d3-drag").DragBehavior<Element, any, any>;
|
|
6
|
+
dragTopLeft: import("d3-drag").DragBehavior<Element, any, any>;
|
|
7
|
+
dragBottomRight: import("d3-drag").DragBehavior<Element, any, any>;
|
|
8
|
+
dragBottomLeft: import("d3-drag").DragBehavior<Element, any, any>;
|
|
9
|
+
dragBottom: import("d3-drag").DragBehavior<Element, any, any>;
|
|
10
|
+
dragTop: import("d3-drag").DragBehavior<Element, any, any>;
|
|
11
|
+
dragLeft: import("d3-drag").DragBehavior<Element, any, any>;
|
|
12
|
+
dragRight: import("d3-drag").DragBehavior<Element, any, any>;
|
|
13
|
+
minWidth: number;
|
|
14
|
+
minHeight: number;
|
|
15
|
+
bottomHandleWidth: number;
|
|
16
|
+
state: {
|
|
17
|
+
uid: any;
|
|
18
|
+
width: any;
|
|
19
|
+
height: any;
|
|
20
|
+
top: any;
|
|
21
|
+
left: any;
|
|
22
|
+
};
|
|
23
|
+
domBody: import("d3-selection").BaseType;
|
|
24
|
+
componentDidMount(): void;
|
|
25
|
+
UNSAFE_componentWillReceiveProps(newProps: any): void;
|
|
26
|
+
dragBottomFunc(event: any): void;
|
|
27
|
+
dragLeftFunc(event: any): void;
|
|
28
|
+
dragTopFunc(event: any): void;
|
|
29
|
+
dragRightFunc(event: any): void;
|
|
30
|
+
dragBottomLeftFunc(event: any): void;
|
|
31
|
+
dragBottomRightFunc(event: any): void;
|
|
32
|
+
dragTopRightFunc(event: any): void;
|
|
33
|
+
dragTopLeftFunc(event: any): void;
|
|
34
|
+
dragStart(event: any): void;
|
|
35
|
+
dragStartMousePos: [number, number] | undefined;
|
|
36
|
+
dragStartWidth: any;
|
|
37
|
+
dragStartHeight: any;
|
|
38
|
+
dragStartTop: any;
|
|
39
|
+
dragStartLeft: any;
|
|
40
|
+
sizeChanged(): void;
|
|
41
|
+
rotateClicked(): void;
|
|
42
|
+
closeClicked(): void;
|
|
43
|
+
render(): React.JSX.Element;
|
|
44
|
+
divContainer: HTMLDivElement | null | undefined;
|
|
45
|
+
}
|
|
46
|
+
declare namespace DraggableDiv {
|
|
47
|
+
namespace propTypes {
|
|
48
|
+
let className: PropTypes.Requireable<string>;
|
|
49
|
+
let height: PropTypes.Requireable<number>;
|
|
50
|
+
let left: PropTypes.Requireable<number>;
|
|
51
|
+
let opacity: PropTypes.Requireable<number>;
|
|
52
|
+
let resizeHandles: PropTypes.Requireable<object>;
|
|
53
|
+
let sizeChanged: PropTypes.Requireable<(...args: any[]) => any>;
|
|
54
|
+
let top: PropTypes.Requireable<number>;
|
|
55
|
+
let trackClosed: PropTypes.Requireable<(...args: any[]) => any>;
|
|
56
|
+
let trackRotated: PropTypes.Requireable<(...args: any[]) => any>;
|
|
57
|
+
let uid: PropTypes.Requireable<string>;
|
|
58
|
+
let width: PropTypes.Requireable<number>;
|
|
59
|
+
let theme: PropTypes.Requireable<symbol>;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
import React from 'react';
|
|
63
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export default ExportLinkDialog;
|
|
2
|
+
declare class ExportLinkDialog extends React.Component<any, any, any> {
|
|
3
|
+
constructor(props: any);
|
|
4
|
+
constructor(props: any, context: any);
|
|
5
|
+
render(): React.JSX.Element;
|
|
6
|
+
input: HTMLInputElement | undefined;
|
|
7
|
+
}
|
|
8
|
+
declare namespace ExportLinkDialog {
|
|
9
|
+
namespace defaultProps {
|
|
10
|
+
function onDone(): void;
|
|
11
|
+
let url: string;
|
|
12
|
+
}
|
|
13
|
+
namespace propTypes {
|
|
14
|
+
let onDone_1: PropTypes.Requireable<(...args: any[]) => any>;
|
|
15
|
+
export { onDone_1 as onDone };
|
|
16
|
+
let url_1: PropTypes.Requireable<string>;
|
|
17
|
+
export { url_1 as url };
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
import React from 'react';
|
|
21
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export default GalleryTracks;
|
|
2
|
+
declare class GalleryTracks extends React.Component<any, any, any> {
|
|
3
|
+
constructor(props: any);
|
|
4
|
+
state: {
|
|
5
|
+
hovering: boolean;
|
|
6
|
+
};
|
|
7
|
+
mouseEnterHandler(): void;
|
|
8
|
+
mouseLeaveHandler(): void;
|
|
9
|
+
render(): React.JSX.Element;
|
|
10
|
+
}
|
|
11
|
+
declare namespace GalleryTracks {
|
|
12
|
+
namespace propTypes {
|
|
13
|
+
let editable: PropTypes.Requireable<boolean>;
|
|
14
|
+
let onCloseTrackMenuOpened: PropTypes.Validator<(...args: any[]) => any>;
|
|
15
|
+
let onConfigTrackMenuOpened: PropTypes.Validator<(...args: any[]) => any>;
|
|
16
|
+
let tracks: PropTypes.Requireable<any[]>;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
import React from 'react';
|
|
20
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
declare const _default: typeof GenomePositionSearchBox;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare class GenomePositionSearchBox extends React.Component<any, any, any> {
|
|
4
|
+
constructor(props: any);
|
|
5
|
+
mounted: boolean;
|
|
6
|
+
uid: string;
|
|
7
|
+
chromInfo: any;
|
|
8
|
+
searchField: SearchField | null;
|
|
9
|
+
autocompleteMenu: Autocomplete | null;
|
|
10
|
+
xScale: any;
|
|
11
|
+
yScale: any;
|
|
12
|
+
prevParts: any[];
|
|
13
|
+
menuPosition: {
|
|
14
|
+
left: number;
|
|
15
|
+
top: number;
|
|
16
|
+
};
|
|
17
|
+
currentChromInfoServer: any;
|
|
18
|
+
currentChromInfoId: any;
|
|
19
|
+
positionText: any;
|
|
20
|
+
state: {
|
|
21
|
+
value: any;
|
|
22
|
+
loading: boolean;
|
|
23
|
+
menuPosition: number[];
|
|
24
|
+
genes: never[];
|
|
25
|
+
isFocused: boolean;
|
|
26
|
+
menuOpened: boolean;
|
|
27
|
+
availableAssemblies: never[];
|
|
28
|
+
selectedAssembly: null;
|
|
29
|
+
};
|
|
30
|
+
styles: {
|
|
31
|
+
item: {
|
|
32
|
+
padding: string;
|
|
33
|
+
cursor: string;
|
|
34
|
+
};
|
|
35
|
+
highlightedItem: {
|
|
36
|
+
color: string;
|
|
37
|
+
background: string;
|
|
38
|
+
padding: string;
|
|
39
|
+
cursor: string;
|
|
40
|
+
};
|
|
41
|
+
menu: {
|
|
42
|
+
border: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
componentDidMount(): void;
|
|
46
|
+
componentWillUnmount(): void;
|
|
47
|
+
/**
|
|
48
|
+
* The user has selected an assembly to use for the coordinate search box
|
|
49
|
+
*
|
|
50
|
+
* @param {string} chromInfoServer
|
|
51
|
+
* @param {string} chromInfoId - The name of the chromosome info set to use
|
|
52
|
+
*
|
|
53
|
+
* @returns {void} Once the appropriate ChromInfo file is fetched, it is stored locally
|
|
54
|
+
*/
|
|
55
|
+
fetchChromInfo(chromInfoServer: string, chromInfoId: string): void;
|
|
56
|
+
scalesChanged(xScale: any, yScale: any): void;
|
|
57
|
+
setPositionText(): void;
|
|
58
|
+
autocompleteKeyPress(event: any): void;
|
|
59
|
+
replaceGenesWithLoadedPositions(genePositions: any): any;
|
|
60
|
+
replaceGenesWithPositions(finished: any): void;
|
|
61
|
+
buttonClick(): void;
|
|
62
|
+
searchFieldSubmit(): void;
|
|
63
|
+
pathJoin(parts: any, sep: any): any;
|
|
64
|
+
onAutocompleteChange(event: any, value: any): void;
|
|
65
|
+
changedPart: number | null | undefined;
|
|
66
|
+
geneSelected(value: any, objct: any): void;
|
|
67
|
+
handleMenuVisibilityChange(isOpen: any, inputEl: any): void;
|
|
68
|
+
handleRenderMenu(items: any): React.JSX.Element;
|
|
69
|
+
handleAssemblySelect(evt: any): void;
|
|
70
|
+
focusHandler(isFocused: any): void;
|
|
71
|
+
UNSAFE_componentWillReceiveProps(nextProps: any): void;
|
|
72
|
+
render(): React.JSX.Element;
|
|
73
|
+
gpsbForm: HTMLDivElement | null | undefined;
|
|
74
|
+
}
|
|
75
|
+
declare namespace GenomePositionSearchBox {
|
|
76
|
+
namespace propTypes {
|
|
77
|
+
let autocompleteId: PropTypes.Requireable<string>;
|
|
78
|
+
let autocompleteServer: PropTypes.Requireable<string>;
|
|
79
|
+
let chromInfoId: PropTypes.Requireable<string>;
|
|
80
|
+
let chromInfoServer: PropTypes.Requireable<string>;
|
|
81
|
+
let isFocused: PropTypes.Requireable<boolean>;
|
|
82
|
+
let onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
83
|
+
let onSelectedAssemblyChanged: PropTypes.Requireable<(...args: any[]) => any>;
|
|
84
|
+
let registerViewportChangedListener: PropTypes.Requireable<(...args: any[]) => any>;
|
|
85
|
+
let removeViewportChangedListener: PropTypes.Requireable<(...args: any[]) => any>;
|
|
86
|
+
let setCenters: PropTypes.Requireable<(...args: any[]) => any>;
|
|
87
|
+
let theme: PropTypes.Requireable<string>;
|
|
88
|
+
let trackSourceServers: PropTypes.Requireable<any[]>;
|
|
89
|
+
let twoD: PropTypes.Requireable<boolean>;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
import React from 'react';
|
|
93
|
+
import SearchField from './SearchField';
|
|
94
|
+
import Autocomplete from './Autocomplete';
|
|
95
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export default HeatmapOptions;
|
|
2
|
+
declare class HeatmapOptions extends React.Component<any, any, any> {
|
|
3
|
+
constructor(props: any);
|
|
4
|
+
state: {
|
|
5
|
+
colors: any;
|
|
6
|
+
};
|
|
7
|
+
handleColorsChanged(newColors: any): void;
|
|
8
|
+
handleSubmit(): void;
|
|
9
|
+
/**
|
|
10
|
+
* Add a color to the end
|
|
11
|
+
*/
|
|
12
|
+
handleAddColor(): void;
|
|
13
|
+
/**
|
|
14
|
+
* Remove one of the colors from the color map
|
|
15
|
+
*/
|
|
16
|
+
handleRemoveColor(i: any): void;
|
|
17
|
+
render(): React.JSX.Element;
|
|
18
|
+
}
|
|
19
|
+
declare namespace HeatmapOptions {
|
|
20
|
+
namespace propTypes {
|
|
21
|
+
let handleCancel: PropTypes.Requireable<(...args: any[]) => any>;
|
|
22
|
+
let onCancel: PropTypes.Requireable<(...args: any[]) => any>;
|
|
23
|
+
let onSubmit: PropTypes.Requireable<(...args: any[]) => any>;
|
|
24
|
+
let track: PropTypes.Requireable<object>;
|
|
25
|
+
let xScale: PropTypes.Requireable<object>;
|
|
26
|
+
let yScale: PropTypes.Requireable<object>;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
import React from 'react';
|
|
30
|
+
import PropTypes from 'prop-types';
|