@weng-lab/genomebrowser 1.7.11 → 1.8.0
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 +5 -0
- package/dist/components/tracks/custom/types.d.ts +12 -0
- package/dist/components/tracks/methylC/helpers.d.ts +1 -1
- package/dist/components/tracks/types.d.ts +2 -1
- package/dist/genomebrowser.es.js +4377 -4353
- package/dist/genomebrowser.es.js.map +1 -1
- package/dist/lib.d.ts +25 -2
- package/dist/store/trackStore.d.ts +2 -1
- package/package.json +1 -1
package/dist/api/fetchers.d.ts
CHANGED
|
@@ -18,6 +18,11 @@ export type FetcherContext<T extends Track = Track> = {
|
|
|
18
18
|
};
|
|
19
19
|
export type FetchFunction = (ctx: FetcherContext) => Promise<TrackDataState>;
|
|
20
20
|
export declare function getBigDataRace(url: string, expandedDomain: Domain, preRenderedWidth: number, queries: QueryHooks): Promise<TrackDataState>;
|
|
21
|
+
/**
|
|
22
|
+
* Fetch a BigBed/BigWig URL using the fetcher context.
|
|
23
|
+
* Useful for custom track fetchers that need to load .bb/.bw files.
|
|
24
|
+
*/
|
|
25
|
+
export declare function fetchBigBedUrl(url: string, ctx: FetcherContext): Promise<TrackDataState>;
|
|
21
26
|
/**
|
|
22
27
|
* Registry of fetcher functions by track type
|
|
23
28
|
*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FetcherContext } from '../../../api/fetchers';
|
|
2
|
+
import { TrackDataState } from '../../../store/dataStore';
|
|
3
|
+
import { Config, DisplayMode, TrackDimensions, TrackType } from '../types';
|
|
4
|
+
export interface CustomTrackConfig<Item = any> extends Config<Item> {
|
|
5
|
+
trackType: TrackType.Custom;
|
|
6
|
+
renderers: Partial<Record<DisplayMode, React.ComponentType<any>>>;
|
|
7
|
+
fetcher: (ctx: FetcherContext) => Promise<TrackDataState>;
|
|
8
|
+
}
|
|
9
|
+
export interface CustomTrackProps<Data = any, Item = any> extends Config<Item> {
|
|
10
|
+
data: Data;
|
|
11
|
+
dimensions: TrackDimensions;
|
|
12
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ValuedPoint, YRange } from '../bigwig/types';
|
|
2
|
-
export declare function generateSignal2(data: ValuedPoint[], height: number, color: string, inverted?: boolean,
|
|
2
|
+
export declare function generateSignal2(data: ValuedPoint[], height: number, color: string, inverted?: boolean, customRange?: YRange): {
|
|
3
3
|
indicator: import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
values: import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
} | null;
|