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