-
Notifications
You must be signed in to change notification settings - Fork 66
/
style.js
71 lines (60 loc) · 2.26 KB
/
style.js
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
66
67
68
69
70
71
/**
* Central collection of styling settings.
* Until we figure out a better story around canvas & CSS, they live here.
*
* @flow
*/
"use strict";
module.exports = {
// Colors for individual base pairs
BASE_COLORS: {
'A': '#188712',
'G': '#C45C16',
'C': '#0600F9',
'T': '#F70016',
'U': '#F70016',
'N': 'black'
},
// Styles for base pairs which are rendered as letters
LOOSE_TEXT_STYLE: `24px 'Helvetica Neue', Helvetica, Arial, sans-serif`,
TIGHT_TEXT_STYLE: `bold 12px 'Helvetica Neue', Helvetica, Arial, sans-serif`,
// Gene track
GENE_ARROW_SIZE: 4,
GENE_COLOR: 'blue', // color of the gene line, exons, text, etc.
GENE_COMPLEMENT_COLOR: 'white', // a color visible on top of GENE_COLOR
GENE_FONT: `'Helvetica Neue', Helvetica, Arial, sans-serif`,
GENE_FONT_SIZE: 16,
GENE_TEXT_PADDING: 5, // space between bottom of coding exon & top of gene name
// Pileup track
ALIGNMENT_COLOR: '#c8c8c8',
ALIGNMENT_MINUS_STRAND_COLOR: 'rgb(176, 176, 236)',
ALIGNMENT_PLUS_STRAND_COLOR: 'rgb(236, 176, 176)',
DELETE_COLOR: 'black',
INSERT_COLOR: 'rgb(97, 0, 216)',
READ_SPACING: 2, // vertical spacing between reads
READ_HEIGHT: 13, // Height of read
// Coverage track
COVERAGE_FONT_STYLE: `bold 9px 'Helvetica Neue', Helvetica, Arial, sans-serif`,
COVERAGE_FONT_COLOR: 'black',
COVERAGE_TICK_LENGTH: 5,
COVERAGE_TEXT_PADDING: 3, // space between axis ticks and text
COVERAGE_TEXT_Y_OFFSET: 3, // so that ticks and texts align better
COVERAGE_BIN_COLOR: '#a0a0a0',
COVERAGE_MIN_BAR_WIDTH_FOR_GAP: 8, // show a 1px gap between bars at this resolution
// Scale Track
SCALE_LINE_PADDING: 40, // space between mid point and left/right lines
SCALE_FONT_STYLE: `bold 12px 'Helvetica Neue', Helvetica, Arial, sans-serif`,
SCALE_TEXT_Y_OFFSET: 5, // so that lines and the text align better
SCALE_FONT_COLOR: 'black',
SCALE_ARROW_SIZE: 4,
// Location track
LOC_TEXT_PADDING: 5, // space between mid-point label and tick
LOC_TICK_LENGTH: 10,
LOC_TEXT_Y_OFFSET: 5, // so that the line and the text align better
LOC_FONT_STYLE: `13px 'Helvetica Neue', Helvetica, Arial, sans-serif`,
LOC_FONT_COLOR: 'black',
// Variant Track
VARIANT_STROKE: 'blue',
VARIANT_FILL: '#ddd',
VARIANT_HEIGHT: 14,
};