koishi-plugin-chat-analyse 1.1.4 → 1.2.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 +3 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1763,12 +1763,14 @@ var Renderer = class {
|
|
|
1763
1763
|
const palette = ${JSON.stringify(selectedPalette)};
|
|
1764
1764
|
WordCloud(document.getElementById('wordcloud-container'), {
|
|
1765
1765
|
list: ${wordListJson},
|
|
1766
|
-
fontFamily: '"Noto Sans CJK SC", "
|
|
1766
|
+
fontFamily: '"Noto Sans CJK SC", "Arial", sans-serif',
|
|
1767
1767
|
weightFactor: (size) => (Math.log(size) + 1) * ${weightFactor},
|
|
1768
1768
|
color: (word, weight, fontSize, distance, theta) => {
|
|
1769
1769
|
return palette[Math.floor(Math.random() * palette.length)];
|
|
1770
1770
|
},
|
|
1771
1771
|
backgroundColor: 'transparent',
|
|
1772
|
+
shape: 'square',
|
|
1773
|
+
ellipticity: 0.6,
|
|
1772
1774
|
gridSize: 8,
|
|
1773
1775
|
rotateRatio: 1,
|
|
1774
1776
|
minRotation: -Math.PI / 4,
|