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,129 @@
|
|
|
1
|
+
export default OSMTilesTrack;
|
|
2
|
+
declare class OSMTilesTrack extends PixiTrack<any> {
|
|
3
|
+
/**
|
|
4
|
+
* A track that must pull remote tiles
|
|
5
|
+
*
|
|
6
|
+
* @param scene: A PIXI.js scene to draw everything to.
|
|
7
|
+
* @param server: The server to pull tiles from.
|
|
8
|
+
* @param tilesetUid: The data set to get the tiles from the server
|
|
9
|
+
*/
|
|
10
|
+
constructor(context: any, options: any);
|
|
11
|
+
visibleTiles: Set<any>;
|
|
12
|
+
visibleTileIds: Set<any>;
|
|
13
|
+
fetching: Set<any>;
|
|
14
|
+
fetchedTiles: {};
|
|
15
|
+
tileGraphics: {};
|
|
16
|
+
minX: number;
|
|
17
|
+
maxX: number;
|
|
18
|
+
minY: any;
|
|
19
|
+
maxY: any;
|
|
20
|
+
maxZoom: number;
|
|
21
|
+
maxWidth: number;
|
|
22
|
+
animate: any;
|
|
23
|
+
uuid: string;
|
|
24
|
+
refreshTilesDebounced: {
|
|
25
|
+
(...args: any[]): void;
|
|
26
|
+
cancel(): void;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Return the set of ids of all tiles which are both visible and fetched.
|
|
30
|
+
*/
|
|
31
|
+
visibleAndFetchedIds(): string[];
|
|
32
|
+
visibleAndFetchedTiles(): any[];
|
|
33
|
+
/**
|
|
34
|
+
* Set which tiles are visible right now.
|
|
35
|
+
*
|
|
36
|
+
* @param tiles: A set of tiles which will be considered the currently visible
|
|
37
|
+
* tile positions.
|
|
38
|
+
*/
|
|
39
|
+
setVisibleTiles(tilePositions: any): void;
|
|
40
|
+
removeAllTiles(): void;
|
|
41
|
+
refreshTiles(): void;
|
|
42
|
+
/**
|
|
43
|
+
* Remove obsolete tiles
|
|
44
|
+
*
|
|
45
|
+
* @param toRemoveIds: An array of tile ids to remove from the list of fetched tiles.
|
|
46
|
+
*/
|
|
47
|
+
removeTiles(toRemoveIds: any): void;
|
|
48
|
+
tileToLocalId(tile: any): any;
|
|
49
|
+
/**
|
|
50
|
+
* The tile identifier used on the server.
|
|
51
|
+
* @param {array} tile Contains `[zoomLevel, xPos, yPos]`.
|
|
52
|
+
* @return {string} Remote ID string
|
|
53
|
+
*/
|
|
54
|
+
tileToRemoteId(tile: array): string;
|
|
55
|
+
localToRemoteId(remoteId: any): any;
|
|
56
|
+
calculateVisibleTiles(): void;
|
|
57
|
+
zoomLevel: number | undefined;
|
|
58
|
+
xTiles: number[] | undefined;
|
|
59
|
+
yTiles: number[] | undefined;
|
|
60
|
+
zoomed(newXScale: any, newYScale: any, k: any, tx: any, ty: any): void;
|
|
61
|
+
setPosition(newPosition: any): void;
|
|
62
|
+
setDimensions(newDimensions: any): void;
|
|
63
|
+
/**
|
|
64
|
+
* Check to see if all the visible tiles are loaded.
|
|
65
|
+
*
|
|
66
|
+
* If they are, remove all other tiles.
|
|
67
|
+
*/
|
|
68
|
+
areAllVisibleTilesLoaded(): boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Function is called when all tiles that should be visible have
|
|
71
|
+
* been received.
|
|
72
|
+
*/
|
|
73
|
+
allTilesLoaded(): void;
|
|
74
|
+
minValue(_: any): any;
|
|
75
|
+
maxValue(_: any): any;
|
|
76
|
+
minRawValue(): any;
|
|
77
|
+
maxRawValue(): any;
|
|
78
|
+
/**
|
|
79
|
+
* Get the tile's position in its coordinate system.
|
|
80
|
+
*/
|
|
81
|
+
getTilePosAndDimensions(zoomLevel: any, tilePos: any): {
|
|
82
|
+
tileX: number;
|
|
83
|
+
tileY: any;
|
|
84
|
+
tileWidth: number;
|
|
85
|
+
tileHeight: number;
|
|
86
|
+
};
|
|
87
|
+
setSpriteProperties(sprite: any, zoomLevel: any, tilePos: any): void;
|
|
88
|
+
initTile(tile: any): void;
|
|
89
|
+
updateTile(tile: any): void;
|
|
90
|
+
destroyTile(tile: any): void;
|
|
91
|
+
/**
|
|
92
|
+
* Add graphics for tiles that have no graphics
|
|
93
|
+
*/
|
|
94
|
+
addMissingGraphics(): void;
|
|
95
|
+
/**
|
|
96
|
+
* Change the graphics for existing tiles
|
|
97
|
+
*/
|
|
98
|
+
updateExistingGraphics(): void;
|
|
99
|
+
/**
|
|
100
|
+
* Make sure that we have a one to one mapping between tiles
|
|
101
|
+
* and graphics objects
|
|
102
|
+
*/
|
|
103
|
+
synchronizeTilesAndGraphics(): void;
|
|
104
|
+
/**
|
|
105
|
+
* Extract drawable data from a tile loaded by a generic tile loader
|
|
106
|
+
*
|
|
107
|
+
* @param tile: A tile returned by a TiledArea.
|
|
108
|
+
* @param dataLoader: A function for extracting drawable data from a tile. This
|
|
109
|
+
* usually means differentiating the between dense and sparse
|
|
110
|
+
* tiles and putting the data into an array.
|
|
111
|
+
*/
|
|
112
|
+
loadTileData(tile: any, dataLoader: any): any;
|
|
113
|
+
/**
|
|
114
|
+
* Get the url used to fetch the tile data
|
|
115
|
+
*/
|
|
116
|
+
getTileUrl(tileZxy: any): string;
|
|
117
|
+
fetchNewTiles(toFetch: any): void;
|
|
118
|
+
/**
|
|
119
|
+
* We've gotten a bunch of tiles from the server in
|
|
120
|
+
* response to a request from fetchTiles.
|
|
121
|
+
*/
|
|
122
|
+
receivedTiles(loadedTiles: any): void;
|
|
123
|
+
/**
|
|
124
|
+
* Draw a tile on some graphics
|
|
125
|
+
*/
|
|
126
|
+
drawTile(): void;
|
|
127
|
+
refScalesChanged(refXScale: any, refYScale: any): void;
|
|
128
|
+
}
|
|
129
|
+
import PixiTrack from './PixiTrack';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default OverlayTrack;
|
|
2
|
+
declare class OverlayTrack extends PixiTrack<any> {
|
|
3
|
+
constructor(context: any, options: any);
|
|
4
|
+
drawnRects: {};
|
|
5
|
+
drawHorizontalOverlay(graphics: any, position: any, extent: any, minWidth: number | undefined, fill: any, stroke: any, outline: any, options: any): void;
|
|
6
|
+
drawVerticalOverlay(graphics: any, position: any, extent: any, minHeight: number | undefined, fill: any, stroke: any, outline: any, options?: {}): void;
|
|
7
|
+
draw(options: any): void;
|
|
8
|
+
zoomed(newXScale: any, newYScale: any): void;
|
|
9
|
+
setPosition(newPosition: any): void;
|
|
10
|
+
setDimensions(newDimensions: any): void;
|
|
11
|
+
exportSVG(): HTMLElement[];
|
|
12
|
+
}
|
|
13
|
+
import PixiTrack from './PixiTrack';
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
export default PixiTrack;
|
|
2
|
+
export type PixiTrackOptions = {
|
|
3
|
+
/**
|
|
4
|
+
* - If the label is to be drawn, where should it be drawn?
|
|
5
|
+
*/
|
|
6
|
+
labelPosition: string;
|
|
7
|
+
/**
|
|
8
|
+
* - What should be drawn in the label.
|
|
9
|
+
* If either labelPosition or labelText are false, no label will be drawn.
|
|
10
|
+
*/
|
|
11
|
+
labelText: string;
|
|
12
|
+
trackBorderWidth?: number | undefined;
|
|
13
|
+
trackBorderColor?: string | undefined;
|
|
14
|
+
backgroundColor?: string | undefined;
|
|
15
|
+
labelColor?: string | undefined;
|
|
16
|
+
lineStrokeColor?: string | undefined;
|
|
17
|
+
barFillColor?: string | undefined;
|
|
18
|
+
name?: string | undefined;
|
|
19
|
+
labelTextOpacity?: number | undefined;
|
|
20
|
+
labelBackgroundColor?: string | undefined;
|
|
21
|
+
labelLeftMargin?: number | undefined;
|
|
22
|
+
labelRightMargin?: number | undefined;
|
|
23
|
+
labelTopMargin?: number | undefined;
|
|
24
|
+
labelBottomMargin?: number | undefined;
|
|
25
|
+
labelBackgroundOpacity?: number | undefined;
|
|
26
|
+
labelShowAssembly?: boolean | undefined;
|
|
27
|
+
labelShowResolution?: boolean | undefined;
|
|
28
|
+
dataTransform?: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
export type PixiTrackContext = import("./Track").ExtendedTrackContext<{
|
|
31
|
+
scene: import("pixi.js").Container;
|
|
32
|
+
}>;
|
|
33
|
+
export type ExtendedPixiContext<T> = T & PixiTrackContext;
|
|
34
|
+
export type ExtendedPixiOptions<T> = T & PixiTrackOptions;
|
|
35
|
+
/**
|
|
36
|
+
* @typedef PixiTrackOptions
|
|
37
|
+
* @property {string} labelPosition - If the label is to be drawn, where should it be drawn?
|
|
38
|
+
* @property {string} labelText - What should be drawn in the label.
|
|
39
|
+
* If either labelPosition or labelText are false, no label will be drawn.
|
|
40
|
+
* @property {number=} trackBorderWidth
|
|
41
|
+
* @property {string=} trackBorderColor
|
|
42
|
+
* @property {string=} backgroundColor
|
|
43
|
+
* @property {string=} labelColor
|
|
44
|
+
* @property {string=} lineStrokeColor
|
|
45
|
+
* @property {string=} barFillColor
|
|
46
|
+
* @property {string=} name
|
|
47
|
+
* @property {number=} labelTextOpacity
|
|
48
|
+
* @property {string=} labelBackgroundColor
|
|
49
|
+
* @property {number=} labelLeftMargin
|
|
50
|
+
* @property {number=} labelRightMargin
|
|
51
|
+
* @property {number=} labelTopMargin
|
|
52
|
+
* @property {number=} labelBottomMargin
|
|
53
|
+
* @property {number=} labelBackgroundOpacity
|
|
54
|
+
* @property {boolean=} labelShowAssembly
|
|
55
|
+
* @property {boolean=} labelShowResolution
|
|
56
|
+
* @property {string=} dataTransform
|
|
57
|
+
*/
|
|
58
|
+
/**
|
|
59
|
+
* @typedef {import('./Track').ExtendedTrackContext<{ scene: import('pixi.js').Container}>} PixiTrackContext
|
|
60
|
+
*/
|
|
61
|
+
/**
|
|
62
|
+
* @template T
|
|
63
|
+
* @typedef {T & PixiTrackContext} ExtendedPixiContext
|
|
64
|
+
*/
|
|
65
|
+
/**
|
|
66
|
+
* @template T
|
|
67
|
+
* @typedef {T & PixiTrackOptions} ExtendedPixiOptions
|
|
68
|
+
*/
|
|
69
|
+
/**
|
|
70
|
+
* @template {ExtendedPixiOptions<{[key: string]: any}>} Options
|
|
71
|
+
* @extends {Track<Options>} */
|
|
72
|
+
declare class PixiTrack<Options extends ExtendedPixiOptions<{
|
|
73
|
+
[key: string]: any;
|
|
74
|
+
}>> extends Track<Options> {
|
|
75
|
+
/**
|
|
76
|
+
* @param {PixiTrackContext} context - Includes the PIXI.js scene to draw to.
|
|
77
|
+
* @param {Options} options - The options for this track.
|
|
78
|
+
*/
|
|
79
|
+
constructor(context: PixiTrackContext, options: Options);
|
|
80
|
+
/** @type {import('pixi.js').Container} */
|
|
81
|
+
scene: import("pixi.js").Container;
|
|
82
|
+
/** @type {boolean} */
|
|
83
|
+
delayDrawing: boolean;
|
|
84
|
+
/** @type {import('pixi.js').Graphics} */
|
|
85
|
+
pBase: import("pixi.js").Graphics;
|
|
86
|
+
/** @type {import('pixi.js').Graphics} */
|
|
87
|
+
pMasked: import("pixi.js").Graphics;
|
|
88
|
+
/** @type {import('pixi.js').Graphics} */
|
|
89
|
+
pMask: import("pixi.js").Graphics;
|
|
90
|
+
/** @type {import('pixi.js').Graphics} */
|
|
91
|
+
pMain: import("pixi.js").Graphics;
|
|
92
|
+
/** @type {import('pixi.js').Graphics} */
|
|
93
|
+
pBorder: import("pixi.js").Graphics;
|
|
94
|
+
/** @type {import('pixi.js').Graphics} */
|
|
95
|
+
pBackground: import("pixi.js").Graphics;
|
|
96
|
+
/** @type {import('pixi.js').Graphics} */
|
|
97
|
+
pForeground: import("pixi.js").Graphics;
|
|
98
|
+
/** @type {import('pixi.js').Graphics} */
|
|
99
|
+
pLabel: import("pixi.js").Graphics;
|
|
100
|
+
/** @type {import('pixi.js').Graphics} */
|
|
101
|
+
pMobile: import("pixi.js").Graphics;
|
|
102
|
+
/** @type {import('pixi.js').Graphics} */
|
|
103
|
+
pAxis: import("pixi.js").Graphics;
|
|
104
|
+
/** @type {import('pixi.js').Graphics} */
|
|
105
|
+
pMouseOver: import("pixi.js").Graphics;
|
|
106
|
+
/** @type {string} */
|
|
107
|
+
prevOptions: string;
|
|
108
|
+
/** @type {string} */
|
|
109
|
+
labelTextFontFamily: string;
|
|
110
|
+
/** @type {number} */
|
|
111
|
+
labelTextFontSize: number;
|
|
112
|
+
/**
|
|
113
|
+
* Used to avoid label/colormap clashes
|
|
114
|
+
* @type {number}
|
|
115
|
+
*/
|
|
116
|
+
labelXOffset: number;
|
|
117
|
+
/** @type {import('pixi.js').Text} */
|
|
118
|
+
labelText: import("pixi.js").Text;
|
|
119
|
+
/** @type {import('pixi.js').Text} */
|
|
120
|
+
errorText: import("pixi.js").Text;
|
|
121
|
+
/** @type {boolean} */
|
|
122
|
+
flipText: boolean;
|
|
123
|
+
/** @type {import('./types').TilesetInfo | undefined} */
|
|
124
|
+
tilesetInfo: import("./types").TilesetInfo | undefined;
|
|
125
|
+
/** @type {{ [key: string]: string }} */
|
|
126
|
+
errorTexts: {
|
|
127
|
+
[key: string]: string;
|
|
128
|
+
};
|
|
129
|
+
setLabelText(): void;
|
|
130
|
+
/**
|
|
131
|
+
* @param {[number, number]} position
|
|
132
|
+
* @param {[number, number]} dimensions
|
|
133
|
+
*/
|
|
134
|
+
setMask(position: [number, number], dimensions: [number, number]): void;
|
|
135
|
+
setForeground(): void;
|
|
136
|
+
/**
|
|
137
|
+
* Draw a border around each track.
|
|
138
|
+
*/
|
|
139
|
+
drawBorder(): void;
|
|
140
|
+
/** Set an error for this track.
|
|
141
|
+
*
|
|
142
|
+
* The error can be associated with a source so that multiple
|
|
143
|
+
* components within the track can set their own independent errors
|
|
144
|
+
* that will be displayed to the user without overlapping.
|
|
145
|
+
*
|
|
146
|
+
* @param {string} error The error text
|
|
147
|
+
* @param {string} source The source of the error
|
|
148
|
+
*/
|
|
149
|
+
setError(error: string, source: string): void;
|
|
150
|
+
drawError(): void;
|
|
151
|
+
drawBackground(): void;
|
|
152
|
+
/**
|
|
153
|
+
* Determine the label color based on the number of options.
|
|
154
|
+
*
|
|
155
|
+
* @return {string} The color to use for the label.
|
|
156
|
+
*/
|
|
157
|
+
getLabelColor(): string;
|
|
158
|
+
getName(): string;
|
|
159
|
+
drawLabel(): void;
|
|
160
|
+
/**
|
|
161
|
+
* Export an SVG representation of this track
|
|
162
|
+
*
|
|
163
|
+
* @returns {[HTMLElement, HTMLElement]} The two returned DOM nodes are both SVG
|
|
164
|
+
* elements [base, track]. Base is a parent which contains track as a
|
|
165
|
+
* child. Track is clipped with a clipping rectangle contained in base.
|
|
166
|
+
*
|
|
167
|
+
*/
|
|
168
|
+
exportSVG(): [HTMLElement, HTMLElement];
|
|
169
|
+
/**
|
|
170
|
+
* @returns {number}
|
|
171
|
+
*/
|
|
172
|
+
calculateZoomLevel(): number;
|
|
173
|
+
}
|
|
174
|
+
import Track from './Track';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export default PlotTypeChooser;
|
|
2
|
+
declare class PlotTypeChooser extends React.Component<any, any, any> {
|
|
3
|
+
constructor(props: any);
|
|
4
|
+
DATATYPE_TO_TRACK_TYPE: {
|
|
5
|
+
none: any[];
|
|
6
|
+
};
|
|
7
|
+
AVAILABLE_TRACK_TYPES: any[];
|
|
8
|
+
state: {
|
|
9
|
+
selectedPlotType: any;
|
|
10
|
+
};
|
|
11
|
+
UNSAFE_componentWillReceiveProps(newProps: any): void;
|
|
12
|
+
handlePlotTypeSelected(key: any): void;
|
|
13
|
+
render(): React.JSX.Element;
|
|
14
|
+
}
|
|
15
|
+
declare namespace PlotTypeChooser {
|
|
16
|
+
namespace propTypes {
|
|
17
|
+
let allTracksSameDatatype: PropTypes.Requireable<boolean>;
|
|
18
|
+
let datatypes: PropTypes.Requireable<any[]>;
|
|
19
|
+
let orientation: PropTypes.Requireable<string>;
|
|
20
|
+
let onPlotTypeSelected: PropTypes.Requireable<(...args: any[]) => any>;
|
|
21
|
+
let position: PropTypes.Requireable<string>;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
import React from 'react';
|
|
25
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export default PopupMenu;
|
|
2
|
+
declare class PopupMenu extends React.Component<any, any, any> {
|
|
3
|
+
constructor(props: any);
|
|
4
|
+
clickHandlerBound: (event: any) => void;
|
|
5
|
+
contextMenuHandlerBound: (event: any) => void;
|
|
6
|
+
resizeHandlerBound: () => void;
|
|
7
|
+
componentDidMount(): void;
|
|
8
|
+
popup: HTMLDivElement | undefined;
|
|
9
|
+
componentDidUpdate(): void;
|
|
10
|
+
componentWillUnmount(): void;
|
|
11
|
+
_renderLayer(): void;
|
|
12
|
+
clickHandler(event: any): void;
|
|
13
|
+
contextMenuHandler(event: any): void;
|
|
14
|
+
resizeHandler(): void;
|
|
15
|
+
render(): React.JSX.Element;
|
|
16
|
+
}
|
|
17
|
+
declare namespace PopupMenu {
|
|
18
|
+
namespace defaultProps {
|
|
19
|
+
export { intoTheVoid as onMenuClosed };
|
|
20
|
+
}
|
|
21
|
+
namespace propTypes {
|
|
22
|
+
let children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
23
|
+
let onMenuClosed: PropTypes.Requireable<(...args: any[]) => any>;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
import React from 'react';
|
|
27
|
+
import intoTheVoid from './utils/into-the-void';
|
|
28
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default SVGTrack;
|
|
2
|
+
declare class SVGTrack extends Track<any> {
|
|
3
|
+
constructor(context: any, options: any);
|
|
4
|
+
/**
|
|
5
|
+
* Create a new SVG track. It will contain a g element
|
|
6
|
+
* that maintains all of its element.
|
|
7
|
+
*/
|
|
8
|
+
gMain: import("d3-selection").Selection<SVGGElement, any, null, undefined>;
|
|
9
|
+
clipUid: string;
|
|
10
|
+
clipRect: import("d3-selection").Selection<SVGRectElement, any, null, undefined>;
|
|
11
|
+
setPosition(newPosition: any): void;
|
|
12
|
+
setDimensions(newDimensions: any): void;
|
|
13
|
+
draw(): this;
|
|
14
|
+
}
|
|
15
|
+
import Track from './Track';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default SearchField;
|
|
2
|
+
declare class SearchField {
|
|
3
|
+
constructor(chromInfo: any);
|
|
4
|
+
chromInfo: any;
|
|
5
|
+
chromInfoBisector: (array: ArrayLike<any>, x: any, lo?: number, hi?: number) => number;
|
|
6
|
+
scalesToPositionText(xScale: any, yScale: any, twoD?: boolean): string;
|
|
7
|
+
convertNumberNotation(numStr: any): any;
|
|
8
|
+
parsePosition(positionText: any, prevChr?: null): any[];
|
|
9
|
+
matchRangesToLarger(range1: any, range2: any): any[];
|
|
10
|
+
getSearchRange(term: any): any[] | null;
|
|
11
|
+
parseOffset(offsetText: any): number[][];
|
|
12
|
+
searchPosition(text: any): any[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef MenuItem
|
|
3
|
+
* @property {string} name
|
|
4
|
+
* @property {string} [value]
|
|
5
|
+
* @property {Record<string, unknown>} [children]
|
|
6
|
+
* @property {() => void} [handler]
|
|
7
|
+
*/
|
|
8
|
+
export default class SeriesListMenu extends ContextMenuContainer {
|
|
9
|
+
/**
|
|
10
|
+
* @param {unknown} position
|
|
11
|
+
* @param {unknown} bbox
|
|
12
|
+
* @param {{ type: string, options: Record<string, unknown>, uid: string, }} track
|
|
13
|
+
*/
|
|
14
|
+
getConfigureSeriesMenu(position: unknown, bbox: unknown, track: {
|
|
15
|
+
type: string;
|
|
16
|
+
options: Record<string, unknown>;
|
|
17
|
+
uid: string;
|
|
18
|
+
}): React.JSX.Element | null;
|
|
19
|
+
/**
|
|
20
|
+
* Return a list of track types that can be used
|
|
21
|
+
* with the data for this track
|
|
22
|
+
*
|
|
23
|
+
* @param {Object} position The position where to draw ths menu (e.g. {left: 42, top: 88})
|
|
24
|
+
*
|
|
25
|
+
* @param {Object} bbox
|
|
26
|
+
* The bounding box of the parent menu, used to determine whether
|
|
27
|
+
* to draw the child menu on the left or the right
|
|
28
|
+
*
|
|
29
|
+
* @param {{ uid: string, type: string, datatype: string }} track The track definition for this series (as in the viewconf)
|
|
30
|
+
*/
|
|
31
|
+
getTrackTypeItems(position: Object, bbox: Object, track: {
|
|
32
|
+
uid: string;
|
|
33
|
+
type: string;
|
|
34
|
+
datatype: string;
|
|
35
|
+
}): React.JSX.Element;
|
|
36
|
+
getSubmenu(): React.JSX.Element | null;
|
|
37
|
+
getDivideByMenuItem(): React.JSX.Element;
|
|
38
|
+
componentWillUnmount(): void;
|
|
39
|
+
}
|
|
40
|
+
export type ContextMenuHandler = {
|
|
41
|
+
label: string;
|
|
42
|
+
onClick: (evt: unknown, onTrackOptionsChanged: (options: Record<string, unknown>) => void) => void;
|
|
43
|
+
};
|
|
44
|
+
export type MenuItem = {
|
|
45
|
+
name: string;
|
|
46
|
+
value?: string | undefined;
|
|
47
|
+
children?: Record<string, unknown> | undefined;
|
|
48
|
+
handler?: (() => void) | undefined;
|
|
49
|
+
};
|
|
50
|
+
import ContextMenuContainer from './ContextMenuContainer';
|
|
51
|
+
import React from 'react';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export default SketchInlinePicker;
|
|
2
|
+
declare class SketchInlinePicker extends React.Component<any, any, any> {
|
|
3
|
+
constructor(props: any);
|
|
4
|
+
state: {
|
|
5
|
+
displayColorPicker: boolean;
|
|
6
|
+
color: {
|
|
7
|
+
r: number;
|
|
8
|
+
g: number;
|
|
9
|
+
b: number;
|
|
10
|
+
a: number;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
handleClick(): void;
|
|
14
|
+
handleClose(): void;
|
|
15
|
+
handleChange(color: any): void;
|
|
16
|
+
render(): React.JSX.Element;
|
|
17
|
+
}
|
|
18
|
+
declare namespace SketchInlinePicker {
|
|
19
|
+
namespace propTypes {
|
|
20
|
+
let color: PropTypes.Requireable<string>;
|
|
21
|
+
let onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
import React from 'react';
|
|
25
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export default SortableList;
|
|
2
|
+
declare const SortableList: React.ComponentClass<{
|
|
3
|
+
className: any;
|
|
4
|
+
items: any;
|
|
5
|
+
itemClass: any;
|
|
6
|
+
itemControlAlignLeft: any;
|
|
7
|
+
sortingIndex: any;
|
|
8
|
+
useDragHandle: any;
|
|
9
|
+
sortableHandlers: any;
|
|
10
|
+
height: any;
|
|
11
|
+
width: any;
|
|
12
|
+
onCloseTrack: any;
|
|
13
|
+
onCloseTrackMenuOpened: any;
|
|
14
|
+
onConfigTrackMenuOpened: any;
|
|
15
|
+
onAddSeries: any;
|
|
16
|
+
handleConfigTrack: any;
|
|
17
|
+
editable: any;
|
|
18
|
+
itemReactClass: any;
|
|
19
|
+
handleResizeTrack: any;
|
|
20
|
+
resizeHandles: any;
|
|
21
|
+
} & import("react-sortable-hoc").SortableContainerProps, any>;
|
|
22
|
+
import React from 'react';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export default SquareMarkersTrack;
|
|
2
|
+
declare class SquareMarkersTrack extends TiledPixiTrack<any> {
|
|
3
|
+
constructor(context: any, options: any);
|
|
4
|
+
drawnRects: Set<any>;
|
|
5
|
+
tileToLocalId(tile: any): string;
|
|
6
|
+
/**
|
|
7
|
+
* The tile identifier used on the server
|
|
8
|
+
*/
|
|
9
|
+
tileToRemoteId(tile: any): string;
|
|
10
|
+
localToRemoteId(remoteId: any): any;
|
|
11
|
+
setVisibleTiles(tilePositions: any): void;
|
|
12
|
+
calculateVisibleTiles(mirrorTiles?: boolean): void;
|
|
13
|
+
zoomLevel: number | undefined;
|
|
14
|
+
xTiles: number[] | undefined;
|
|
15
|
+
yTiles: number[] | undefined;
|
|
16
|
+
initTile(tile: any): void;
|
|
17
|
+
destroyTile(tile: any, graphics: any): void;
|
|
18
|
+
drawTile(tile: any): void;
|
|
19
|
+
setPosition(newPosition: any): void;
|
|
20
|
+
zoomed(newXScale: any, newYScale: any): void;
|
|
21
|
+
}
|
|
22
|
+
import TiledPixiTrack from './TiledPixiTrack';
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export default Tiled1DPixiTrack;
|
|
2
|
+
declare class Tiled1DPixiTrack extends TiledPixiTrack<any> {
|
|
3
|
+
constructor(context: any, options: any);
|
|
4
|
+
onMouseMoveZoom: any;
|
|
5
|
+
isValueScaleLocked: any;
|
|
6
|
+
getLockGroupExtrema: any;
|
|
7
|
+
initTile(tile: any): void;
|
|
8
|
+
tileToLocalId(tile: any): string;
|
|
9
|
+
tileToRemoteId(tile: any): string;
|
|
10
|
+
relevantScale(): null;
|
|
11
|
+
setVisibleTiles(tilePositions: any): void;
|
|
12
|
+
calculateVisibleTiles(): void;
|
|
13
|
+
zoomLevel: number | undefined;
|
|
14
|
+
getTilePosAndDimensions(zoomLevel: any, tilePos: any, binsPerTileIn: any): {
|
|
15
|
+
tileX: number;
|
|
16
|
+
tileY: number;
|
|
17
|
+
tileWidth: number;
|
|
18
|
+
tileHeight: number;
|
|
19
|
+
};
|
|
20
|
+
updateTile(tile: any): void;
|
|
21
|
+
scheduleRerender(): void;
|
|
22
|
+
handleRerender(): void;
|
|
23
|
+
getIndicesOfVisibleDataInTile(tile: any): number[] | null[];
|
|
24
|
+
/**
|
|
25
|
+
* Returns the minimum in the visible area (not visible tiles)
|
|
26
|
+
*/
|
|
27
|
+
minVisibleValue(ignoreFixedScale?: boolean): number;
|
|
28
|
+
/**
|
|
29
|
+
* Returns the maximum in the visible area (not visible tiles)
|
|
30
|
+
*/
|
|
31
|
+
maxVisibleValue(ignoreFixedScale?: boolean): number;
|
|
32
|
+
/**
|
|
33
|
+
* Return an aggregated visible value. For example, the minimum or maximum.
|
|
34
|
+
*
|
|
35
|
+
* @description
|
|
36
|
+
* The difference to `minVisibleValueInTiles`
|
|
37
|
+
* is that the truly visible min or max value is returned instead of the
|
|
38
|
+
* min or max value of the tile. The latter is not necessarily visible.
|
|
39
|
+
*
|
|
40
|
+
* For 'min' and 'max' this is identical to minVisibleValue and maxVisibleValue
|
|
41
|
+
*
|
|
42
|
+
* @param {string} aggregator Aggregation method. Currently supports `min`
|
|
43
|
+
* and `max` only.
|
|
44
|
+
* @return {number} The aggregated value.
|
|
45
|
+
*/
|
|
46
|
+
getAggregatedVisibleValue(aggregator?: string): number;
|
|
47
|
+
/**
|
|
48
|
+
* Get the data value at a relative pixel position
|
|
49
|
+
* @param {number} relPos Relative pixel position, where 0 indicates the
|
|
50
|
+
* start of the track
|
|
51
|
+
* @return {number} The data value at `relPos`
|
|
52
|
+
*/
|
|
53
|
+
getDataAtPos(relPos: number): number;
|
|
54
|
+
mouseMoveHandler({ x, y }?: {}): void;
|
|
55
|
+
mouseX: any;
|
|
56
|
+
mouseY: any;
|
|
57
|
+
mouseMoveZoomHandler(): void;
|
|
58
|
+
zoomed(...args: any[]): void;
|
|
59
|
+
}
|
|
60
|
+
import TiledPixiTrack from './TiledPixiTrack';
|