feat: 优化
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user