@weng-lab/genomebrowser 1.8.2 → 1.8.3
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 +3 -2
- package/dist/api/getBigWigData.d.ts +3 -2
- package/dist/components/tracks/methylC/defaultMethylCTooltip.d.ts +12 -1
- package/dist/components/tracks/methylC/split.d.ts +2 -2
- package/dist/genomebrowser.es.js +9285 -8289
- package/dist/genomebrowser.es.js.map +1 -1
- package/dist/lib.d.ts +2 -0
- package/package.json +2 -2
package/dist/api/fetchers.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { Track } from '../store/trackStore';
|
|
|
3
3
|
import { TrackType } from '../components/tracks/types';
|
|
4
4
|
import { Domain } from '../utils/types';
|
|
5
5
|
import { TrackDataState } from '../store/dataStore';
|
|
6
|
+
import { BigBedParser } from './getBigWigData';
|
|
6
7
|
export interface QueryHooks {
|
|
7
8
|
fetchBigData: LazyQueryExecFunction<any, OperationVariables>;
|
|
8
9
|
fetchGene: LazyQueryExecFunction<any, OperationVariables>;
|
|
@@ -17,12 +18,12 @@ export type FetcherContext<T extends Track = Track> = {
|
|
|
17
18
|
queries: QueryHooks;
|
|
18
19
|
};
|
|
19
20
|
export type FetchFunction = (ctx: FetcherContext) => Promise<TrackDataState>;
|
|
20
|
-
export declare function getBigDataRace(url: string, expandedDomain: Domain, preRenderedWidth: number,
|
|
21
|
+
export declare function getBigDataRace(url: string, expandedDomain: Domain, preRenderedWidth: number, _queries: QueryHooks, parser?: BigBedParser): Promise<TrackDataState>;
|
|
21
22
|
/**
|
|
22
23
|
* Fetch a BigBed/BigWig URL using the fetcher context.
|
|
23
24
|
* Useful for custom track fetchers that need to load .bb/.bw files.
|
|
24
25
|
*/
|
|
25
|
-
export declare function fetchBigBedUrl(url: string, ctx: FetcherContext): Promise<TrackDataState>;
|
|
26
|
+
export declare function fetchBigBedUrl(url: string, ctx: FetcherContext, parser?: BigBedParser): Promise<TrackDataState>;
|
|
26
27
|
/**
|
|
27
28
|
* Registry of fetcher functions by track type
|
|
28
29
|
*/
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { BigZoomData } from '
|
|
1
|
+
import { BigZoomData } from 'genomic-reader';
|
|
2
2
|
import { TrackDataState } from '../store/dataStore';
|
|
3
3
|
import { Domain } from '../utils/types';
|
|
4
|
-
export
|
|
4
|
+
export type BigBedParser = (chrom: string, startBase: number, endBase: number, rest: string) => any;
|
|
5
|
+
export declare function getBigData(url: string, expandedDomain: Domain, preRenderedWidth?: number, parser?: BigBedParser): Promise<TrackDataState>;
|
|
5
6
|
export declare function condensedZoomData(data: BigZoomData[], preRenderedWidth: number, start: number, end: number): Promise<any[]>;
|
|
6
7
|
export declare function ogBigDataFetcher(url: string, expandedDomain: Domain, preRenderedWidth: number, queries: any): Promise<TrackDataState>;
|
|
7
8
|
export declare function applyFillWithZero(data: {
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import { ValuedPoint } from '../bigwig/types';
|
|
2
|
-
export
|
|
2
|
+
export type MethylCShowRows = {
|
|
3
|
+
fwdCpg: boolean;
|
|
4
|
+
fwdChg: boolean;
|
|
5
|
+
fwdChh: boolean;
|
|
6
|
+
fwdDepth: boolean;
|
|
7
|
+
revCpg: boolean;
|
|
8
|
+
revChg: boolean;
|
|
9
|
+
revChh: boolean;
|
|
10
|
+
revDepth: boolean;
|
|
11
|
+
};
|
|
12
|
+
export default function DefaultMethylCTooltip({ tooltipValues, showRows, }: {
|
|
3
13
|
tooltipValues: ValuedPoint[];
|
|
14
|
+
showRows: MethylCShowRows;
|
|
4
15
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { MethylCProps } from './types';
|
|
2
|
-
declare function SplitMethylC({ id, height, colors, data, dimensions, range, tooltip }: MethylCProps): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { MethylCProps, MethylCConfig } from './types';
|
|
2
|
+
declare function SplitMethylC({ id, height, colors, data, dimensions, range, tooltip, urls, }: MethylCProps & Pick<MethylCConfig, "urls">): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default SplitMethylC;
|