From aedbcced5813d7fd9ab9078077543982dd1c9fcd Mon Sep 17 00:00:00 2001 From: AskaEth Date: Sat, 25 Jul 2026 17:24:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20arc=20direction=20-=20use=20clockwise=20?= =?UTF-8?q?for=2090=C2=B0=20short=20arc=20(=E2=95=AD=20shape)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dashboards/forza_composite/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboards/forza_composite/index.html b/dashboards/forza_composite/index.html index f30c254..873a945 100644 --- a/dashboards/forza_composite/index.html +++ b/dashboards/forza_composite/index.html @@ -95,7 +95,7 @@ function draw(cur,max){ // background stroke ctx.beginPath(); - ctx.arc(sx,sy,sr,d2r(As),d2r(Ae),true); + ctx.arc(sx,sy,sr,d2r(As),d2r(Ae),false); ctx.lineTo(lx,ey); ctx.strokeStyle='rgba(255,255,255,.04)'; ctx.lineWidth=gw;ctx.lineCap='round';ctx.lineJoin='round'; @@ -109,7 +109,7 @@ function draw(cur,max){ if(pd<=arcLen){ ctx.arc(sx,sy,sr,d2r(As),d2r(As+(Ae-As)*(pd/arcLen)),true); }else{ - ctx.arc(sx,sy,sr,d2r(As),d2r(Ae),true); + ctx.arc(sx,sy,sr,d2r(As),d2r(Ae),false); ctx.lineTo(ex+(pd-arcLen)/lineLen*(lx-ex),ey); } ctx.strokeStyle=cur>=rl?'rgba(255,50,35,.95)':'rgba(255,255,255,.85)';