Skip to content

Commit 1a8eb63

Browse files
author
Jack Zhao
committed
fix lint
1 parent 694857b commit 1a8eb63

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

src/Circular/Labels.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export interface GroupedLabelsWithCoors {
1818
labels: ILabel[];
1919
lineCoor: Coor;
2020
name: string;
21-
overflow: unknown;
21+
overflow: boolean;
2222
textAnchor: "start" | "end";
2323
textCoor: Coor;
2424
}

src/Linear/Annotations.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,14 @@ const AnnotationRows = (props: {
4949
width={props.width}
5050
y={
5151
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)
5360
}
5461
/>
5562
))}

src/Linear/Translations.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ export const TranslationRows = ({
5555
lastBase={lastBase}
5656
seqType={seqType}
5757
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+
}
5963
onUnmount={onUnmount}
6064
/>
6165
))}

src/SeqViz.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export interface SeqVizProps {
134134
showIndex?: boolean;
135135

136136
/** extra style props to apply to the outermost div of SeqViz */
137-
style?: Record<string, unknown>;
137+
style?: React.CSSProperties;
138138

139139
/** ranges of sequence that should have amino acid translations shown */
140140
translations?: { direction?: number; end: number; start: number }[];

0 commit comments

Comments
 (0)