From 237acf3a77ec1b5607554bf0cd27ec5187d461ae Mon Sep 17 00:00:00 2001 From: Theo Sanderson Date: Sun, 15 Dec 2024 20:13:09 +0000 Subject: [PATCH] Arrows (#45) * feat: Convert feature rectangles to chevron-shaped arrows based on strand direction * feat: Update feature path drawing to correctly render reverse strand direction * feat: Modify feature path drawing to use blunt ends for row boundaries * feat: Add semi-blunt path ends for non-actual feature boundaries * refactor: Extract arrow point offsets into configurable constants * fix: Symmetrize blunt end offsets using BLUNT_POINT_OFFSET * update * feat: Add Roboto Condensed font for DNA text at higher zoom levels * add * style: Update font imports and styling for SingleRow component * feat: Switch font from Inter to Open Sans * feat: Add Open Sans Condensed font for DNA text at higher zoom levels * style: Configure Tailwind to use Open Sans as default font * refactor: Adjust font size and family based on updated zoom level conditions * style: Adjust font weight for Open Sans Condensed at lower zoom levels * style: Adjust font weight based on zoom level in SingleRow component * update * up * update --- gensplore-component/src/components/SingleRow.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gensplore-component/src/components/SingleRow.jsx b/gensplore-component/src/components/SingleRow.jsx index 090b8d0..21096d8 100644 --- a/gensplore-component/src/components/SingleRow.jsx +++ b/gensplore-component/src/components/SingleRow.jsx @@ -280,7 +280,9 @@ const SingleRow = ({ x={x} y={10} textAnchor="middle" - fontSize={zoomLevel < -0.5 ? "10" : "12"} + fontSize={zoomLevel < -1 ? "11" : "12"} + fontFamily={zoomLevel < -0.25 ? "Open Sans Condensed" : "sans-serif"} + fontWeight={zoomLevel < -0.25 ? "600" : "400"} fillOpacity={0.9} onMouseEnter={() => setHoveredInfo({