File tree Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export interface GroupedLabelsWithCoors {
18
18
labels : ILabel [ ] ;
19
19
lineCoor : Coor ;
20
20
name : string ;
21
- overflow : unknown ;
21
+ overflow : boolean ;
22
22
textAnchor : "start" | "end" ;
23
23
textCoor : Coor ;
24
24
}
Original file line number Diff line number Diff line change @@ -49,7 +49,14 @@ const AnnotationRows = (props: {
49
49
width = { props . width }
50
50
y = {
51
51
props . yDiff +
52
- props . elementHeight * ( props . oneRow ? Math . max ( ...anns . map ( ann => props . stackedPositions . findIndex ( row => row . some ( item => item . id === ann . id ) ) as number ) ) : i )
52
+ props . elementHeight *
53
+ ( props . oneRow
54
+ ? Math . max (
55
+ ...anns . map (
56
+ ann => props . stackedPositions . findIndex ( row => row . some ( item => item . id === ann . id ) ) as number
57
+ )
58
+ )
59
+ : i )
53
60
}
54
61
/>
55
62
) ) }
Original file line number Diff line number Diff line change @@ -55,7 +55,11 @@ export const TranslationRows = ({
55
55
lastBase = { lastBase }
56
56
seqType = { seqType }
57
57
translation = { t }
58
- y = { yDiff + elementHeight * ( oneRow ? ( stackedPositions . findIndex ( rows => rows . some ( item => item . id === t . id ) ) as number ) : i ) }
58
+ y = {
59
+ yDiff +
60
+ elementHeight *
61
+ ( oneRow ? ( stackedPositions . findIndex ( rows => rows . some ( item => item . id === t . id ) ) as number ) : i )
62
+ }
59
63
onUnmount = { onUnmount }
60
64
/>
61
65
) ) }
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ export interface SeqVizProps {
134
134
showIndex ?: boolean ;
135
135
136
136
/** extra style props to apply to the outermost div of SeqViz */
137
- style ?: Record < string , unknown > ;
137
+ style ?: React . CSSProperties ;
138
138
139
139
/** ranges of sequence that should have amino acid translations shown */
140
140
translations ?: { direction ?: number ; end : number ; start : number } [ ] ;
You can’t perform that action at this time.
0 commit comments