koishi-plugin-chat-analyse 1.6.2 → 1.6.3

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.
Files changed (2) hide show
  1. package/lib/index.js +1 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -1784,7 +1784,7 @@ var Renderer = class {
1784
1784
  const relativeSize = relativeFontSizes[i];
1785
1785
  estimatedCurrentArea += Math.pow(relativeSize, 2) * wordText.length * 0.6;
1786
1786
  }
1787
- const scalingFactor = Math.sqrt(600 * 600 * 0.5 / Math.max(1, estimatedCurrentArea));
1787
+ const scalingFactor = Math.sqrt(1e3 * 2 / Math.max(1, estimatedCurrentArea));
1788
1788
  const wordList = words.map((word, i) => {
1789
1789
  let finalSize = relativeFontSizes[i] * scalingFactor;
1790
1790
  finalSize = Math.max(4, Math.min(128, finalSize));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-chat-analyse",
3
3
  "description": "强大而全面的聊天数据分析插件。支持多维度统计(命令、发言、消息类型、活跃度),可生成发言排行、词云图,并提供完善的数据管理。",
4
- "version": "1.6.2",
4
+ "version": "1.6.3",
5
5
  "contributors": [
6
6
  "Yis_Rime <yis_rime@outlook.com>"
7
7
  ],