更新路牌

This commit is contained in:
Hcat
2024-01-21 21:46:58 +08:00
parent afcc63aa17
commit 98b28eccbd
2 changed files with 3 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ export function StreetSignTag(text = "", param = "", width = 250, height = 150)
ctx.fillStyle = "#003BA8";
ctx.fillRect(0, 0, width, height);
ctx.fillStyle = "white";
ctx.font = "15px serif";
ctx.font = "20px serif";
ctx.fillText('隧道简称:' + text, (100 - text.length * 1) / 50, 40);
ctx.fillText('隧道长度:' + param + 'm', (100 - param.length * 1) / 50, 115);
ctx.strokeStyle = "white";