@populationgenomics/gene-glyph 0.0.0-stage → 1.1.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/LICENSE +21 -0
- package/README.md +58 -2
- package/dist/adapters/clinvar.d.ts +34 -0
- package/dist/adapters/clinvar.d.ts.map +1 -0
- package/dist/adapters/clinvar.test.d.ts +2 -0
- package/dist/adapters/clinvar.test.d.ts.map +1 -0
- package/dist/adapters/rmc.d.ts +31 -0
- package/dist/adapters/rmc.d.ts.map +1 -0
- package/dist/adapters/rmc.test.d.ts +2 -0
- package/dist/adapters/rmc.test.d.ts.map +1 -0
- package/dist/chrome/default-minimap.d.ts +26 -0
- package/dist/chrome/default-minimap.d.ts.map +1 -0
- package/dist/chrome/default-minimap.test.d.ts +2 -0
- package/dist/chrome/default-minimap.test.d.ts.map +1 -0
- package/dist/chrome/default-track-chevron.d.ts +37 -0
- package/dist/chrome/default-track-chevron.d.ts.map +1 -0
- package/dist/chrome/default-track-chevron.test.d.ts +2 -0
- package/dist/chrome/default-track-chevron.test.d.ts.map +1 -0
- package/dist/coordinate-mapper.d.ts +13 -0
- package/dist/coordinate-mapper.d.ts.map +1 -0
- package/dist/coordinate-mapper.test.d.ts +2 -0
- package/dist/coordinate-mapper.test.d.ts.map +1 -0
- package/dist/data-source.d.ts +24 -0
- package/dist/data-source.d.ts.map +1 -0
- package/dist/data-source.test.d.ts +2 -0
- package/dist/data-source.test.d.ts.map +1 -0
- package/dist/debug-leash.d.ts +73 -0
- package/dist/debug-leash.d.ts.map +1 -0
- package/dist/export.d.ts +69 -0
- package/dist/export.d.ts.map +1 -0
- package/dist/export.test.d.ts +2 -0
- package/dist/export.test.d.ts.map +1 -0
- package/dist/feature-id-hash.d.ts +26 -0
- package/dist/feature-id-hash.d.ts.map +1 -0
- package/dist/feature-id-hash.test.d.ts +2 -0
- package/dist/feature-id-hash.test.d.ts.map +1 -0
- package/dist/figure-scale.d.ts +145 -0
- package/dist/figure-scale.d.ts.map +1 -0
- package/dist/figure-scale.test.d.ts +2 -0
- package/dist/figure-scale.test.d.ts.map +1 -0
- package/dist/gutter.test.d.ts +2 -0
- package/dist/gutter.test.d.ts.map +1 -0
- package/dist/index.d.ts +62 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7910 -0
- package/dist/index.js.map +1 -0
- package/dist/layout-engine.d.ts +52 -0
- package/dist/layout-engine.d.ts.map +1 -0
- package/dist/layout-engine.test.d.ts +2 -0
- package/dist/layout-engine.test.d.ts.map +1 -0
- package/dist/pack-lanes.d.ts +27 -0
- package/dist/pack-lanes.d.ts.map +1 -0
- package/dist/pack-lanes.test.d.ts +2 -0
- package/dist/pack-lanes.test.d.ts.map +1 -0
- package/dist/painter/index.d.ts +4 -0
- package/dist/painter/index.d.ts.map +1 -0
- package/dist/painter/svg-painter.d.ts +6 -0
- package/dist/painter/svg-painter.d.ts.map +1 -0
- package/dist/painter/svg-painter.test.d.ts +2 -0
- package/dist/painter/svg-painter.test.d.ts.map +1 -0
- package/dist/projection-frame.d.ts +92 -0
- package/dist/projection-frame.d.ts.map +1 -0
- package/dist/projection-frame.test.d.ts +2 -0
- package/dist/projection-frame.test.d.ts.map +1 -0
- package/dist/segments.d.ts +86 -0
- package/dist/segments.d.ts.map +1 -0
- package/dist/slots.test.d.ts +2 -0
- package/dist/slots.test.d.ts.map +1 -0
- package/dist/styles.css +1127 -0
- package/dist/symbol-encoding.d.ts +103 -0
- package/dist/symbol-encoding.d.ts.map +1 -0
- package/dist/symbol-encoding.test.d.ts +2 -0
- package/dist/symbol-encoding.test.d.ts.map +1 -0
- package/dist/test-setup.d.ts +2 -0
- package/dist/test-setup.d.ts.map +1 -0
- package/dist/tracks/aa-track.d.ts +67 -0
- package/dist/tracks/aa-track.d.ts.map +1 -0
- package/dist/tracks/aa-track.test.d.ts +2 -0
- package/dist/tracks/aa-track.test.d.ts.map +1 -0
- package/dist/tracks/clinvar-summary-track.d.ts +29 -0
- package/dist/tracks/clinvar-summary-track.d.ts.map +1 -0
- package/dist/tracks/clinvar-summary-track.test.d.ts +2 -0
- package/dist/tracks/clinvar-summary-track.test.d.ts.map +1 -0
- package/dist/tracks/clinvar-track.d.ts +161 -0
- package/dist/tracks/clinvar-track.d.ts.map +1 -0
- package/dist/tracks/clinvar-track.test.d.ts +2 -0
- package/dist/tracks/clinvar-track.test.d.ts.map +1 -0
- package/dist/tracks/exon-track.d.ts +25 -0
- package/dist/tracks/exon-track.d.ts.map +1 -0
- package/dist/tracks/exon-track.test.d.ts +2 -0
- package/dist/tracks/exon-track.test.d.ts.map +1 -0
- package/dist/tracks/interpro-track.d.ts +69 -0
- package/dist/tracks/interpro-track.d.ts.map +1 -0
- package/dist/tracks/interpro-track.test.d.ts +2 -0
- package/dist/tracks/interpro-track.test.d.ts.map +1 -0
- package/dist/tracks/nucleotide-track.d.ts +84 -0
- package/dist/tracks/nucleotide-track.d.ts.map +1 -0
- package/dist/tracks/nucleotide-track.test.d.ts +2 -0
- package/dist/tracks/nucleotide-track.test.d.ts.map +1 -0
- package/dist/tracks/overview-track.d.ts +50 -0
- package/dist/tracks/overview-track.d.ts.map +1 -0
- package/dist/tracks/overview-track.test.d.ts +2 -0
- package/dist/tracks/overview-track.test.d.ts.map +1 -0
- package/dist/tracks/parse-user-variants.d.ts +55 -0
- package/dist/tracks/parse-user-variants.d.ts.map +1 -0
- package/dist/tracks/parse-user-variants.test.d.ts +2 -0
- package/dist/tracks/parse-user-variants.test.d.ts.map +1 -0
- package/dist/tracks/pfam-track.d.ts +33 -0
- package/dist/tracks/pfam-track.d.ts.map +1 -0
- package/dist/tracks/pfam-track.test.d.ts +2 -0
- package/dist/tracks/pfam-track.test.d.ts.map +1 -0
- package/dist/tracks/profile-track.d.ts +133 -0
- package/dist/tracks/profile-track.d.ts.map +1 -0
- package/dist/tracks/profile-track.test.d.ts +2 -0
- package/dist/tracks/profile-track.test.d.ts.map +1 -0
- package/dist/tracks/scale-track.d.ts +70 -0
- package/dist/tracks/scale-track.d.ts.map +1 -0
- package/dist/tracks/scale-track.test.d.ts +2 -0
- package/dist/tracks/scale-track.test.d.ts.map +1 -0
- package/dist/tracks/segment-band-track.d.ts +86 -0
- package/dist/tracks/segment-band-track.d.ts.map +1 -0
- package/dist/tracks/segment-band-track.test.d.ts +2 -0
- package/dist/tracks/segment-band-track.test.d.ts.map +1 -0
- package/dist/tracks/user-variant-track.d.ts +50 -0
- package/dist/tracks/user-variant-track.d.ts.map +1 -0
- package/dist/tracks/user-variant-track.test.d.ts +2 -0
- package/dist/tracks/user-variant-track.test.d.ts.map +1 -0
- package/dist/tracks/variant-summary-track.d.ts +24 -0
- package/dist/tracks/variant-summary-track.d.ts.map +1 -0
- package/dist/tracks/variant-summary-track.test.d.ts +2 -0
- package/dist/tracks/variant-summary-track.test.d.ts.map +1 -0
- package/dist/tracks/variant-track.d.ts +89 -0
- package/dist/tracks/variant-track.d.ts.map +1 -0
- package/dist/tracks/variant-track.test.d.ts +2 -0
- package/dist/tracks/variant-track.test.d.ts.map +1 -0
- package/dist/types.d.ts +671 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/use-viewport-interactions.d.ts +49 -0
- package/dist/use-viewport-interactions.d.ts.map +1 -0
- package/dist/viewer-interactions.test.d.ts +2 -0
- package/dist/viewer-interactions.test.d.ts.map +1 -0
- package/dist/viewer-overlay.test.d.ts +2 -0
- package/dist/viewer-overlay.test.d.ts.map +1 -0
- package/dist/viewer-selection-range.test.d.ts +2 -0
- package/dist/viewer-selection-range.test.d.ts.map +1 -0
- package/dist/viewer.d.ts +319 -0
- package/dist/viewer.d.ts.map +1 -0
- package/dist/viewer.test.d.ts +2 -0
- package/dist/viewer.test.d.ts.map +1 -0
- package/dist/viewport.d.ts +352 -0
- package/dist/viewport.d.ts.map +1 -0
- package/dist/viewport.test.d.ts +2 -0
- package/dist/viewport.test.d.ts.map +1 -0
- package/package.json +65 -4
package/dist/styles.css
ADDED
|
@@ -0,0 +1,1127 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* gene-glyph default stylesheet.
|
|
3
|
+
*
|
|
4
|
+
* Defines CSS custom properties that the viewer reads as viewport state,
|
|
5
|
+
* the print-theme overrides under [data-vv-print], and the
|
|
6
|
+
* prefers-reduced-motion rule.
|
|
7
|
+
*
|
|
8
|
+
* Slice 3 lights up the variables consumed by the first real render path:
|
|
9
|
+
* --vv-intron-scale (intron-decoration opacity) and the per-exon-x / per-
|
|
10
|
+
* exon-w published by ViewportController. Track-specific colour vars take
|
|
11
|
+
* sensible defaults; consumers override at any cascade level. Slice 33
|
|
12
|
+
* retired the per-exon CSS transitions — the figure jumps to each
|
|
13
|
+
* committed range instead of easing.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
.gene-glyph {
|
|
17
|
+
/* Layout shell — host pages can override fonts via cascade. */
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
font-family:
|
|
21
|
+
'Inter',
|
|
22
|
+
system-ui,
|
|
23
|
+
-apple-system,
|
|
24
|
+
BlinkMacSystemFont,
|
|
25
|
+
sans-serif;
|
|
26
|
+
color: var(--vv-color-text-primary, #0f172a);
|
|
27
|
+
|
|
28
|
+
/* Viewport state — overridden inline on the figure SVG by the controller. */
|
|
29
|
+
--vv-zoom: 1;
|
|
30
|
+
--vv-pan-x: 0px;
|
|
31
|
+
--vv-intron-scale: 1;
|
|
32
|
+
|
|
33
|
+
/* Track palette defaults. */
|
|
34
|
+
--vv-color-text-primary: #0f172a;
|
|
35
|
+
--vv-color-text-secondary: #475569;
|
|
36
|
+
--vv-color-text-tertiary: #94a3b8;
|
|
37
|
+
--vv-color-exon-fill: #cbd5e1;
|
|
38
|
+
--vv-color-exon-stroke: #475569;
|
|
39
|
+
--vv-color-intron-line: #64748b;
|
|
40
|
+
--vv-color-bg-surface: transparent;
|
|
41
|
+
|
|
42
|
+
/* Variant category palette. Per-category vars let host pages restyle
|
|
43
|
+
* without recompiling the package. */
|
|
44
|
+
--vv-variant-color-missense: #f59e0b;
|
|
45
|
+
--vv-variant-color-nonsense: #dc2626;
|
|
46
|
+
--vv-variant-color-synonymous: #94a3b8;
|
|
47
|
+
--vv-variant-color-frameshift: #b91c1c;
|
|
48
|
+
--vv-variant-color-inframe-indel: #f97316;
|
|
49
|
+
--vv-variant-color-splice: #8b5cf6;
|
|
50
|
+
--vv-variant-color-start-lost: #dc2626;
|
|
51
|
+
--vv-variant-color-stop-lost: #dc2626;
|
|
52
|
+
--vv-variant-color-regulatory: #0ea5e9;
|
|
53
|
+
--vv-variant-color-utr: #64748b;
|
|
54
|
+
--vv-variant-color-intronic: #94a3b8;
|
|
55
|
+
--vv-variant-color-structural: #ec4899;
|
|
56
|
+
--vv-variant-color-other: #94a3b8;
|
|
57
|
+
--vv-variant-color-unknown: #cbd5e1;
|
|
58
|
+
--vv-variant-dot-stroke: #ffffff;
|
|
59
|
+
|
|
60
|
+
--vv-variant-hover-lift-px: 4px;
|
|
61
|
+
|
|
62
|
+
/* ClinVar clinical-significance palette. Hosts can override on either the
|
|
63
|
+
* gene-glyph root or a parent surface to retheme without recompiling. */
|
|
64
|
+
/* Pathogenic and benign sit a step darker than their "likely-*" partners
|
|
65
|
+
* so lightness contrast separates the definitive from the tentative call.
|
|
66
|
+
* Conflicting is neutral grey — "no clear direction" rather than a
|
|
67
|
+
* competing hue. */
|
|
68
|
+
--vv-clinvar-color-pathogenic: hsl(343, 85%, 42%);
|
|
69
|
+
--vv-clinvar-color-likely-pathogenic: hsl(24, 95%, 62%);
|
|
70
|
+
--vv-clinvar-color-uncertain: hsl(38, 92%, 50%);
|
|
71
|
+
--vv-clinvar-color-likely-benign: hsl(150, 60%, 55%);
|
|
72
|
+
--vv-clinvar-color-benign: hsl(162, 75%, 28%);
|
|
73
|
+
--vv-clinvar-color-conflicting: #94a3b8;
|
|
74
|
+
--vv-clinvar-color-other: #64748b;
|
|
75
|
+
--vv-clinvar-dot-stroke: #ffffff;
|
|
76
|
+
--vv-clinvar-count-fill: #ffffff;
|
|
77
|
+
--vv-clinvar-popover-bg: #ffffff;
|
|
78
|
+
--vv-clinvar-popover-stroke: #cbd5e1;
|
|
79
|
+
/* DECIPHER-aligned ClinVar encoding (Slice 39). Glyph fill keys on
|
|
80
|
+
* consequence class rather than significance — significance is
|
|
81
|
+
* encoded by sub-track placement. Four consequence buckets plus a
|
|
82
|
+
* grey fallback for non-coding / UTR / regulatory variants. */
|
|
83
|
+
--vv-decipher-color-lof: #dc2626;
|
|
84
|
+
--vv-decipher-color-protein-changing: #a16207;
|
|
85
|
+
--vv-decipher-color-splice-region: #c026d3;
|
|
86
|
+
--vv-decipher-color-synonymous: #166534;
|
|
87
|
+
--vv-decipher-color-other: #94a3b8;
|
|
88
|
+
/* Section dividers inside a stacked ClinVar track — one hairline per
|
|
89
|
+
* consequence bucket, with the bucket label right-inset on the line.
|
|
90
|
+
* Faint by default so they read as visual structure rather than
|
|
91
|
+
* additional data. */
|
|
92
|
+
--vv-clinvar-lane-divider: #cbd5e1;
|
|
93
|
+
--vv-clinvar-lane-label: #64748b;
|
|
94
|
+
|
|
95
|
+
/* User-supplied variants (Slice 34). Single deep-purple palette: a
|
|
96
|
+
* cross glyph + matching stroke / span / chevron. Hosts override on
|
|
97
|
+
* the gene-glyph root if the default clashes with a study brand. */
|
|
98
|
+
--vv-user-variant-color: #7c3aed;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.gene-glyph .vv-header {
|
|
102
|
+
display: flex;
|
|
103
|
+
justify-content: space-between;
|
|
104
|
+
align-items: baseline;
|
|
105
|
+
gap: 0.5rem;
|
|
106
|
+
font-size: 0.8rem;
|
|
107
|
+
color: var(--vv-color-text-secondary);
|
|
108
|
+
margin-bottom: 4px;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.gene-glyph .vv-gene-symbol {
|
|
112
|
+
font-weight: 600;
|
|
113
|
+
color: var(--vv-color-text-primary);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.gene-glyph .vv-transcript-id {
|
|
117
|
+
font-variant-numeric: tabular-nums;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.gene-glyph .vv-mane-badge {
|
|
121
|
+
display: inline-block;
|
|
122
|
+
padding: 0 0.4em;
|
|
123
|
+
border-radius: 999px;
|
|
124
|
+
background: var(--vv-color-mane-bg, #dbeafe);
|
|
125
|
+
color: var(--vv-color-mane-text, #1d4ed8);
|
|
126
|
+
font-size: 0.72rem;
|
|
127
|
+
font-weight: 600;
|
|
128
|
+
letter-spacing: 0.02em;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.gene-glyph .vv-alphafold-link {
|
|
132
|
+
color: inherit;
|
|
133
|
+
text-decoration: underline;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.gene-glyph .vv-sep {
|
|
137
|
+
color: var(--vv-color-text-tertiary);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.gene-glyph .vv-figure-row {
|
|
141
|
+
display: flex;
|
|
142
|
+
align-items: stretch;
|
|
143
|
+
width: 100%;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.gene-glyph .vv-left-gutter,
|
|
147
|
+
.gene-glyph .vv-right-gutter {
|
|
148
|
+
position: relative;
|
|
149
|
+
flex: 0 0 auto;
|
|
150
|
+
font-size: 0.78rem;
|
|
151
|
+
color: var(--vv-color-text-secondary);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.gene-glyph .vv-right-gutter {
|
|
155
|
+
text-align: right;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.gene-glyph .vv-header-slot {
|
|
159
|
+
display: flex;
|
|
160
|
+
align-items: center;
|
|
161
|
+
gap: 8px;
|
|
162
|
+
margin-bottom: 4px;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.gene-glyph .vv-footer-slot {
|
|
166
|
+
display: flex;
|
|
167
|
+
align-items: center;
|
|
168
|
+
gap: 8px;
|
|
169
|
+
margin-top: 4px;
|
|
170
|
+
font-size: 0.78rem;
|
|
171
|
+
color: var(--vv-color-text-secondary);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.gene-glyph .vv-gutter-item {
|
|
175
|
+
position: absolute;
|
|
176
|
+
left: 0;
|
|
177
|
+
right: 0;
|
|
178
|
+
display: flex;
|
|
179
|
+
align-items: center;
|
|
180
|
+
box-sizing: border-box;
|
|
181
|
+
/* Group rows and sub-track rows overlap vertically — the group's rect
|
|
182
|
+
* extends across all its children, and children render later in DOM so
|
|
183
|
+
* they sit on top in z-order. If sub-track rows captured pointer events
|
|
184
|
+
* across their full box, the group's chevron underneath would be
|
|
185
|
+
* unclickable. Make the row container transparent and let host content
|
|
186
|
+
* opt back in via the direct-child rule below. */
|
|
187
|
+
pointer-events: none;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.gene-glyph .vv-gutter-item > * {
|
|
191
|
+
pointer-events: auto;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.gene-glyph .vv-left-gutter .vv-gutter-item {
|
|
195
|
+
padding-right: 8px;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.gene-glyph .vv-right-gutter .vv-gutter-item {
|
|
199
|
+
padding-left: 8px;
|
|
200
|
+
justify-content: flex-end;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.gene-glyph .vv-gutter-group {
|
|
204
|
+
font-style: italic;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/* Slice 20: default-chrome convenience components. The chevron renders
|
|
208
|
+
* inside the LeftGutter and rotates 90° when the host marks the item as
|
|
209
|
+
* expanded; transitions are zeroed under prefers-reduced-motion via the
|
|
210
|
+
* sweeping rule lower down. The minimap renders inside the Footer slot
|
|
211
|
+
* and exposes a draggable window rect + edge handles. */
|
|
212
|
+
.gene-glyph .vv-default-chevron {
|
|
213
|
+
display: inline-flex;
|
|
214
|
+
align-items: center;
|
|
215
|
+
gap: 6px;
|
|
216
|
+
padding: 2px 6px 2px 4px;
|
|
217
|
+
border: none;
|
|
218
|
+
background: transparent;
|
|
219
|
+
color: inherit;
|
|
220
|
+
font: inherit;
|
|
221
|
+
cursor: pointer;
|
|
222
|
+
border-radius: 4px;
|
|
223
|
+
text-align: left;
|
|
224
|
+
}
|
|
225
|
+
.gene-glyph .vv-default-chevron:hover {
|
|
226
|
+
background: var(--vv-color-chevron-hover, rgba(15, 23, 42, 0.06));
|
|
227
|
+
}
|
|
228
|
+
.gene-glyph .vv-default-chevron:focus-visible {
|
|
229
|
+
outline: 2px solid var(--vv-color-focus, #2563eb);
|
|
230
|
+
outline-offset: 2px;
|
|
231
|
+
}
|
|
232
|
+
.gene-glyph .vv-default-chevron-icon {
|
|
233
|
+
display: inline-flex;
|
|
234
|
+
align-items: center;
|
|
235
|
+
justify-content: center;
|
|
236
|
+
width: 12px;
|
|
237
|
+
height: 12px;
|
|
238
|
+
transition: transform 160ms ease-out;
|
|
239
|
+
color: var(--vv-color-text-secondary, #475569);
|
|
240
|
+
}
|
|
241
|
+
.gene-glyph .vv-default-chevron[aria-expanded='true'] .vv-default-chevron-icon {
|
|
242
|
+
transform: rotate(90deg);
|
|
243
|
+
}
|
|
244
|
+
.gene-glyph .vv-default-chevron-icon svg {
|
|
245
|
+
fill: none;
|
|
246
|
+
stroke: currentColor;
|
|
247
|
+
stroke-width: 1.5;
|
|
248
|
+
stroke-linecap: round;
|
|
249
|
+
stroke-linejoin: round;
|
|
250
|
+
}
|
|
251
|
+
.gene-glyph .vv-default-chevron-label {
|
|
252
|
+
font-weight: 600;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.gene-glyph .vv-default-minimap {
|
|
256
|
+
position: relative;
|
|
257
|
+
display: inline-block;
|
|
258
|
+
user-select: none;
|
|
259
|
+
touch-action: none;
|
|
260
|
+
}
|
|
261
|
+
.gene-glyph .vv-default-minimap-svg {
|
|
262
|
+
display: block;
|
|
263
|
+
overflow: visible;
|
|
264
|
+
}
|
|
265
|
+
.gene-glyph .vv-default-minimap-bg {
|
|
266
|
+
fill: var(--vv-color-minimap-bg, #f8fafc);
|
|
267
|
+
stroke: var(--vv-color-minimap-border, #cbd5e1);
|
|
268
|
+
stroke-width: 1;
|
|
269
|
+
cursor: pointer;
|
|
270
|
+
}
|
|
271
|
+
.gene-glyph .vv-default-minimap-intron {
|
|
272
|
+
stroke: var(--vv-color-intron-line, #64748b);
|
|
273
|
+
stroke-width: 1;
|
|
274
|
+
pointer-events: none;
|
|
275
|
+
}
|
|
276
|
+
.gene-glyph .vv-default-minimap-exon {
|
|
277
|
+
fill: var(--vv-color-exon-fill, #cbd5e1);
|
|
278
|
+
stroke: var(--vv-color-exon-stroke, #475569);
|
|
279
|
+
stroke-width: 0.75;
|
|
280
|
+
rx: 1.5;
|
|
281
|
+
ry: 1.5;
|
|
282
|
+
pointer-events: none;
|
|
283
|
+
}
|
|
284
|
+
.gene-glyph .vv-default-minimap-window {
|
|
285
|
+
fill: var(--vv-color-minimap-window-fill, rgba(37, 99, 235, 0.18));
|
|
286
|
+
stroke: var(--vv-color-minimap-window-stroke, #2563eb);
|
|
287
|
+
stroke-width: 1;
|
|
288
|
+
cursor: grab;
|
|
289
|
+
}
|
|
290
|
+
.gene-glyph.vv-dragging .vv-default-minimap-window,
|
|
291
|
+
.gene-glyph .vv-default-minimap-window:active {
|
|
292
|
+
cursor: grabbing;
|
|
293
|
+
}
|
|
294
|
+
.gene-glyph .vv-default-minimap-handle {
|
|
295
|
+
fill: var(--vv-color-minimap-handle, #2563eb);
|
|
296
|
+
opacity: 0.5;
|
|
297
|
+
cursor: ew-resize;
|
|
298
|
+
}
|
|
299
|
+
.gene-glyph .vv-default-minimap-handle:hover {
|
|
300
|
+
opacity: 0.85;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/* Slice 26: overview track. Lives inside the figure SVG (so exportSVG /
|
|
304
|
+
* exportPNG include it) and mirrors the minimap's direct-manipulation
|
|
305
|
+
* contract. The window rectangle reads from a CSS variable cascade keyed
|
|
306
|
+
* on `--vv-color-overview-*`; hosts can override either set independently
|
|
307
|
+
* of the minimap so a figure carrying both still reads as one chrome. */
|
|
308
|
+
.gene-glyph .vv-overview-track {
|
|
309
|
+
user-select: none;
|
|
310
|
+
touch-action: none;
|
|
311
|
+
}
|
|
312
|
+
.gene-glyph .vv-overview-window {
|
|
313
|
+
cursor: grab;
|
|
314
|
+
}
|
|
315
|
+
.gene-glyph .vv-overview-handle {
|
|
316
|
+
cursor: ew-resize;
|
|
317
|
+
}
|
|
318
|
+
.gene-glyph .vv-overview-handle:hover {
|
|
319
|
+
opacity: 0.85;
|
|
320
|
+
}
|
|
321
|
+
.gene-glyph.vv-dragging .vv-overview-window {
|
|
322
|
+
cursor: grabbing;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/* Slice 28: coordinate ruler track. The ticks sit in per-exon `<g>`
|
|
326
|
+
* groups so they ride the live exon transforms; labels counter-scale
|
|
327
|
+
* to stay legible. Colour comes from the standard text palette
|
|
328
|
+
* variables so it inherits any host theme override. */
|
|
329
|
+
.gene-glyph .vv-scale-tick {
|
|
330
|
+
pointer-events: none;
|
|
331
|
+
}
|
|
332
|
+
.gene-glyph .vv-scale-label {
|
|
333
|
+
pointer-events: none;
|
|
334
|
+
user-select: none;
|
|
335
|
+
font-variant-numeric: tabular-nums;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/* Slice 17: figure wrap. Sits as a flex item inside .vv-figure-row and is the
|
|
339
|
+
* positioning context for absolutely-placed overlays (tooltips, "you are
|
|
340
|
+
* here" markers). The figure SVG and the overlay layer are DOM siblings
|
|
341
|
+
* inside this wrap so exportSVG() can serialise the figure SVG cleanly. */
|
|
342
|
+
.gene-glyph .vv-figure-wrap {
|
|
343
|
+
position: relative;
|
|
344
|
+
flex: 1 1 auto;
|
|
345
|
+
min-width: 0;
|
|
346
|
+
display: block;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.gene-glyph .vv-figure {
|
|
350
|
+
display: block;
|
|
351
|
+
width: 100%;
|
|
352
|
+
background: var(--vv-color-bg-surface);
|
|
353
|
+
/* Default cursor reflects the primary gesture: plain drag selects an
|
|
354
|
+
* interval to zoom into. Holding Space switches to a grab cursor — see
|
|
355
|
+
* the `.vv-pan-armed` rule below. */
|
|
356
|
+
cursor: crosshair;
|
|
357
|
+
touch-action: pan-y; /* allow vertical page scroll, capture horizontal */
|
|
358
|
+
/* Slice 10: tracks render every exon at its baseline width regardless of
|
|
359
|
+
* whether it's currently in view, and the wrapping `<g>` transforms slide
|
|
360
|
+
* it past the edges. The figure clips so off-figure exons disappear cleanly
|
|
361
|
+
* rather than leaking into the host page layout. */
|
|
362
|
+
overflow: hidden;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/* RD-1109: while a feature hover is committed (debounced), force the figure
|
|
366
|
+
* cursor to `pointer` so crossing the 1–2 px gaps between adjacent glyphs
|
|
367
|
+
* doesn't flicker the cursor between crosshair and pointer. The glyph's own
|
|
368
|
+
* inline `cursor: pointer` still wins on the glyph itself; this rule only
|
|
369
|
+
* affects the inter-glyph gaps. Guarded with `:not(.vv-dragging)` so an
|
|
370
|
+
* active drag continues to show the grabbing cursor. */
|
|
371
|
+
.gene-glyph.vv-hover-active:not(.vv-dragging) .vv-figure {
|
|
372
|
+
cursor: pointer;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.gene-glyph.vv-dragging .vv-figure,
|
|
376
|
+
.gene-glyph.vv-dragging .vv-figure * {
|
|
377
|
+
cursor: grabbing;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.gene-glyph:focus-visible {
|
|
381
|
+
outline: 2px solid var(--vv-color-focus, #2563eb);
|
|
382
|
+
outline-offset: 2px;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.gene-glyph:focus {
|
|
386
|
+
outline: none;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
/* Per-exon translation + uniform scaleX is published by ViewportController as
|
|
390
|
+
* inline style on each .vv-exon-group element. Slice 33 retired the CSS
|
|
391
|
+
* transitions that previously eased pan / zoom — the figure now snaps to
|
|
392
|
+
* each committed range immediately. */
|
|
393
|
+
.gene-glyph .vv-exon-group {
|
|
394
|
+
/* Anchor CSS transforms to the SVG viewBox origin (0,0) so per-exon
|
|
395
|
+
* translate + scaleX shift in viewBox units, independent of each group's
|
|
396
|
+
* bbox. With `fill-box` the origin would track the group's content
|
|
397
|
+
* bbox — wrong for our layout, since the bbox starts at the first child
|
|
398
|
+
* rect's x (which is itself in viewBox units already). */
|
|
399
|
+
transform-box: view-box;
|
|
400
|
+
transform-origin: 0 0;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.gene-glyph .vv-intron-decoration {
|
|
404
|
+
/* Anchor CSS transforms to the SVG viewBox origin (0,0) so per-exon
|
|
405
|
+
* translate + scaleX shift in viewBox units, independent of each group's
|
|
406
|
+
* bbox. With `fill-box` the origin would track the group's content
|
|
407
|
+
* bbox — wrong for our layout, since the bbox starts at the first child
|
|
408
|
+
* rect's x (which is itself in viewBox units already). */
|
|
409
|
+
transform-box: view-box;
|
|
410
|
+
transform-origin: 0 0;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
/* Slice 15: hidden-feature indicator badges sit on top of the dashed-gap
|
|
414
|
+
* polyline. They share the gap's translate (via --vv-intron-x-{N}) but stay at
|
|
415
|
+
* a constant pixel size — the inter-exon `<g>` collapses to width 0 in
|
|
416
|
+
* spliced/protein modes, so the indicator can't ride inside it.
|
|
417
|
+
*
|
|
418
|
+
* Opacity is the inverse of --vv-intron-scale (1 when intronScale=0, 0 when
|
|
419
|
+
* intronScale=1), so the mark is shown when the polyline is hidden and vice
|
|
420
|
+
* versa. */
|
|
421
|
+
.gene-glyph .vv-hidden-feature-mark {
|
|
422
|
+
transform-box: view-box;
|
|
423
|
+
transform-origin: 0 0;
|
|
424
|
+
cursor: pointer;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
/* Phase 3: splice-site flanks sit inside the adjacent exon group and ride
|
|
428
|
+
* its `--vv-exon-scale-x` transform. They're biologically intronic, so they
|
|
429
|
+
* cross-fade with the intron polyline: visible in genome mode (intronScale
|
|
430
|
+
* = 1), collapsed in transcript / protein (intronScale = 0) where the
|
|
431
|
+
* mode's hard collapse subsumes the soft-collapse split. */
|
|
432
|
+
.gene-glyph .vv-exon-flank {
|
|
433
|
+
opacity: var(--vv-intron-scale);
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.gene-glyph .vv-hidden-feature-mark:focus {
|
|
437
|
+
outline: none;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.gene-glyph .vv-hidden-feature-mark:focus-visible .vv-hidden-feature-bg {
|
|
441
|
+
stroke-width: 2;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.gene-glyph .vv-hidden-feature-count {
|
|
445
|
+
font-family: inherit;
|
|
446
|
+
font-weight: 600;
|
|
447
|
+
pointer-events: none;
|
|
448
|
+
user-select: none;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
/* Slice 16: brush overlay. Each touched exon contributes a rect inside its
|
|
452
|
+
* per-exon group, and (in genome mode) each intervening gap contributes
|
|
453
|
+
* a rect inside the inter-exon decoration group. The exon rect rides the live
|
|
454
|
+
* pan/zoom transform; the gap rect rides `--vv-intron-scale` so the brush
|
|
455
|
+
* cross-fades alongside the polyline on mode change. */
|
|
456
|
+
.gene-glyph {
|
|
457
|
+
--vv-brush-fill: rgba(37, 99, 235, 0.14);
|
|
458
|
+
--vv-brush-stroke: rgba(37, 99, 235, 0.65);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.gene-glyph .vv-brush-rect {
|
|
462
|
+
fill: var(--vv-brush-fill);
|
|
463
|
+
stroke: var(--vv-brush-stroke);
|
|
464
|
+
stroke-width: 1;
|
|
465
|
+
pointer-events: none;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
/* Slice 35 — selection-range overlay. Drop-line + translucent fill
|
|
469
|
+
* spans the full figure height through the selected feature's
|
|
470
|
+
* reference range; SNVs degrade to a single vertical stroke for
|
|
471
|
+
* visibility. Hosts override the palette via the two custom
|
|
472
|
+
* properties (parallel to the brush). */
|
|
473
|
+
.gene-glyph {
|
|
474
|
+
--vv-selection-range-fill: rgba(124, 58, 237, 0.1);
|
|
475
|
+
--vv-selection-range-stroke: rgba(124, 58, 237, 0.85);
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.gene-glyph .vv-selection-range {
|
|
479
|
+
fill: var(--vv-selection-range-fill);
|
|
480
|
+
stroke: var(--vv-selection-range-stroke);
|
|
481
|
+
stroke-width: 1;
|
|
482
|
+
pointer-events: none;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.gene-glyph .vv-selection-range-line {
|
|
486
|
+
stroke: var(--vv-selection-range-stroke);
|
|
487
|
+
stroke-width: 1.5;
|
|
488
|
+
stroke-dasharray: 4 3;
|
|
489
|
+
pointer-events: none;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
.gene-glyph.vv-brushing,
|
|
493
|
+
.gene-glyph.vv-brushing .vv-figure,
|
|
494
|
+
.gene-glyph.vv-brushing .vv-figure * {
|
|
495
|
+
cursor: crosshair;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
/* Box-zoom preview rectangle (alt+drag). Lives in viewBox-x rather than the
|
|
499
|
+
* baseline frame — a single rect that follows the cursor's screen-x bounds,
|
|
500
|
+
* since the gesture targets a screen interval rather than a biological one. */
|
|
501
|
+
.gene-glyph {
|
|
502
|
+
--vv-box-zoom-fill: rgba(16, 185, 129, 0.18);
|
|
503
|
+
--vv-box-zoom-stroke: rgba(16, 185, 129, 0.85);
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.gene-glyph .vv-box-zoom-rect {
|
|
507
|
+
fill: var(--vv-box-zoom-fill);
|
|
508
|
+
stroke: var(--vv-box-zoom-stroke);
|
|
509
|
+
stroke-width: 1;
|
|
510
|
+
stroke-dasharray: 4 3;
|
|
511
|
+
pointer-events: none;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.gene-glyph.vv-box-zooming,
|
|
515
|
+
.gene-glyph.vv-box-zooming .vv-figure,
|
|
516
|
+
.gene-glyph.vv-box-zooming .vv-figure * {
|
|
517
|
+
cursor: crosshair;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
/* Suppress text-selection across the host page while a box-zoom gesture is
|
|
521
|
+
* live so dragging past the figure's edge doesn't start a stray selection
|
|
522
|
+
* range against page chrome. Cleared the moment the gesture ends. */
|
|
523
|
+
body.vv-gg-box-zooming,
|
|
524
|
+
body.vv-gg-box-zooming * {
|
|
525
|
+
user-select: none !important;
|
|
526
|
+
-webkit-user-select: none !important;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
/* Adobe-style pan modifier: Space arms the pan, switching the figure's
|
|
530
|
+
* cursor to a grab affordance even before the pointer goes down. */
|
|
531
|
+
.gene-glyph.vv-pan-armed .vv-figure,
|
|
532
|
+
.gene-glyph.vv-pan-armed .vv-figure * {
|
|
533
|
+
cursor: grab;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
.gene-glyph.vv-pan-armed.vv-dragging .vv-figure,
|
|
537
|
+
.gene-glyph.vv-pan-armed.vv-dragging .vv-figure * {
|
|
538
|
+
cursor: grabbing;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
/* Variant track. Each variant lives inside a per-exon group; the outer `g`
|
|
542
|
+
* carries focus and hit-test, the inner `g` carries the hover-lift transform
|
|
543
|
+
* so the lift is a CSS-only animation. */
|
|
544
|
+
.gene-glyph .vv-variant {
|
|
545
|
+
outline: none;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
.gene-glyph .vv-variant.is-clickable {
|
|
549
|
+
cursor: pointer;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
.gene-glyph .vv-variant-inner {
|
|
553
|
+
transform: translateY(0);
|
|
554
|
+
transition: transform 120ms ease-out;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
.gene-glyph .vv-variant.is-hovered .vv-variant-inner,
|
|
558
|
+
.gene-glyph .vv-variant:hover .vv-variant-inner,
|
|
559
|
+
.gene-glyph .vv-variant:focus-visible .vv-variant-inner {
|
|
560
|
+
transform: translateY(calc(var(--vv-variant-hover-lift-px) * -1));
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
.gene-glyph .vv-variant-ring {
|
|
564
|
+
opacity: 0;
|
|
565
|
+
transition: opacity 100ms ease-out;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
.gene-glyph .vv-variant.is-selected .vv-variant-ring {
|
|
569
|
+
opacity: 1;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
.gene-glyph .vv-variant.is-in-brush .vv-variant-ring {
|
|
573
|
+
opacity: 0.75;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
.gene-glyph .vv-variant:focus-visible .vv-variant-ring {
|
|
577
|
+
opacity: 0.6;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
/* Stacked-variant render (Slice 27). Glyph rows replace the tick+dot row;
|
|
581
|
+
* the per-row translate is set by `<g transform="translate(0 cy)">` inside
|
|
582
|
+
* the per-exon group, so motion still flows entirely through the parent
|
|
583
|
+
* exon's CSS transform — no per-glyph CSS variables. */
|
|
584
|
+
.gene-glyph .vv-variant-stacked .vv-variant-glyph {
|
|
585
|
+
pointer-events: visiblePainted;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
.gene-glyph .vv-variant-stacked.is-hovered .vv-variant-inner,
|
|
589
|
+
.gene-glyph .vv-variant-stacked:hover .vv-variant-inner,
|
|
590
|
+
.gene-glyph .vv-variant-stacked:focus-visible .vv-variant-inner {
|
|
591
|
+
/* Lift uses the same custom property as the tick+dot style. The glyph
|
|
592
|
+
* sits at row cy + translate(-lift) reads as a hover affordance without
|
|
593
|
+
* pulling neighbouring rows along. */
|
|
594
|
+
transform: translateY(calc(var(--vv-variant-hover-lift-px) * -1));
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
/* Unplaced-variants list. Lives outside the figure SVG so it is structurally
|
|
598
|
+
* excluded from export. Slice 7 will move this into the Footer slot. */
|
|
599
|
+
.gene-glyph .vv-below {
|
|
600
|
+
margin-top: 4px;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
.gene-glyph .vv-unplaced-variants {
|
|
604
|
+
display: flex;
|
|
605
|
+
flex-wrap: wrap;
|
|
606
|
+
align-items: center;
|
|
607
|
+
gap: 6px 10px;
|
|
608
|
+
font-size: 0.78rem;
|
|
609
|
+
color: var(--vv-color-text-secondary);
|
|
610
|
+
padding: 4px 0;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
.gene-glyph .vv-unplaced-label {
|
|
614
|
+
font-weight: 600;
|
|
615
|
+
color: var(--vv-color-text-secondary);
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
.gene-glyph .vv-unplaced-list {
|
|
619
|
+
list-style: none;
|
|
620
|
+
display: flex;
|
|
621
|
+
flex-wrap: wrap;
|
|
622
|
+
gap: 6px;
|
|
623
|
+
margin: 0;
|
|
624
|
+
padding: 0;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
.gene-glyph .vv-unplaced-chip {
|
|
628
|
+
display: inline-flex;
|
|
629
|
+
align-items: center;
|
|
630
|
+
gap: 4px;
|
|
631
|
+
padding: 2px 8px 2px 6px;
|
|
632
|
+
border: 1px solid var(--vv-variant-color, #94a3b8);
|
|
633
|
+
border-radius: 999px;
|
|
634
|
+
background: var(--vv-color-bg-surface, transparent);
|
|
635
|
+
color: var(--vv-color-text-primary);
|
|
636
|
+
cursor: pointer;
|
|
637
|
+
transition:
|
|
638
|
+
background-color 100ms ease-out,
|
|
639
|
+
transform 100ms ease-out;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
.gene-glyph .vv-unplaced-chip.is-hovered,
|
|
643
|
+
.gene-glyph .vv-unplaced-chip:hover {
|
|
644
|
+
transform: translateY(-1px);
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
.gene-glyph .vv-unplaced-chip.is-selected {
|
|
648
|
+
outline: 2px solid var(--vv-variant-color, #94a3b8);
|
|
649
|
+
outline-offset: 1px;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
.gene-glyph .vv-unplaced-dot {
|
|
653
|
+
width: 8px;
|
|
654
|
+
height: 8px;
|
|
655
|
+
border-radius: 50%;
|
|
656
|
+
background: var(--vv-variant-color, #94a3b8);
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
/* Pfam track. Each domain renders one rounded rect per intersected exon,
|
|
660
|
+
* placed inside the per-exon group so the exon's CSS-driven transform carries
|
|
661
|
+
* the rect with it across mode changes. A thin linker line crosses each
|
|
662
|
+
* collapsed-intron gap; it lives inside an .vv-intron-decoration group so its
|
|
663
|
+
* opacity collapses with `--vv-intron-scale` in spliced/protein modes (mode
|
|
664
|
+
* transitions land in Slice 12; the wiring is in place now). */
|
|
665
|
+
.gene-glyph .vv-pfam-rect {
|
|
666
|
+
pointer-events: visiblePainted;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
.gene-glyph .vv-pfam-linker {
|
|
670
|
+
pointer-events: none;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
.gene-glyph .vv-pfam-label {
|
|
674
|
+
font-family: inherit;
|
|
675
|
+
pointer-events: none;
|
|
676
|
+
user-select: none;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
/* Segment band track (Slice 30). One row of categorical / boolean
|
|
680
|
+
* colour bands keyed to a host palette — NMD escape, RMC, secondary
|
|
681
|
+
* structure. Rects sit inside per-exon `<g>` so they pan / zoom with
|
|
682
|
+
* the exon ribbon; the optional inline label rides a counter-scale so
|
|
683
|
+
* it stays legible regardless of live zoom. */
|
|
684
|
+
.gene-glyph .vv-segment-band-rect {
|
|
685
|
+
pointer-events: visiblePainted;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
.gene-glyph .vv-segment-band-label {
|
|
689
|
+
font-family: inherit;
|
|
690
|
+
pointer-events: none;
|
|
691
|
+
user-select: none;
|
|
692
|
+
fill: var(--vv-segment-band-label, #1e293b);
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
/* InterPro track. Same structural pattern as Pfam (per-exon segments + linker
|
|
696
|
+
* + centred label), but lane-packed so overlapping IPR entries of the same
|
|
697
|
+
* entry-type stack into rows without crashing. */
|
|
698
|
+
.gene-glyph .vv-interpro-rect {
|
|
699
|
+
pointer-events: visiblePainted;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
.gene-glyph .vv-interpro-linker {
|
|
703
|
+
pointer-events: none;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
.gene-glyph .vv-interpro-label {
|
|
707
|
+
font-family: inherit;
|
|
708
|
+
pointer-events: none;
|
|
709
|
+
user-select: none;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
/* Slice 29: sequence ladders (per-bp + per-aa letters). Letters are
|
|
713
|
+
* informational — never targets for native text selection — and they
|
|
714
|
+
* sit directly under the drag-pan surface, so without `user-select:
|
|
715
|
+
* none` a drag mid-letter starts a text-selection range and overrides
|
|
716
|
+
* the pan gesture. Pointer-events stay disabled so the letters never
|
|
717
|
+
* intercept hover / click on the underlying exon ribbon either. */
|
|
718
|
+
.gene-glyph .vv-nt-letter,
|
|
719
|
+
.gene-glyph .vv-aa-letter,
|
|
720
|
+
.gene-glyph .vv-nucleotide-track,
|
|
721
|
+
.gene-glyph .vv-aa-track {
|
|
722
|
+
pointer-events: none;
|
|
723
|
+
user-select: none;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
/* Per-cell background tile under each nucleotide letter. Tinted with the
|
|
727
|
+
* letter's palette colour at low opacity so the sequence reads as a
|
|
728
|
+
* coloured band reaching both figure edges, instead of leaving a half-cell
|
|
729
|
+
* gap where the centred letter would otherwise float in empty space. */
|
|
730
|
+
.gene-glyph .vv-nt-cell,
|
|
731
|
+
.gene-glyph .vv-aa-cell {
|
|
732
|
+
pointer-events: none;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
/* Slice 17: overlay layer + default hover tooltip. The overlay layer is a
|
|
736
|
+
* sibling of the figure SVG inside .vv-figure-wrap so exportSVG() (Slice 19)
|
|
737
|
+
* can serialise the SVG without dragging overlays in. Layer is non-
|
|
738
|
+
* interactive by default; individual overlays opt into pointer-events. */
|
|
739
|
+
.gene-glyph .vv-overlay-layer {
|
|
740
|
+
position: absolute;
|
|
741
|
+
inset: 0;
|
|
742
|
+
pointer-events: none;
|
|
743
|
+
z-index: 1;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
.gene-glyph {
|
|
747
|
+
--vv-tooltip-bg: rgba(15, 23, 42, 0.92);
|
|
748
|
+
--vv-tooltip-color: #f8fafc;
|
|
749
|
+
--vv-tooltip-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
.gene-glyph .vv-tooltip {
|
|
753
|
+
position: absolute;
|
|
754
|
+
/* Anchor is the feature dot/tick; nudge the tooltip up + horizontally
|
|
755
|
+
* centred so the lower edge sits above the lift-affected feature. */
|
|
756
|
+
transform: translate(-50%, calc(-100% - 10px));
|
|
757
|
+
padding: 4px 8px;
|
|
758
|
+
background: var(--vv-tooltip-bg);
|
|
759
|
+
color: var(--vv-tooltip-color);
|
|
760
|
+
font-size: 0.78rem;
|
|
761
|
+
line-height: 1.3;
|
|
762
|
+
border-radius: 4px;
|
|
763
|
+
box-shadow: var(--vv-tooltip-shadow);
|
|
764
|
+
pointer-events: none;
|
|
765
|
+
white-space: nowrap;
|
|
766
|
+
max-width: 320px;
|
|
767
|
+
opacity: 0;
|
|
768
|
+
animation: vv-tooltip-fade-in 100ms ease-out forwards;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
@keyframes vv-tooltip-fade-in {
|
|
772
|
+
from {
|
|
773
|
+
opacity: 0;
|
|
774
|
+
}
|
|
775
|
+
to {
|
|
776
|
+
opacity: 1;
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
/* Slice 18: per-track loading shimmer + stale-data desaturation.
|
|
781
|
+
* • Shimmer sits inside the figure SVG over the loading track's y-range. A
|
|
782
|
+
* 150ms animation-delay hides the rect for sub-frame loads — only loads
|
|
783
|
+
* that actually stall long enough to be perceptible draw the shimmer.
|
|
784
|
+
* • `[data-vv-stale]` on the viewer root marks the brief debounce window
|
|
785
|
+
* between a pan/zoom landing and the next `track.load()` firing. The
|
|
786
|
+
* existing feature glyphs desaturate (saturate-50%) and fade slightly so
|
|
787
|
+
* the user knows the displayed data is about to change. */
|
|
788
|
+
.gene-glyph {
|
|
789
|
+
--vv-loading-tint: rgba(99, 102, 241, 0.12);
|
|
790
|
+
--vv-loading-band: rgba(99, 102, 241, 0.28);
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
.gene-glyph .vv-loading-shimmer {
|
|
794
|
+
fill: var(--vv-loading-tint);
|
|
795
|
+
opacity: 0;
|
|
796
|
+
pointer-events: none;
|
|
797
|
+
animation: vv-loading-shimmer 1200ms ease-in-out 150ms infinite;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
@keyframes vv-loading-shimmer {
|
|
801
|
+
0% {
|
|
802
|
+
opacity: 0;
|
|
803
|
+
}
|
|
804
|
+
10% {
|
|
805
|
+
opacity: 1;
|
|
806
|
+
}
|
|
807
|
+
50% {
|
|
808
|
+
opacity: 0.35;
|
|
809
|
+
}
|
|
810
|
+
90% {
|
|
811
|
+
opacity: 1;
|
|
812
|
+
}
|
|
813
|
+
100% {
|
|
814
|
+
opacity: 0;
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
.gene-glyph[data-vv-stale] .vv-variant,
|
|
819
|
+
.gene-glyph[data-vv-stale] .vv-pfam-rect,
|
|
820
|
+
.gene-glyph[data-vv-stale] .vv-interpro-rect,
|
|
821
|
+
.gene-glyph[data-vv-stale] .vv-unplaced-chip {
|
|
822
|
+
filter: saturate(0.5);
|
|
823
|
+
opacity: 0.75;
|
|
824
|
+
transition:
|
|
825
|
+
filter 120ms ease-out,
|
|
826
|
+
opacity 120ms ease-out;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
/* Print theme — applied via the offscreen wrapper that exportSVG mounts the
|
|
830
|
+
* cloned figure into. Three jobs:
|
|
831
|
+
* 1. Swap the screen palette for high-contrast colours that read on paper
|
|
832
|
+
* (white background, dark text, saturated category swatches).
|
|
833
|
+
* 2. Bump stroke widths so the figure stays legible at thumbnail sizes when
|
|
834
|
+
* a journal reflows it.
|
|
835
|
+
* 3. Kill any soft chrome (saturate/desaturate filters from the stale-data
|
|
836
|
+
* affordance, drop shadows, low-opacity overlays) that would muddy print. */
|
|
837
|
+
[data-vv-print] .gene-glyph {
|
|
838
|
+
--vv-color-text-primary: #111827;
|
|
839
|
+
--vv-color-text-secondary: #1f2937;
|
|
840
|
+
--vv-color-text-tertiary: #4b5563;
|
|
841
|
+
--vv-color-exon-fill: #9ca3af;
|
|
842
|
+
--vv-color-exon-stroke: #111827;
|
|
843
|
+
--vv-color-intron-line: #111827;
|
|
844
|
+
--vv-color-pfam-stroke: #111827;
|
|
845
|
+
--vv-color-pfam-label: #111827;
|
|
846
|
+
--vv-color-hidden-mark-bg: #fde68a;
|
|
847
|
+
--vv-color-hidden-mark-stroke: #78350f;
|
|
848
|
+
--vv-color-hidden-mark-text: #78350f;
|
|
849
|
+
--vv-color-bg-surface: #ffffff;
|
|
850
|
+
--vv-variant-color-missense: #b45309;
|
|
851
|
+
--vv-variant-color-nonsense: #991b1b;
|
|
852
|
+
--vv-variant-color-synonymous: #4b5563;
|
|
853
|
+
--vv-variant-color-frameshift: #7f1d1d;
|
|
854
|
+
--vv-variant-color-inframe-indel: #c2410c;
|
|
855
|
+
--vv-variant-color-splice: #6d28d9;
|
|
856
|
+
--vv-variant-color-start-lost: #991b1b;
|
|
857
|
+
--vv-variant-color-stop-lost: #991b1b;
|
|
858
|
+
--vv-variant-color-regulatory: #0369a1;
|
|
859
|
+
--vv-variant-color-utr: #374151;
|
|
860
|
+
--vv-variant-color-intronic: #4b5563;
|
|
861
|
+
--vv-variant-color-structural: #9d174d;
|
|
862
|
+
--vv-variant-color-other: #4b5563;
|
|
863
|
+
--vv-variant-color-unknown: #6b7280;
|
|
864
|
+
--vv-variant-dot-stroke: #ffffff;
|
|
865
|
+
--vv-brush-fill: rgba(37, 99, 235, 0.18);
|
|
866
|
+
--vv-brush-stroke: #1d4ed8;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
[data-vv-print] .gene-glyph .vv-figure {
|
|
870
|
+
background: #ffffff;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
/* Print stroke uplift. SVG presentation attributes lose to CSS rules so we
|
|
874
|
+
* can boost stroke-width without touching every track render. */
|
|
875
|
+
[data-vv-print] .gene-glyph .vv-exon-rect,
|
|
876
|
+
[data-vv-print] .gene-glyph .vv-pfam-rect,
|
|
877
|
+
[data-vv-print] .gene-glyph .vv-interpro-rect {
|
|
878
|
+
stroke-width: 1.5;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
[data-vv-print] .gene-glyph .vv-intron-polyline {
|
|
882
|
+
stroke-width: 2;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
[data-vv-print] .gene-glyph .vv-variant-tick,
|
|
886
|
+
[data-vv-print] .gene-glyph .vv-variant-ring,
|
|
887
|
+
[data-vv-print] .gene-glyph .vv-variant-dot {
|
|
888
|
+
stroke-width: 2;
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
/* In-print, kill the stale-data desaturation filter and any transitions so the
|
|
892
|
+
* computed styles read by exportSVG land on the target frame. */
|
|
893
|
+
[data-vv-print] .gene-glyph[data-vv-stale] .vv-variant,
|
|
894
|
+
[data-vv-print] .gene-glyph[data-vv-stale] .vv-pfam-rect,
|
|
895
|
+
[data-vv-print] .gene-glyph[data-vv-stale] .vv-interpro-rect,
|
|
896
|
+
[data-vv-print] .gene-glyph[data-vv-stale] .vv-unplaced-chip {
|
|
897
|
+
filter: none;
|
|
898
|
+
opacity: 1;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
/* Reduced-motion override. Slice 33 retired the figure pan/zoom/mode CSS
|
|
902
|
+
* transitions, so the remaining animation surface is feature-chrome — hover
|
|
903
|
+
* lifts on variants, the selection-ring fade, and the tooltip / loading
|
|
904
|
+
* shimmer. Two trigger paths share the same target rules:
|
|
905
|
+
* 1. `@media (prefers-reduced-motion: reduce)` — real-user OS preference.
|
|
906
|
+
* 2. `[data-vv-reduce-motion]` on any ancestor — manual simulation for
|
|
907
|
+
* testing (the playground exposes a checkbox; Playwright can also use
|
|
908
|
+
* `page.emulateMedia({ reducedMotion: 'reduce' })` which fires the
|
|
909
|
+
* @media path). */
|
|
910
|
+
@media (prefers-reduced-motion: reduce) {
|
|
911
|
+
.gene-glyph .vv-exon-group,
|
|
912
|
+
.gene-glyph .vv-intron-decoration,
|
|
913
|
+
.gene-glyph .vv-variant-inner,
|
|
914
|
+
.gene-glyph .vv-variant-ring,
|
|
915
|
+
.gene-glyph .vv-default-chevron-icon {
|
|
916
|
+
transition: none;
|
|
917
|
+
}
|
|
918
|
+
.gene-glyph .vv-tooltip {
|
|
919
|
+
animation: none;
|
|
920
|
+
opacity: 1;
|
|
921
|
+
}
|
|
922
|
+
.gene-glyph .vv-loading-shimmer {
|
|
923
|
+
animation: none;
|
|
924
|
+
opacity: 0.6;
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
[data-vv-reduce-motion] .gene-glyph .vv-exon-group,
|
|
929
|
+
[data-vv-reduce-motion] .gene-glyph .vv-intron-decoration,
|
|
930
|
+
[data-vv-reduce-motion] .gene-glyph .vv-variant-inner,
|
|
931
|
+
[data-vv-reduce-motion] .gene-glyph .vv-variant-ring,
|
|
932
|
+
[data-vv-reduce-motion] .gene-glyph .vv-default-chevron-icon {
|
|
933
|
+
transition: none;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
[data-vv-reduce-motion] .gene-glyph .vv-tooltip {
|
|
937
|
+
animation: none;
|
|
938
|
+
opacity: 1;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
[data-vv-reduce-motion] .gene-glyph .vv-loading-shimmer {
|
|
942
|
+
animation: none;
|
|
943
|
+
opacity: 0.6;
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
/* Dark theme. Same trigger taxonomy as reduced-motion / print:
|
|
947
|
+
* 1. `@media (prefers-color-scheme: dark)` — automatic, gated so an
|
|
948
|
+
* explicit `[data-vv-theme="light"]` from the host always wins.
|
|
949
|
+
* 2. `[data-vv-theme="dark"]` on the figure root or any ancestor —
|
|
950
|
+
* manual opt-in (host-driven theme switcher, Playwright tests).
|
|
951
|
+
* Only chrome palette variables flip. Category palettes (variant /
|
|
952
|
+
* ClinVar significance / DECIPHER consequence) stay identity-stable
|
|
953
|
+
* across themes — meaning shifts when a "pathogenic" red turns into
|
|
954
|
+
* something else under a different theme. The few category overrides
|
|
955
|
+
* here are contrast adjustments: dark-green benign and dark-slate
|
|
956
|
+
* "other" need a lightness bump to stay legible on a slate-700 track. */
|
|
957
|
+
.gene-glyph[data-vv-theme='dark'],
|
|
958
|
+
[data-vv-theme='dark'] .gene-glyph {
|
|
959
|
+
--vv-color-text-primary: #e2e8f0;
|
|
960
|
+
--vv-color-text-secondary: #94a3b8;
|
|
961
|
+
--vv-color-text-tertiary: #64748b;
|
|
962
|
+
--vv-color-exon-fill: #475569;
|
|
963
|
+
--vv-color-exon-stroke: #cbd5e1;
|
|
964
|
+
--vv-color-intron-line: #64748b;
|
|
965
|
+
--vv-color-bg-surface: transparent;
|
|
966
|
+
|
|
967
|
+
--vv-color-mane-bg: #1e3a8a;
|
|
968
|
+
--vv-color-mane-text: #93c5fd;
|
|
969
|
+
--vv-color-focus: #60a5fa;
|
|
970
|
+
--vv-color-chevron-hover: rgba(248, 250, 252, 0.08);
|
|
971
|
+
--vv-color-minimap-bg: #1e293b;
|
|
972
|
+
--vv-color-minimap-border: #475569;
|
|
973
|
+
--vv-color-minimap-window-fill: rgba(96, 165, 250, 0.22);
|
|
974
|
+
--vv-color-minimap-window-stroke: #60a5fa;
|
|
975
|
+
--vv-color-minimap-handle: #60a5fa;
|
|
976
|
+
--vv-color-overview-window-fill: rgba(96, 165, 250, 0.22);
|
|
977
|
+
--vv-color-overview-window-stroke: #60a5fa;
|
|
978
|
+
--vv-color-overview-handle: #60a5fa;
|
|
979
|
+
|
|
980
|
+
--vv-variant-dot-stroke: #0f172a;
|
|
981
|
+
--vv-clinvar-dot-stroke: #0f172a;
|
|
982
|
+
--vv-clinvar-count-fill: #0f172a;
|
|
983
|
+
--vv-clinvar-popover-bg: #1e293b;
|
|
984
|
+
--vv-clinvar-popover-stroke: #475569;
|
|
985
|
+
--vv-clinvar-popover-row-hover: rgba(248, 250, 252, 0.06);
|
|
986
|
+
--vv-clinvar-lane-divider: #475569;
|
|
987
|
+
--vv-clinvar-lane-label: #cbd5e1;
|
|
988
|
+
|
|
989
|
+
--vv-clinvar-color-benign: hsl(162, 60%, 50%);
|
|
990
|
+
--vv-clinvar-color-other: #94a3b8;
|
|
991
|
+
|
|
992
|
+
--vv-segment-band-label: #e2e8f0;
|
|
993
|
+
|
|
994
|
+
--vv-brush-fill: rgba(96, 165, 250, 0.16);
|
|
995
|
+
--vv-brush-stroke: rgba(96, 165, 250, 0.75);
|
|
996
|
+
--vv-selection-range-fill: rgba(192, 132, 252, 0.12);
|
|
997
|
+
--vv-selection-range-stroke: rgba(192, 132, 252, 0.9);
|
|
998
|
+
--vv-box-zoom-fill: rgba(52, 211, 153, 0.2);
|
|
999
|
+
--vv-box-zoom-stroke: rgba(52, 211, 153, 0.9);
|
|
1000
|
+
|
|
1001
|
+
--vv-tooltip-bg: rgba(248, 250, 252, 0.96);
|
|
1002
|
+
--vv-tooltip-color: #0f172a;
|
|
1003
|
+
--vv-tooltip-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
@media (prefers-color-scheme: dark) {
|
|
1007
|
+
/* The double :not() handles both opt-in shapes: the attribute on the
|
|
1008
|
+
* figure itself (`.gene-glyph[data-vv-theme='light']`) or on any
|
|
1009
|
+
* ancestor (`[data-vv-theme='light'] .gene-glyph`, the common case
|
|
1010
|
+
* when a host sets it on `<html>` or `<body>`). `:where()` keeps the
|
|
1011
|
+
* specificity flat so the explicit dark-pin block below still wins. */
|
|
1012
|
+
.gene-glyph:not([data-vv-theme='light']):not(:where([data-vv-theme='light'] *)) {
|
|
1013
|
+
--vv-color-text-primary: #e2e8f0;
|
|
1014
|
+
--vv-color-text-secondary: #94a3b8;
|
|
1015
|
+
--vv-color-text-tertiary: #64748b;
|
|
1016
|
+
--vv-color-exon-fill: #475569;
|
|
1017
|
+
--vv-color-exon-stroke: #cbd5e1;
|
|
1018
|
+
--vv-color-intron-line: #64748b;
|
|
1019
|
+
--vv-color-bg-surface: transparent;
|
|
1020
|
+
|
|
1021
|
+
--vv-color-mane-bg: #1e3a8a;
|
|
1022
|
+
--vv-color-mane-text: #93c5fd;
|
|
1023
|
+
--vv-color-focus: #60a5fa;
|
|
1024
|
+
--vv-color-chevron-hover: rgba(248, 250, 252, 0.08);
|
|
1025
|
+
--vv-color-minimap-bg: #1e293b;
|
|
1026
|
+
--vv-color-minimap-border: #475569;
|
|
1027
|
+
--vv-color-minimap-window-fill: rgba(96, 165, 250, 0.22);
|
|
1028
|
+
--vv-color-minimap-window-stroke: #60a5fa;
|
|
1029
|
+
--vv-color-minimap-handle: #60a5fa;
|
|
1030
|
+
--vv-color-overview-window-fill: rgba(96, 165, 250, 0.22);
|
|
1031
|
+
--vv-color-overview-window-stroke: #60a5fa;
|
|
1032
|
+
--vv-color-overview-handle: #60a5fa;
|
|
1033
|
+
|
|
1034
|
+
--vv-variant-dot-stroke: #0f172a;
|
|
1035
|
+
--vv-clinvar-dot-stroke: #0f172a;
|
|
1036
|
+
--vv-clinvar-count-fill: #0f172a;
|
|
1037
|
+
--vv-clinvar-popover-bg: #1e293b;
|
|
1038
|
+
--vv-clinvar-popover-stroke: #475569;
|
|
1039
|
+
--vv-clinvar-popover-row-hover: rgba(248, 250, 252, 0.06);
|
|
1040
|
+
--vv-clinvar-lane-divider: #475569;
|
|
1041
|
+
--vv-clinvar-lane-label: #cbd5e1;
|
|
1042
|
+
|
|
1043
|
+
--vv-clinvar-color-benign: hsl(162, 60%, 50%);
|
|
1044
|
+
--vv-clinvar-color-other: #94a3b8;
|
|
1045
|
+
|
|
1046
|
+
--vv-segment-band-label: #e2e8f0;
|
|
1047
|
+
|
|
1048
|
+
--vv-brush-fill: rgba(96, 165, 250, 0.16);
|
|
1049
|
+
--vv-brush-stroke: rgba(96, 165, 250, 0.75);
|
|
1050
|
+
--vv-selection-range-fill: rgba(192, 132, 252, 0.12);
|
|
1051
|
+
--vv-selection-range-stroke: rgba(192, 132, 252, 0.9);
|
|
1052
|
+
--vv-box-zoom-fill: rgba(52, 211, 153, 0.2);
|
|
1053
|
+
--vv-box-zoom-stroke: rgba(52, 211, 153, 0.9);
|
|
1054
|
+
|
|
1055
|
+
--vv-tooltip-bg: rgba(248, 250, 252, 0.96);
|
|
1056
|
+
--vv-tooltip-color: #0f172a;
|
|
1057
|
+
--vv-tooltip-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
/* ClinVar track. Density-clustered marks render either as a circle (single
|
|
1062
|
+
* record) or a diamond (cluster of N) with a count overlay. Each mark sits
|
|
1063
|
+
* inside its host exon's per-exon `<g>` so it animates with that exon during
|
|
1064
|
+
* pan/zoom; the inner shape carries a counter-scale so circles/diamonds stay
|
|
1065
|
+
* round regardless of the parent exon's horizontal scaleX. */
|
|
1066
|
+
.gene-glyph .vv-clinvar-mark {
|
|
1067
|
+
outline: none;
|
|
1068
|
+
cursor: pointer;
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
.gene-glyph .vv-clinvar-mark.is-open .vv-clinvar-shape {
|
|
1072
|
+
filter: drop-shadow(0 0 1px rgba(15, 23, 42, 0.5));
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
.gene-glyph .vv-clinvar-popover {
|
|
1076
|
+
pointer-events: auto;
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
.gene-glyph .vv-clinvar-popover-row:hover rect,
|
|
1080
|
+
.gene-glyph .vv-clinvar-popover-row.is-hovered rect {
|
|
1081
|
+
fill: var(--vv-clinvar-popover-row-hover, rgba(15, 23, 42, 0.05));
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
.gene-glyph .vv-clinvar-popover-backdrop {
|
|
1085
|
+
pointer-events: all;
|
|
1086
|
+
cursor: default;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
.gene-glyph .vv-clinvar-popover-row {
|
|
1090
|
+
cursor: pointer;
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
/* Stacked ClinVar render (Slice 27). Density clustering is suppressed —
|
|
1094
|
+
* every record renders as its own glyph in a packed-lane column. */
|
|
1095
|
+
.gene-glyph .vv-clinvar-mark-stacked .vv-clinvar-glyph {
|
|
1096
|
+
pointer-events: visiblePainted;
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
.gene-glyph .vv-clinvar-mark-stacked .vv-clinvar-ring {
|
|
1100
|
+
opacity: 0;
|
|
1101
|
+
transition: opacity 100ms ease-out;
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
.gene-glyph .vv-clinvar-mark-stacked.is-selected .vv-clinvar-ring,
|
|
1105
|
+
.gene-glyph .vv-clinvar-mark-stacked.is-hovered .vv-clinvar-ring,
|
|
1106
|
+
.gene-glyph .vv-clinvar-mark-stacked:hover .vv-clinvar-ring,
|
|
1107
|
+
.gene-glyph .vv-clinvar-mark-stacked:focus-visible .vv-clinvar-ring {
|
|
1108
|
+
opacity: 0.7;
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
/* Consequence-lane dividers + right-inset section labels inside a
|
|
1112
|
+
* stacked ClinVar track (Slice 39 follow-up). The dividers are
|
|
1113
|
+
* structural chrome — fixed-pixel stroke, opacity-muted — so they
|
|
1114
|
+
* don't compete with the glyphs they're separating. */
|
|
1115
|
+
.gene-glyph .vv-clinvar-lane-divider {
|
|
1116
|
+
stroke: var(--vv-clinvar-lane-divider, #cbd5e1);
|
|
1117
|
+
stroke-width: 1;
|
|
1118
|
+
vector-effect: non-scaling-stroke;
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
.gene-glyph .vv-clinvar-lane-label {
|
|
1122
|
+
fill: var(--vv-clinvar-lane-label, #64748b);
|
|
1123
|
+
font-family: inherit;
|
|
1124
|
+
font-style: italic;
|
|
1125
|
+
letter-spacing: 0.02em;
|
|
1126
|
+
user-select: none;
|
|
1127
|
+
}
|