@weng-lab/genomebrowser 1.1.0 → 1.1.1
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/requestBuilder.d.ts +2 -2
- package/dist/components/cytoband/centromere.d.ts +4 -0
- package/dist/components/cytoband/cytoband.d.ts +4 -0
- package/dist/components/cytoband/cytobands.d.ts +5 -0
- package/dist/components/cytoband/highlight.d.ts +4 -0
- package/dist/components/cytoband/types.d.ts +61 -0
- package/dist/components/modal/helpers.d.ts +7 -0
- package/dist/components/modal/modal.d.ts +0 -3
- package/dist/genomebrowser.es.js +3290 -3148
- package/dist/genomebrowser.es.js.map +1 -1
- package/dist/lib.d.ts +2 -0
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ export interface AllRequests {
|
|
|
12
12
|
/**
|
|
13
13
|
* Build BigWig/BigBed requests for given tracks
|
|
14
14
|
*/
|
|
15
|
-
export declare function buildBigRequests(tracks: Track[], domain: Domain): BigRequest[];
|
|
15
|
+
export declare function buildBigRequests(tracks: Track[], domain: Domain, preRenderedWidth: number): BigRequest[];
|
|
16
16
|
/**
|
|
17
17
|
* Build BulkBed requests for given tracks
|
|
18
18
|
*/
|
|
@@ -37,4 +37,4 @@ export declare function buildLDRequest(tracks: Track[], domain: Domain): LDReque
|
|
|
37
37
|
/**
|
|
38
38
|
* Build all requests for all track types in one coordinated call
|
|
39
39
|
*/
|
|
40
|
-
export declare function buildAllRequests(tracks: Track[], expandedDomain: Domain, currentDomain: Domain): AllRequests;
|
|
40
|
+
export declare function buildAllRequests(tracks: Track[], expandedDomain: Domain, currentDomain: Domain, preRenderedWidth: number): AllRequests;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Domain } from '../../utils/types';
|
|
3
|
+
export type Highlight = {
|
|
4
|
+
color: string;
|
|
5
|
+
start: number;
|
|
6
|
+
end: number;
|
|
7
|
+
};
|
|
8
|
+
export type ShortHighlightProps = {
|
|
9
|
+
highlight: Highlight;
|
|
10
|
+
x: (value: number) => number;
|
|
11
|
+
height: number;
|
|
12
|
+
};
|
|
13
|
+
export type Cytoband = {
|
|
14
|
+
stain: string;
|
|
15
|
+
coordinates: Domain;
|
|
16
|
+
};
|
|
17
|
+
export type CytobandColors = {
|
|
18
|
+
default: string;
|
|
19
|
+
centromere: string;
|
|
20
|
+
stalk: string;
|
|
21
|
+
};
|
|
22
|
+
export type CytobandsProps = {
|
|
23
|
+
data: Cytoband[];
|
|
24
|
+
width: number;
|
|
25
|
+
height: number;
|
|
26
|
+
id: string;
|
|
27
|
+
colors?: CytobandColors;
|
|
28
|
+
transform?: string;
|
|
29
|
+
highlight?: Highlight;
|
|
30
|
+
highlights?: Highlight[];
|
|
31
|
+
onHighlightMouseOver?: (highlight: Highlight, x: number, i: number) => void;
|
|
32
|
+
onHighlightMouseOut?: () => void;
|
|
33
|
+
onHighlightClick?: (highlight: Highlight, x: number, i: number) => void;
|
|
34
|
+
domain?: Domain;
|
|
35
|
+
children?: React.ReactNode;
|
|
36
|
+
opacity?: number;
|
|
37
|
+
};
|
|
38
|
+
export type CytobandProps = {
|
|
39
|
+
colors: CytobandColors;
|
|
40
|
+
width: number;
|
|
41
|
+
height: number;
|
|
42
|
+
type: string;
|
|
43
|
+
x: number;
|
|
44
|
+
opacity?: number;
|
|
45
|
+
};
|
|
46
|
+
export type CentromereProps = {
|
|
47
|
+
color: string;
|
|
48
|
+
width: number;
|
|
49
|
+
height: number;
|
|
50
|
+
x: number;
|
|
51
|
+
opening: boolean;
|
|
52
|
+
};
|
|
53
|
+
export type CytobandHighlightProps = {
|
|
54
|
+
x: (value: number) => number;
|
|
55
|
+
height: number;
|
|
56
|
+
width: number;
|
|
57
|
+
highlight: Highlight;
|
|
58
|
+
onMouseOver?: () => void;
|
|
59
|
+
onMouseOut?: () => void;
|
|
60
|
+
onClick?: () => void;
|
|
61
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function getTextColor(backgroundColor: string): string;
|
|
2
|
+
export declare function shadeColor(color: string, percent: number): string;
|
|
3
|
+
export declare const isDark: (color: string) => boolean;
|
|
4
|
+
export declare function getButtonColors(trackColor: string, selected: boolean): {
|
|
5
|
+
backgroundColor: string;
|
|
6
|
+
color: string;
|
|
7
|
+
};
|
|
@@ -1,4 +1 @@
|
|
|
1
1
|
export default function Modal(): import("react/jsx-runtime").JSX.Element | null;
|
|
2
|
-
export declare function getTextColor(backgroundColor: string): string;
|
|
3
|
-
export declare function shadeColor(color: string, percent: number): string;
|
|
4
|
-
export declare const isDark: (color: string) => boolean;
|