From 0762a4da7a83b044b6bcde39587a9c8c62257328 Mon Sep 17 00:00:00 2001 From: evlist Date: Sun, 9 Oct 2022 11:29:43 +0200 Subject: [PATCH] Reticle (improved) --- src/components/map/Reticle.tsx | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/src/components/map/Reticle.tsx b/src/components/map/Reticle.tsx index 573cafc..aaf380b 100644 --- a/src/components/map/Reticle.tsx +++ b/src/components/map/Reticle.tsx @@ -69,7 +69,7 @@ const Reticle: React.FC<{}> = () => { = () => { strokeWidth={0.5} /> - = () => { ) .join(' ')} /> - `M ${center.x + i * unitPxStep},${center.y - 20} v 40`) .join(' ')} strokeWidth={0.5} /> - - - - - {`${radiusUnitValue} ${radiusUnit}`} + + {`${radiusUnitValue * nbUnits} ${radiusUnit}`} );