@weng-lab/genomebrowser 1.8.5-beta.1 → 1.8.5-beta.2
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 +1 -3
- package/dist/api/getBigWigData.d.ts +1 -2
- package/dist/components/tracks/bigbed/dense.d.ts +2 -2
- package/dist/components/tracks/bigbed/helpers.d.ts +4 -10
- package/dist/components/tracks/bigbed/schema.d.ts +3 -0
- package/dist/components/tracks/bigbed/squish.d.ts +2 -2
- package/dist/components/tracks/bigbed/types.d.ts +65 -10
- package/dist/genomebrowser.es.js +4849 -4829
- package/dist/genomebrowser.es.js.map +1 -1
- package/dist/hooks/useInteraction.d.ts +1 -1
- package/dist/lib.d.ts +6 -6
- package/dist/store/trackStore.d.ts +1 -1
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ export default function useInteraction<T>({ onClick, onHover, onLeave, tooltip,
|
|
|
13
13
|
onClick: ((item: T) => void) | undefined;
|
|
14
14
|
onHover: ((item: T) => void) | undefined;
|
|
15
15
|
onLeave: ((item: T) => void) | undefined;
|
|
16
|
-
tooltip: React.FC<any
|
|
16
|
+
tooltip: ((props: any) => ReturnType<React.FC<any>>) | undefined;
|
|
17
17
|
}): {
|
|
18
18
|
handleClick: (item: T) => void;
|
|
19
19
|
handleHover: (item: T, fallback: string, e: React.MouseEvent) => void;
|
package/dist/lib.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { default as Browser } from './components/browser/browser';
|
|
2
|
-
import { BigBedConfig, SquishBigBedProps, DenseBigBedProps, Rect } from './components/tracks/bigbed/types';
|
|
2
|
+
import { BigBedConfig, BigBedFieldKind, BigBedParser, BigBedRow, BigBedSchema, InferBigBedRow, SquishBigBedProps, DenseBigBedProps, Rect } from './components/tracks/bigbed/types';
|
|
3
|
+
import { defineBigBedSchema } from './components/tracks/bigbed/schema';
|
|
3
4
|
import { BulkBedConfig, BulkBedProps, BulkBedDataset, BulkBedRect } from './components/tracks/bulkbed/types';
|
|
4
5
|
import { BigWigConfig, FullBigWigProps, DenseBigWigProps, ValuedPoint, BigWigData, BigZoomData } from './components/tracks/bigwig/types';
|
|
5
6
|
import { ImportanceConfig, ImportanceProps, ImportanceTrackData } from './components/tracks/importance/types';
|
|
@@ -19,8 +20,7 @@ import { Domain, Chromosome } from './utils/types';
|
|
|
19
20
|
import { default as GQLWrapper } from './components/browser/GQLWrapper';
|
|
20
21
|
import { default as Cytobands } from './components/cytoband/cytobands';
|
|
21
22
|
import { default as useCustomData } from './hooks/useCustomData';
|
|
22
|
-
import {
|
|
23
|
-
import { BigBedParser } from './api/getBigWigData';
|
|
23
|
+
import { fetchBigBedUrl, FetcherContext, FetchFunction } from './api/fetchers';
|
|
24
24
|
import { useXTransform } from './hooks/useXTransform';
|
|
25
25
|
import { default as useInteraction } from './hooks/useInteraction';
|
|
26
26
|
import { useMouseToIndex } from './hooks/useMousePosition';
|
|
@@ -30,7 +30,8 @@ import { default as ClipPath } from './components/svg/clipPath';
|
|
|
30
30
|
import { renderSquishBigBedData, renderDenseBigBedData } from './components/tracks/bigbed/helpers';
|
|
31
31
|
import { useBrowserStore, useTrackStore } from './store/BrowserContext';
|
|
32
32
|
export { Browser };
|
|
33
|
-
export type { BigBedConfig, SquishBigBedProps, DenseBigBedProps, Rect };
|
|
33
|
+
export type { BigBedConfig, BigBedFieldKind, BigBedParser, BigBedRow, BigBedSchema, InferBigBedRow, SquishBigBedProps, DenseBigBedProps, Rect, };
|
|
34
|
+
export { defineBigBedSchema };
|
|
34
35
|
export type { BulkBedConfig, BulkBedProps, BulkBedDataset, BulkBedRect };
|
|
35
36
|
export type { BigWigConfig, FullBigWigProps, DenseBigWigProps, ValuedPoint, BigWigData, BigZoomData };
|
|
36
37
|
export type { ImportanceConfig, ImportanceProps, ImportanceTrackData };
|
|
@@ -51,9 +52,8 @@ export type { Domain, Chromosome };
|
|
|
51
52
|
export { GQLWrapper };
|
|
52
53
|
export { Cytobands };
|
|
53
54
|
export { useCustomData };
|
|
54
|
-
export {
|
|
55
|
+
export { fetchBigBedUrl };
|
|
55
56
|
export type { FetcherContext, FetchFunction };
|
|
56
|
-
export type { BigBedParser };
|
|
57
57
|
export type { TrackDataState };
|
|
58
58
|
export { useXTransform };
|
|
59
59
|
export { useInteraction };
|
|
@@ -15,7 +15,7 @@ type WrapperDimensions = {
|
|
|
15
15
|
totalVerticalMargin: number;
|
|
16
16
|
wrapperHeight: number;
|
|
17
17
|
};
|
|
18
|
-
export type Track = BigWigConfig | BigBedConfig | BulkBedConfig | TranscriptConfig | MotifConfig | ImportanceConfig | LDTrackConfig | MethylCConfig | ManhattanTrackConfig | CustomTrackConfig;
|
|
18
|
+
export type Track = BigWigConfig | BigBedConfig<any> | BulkBedConfig | TranscriptConfig | MotifConfig | ImportanceConfig | LDTrackConfig | MethylCConfig | ManhattanTrackConfig | CustomTrackConfig;
|
|
19
19
|
export interface TrackStore {
|
|
20
20
|
tracks: Track[];
|
|
21
21
|
ids: string[];
|