@weng-lab/genomebrowser 1.7.12 → 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 +3769 -3742
- 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/lib.d.ts
CHANGED
|
@@ -8,16 +8,26 @@ import { TranscriptConfig, SquishTranscriptProps, PackTranscriptProps, Transcrip
|
|
|
8
8
|
import { MethylCConfig, MethylCProps, MethylData } from './components/tracks/methylC/types';
|
|
9
9
|
import { LDTrackConfig, LDProps, SNP } from './components/tracks/ldtrack/types';
|
|
10
10
|
import { ManhattanTrackConfig, ManhattanPoint } from './components/tracks/manhattan/types';
|
|
11
|
+
import { CustomTrackConfig, CustomTrackProps } from './components/tracks/custom/types';
|
|
11
12
|
import { createBrowserStore, createBrowserStoreMemo, InitialBrowserState, BrowserStoreInstance } from './store/browserStore';
|
|
12
13
|
import { createTrackStore, createTrackStoreMemo, Track, TrackStoreInstance } from './store/trackStore';
|
|
13
|
-
import { createDataStore, createDataStoreMemo, DataStoreInstance } from './store/dataStore';
|
|
14
|
+
import { createDataStore, createDataStoreMemo, DataStoreInstance, TrackDataState } from './store/dataStore';
|
|
14
15
|
import { Highlight } from './components/highlight/types';
|
|
15
|
-
import { DisplayMode, TrackType } from './components/tracks/types';
|
|
16
|
+
import { DisplayMode, TrackType, Config, TrackDimensions, InteractionConfig, DisplayConfig } from './components/tracks/types';
|
|
16
17
|
import { Vibrant, Pastels } from './utils/color';
|
|
17
18
|
import { Domain, Chromosome } from './utils/types';
|
|
18
19
|
import { default as GQLWrapper } from './components/browser/GQLWrapper';
|
|
19
20
|
import { default as Cytobands } from './components/cytoband/cytobands';
|
|
20
21
|
import { default as useCustomData } from './hooks/useCustomData';
|
|
22
|
+
import { getBigDataRace, fetchBigBedUrl, FetcherContext, FetchFunction } from './api/fetchers';
|
|
23
|
+
import { useXTransform } from './hooks/useXTransform';
|
|
24
|
+
import { default as useInteraction } from './hooks/useInteraction';
|
|
25
|
+
import { useMouseToIndex } from './hooks/useMousePosition';
|
|
26
|
+
import { default as useBrowserScale } from './hooks/useBrowserScale';
|
|
27
|
+
import { useRowHeight } from './hooks/useRowHeight';
|
|
28
|
+
import { default as ClipPath } from './components/svg/clipPath';
|
|
29
|
+
import { renderSquishBigBedData, renderDenseBigBedData } from './components/tracks/bigbed/helpers';
|
|
30
|
+
import { useBrowserStore } from './store/BrowserContext';
|
|
21
31
|
export { Browser };
|
|
22
32
|
export type { BigBedConfig, SquishBigBedProps, DenseBigBedProps, Rect };
|
|
23
33
|
export type { BulkBedConfig, BulkBedProps, BulkBedDataset, BulkBedRect };
|
|
@@ -28,13 +38,26 @@ export type { TranscriptConfig, SquishTranscriptProps, PackTranscriptProps, Tran
|
|
|
28
38
|
export type { MethylCConfig, MethylCProps, MethylData };
|
|
29
39
|
export type { LDTrackConfig, LDProps, SNP };
|
|
30
40
|
export type { ManhattanTrackConfig, ManhattanPoint };
|
|
41
|
+
export type { CustomTrackConfig, CustomTrackProps };
|
|
31
42
|
export { createBrowserStore, createBrowserStoreMemo, type InitialBrowserState, type BrowserStoreInstance };
|
|
32
43
|
export { createTrackStore, createTrackStoreMemo, type Track, type TrackStoreInstance };
|
|
33
44
|
export { createDataStore, createDataStoreMemo, type DataStoreInstance };
|
|
34
45
|
export type { Highlight };
|
|
35
46
|
export { DisplayMode, TrackType };
|
|
47
|
+
export type { Config, TrackDimensions, InteractionConfig, DisplayConfig };
|
|
36
48
|
export { Vibrant, Pastels };
|
|
37
49
|
export type { Domain, Chromosome };
|
|
38
50
|
export { GQLWrapper };
|
|
39
51
|
export { Cytobands };
|
|
40
52
|
export { useCustomData };
|
|
53
|
+
export { getBigDataRace, fetchBigBedUrl };
|
|
54
|
+
export type { FetcherContext, FetchFunction };
|
|
55
|
+
export type { TrackDataState };
|
|
56
|
+
export { useXTransform };
|
|
57
|
+
export { useInteraction };
|
|
58
|
+
export { useMouseToIndex };
|
|
59
|
+
export { useBrowserScale };
|
|
60
|
+
export { useRowHeight };
|
|
61
|
+
export { ClipPath };
|
|
62
|
+
export { renderSquishBigBedData, renderDenseBigBedData };
|
|
63
|
+
export { useBrowserStore };
|
|
@@ -8,13 +8,14 @@ import { LDTrackConfig } from '../components/tracks/ldtrack/types';
|
|
|
8
8
|
import { MethylCConfig } from '../components/tracks/methylC/types';
|
|
9
9
|
import { TrackType } from '../components/tracks/types';
|
|
10
10
|
import { ManhattanTrackConfig } from '../components/tracks/manhattan/types';
|
|
11
|
+
import { CustomTrackConfig } from '../components/tracks/custom/types';
|
|
11
12
|
type WrapperDimensions = {
|
|
12
13
|
trackMargin: number;
|
|
13
14
|
titleSize: number;
|
|
14
15
|
totalVerticalMargin: number;
|
|
15
16
|
wrapperHeight: number;
|
|
16
17
|
};
|
|
17
|
-
export type Track = BigWigConfig | BigBedConfig | BulkBedConfig | TranscriptConfig | MotifConfig | ImportanceConfig | LDTrackConfig | MethylCConfig | ManhattanTrackConfig;
|
|
18
|
+
export type Track = BigWigConfig | BigBedConfig | BulkBedConfig | TranscriptConfig | MotifConfig | ImportanceConfig | LDTrackConfig | MethylCConfig | ManhattanTrackConfig | CustomTrackConfig;
|
|
18
19
|
export interface TrackStore {
|
|
19
20
|
tracks: Track[];
|
|
20
21
|
ids: string[];
|