fix: 文本框的配置问题

This commit is contained in:
AncTe committed 2025-09-28 16:01:09 +08:00
1 parent 71c88369e1
commit 5bdd41159b
8 files changed
+91 -33

No files matched your search

+1
View File
@@ -52,6 +52,7 @@ export class Text extends RenderItem<ETextEvent> {
ctx.strokeStyle = this.strokeStyle ?? 'transparent';
ctx.font = this.font.string();
ctx.lineWidth = this.strokeWidth;
ctx.lineJoin = 'round';
if (this.strokeStyle) {
ctx.strokeText(this.text, stroke, this.descent + stroke + SAFE_PAD);