koishi-plugin-chat-analyse 1.2.5 → 1.2.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.
- package/lib/index.js +2 -3
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1733,8 +1733,6 @@ var Renderer = class {
|
|
|
1733
1733
|
if (!words?.length) return;
|
|
1734
1734
|
const wordsJson = JSON.stringify(words);
|
|
1735
1735
|
const selectedPalette = this.COLOR_PALETTES[Math.floor(Math.random() * this.COLOR_PALETTES.length)];
|
|
1736
|
-
const shapes = ["circle", "cardioid", "diamond", "triangle-forward", "triangle", "pentagon", "star", "square"];
|
|
1737
|
-
const randomShape = shapes[Math.floor(Math.random() * shapes.length)];
|
|
1738
1736
|
const weights = words.map((w) => w[1]);
|
|
1739
1737
|
const maxWeight = Math.max(...weights, 1);
|
|
1740
1738
|
const minWeight = Math.min(...weights);
|
|
@@ -1762,7 +1760,8 @@ var Renderer = class {
|
|
|
1762
1760
|
return palette[Math.floor(Math.random() * palette.length)];
|
|
1763
1761
|
},
|
|
1764
1762
|
list: ${wordsJson},
|
|
1765
|
-
shape: '
|
|
1763
|
+
shape: 'square',
|
|
1764
|
+
gridSize: 1,
|
|
1766
1765
|
ellipticity: 1,
|
|
1767
1766
|
rotateRatio: 1,
|
|
1768
1767
|
minRotation: -Math.PI / 4,
|