mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 06:10:49 +02:00
Fix
This commit is contained in:
@@ -109,49 +109,49 @@ module.exports = class TweetCommand extends Command {
|
||||
ctx.fillStyle = '#71767b';
|
||||
ctx.fillText('Views', 18 + timeLen + 6 + viewsLen + 6, base2StartY + 12);
|
||||
ctx.font = this.client.fonts.get('Noto-Regular.ttf').toCanvasString(16);
|
||||
ctx.fillText(formatNumberK(replies), 64, base2StartY + 150);
|
||||
ctx.fillText(formatNumberK(likes), 415, base2StartY + 150);
|
||||
ctx.fillText(formatNumberK(retweets + quotTweets), 242, base2StartY + 150);
|
||||
ctx.fillText(formatNumberK(bookmarks), 588, base2StartY + 150);
|
||||
ctx.fillText(formatNumberK(replies), 64, base2StartY + 140);
|
||||
ctx.fillText(formatNumberK(likes), 415, base2StartY + 140);
|
||||
ctx.fillText(formatNumberK(retweets + quotTweets), 242, base2StartY + 140);
|
||||
ctx.fillText(formatNumberK(bookmarks), 588, base2StartY + 140);
|
||||
let currentLen = 17;
|
||||
ctx.fillStyle = 'white';
|
||||
ctx.font = this.client.fonts.get('Noto-Bold.ttf').toCanvasString(18);
|
||||
ctx.fillText(formatNumberK(retweets), currentLen, base2StartY + 67);
|
||||
ctx.fillText(formatNumberK(retweets), currentLen, base2StartY + 75);
|
||||
currentLen += ctx.measureText(formatNumberK(retweets)).width;
|
||||
currentLen += 5;
|
||||
ctx.fillStyle = '#71767b';
|
||||
ctx.font = this.client.fonts.get('Noto-Regular.ttf').toCanvasString(18);
|
||||
ctx.fillText('Reposts', currentLen, base2StartY + 67);
|
||||
ctx.fillText('Reposts', currentLen, base2StartY + 75);
|
||||
currentLen += ctx.measureText('Reposts').width;
|
||||
currentLen += 10;
|
||||
ctx.fillStyle = 'white';
|
||||
ctx.font = this.client.fonts.get('Noto-Bold.ttf').toCanvasString(18);
|
||||
ctx.fillText(formatNumberK(quotTweets), currentLen, base2StartY + 67);
|
||||
ctx.fillText(formatNumberK(quotTweets), currentLen, base2StartY + 75);
|
||||
currentLen += ctx.measureText(formatNumberK(quotTweets)).width;
|
||||
currentLen += 5;
|
||||
ctx.fillStyle = '#71767b';
|
||||
ctx.font = this.client.fonts.get('Noto-Regular.ttf').toCanvasString(18);
|
||||
ctx.fillText('Quotes', currentLen, base2StartY + 67);
|
||||
ctx.fillText('Quotes', currentLen, base2StartY + 75);
|
||||
currentLen += ctx.measureText('Quotes').width;
|
||||
currentLen += 10;
|
||||
ctx.fillStyle = 'white';
|
||||
ctx.font = this.client.fonts.get('Noto-Bold.ttf').toCanvasString(18);
|
||||
ctx.fillText(formatNumberK(likes), currentLen, base2StartY + 67);
|
||||
ctx.fillText(formatNumberK(likes), currentLen, base2StartY + 75);
|
||||
currentLen += ctx.measureText(formatNumberK(likes)).width;
|
||||
currentLen += 5;
|
||||
ctx.fillStyle = '#71767b';
|
||||
ctx.font = this.client.fonts.get('Noto-Regular.ttf').toCanvasString(18);
|
||||
ctx.fillText('Likes', currentLen, base2StartY + 67);
|
||||
ctx.fillText('Likes', currentLen, base2StartY + 75);
|
||||
currentLen += ctx.measureText('Likes').width;
|
||||
currentLen += 10;
|
||||
ctx.fillStyle = 'white';
|
||||
ctx.font = this.client.fonts.get('Noto-Bold.ttf').toCanvasString(18);
|
||||
ctx.fillText(formatNumberK(bookmarks), currentLen, base2StartY + 67);
|
||||
ctx.fillText(formatNumberK(bookmarks), currentLen, base2StartY + 75);
|
||||
currentLen += ctx.measureText(formatNumberK(bookmarks)).width;
|
||||
currentLen += 5;
|
||||
ctx.fillStyle = '#71767b';
|
||||
ctx.font = this.client.fonts.get('Noto-Regular.ttf').toCanvasString(18);
|
||||
ctx.fillText('Bookmarks', currentLen, base2StartY + 67);
|
||||
ctx.fillText('Bookmarks', currentLen, base2StartY + 75);
|
||||
ctx.beginPath();
|
||||
ctx.arc(17 + 26, 84 + 26, 26, 0, Math.PI * 2);
|
||||
ctx.closePath();
|
||||
|
||||
Reference in New Issue
Block a user