mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 22:01:54 +02:00
Fix
This commit is contained in:
@@ -59,7 +59,7 @@ module.exports = class GruPlanCommand extends Command {
|
||||
for (const [x, y] of coord) {
|
||||
const step = steps[i];
|
||||
let fontSize = 50;
|
||||
while (ctx.measureText(step).width > 1500) {
|
||||
while (ctx.measureText(step).width > 1237) {
|
||||
fontSize -= 1;
|
||||
ctx.font = `${fontSize}px Noto`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user