便签文字左移2px

This commit is contained in:
2026-09-19 17:39:24 +08:00
parent 30e2f562bc
commit 847d361431
+1 -1
View File
@@ -116,7 +116,7 @@ function makeStickyNote(text, fontSize, selected = false) {
ctx.font = font;
ctx.textBaseline = 'middle';
ctx.textAlign = 'center';
ctx.fillText(text, ox + arrowW + bodyW / 2, oy + h / 2 + 1);
ctx.fillText(text, ox + arrowW + bodyW / 2 - 2, oy + h / 2 + 1);
return { canvas: c, scale: 1 / S, width: cw, height: ch, tipX: B, tipY: B + h / 2 };
}