fix(nds): remove all top baselines
This commit is contained in:
@@ -170,14 +170,13 @@ onRender((ctx) => {
|
||||
// value
|
||||
ctx.font = "39px NDS39";
|
||||
ctx.letterSpacing = "2px";
|
||||
ctx.textBaseline = "top";
|
||||
ctx.fillStyle = props.selected
|
||||
? APP_COLOR_TO_FONT_COLOR[app.color.hex]!
|
||||
: "#fbfbfb";
|
||||
ctx.fillText(
|
||||
value.value.toString().padStart(props.digits, "0"),
|
||||
props.x + (props.digits === 2 ? 3 : 4),
|
||||
Y + ARROW_IMAGE_HEIGHT + Math.floor((SQUARE_HEIGHT - 39) / 2),
|
||||
Y + ARROW_IMAGE_HEIGHT + Math.floor((SQUARE_HEIGHT - 39) / 2) + 39,
|
||||
);
|
||||
|
||||
// arrow down (clipped to area below the number square)
|
||||
@@ -205,7 +204,7 @@ onRender((ctx) => {
|
||||
ctx,
|
||||
props.title,
|
||||
props.x + 1,
|
||||
Y + ARROW_IMAGE_HEIGHT * 2 + SQUARE_HEIGHT + 3,
|
||||
Y + ARROW_IMAGE_HEIGHT * 2 + SQUARE_HEIGHT + 3 + 9,
|
||||
downImage.value.rect.width,
|
||||
);
|
||||
}, 10);
|
||||
|
||||
Reference in New Issue
Block a user