便签文字左移2px
This commit is contained in:
@@ -116,7 +116,7 @@ function makeStickyNote(text, fontSize, selected = false) {
|
|||||||
ctx.font = font;
|
ctx.font = font;
|
||||||
ctx.textBaseline = 'middle';
|
ctx.textBaseline = 'middle';
|
||||||
ctx.textAlign = 'center';
|
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 };
|
return { canvas: c, scale: 1 / S, width: cw, height: ch, tipX: B, tipY: B + h / 2 };
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user