@weng-lab/genomebrowser 1.6.3 → 1.7.0-beta

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.
@@ -0,0 +1,22 @@
1
+ import { LazyQueryExecFunction, OperationVariables } from '@apollo/client';
2
+ import { Track } from '../store/trackStore';
3
+ import { TrackType } from '../components/tracks/types';
4
+ import { Domain } from '../utils/types';
5
+ import { TrackDataState } from '../store/dataStore';
6
+ export interface QueryHooks {
7
+ fetchBigData: LazyQueryExecFunction<any, OperationVariables>;
8
+ fetchGene: LazyQueryExecFunction<any, OperationVariables>;
9
+ fetchMotif: LazyQueryExecFunction<any, OperationVariables>;
10
+ }
11
+ export type FetcherContext<T extends Track = Track> = {
12
+ track: T;
13
+ domain: Domain;
14
+ expandedDomain: Domain;
15
+ preRenderedWidth: number;
16
+ queries: QueryHooks;
17
+ };
18
+ export type FetchFunction = (ctx: FetcherContext) => Promise<TrackDataState>;
19
+ /**
20
+ * Registry of fetcher functions by track type
21
+ */
22
+ export declare const trackFetchers: Record<TrackType, FetchFunction>;
@@ -0,0 +1,8 @@
1
+ import { BigZoomData } from 'bigwig-reader';
2
+ import { FetcherContext } from './fetchers';
3
+ import { BigWigConfig } from '../components/tracks/bigwig/types';
4
+ import { TrackDataState } from '../store/dataStore';
5
+ import { Domain } from '../utils/types';
6
+ export declare function getBigData(url: string, expandedDomain: Domain, preRenderedWidth?: number): Promise<TrackDataState>;
7
+ export declare function condensedZoomData(data: BigZoomData[], preRenderedWidth: number, start: number, end: number): Promise<any[]>;
8
+ export declare function ogBigWigFetcher(ctx: FetcherContext<BigWigConfig>): Promise<TrackDataState>;
@@ -0,0 +1 @@
1
+ export {};
@@ -7,6 +7,7 @@ export interface BigRequest {
7
7
  start: number;
8
8
  end: number;
9
9
  preRenderedWidth?: number;
10
+ zoomLevel?: number;
10
11
  }
11
12
  export interface BigResponse {
12
13
  bigRequests: {