@weng-lab/genomebrowser 1.6.2 → 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.
- package/dist/api/fetchers.d.ts +22 -0
- package/dist/api/getBigWigData.d.ts +8 -0
- package/dist/api-legacy/DataFetcher.d.ts +1 -0
- package/dist/{api → api-legacy}/apiTypes.d.ts +1 -0
- package/dist/genomebrowser.es.js +10232 -6590
- package/dist/genomebrowser.es.js.map +1 -1
- package/dist/hooks/useCustomData.d.ts +4 -0
- package/dist/hooks/useDataFetcher.d.ts +5 -0
- package/dist/store/dataStore.d.ts +14 -7
- package/package.json +4 -1
- package/dist/api/DataFetcher.d.ts +0 -2
- /package/dist/{api → api-legacy}/queries.d.ts +0 -0
- /package/dist/{api → api-legacy}/queryExecutor.d.ts +0 -0
- /package/dist/{api → api-legacy}/requestBuilder.d.ts +0 -0
- /package/dist/{api → api-legacy}/resultsProcessor.d.ts +0 -0
|
@@ -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 {};
|