fix: RPM unit label to 'rpm' matching displayed value

This commit is contained in:
2026-07-26 18:34:08 +08:00
parent 222b89e717
commit e97d6ee36f
+1 -1
View File
@@ -153,7 +153,7 @@ function draw(cur,max){
ctx.fillStyle='#fff';ctx.font=`200 ${Math.max(128,W/4.5)|0}px 'NEXT ART',sans-serif`;ctx.textAlign='center'; ctx.fillStyle='#fff';ctx.font=`200 ${Math.max(128,W/4.5)|0}px 'NEXT ART',sans-serif`;ctx.textAlign='center';
ctx.fillText(Math.round(cur).toLocaleString(),sx+160,sy-260); ctx.fillText(Math.round(cur).toLocaleString(),sx+160,sy-260);
ctx.fillStyle='rgba(255,255,255,.12)';ctx.font=`${Math.max(32,W/17)|0}px 'NEXT ART',sans-serif`; ctx.fillStyle='rgba(255,255,255,.12)';ctx.font=`${Math.max(32,W/17)|0}px 'NEXT ART',sans-serif`;
ctx.fillText('\u00d71000 rpm',sx+160,sy-180); ctx.fillText('rpm',sx+160,sy-180);
// redline // redline
ctx.strokeStyle='rgba(255,40,30,.1)';ctx.lineWidth=1;ctx.setLineDash([3,6]); ctx.strokeStyle='rgba(255,40,30,.1)';ctx.lineWidth=1;ctx.setLineDash([3,6]);