This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
The following commit(s) were added to refs/heads/master by this push:
new 1e473ff Fix up var declarations; uncover typo (ss => size)
1e473ff is described below
commit 1e473ff99b15a863f8ccaa5aa0a26820da2d6190
Author: Sebb <[email protected]>
AuthorDate: Thu Nov 18 01:24:05 2021 +0000
Fix up var declarations; uncover typo (ss => size)
---
webui/js/wordcloud.js | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/webui/js/wordcloud.js b/webui/js/wordcloud.js
index c220de3..9f99a38 100644
--- a/webui/js/wordcloud.js
+++ b/webui/js/wordcloud.js
@@ -70,7 +70,7 @@ async function wordCloud(hash, width, height, obj) {
textBox.setAttribute("font-size", "100px")
svg.appendChild(textBox)
- w = textBox.getBoundingClientRect();
+ let w = textBox.getBoundingClientRect();
for (let s = 100; s > 0; s-=5) {
@@ -87,11 +87,8 @@ async function wordCloud(hash, width, height, obj) {
let popped = false
// Try with random placement
- let w
-
-
- let textBox = makeWord(word, ss)
+ textBox = makeWord(word, size)
textBox.setAttribute("id", "svg_wc_" + word)
svg.appendChild(textBox)
if (!popped) {
@@ -159,7 +156,6 @@ async function wordCloud(hash, width, height, obj) {
break
}
psize = nsize
- ts++
}
}
document.body.removeChild(svg)