/
RcsbFvDefaultConfigValues.ts
65 lines (62 loc) · 1.79 KB
/
RcsbFvDefaultConfigValues.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/**Default board configuration values definition*/
interface RcsbFvDefaultConfigValuesInterface {
readonly increasedView: number;
readonly trackColor: string;
readonly displayColor: string;
readonly trackHeight: number;
readonly trackAxisHeight: number;
readonly trackWidth: number;
readonly rowTitleWidth: number;
readonly displayDomain: [number,number];
readonly interpolationType: string;
readonly rowHideTransitionTimeout: number;
readonly titleAndTrackSpace: number;
readonly borderWidth: number;
readonly rowGlowWidth: number;
readonly rowGlowColor: string;
readonly borderColor: string;
readonly hideInnerBorder: boolean;
readonly hideRowGlow: boolean;
}
/**Default board configuration values*/
export const RcsbFvDefaultConfigValues: RcsbFvDefaultConfigValuesInterface = {
increasedView:1.5,
trackColor: "#FFFFFF",
displayColor: "#000000",
trackHeight: 20,
trackAxisHeight: 30,
trackWidth: 920,
rowTitleWidth: 160,
displayDomain: [0,1],
interpolationType: InterpolationTypes.STEP,
rowHideTransitionTimeout: 500,
titleAndTrackSpace: 2,
borderWidth: 1,
borderColor: "#CCC",
rowGlowWidth: 1,
hideInnerBorder: true,
hideRowGlow: false,
rowGlowColor: "rgba(255,204,204,0.75)"
};
/**Interpolation types for line and area displays*/
export const enum InterpolationTypes {
STEP = "step",
BASIS = "basis",
CARDINAL = "cardinal",
LINEAR = "linear"
}
/**Board track display types*/
export const enum RcsbFvDisplayTypes {
BLOCK = "block",
AXIS = "axis",
SEQUENCE = "sequence",
PIN = "pin",
LINE="line",
AREA="area",
BLOCK_AREA="block-area",
MULTI_AREA="multi-area",
VLINE="vline",
VARIANT="variant",
BOND="bond",
COMPOSITE="composite"
}