feat: 优化

This commit is contained in:
2025-07-01 17:18:39 +08:00
parent 6d38a17652
commit 26af95b604
4 changed files with 55 additions and 17 deletions
+3
View File
@@ -87,6 +87,7 @@ class TextDrawService {
this.characters = list.map((item) => item.word || '日');
this.clear();
this.setPaper();
// @ts-ignore
if (CHANNEL !== 'miniHeader') {
this.drawHeader();
} else {
@@ -232,6 +233,7 @@ class TextDrawService {
);
});
// @ts-ignore
this.currentY = CHANNEL === 'miniHeader' ? 522 : 612; // 计算分割线的Y坐标,距离示例图20px
this.drawLine(this.currentY);
}
@@ -241,6 +243,7 @@ class TextDrawService {
if (characters.length <= 0) return;
const len = characters.length;
// @ts-ignore
const rows = CHANNEL === 'miniHeader' ? 9 : 8;
const radius = 80;
const fontSize = 72;