From 4283977d57fbd6a7373729a1b5737df0bf496c37 Mon Sep 17 00:00:00 2001 From: Nick Rosenau Date: Wed, 29 Nov 2023 17:55:57 -0500 Subject: [PATCH] prettier. --- src/Linear/Annotations.tsx | 9 ++++----- src/elements.ts | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/Linear/Annotations.tsx b/src/Linear/Annotations.tsx index c877882b8..6b0f00e14 100644 --- a/src/Linear/Annotations.tsx +++ b/src/Linear/Annotations.tsx @@ -185,10 +185,9 @@ const SingleNamedElement = (props: { let fontSize = 12; if (element.font?.fontSize) { // 19 is a subjective limit to fontSize that will fit inside bounds of annotation. If larger than 19, cap it. - if(element.font.fontSize > 19){ + if (element.font.fontSize > 19) { fontSize = 19; - } - else{ + } else { fontSize = element.font.fontSize; } } @@ -223,9 +222,9 @@ const SingleNamedElement = (props: { break; } } - let borderColor:string | null = null + let borderColor: string | null = null; if (element.border?.borderColor) { - borderColor = element.border.borderColor + borderColor = element.border.borderColor; } let fontFamily: string | undefined = undefined; diff --git a/src/elements.ts b/src/elements.ts index bc84eabbc..5e3b07744 100644 --- a/src/elements.ts +++ b/src/elements.ts @@ -23,7 +23,7 @@ interface Font { } interface Border { - style?: "dashed" | "dotted" | "bold" + style?: "dashed" | "dotted" | "bold"; borderColor?: string; }