@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.
@@ -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,4 @@
1
+ import { default as React } from 'react';
2
+ import { CentromereProps } from './types';
3
+ declare const Centromere: React.FC<CentromereProps>;
4
+ export default Centromere;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { CytobandProps } from './types';
3
+ declare const Cytoband: React.FC<CytobandProps>;
4
+ export default Cytoband;
@@ -0,0 +1,5 @@
1
+ import { Domain } from '../../utils/types';
2
+ export default function Cytobands({ assembly, currentDomain, }: {
3
+ assembly: string;
4
+ currentDomain: Domain;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { CytobandHighlightProps } from './types';
3
+ declare const CytobandHighlight: React.FC<CytobandHighlightProps>;
4
+ export default CytobandHighlight;
@@ -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;