Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wordcloud

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wordcloud - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

2

package.json
{
"name": "wordcloud",
"version": "1.2.0",
"version": "1.2.1",
"description": "Tag cloud/Wordle presentation on 2D canvas or HTML",

@@ -5,0 +5,0 @@ "homepage": "http://timdream.org/wordcloud2.js/",

@@ -171,3 +171,3 @@ /*!

var timer;
var timer = {};
var WordCloud = function WordCloud (elements, options) {

@@ -178,2 +178,4 @@ if (!isSupported) {

var timerId = Math.floor(Math.random() * Date.now())
if (!Array.isArray(elements)) {

@@ -1152,3 +1154,2 @@ elements = [elements]

canvas.removeEventListener('wordcloudstart', stopInteraction)
canvas.removeEventListener('mousemove', wordcloudhover)

@@ -1184,12 +1185,12 @@ canvas.removeEventListener('click', wordcloudclick)

removeEventListener('wordcloudstart', anotherWordCloudStart)
stoppingFunction(timer)
stoppingFunction(timer[timerId])
}
addEventListener('wordcloudstart', anotherWordCloudStart)
timer = loopingFunction(function loop () {
timer[timerId] = loopingFunction(function loop () {
if (i >= settings.list.length) {
stoppingFunction(timer)
stoppingFunction(timer[timerId])
sendEvent('wordcloudstop', false)
removeEventListener('wordcloudstart', anotherWordCloudStart)
delete timer[timerId];
return

@@ -1204,3 +1205,3 @@ }

if (exceedTime() || canceled) {
stoppingFunction(timer)
stoppingFunction(timer[timerId])
settings.abort()

@@ -1210,6 +1211,7 @@ sendEvent('wordcloudabort', false)

removeEventListener('wordcloudstart', anotherWordCloudStart)
delete timer[timerId]
return
}
i++
timer = loopingFunction(loop, settings.wait)
timer[timerId] = loopingFunction(loop, settings.wait)
}, settings.wait)

@@ -1226,3 +1228,5 @@ }

if (timer) {
window.clearImmediate(timer)
for (const timerId in timer) {
window.clearImmediate(timer[timerId])
}
}

@@ -1229,0 +1233,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc