koishi-plugin-ll-mc 3.0.4 → 3.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
package/lib/index.js CHANGED
@@ -1862,7 +1862,7 @@ ${targetUserRecord[0].username}
1862
1862
  let context = canvas.getContext('2d');
1863
1863
 
1864
1864
  // 根据最大计数的文本宽度动态调整画布宽度,以防数字溢出
1865
- context.font = \`30px "\${config.chartNicknameFont}", HarmonyOS_Sans_Medium, "Microsoft YaHei", "NotoEmoji", sans-serif\`;
1865
+ context.font = \`30px "\${config.chartNicknameFont}", HarmonyOS_Sans_Medium, "Microsoft YaHei", sans-serif, "NotoEmoji"\`;
1866
1866
  // 找到拥有最大发言数的条目,因为它的文本通常最长
1867
1867
  const maxCountData = rankingData.find(d => d.count === maxCount) || rankingData[0] || { count: 1, percentage: 0 };
1868
1868
  let maxCountText = maxCount.toString();
@@ -1950,7 +1950,7 @@ ${targetUserRecord[0].username}
1950
1950
 
1951
1951
  async function drawTextAndIcons(context, data, index, avgColor, barX, barY, barWidth, barHeight) {
1952
1952
  // 字体栈包含了用户选择的字体、插件内置字体和通用字体,以确保兼容性。
1953
- context.font = \`30px "\${config.chartNicknameFont}", HarmonyOS_Sans_Medium, "Microsoft YaHei", "NotoEmoji", sans-serif\`;
1953
+ context.font = \`30px "\${config.chartNicknameFont}", HarmonyOS_Sans_Medium, "Microsoft YaHei", sans-serif, "NotoEmoji"\`;
1954
1954
  const textY = barY + barHeight / 2 + 10.5;
1955
1955
 
1956
1956
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-ll-mc",
3
3
  "description": "消息数量统计插件(基于 koishi-plugin-message-counter 重做,官方QQ机器人兼容)",
4
- "version": "3.0.4",
4
+ "version": "3.0.6",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [