From 106191c45a775a6325772d44fdee69dd597d5f1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luc=C3=A0s?= Date: Tue, 20 Jun 2023 22:10:41 +0200 Subject: [PATCH] Remove border to svg --- src/pages/widget/clock/index.astro | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pages/widget/clock/index.astro b/src/pages/widget/clock/index.astro index 2a1de30..7861168 100644 --- a/src/pages/widget/clock/index.astro +++ b/src/pages/widget/clock/index.astro @@ -42,14 +42,14 @@ const calculatePosition = (offset: number, angle: number) => { y: centerPoint.y + offset * Math.sin(angle), }; } -const secondsPosition = calculatePosition(100, (serverTime.getSeconds() + 45) * ((Math.PI * 2) / 60)) -const minutesPosition = calculatePosition(150, (serverTime.getMinutes() + 45) * ((Math.PI * 2) / 60)) -const hoursPosition = calculatePosition(200, (serverTime.getHours() + 18) * ((Math.PI * 2) / 24)) +const secondsPosition = calculatePosition(canvas.size / 5, (serverTime.getSeconds() + 45) * ((Math.PI * 2) / 60)) +const minutesPosition = calculatePosition(canvas.size / (3 + 1/3), (serverTime.getMinutes() + 45) * ((Math.PI * 2) / 60)) +const hoursPosition = calculatePosition(canvas.size / 2.5, (serverTime.getHours() + 18) * ((Math.PI * 2) / 24)) --- -
- +
+ {dials.map((circle) => )} {timeIndicators.map((line) => )}