koishi-plugin-chat-analyse 1.5.8 → 1.6.0

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.
package/lib/index.js CHANGED
@@ -1771,7 +1771,7 @@ var Renderer = class {
1771
1771
  const maxWeight = Math.max(...weights, 1);
1772
1772
  const minWeight = Math.max(Math.min(...weights), 1);
1773
1773
  const wordCount = words.length;
1774
- let calculatedMaxFontSize = Math.round(2048 / Math.pow(wordCount, 0.66));
1774
+ let calculatedMaxFontSize = Math.round(2560 / Math.pow(wordCount, 0.66));
1775
1775
  let calculatedMinFontSize = Math.round(calculatedMaxFontSize / 6);
1776
1776
  const maxFontSize = Math.max(4, Math.min(128, calculatedMaxFontSize));
1777
1777
  const minFontSize = Math.max(4, Math.min(maxFontSize, calculatedMinFontSize));
@@ -2541,7 +2541,7 @@ var Config3 = import_koishi7.Schema.intersect([
2541
2541
  enableSimilarActivity: import_koishi7.Schema.boolean().default(true).description("启用相似活跃分析")
2542
2542
  }).description("高级分析配置"),
2543
2543
  import_koishi7.Schema.object({
2544
- MaxWords: import_koishi7.Schema.number().min(0).default(0).description("最大词量"),
2544
+ MaxWords: import_koishi7.Schema.number().min(0).default(256).description("最大词量"),
2545
2545
  ellipticity: import_koishi7.Schema.number().min(0).max(1).default(1).description("长宽比"),
2546
2546
  rotationSteps: import_koishi7.Schema.number().min(0).default(3).description("旋转步数"),
2547
2547
  minRotation: import_koishi7.Schema.number().min(-Math.PI).max(Math.PI).default(-Math.PI / 2).description("最小旋转角"),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-chat-analyse",
3
3
  "description": "强大而全面的聊天数据分析插件。支持多维度统计(命令、发言、消息类型、活跃度),可生成发言排行、词云图,并提供完善的数据管理。",
4
- "version": "1.5.8",
4
+ "version": "1.6.0",
5
5
  "contributors": [
6
6
  "Yis_Rime <yis_rime@outlook.com>"
7
7
  ],
package/readme.md CHANGED
@@ -168,6 +168,7 @@
168
168
  | `minRotation` | **最小旋转角**:单词随机旋转的最小角度(弧度)。 | `-1.570796` (-π/2) |
169
169
  | `maxRotation` | **最大旋转角**:单词随机旋转的最大角度(弧度)。 | `1.570796` (π/2) |
170
170
  | `rotationSteps`| **旋转步数**:旋转角度的选择方式。0表示随机,2表示只在最小/最大角度中二选一。 | `3` |
171
+ | `MaxWords`| **最大词量**:词云显示的最多词汇数量。 | `256` |
171
172
 
172
173
  ## 📌 注意事项
173
174