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.
- package/app/scripts/AddTrackDialog.jsx +8 -1
- package/app/scripts/AddTrackPositionMenu.jsx +26 -5
- package/app/scripts/Annotations1dTrack.js +90 -251
- package/app/scripts/Annotations2dTrack.js +9 -2
- package/app/scripts/Autocomplete.jsx +1 -9
- package/app/scripts/BedLikeTrack.js +549 -441
- package/app/scripts/ContextMenuContainer.jsx +3 -0
- package/app/scripts/ContextMenuItem.jsx +13 -2
- package/app/scripts/FilledLine.js +349 -0
- package/app/scripts/GenomePositionSearchBox.jsx +178 -477
- package/app/scripts/HiGlassComponent.jsx +443 -349
- package/app/scripts/HiGlassComponentContext.js +5 -0
- package/app/scripts/SeriesListMenu.jsx +94 -44
- package/app/scripts/SeriesListSubmenuMixin.jsx +1 -0
- package/app/scripts/Tiled1DPixiTrack.js +0 -1
- package/app/scripts/TiledPixiTrack.js +72 -63
- package/app/scripts/TiledPlot.jsx +530 -77
- package/app/scripts/TrackRenderer.jsx +2 -2
- package/app/scripts/ViewContextMenu.jsx +50 -2
- package/app/scripts/ViewHeader.jsx +3 -2
- package/app/scripts/api.js +87 -6
- package/app/scripts/configs/index.js +6 -1
- package/app/scripts/configs/primitives.js +2 -0
- package/app/scripts/configs/tracks-info.js +1 -0
- package/app/scripts/data-fetchers/genbank-fetcher.js +9 -14
- package/app/scripts/data-fetchers/local-tile-fetcher.js +8 -2
- package/app/scripts/hglib.jsx +61 -70
- package/app/scripts/options-info.js +49 -11
- package/app/scripts/services/tile-proxy.js +0 -4
- package/app/scripts/services/worker.js +1 -0
- package/app/scripts/test-helpers/index.js +2 -1
- package/app/scripts/test-helpers/test-helpers.jsx +154 -66
- package/app/scripts/types.ts +68 -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/get-default-track-for-datatype.js +2 -1
- package/app/scripts/utils/get-default-tracks-for-datatype.ts +46 -0
- package/app/scripts/utils/index.js +1 -0
- package/app/scripts/utils/positioned-tracks-to-all-tracks.js +55 -0
- package/app/scripts/utils/show-mouse-position.js +0 -16
- package/app/scripts/utils/visit-positioned-tracks.js +4 -1
- package/app/styles/AddTrackPositionMenu.module.scss +37 -0
- package/app/styles/HiGlass.module.scss +3 -1
- package/app/styles/TiledPlot.module.scss +20 -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 +65302 -79868
- package/dist/hglib.min.js +104 -112
- package/dist/higlass.mjs +64214 -78780
- package/dist/index.html +1 -3
- package/dist/package.json +134 -0
- package/package.json +13 -10
|
@@ -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';
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
export default HeatmapTiledPixiTrack;
|
|
2
|
+
declare class HeatmapTiledPixiTrack extends TiledPixiTrack<any> {
|
|
3
|
+
constructor(context: any, options: any);
|
|
4
|
+
pubSub: any;
|
|
5
|
+
is2d: boolean;
|
|
6
|
+
animate: any;
|
|
7
|
+
uid: string;
|
|
8
|
+
scaleBrush: import("d3-brush").BrushBehavior<any>;
|
|
9
|
+
onTrackOptionsChanged: any;
|
|
10
|
+
isShowGlobalMousePosition: any;
|
|
11
|
+
isValueScaleLocked: any;
|
|
12
|
+
pColorbarArea: import("pixi.js").Graphics;
|
|
13
|
+
pColorbar: import("pixi.js").Graphics;
|
|
14
|
+
axis: AxisPixi;
|
|
15
|
+
colorScale: number[][];
|
|
16
|
+
gBase: import("d3-selection").Selection<SVGGElement, any, null, undefined>;
|
|
17
|
+
gMain: import("d3-selection").Selection<SVGGElement, any, null, undefined>;
|
|
18
|
+
gColorscaleBrush: import("d3-selection").Selection<SVGGElement, any, null, undefined>;
|
|
19
|
+
brushing: boolean;
|
|
20
|
+
prevIndUpperLeftTile: string;
|
|
21
|
+
onMouseMoveZoom: any;
|
|
22
|
+
dataLens: Float32Array<ArrayBuffer>;
|
|
23
|
+
mouseMoveHandlerBound: (e: Object) => void;
|
|
24
|
+
hideMousePosition: Function | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Mouse move handler
|
|
27
|
+
*
|
|
28
|
+
* @param {Object} e Event object.
|
|
29
|
+
*/
|
|
30
|
+
mouseMoveHandler(e: Object): void;
|
|
31
|
+
mouseX: any;
|
|
32
|
+
mouseY: any;
|
|
33
|
+
/**
|
|
34
|
+
* Mouse move and zoom handler. Is triggered on both events.
|
|
35
|
+
*
|
|
36
|
+
* @param {Number} absX Absolute X coordinate.
|
|
37
|
+
* @param {Number} absY Absolute Y coordinate
|
|
38
|
+
*/
|
|
39
|
+
mouseMoveZoomHandler(absX?: number, absY?: number): void;
|
|
40
|
+
scheduleRerender(): void;
|
|
41
|
+
handleRerender(): void;
|
|
42
|
+
/**
|
|
43
|
+
* Get absolute (i.e., display) tile dimension and position.
|
|
44
|
+
*
|
|
45
|
+
* @param {Number} zoomLevel Current zoom level.
|
|
46
|
+
* @param {Array} tilePos Tile position.
|
|
47
|
+
* @return {Object} Object holding the absolute x, y, width, and height.
|
|
48
|
+
*/
|
|
49
|
+
getAbsTileDim(zoomLevel: number, tilePos: any[], mirrored: any): Object;
|
|
50
|
+
updateValueScale(): (string | import("d3-scale").ScaleLinear<number, number, never>)[];
|
|
51
|
+
valueScale: import("d3-scale").ScaleLinear<number, number, never> | import("d3-scale").ScaleLogarithmic<number, number, never> | undefined;
|
|
52
|
+
limitedValueScale: import("d3-scale").ScaleLinear<number, number, never> | undefined;
|
|
53
|
+
rerender(options: any, force: any): void;
|
|
54
|
+
tileDataToCanvas(pixData: any): HTMLCanvasElement;
|
|
55
|
+
exportData(): void;
|
|
56
|
+
/**
|
|
57
|
+
* Position sprite (the rendered tile)
|
|
58
|
+
*
|
|
59
|
+
* @param {Object} sprite PIXI sprite object.
|
|
60
|
+
* @param {Number} zoomLevel Current zoom level.
|
|
61
|
+
* @param {Array} tilePos X,Y position of tile.
|
|
62
|
+
* @param {Boolean} mirrored If `true` tile is mirrored.
|
|
63
|
+
*/
|
|
64
|
+
setSpriteProperties(sprite: Object, zoomLevel: number, tilePos: any[], mirrored: boolean): void;
|
|
65
|
+
refXScale(_: any): void;
|
|
66
|
+
refYScale(_: any): void;
|
|
67
|
+
newBrushOptions(selection: any): any;
|
|
68
|
+
brushStart(): void;
|
|
69
|
+
brushMoved(event: any): void;
|
|
70
|
+
brushEnd(): void;
|
|
71
|
+
setPosition(newPosition: any): void;
|
|
72
|
+
setDimensions(newDimensions: any): void;
|
|
73
|
+
removeColorbar(): void;
|
|
74
|
+
drawColorbar(): void;
|
|
75
|
+
colorbarHeight: number | undefined;
|
|
76
|
+
northHandle: import("d3-selection").Selection<SVGRectElement, {
|
|
77
|
+
type: string;
|
|
78
|
+
}, SVGGElement, any> | undefined;
|
|
79
|
+
exportColorBarSVG(): HTMLElement;
|
|
80
|
+
/**
|
|
81
|
+
* Set data lens size
|
|
82
|
+
*
|
|
83
|
+
* @param {Integer} newDataLensSize New data lens size. Needs to be an odd
|
|
84
|
+
* integer.
|
|
85
|
+
*/
|
|
86
|
+
setDataLensSize(newDataLensSize: Integer): void;
|
|
87
|
+
dataLensPadding: number | undefined;
|
|
88
|
+
dataLensSize: number | undefined;
|
|
89
|
+
binsPerTile(): any;
|
|
90
|
+
/**
|
|
91
|
+
* Get the data in the visible rectangle
|
|
92
|
+
*
|
|
93
|
+
* The parameter coordinates are in pixel coordinates
|
|
94
|
+
*
|
|
95
|
+
* @param {int} x: The upper left corner of the rectangle in pixel coordinates
|
|
96
|
+
* @param {int} y: The upper left corner of the rectangle in pixel coordinates
|
|
97
|
+
* @param {int} width: The width of the rectangle (pixels)
|
|
98
|
+
* @param {int} height: The height of the rectangle (pixels)
|
|
99
|
+
*
|
|
100
|
+
* @returns {Array} A numjs array containing the data in the visible region
|
|
101
|
+
*
|
|
102
|
+
*/
|
|
103
|
+
getVisibleRectangleData(x: int, y: int, width: int, height: int): any[];
|
|
104
|
+
/**
|
|
105
|
+
* Convert the raw tile data to a rendered array of values which can be represented as a sprite.
|
|
106
|
+
*
|
|
107
|
+
* @param tile: The data structure containing all the tile information. Relevant to
|
|
108
|
+
* this function are tile.tileData = \{'dense': [...], ...\}
|
|
109
|
+
* and tile.graphics
|
|
110
|
+
*/
|
|
111
|
+
initTile(tile: any): void;
|
|
112
|
+
updateTile(tile: any): void;
|
|
113
|
+
destroyTile(tile: any): void;
|
|
114
|
+
pixDataFunction(tile: any, pixData: any): void;
|
|
115
|
+
/**
|
|
116
|
+
* Render / draw a tile.
|
|
117
|
+
*
|
|
118
|
+
* @param {Object} tile Tile data to be rendered.
|
|
119
|
+
*/
|
|
120
|
+
renderTile(tile: Object): void;
|
|
121
|
+
refScalesChanged(refXScale: any, refYScale: any): void;
|
|
122
|
+
/**
|
|
123
|
+
* Bypass this track's exportSVG function
|
|
124
|
+
*/
|
|
125
|
+
superSVG(): [HTMLElement, HTMLElement];
|
|
126
|
+
exportSVG(): HTMLElement[];
|
|
127
|
+
getVisiblePartOfUppLeftTile(): (string | number)[] | null;
|
|
128
|
+
getIndicesOfVisibleDataInTile(tile: any): number[];
|
|
129
|
+
zoomed(newXScale: any, newYScale: any, k: any, tx: any, ty: any): void;
|
|
130
|
+
/**
|
|
131
|
+
* Helper method for adding a tile ID in place. Used by `tilesToId()`.
|
|
132
|
+
*
|
|
133
|
+
* @param {Array} tiles Array tile ID should be added to.
|
|
134
|
+
* @param {Integer} zoomLevel Zoom level.
|
|
135
|
+
* @param {Integer} row Column ID, i.e., y.
|
|
136
|
+
* @param {Integer} column Column ID, i.e., x.
|
|
137
|
+
* @param {Objwect} dataTransform ??
|
|
138
|
+
* @param {Boolean} mirrored If `true` tile is mirrored.
|
|
139
|
+
*/
|
|
140
|
+
addTileId(tiles: any[], zoomLevel: Integer, row: Integer, column: Integer, dataTransform: Objwect, mirrored?: boolean): void;
|
|
141
|
+
/**
|
|
142
|
+
* Convert tile positions to tile IDs
|
|
143
|
+
*
|
|
144
|
+
* @param {Array} xTiles X positions of tiles
|
|
145
|
+
* @param {Array} yTiles Y positions of tiles
|
|
146
|
+
* @param {Array} zoomLevel Current zoom level
|
|
147
|
+
* @return {Array} List of tile IDs
|
|
148
|
+
*/
|
|
149
|
+
tilesToId(xTiles: any[], yTiles: any[], zoomLevel: any[]): any[];
|
|
150
|
+
calculateVisibleTiles(): void;
|
|
151
|
+
zoomLevel: number | undefined;
|
|
152
|
+
xTiles: number[] | undefined;
|
|
153
|
+
yTiles: number[] | undefined;
|
|
154
|
+
mirrorTiles(): boolean;
|
|
155
|
+
contextMenuItems(trackX: any, trackY: any): never[];
|
|
156
|
+
getMouseOverHtml(trackX: any, trackY: any): string;
|
|
157
|
+
/**
|
|
158
|
+
* Get the tile's position in its coordinate system.
|
|
159
|
+
*
|
|
160
|
+
* @description
|
|
161
|
+
* Normally the absolute coordinate system are the genome basepair positions
|
|
162
|
+
*/
|
|
163
|
+
getTilePosAndDimensions(zoomLevel: any, tilePos: any, binsPerTileIn: any): {
|
|
164
|
+
tileX: number;
|
|
165
|
+
tileY: number;
|
|
166
|
+
tileWidth: number;
|
|
167
|
+
tileHeight: number;
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* The local tile identifier
|
|
171
|
+
*
|
|
172
|
+
* @param {array} tile Tile definition array to be converted to id. Tile
|
|
173
|
+
* array must contain `[zoomLevel, xPos, yPos]` and two props `mirrored` and
|
|
174
|
+
* `dataTransform`.
|
|
175
|
+
*/
|
|
176
|
+
tileToLocalId(tile: array): string;
|
|
177
|
+
/**
|
|
178
|
+
* The tile identifier used on the server
|
|
179
|
+
*/
|
|
180
|
+
tileToRemoteId(tile: any): string;
|
|
181
|
+
localToRemoteId(remoteId: any): any;
|
|
182
|
+
}
|
|
183
|
+
import TiledPixiTrack from './TiledPixiTrack';
|
|
184
|
+
import AxisPixi from './AxisPixi';
|