style: increase gap between RPM number and unit label

This commit is contained in:
2026-07-25 17:58:47 +08:00
parent acc698c1cb
commit 4ff874bd97
+2 -2
View File
@@ -151,9 +151,9 @@ function draw(cur,max){
// RPM number
ctx.fillStyle='#fff';ctx.font=`200 ${Math.max(64,W/9)|0}px 'NEXT ART',sans-serif`;ctx.textAlign='center';
ctx.fillText(Math.round(cur).toLocaleString(),sx,sy-180);
ctx.fillText(Math.round(cur).toLocaleString(),sx,sy-190);
ctx.fillStyle='rgba(255,255,255,.12)';ctx.font=`${Math.max(16,W/34)|0}px 'NEXT ART',sans-serif`;
ctx.fillText('\u00d71000 rpm',sx,sy-155);
ctx.fillText('\u00d71000 rpm',sx,sy-150);
// redline
ctx.strokeStyle='rgba(255,40,30,.1)';ctx.lineWidth=1;ctx.setLineDash([3,6]);