Socket
Socket
Sign inDemoInstall

word-cloud-react

Package Overview
Dependencies
0
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.1 to 0.1.2

2

dist/WordCloud/WordCloudComponent.js

@@ -38,3 +38,3 @@ import _classCallCheck from "/Users/sazzadsazib/Desktop/Work/Front-end/PackageBuild/word-cloud-react/node_modules/@babel/runtime/helpers/esm/classCallCheck";

color: _this.props.color[Math.floor(Math.random() * 100) % _this.props.color.length],
fontSize: item.value > 10000 ? '100px' : item.value > 9000 ? '95px' : item.value > 7000 ? '90px' : item.value > 5000 ? '85px' : item.value > 3000 ? '80px' : item.value > 2000 ? '75px' : item.value > 1000 ? '70px' : item.value > 800 ? '65px' : item.value > 500 ? '60px' : item.value > 400 ? '55px' : item.value > 300 ? '50px' : item.value > 200 ? '45px' : item.value > 100 ? '40px' : item.value > 90 ? '35px' : item.value > 80 ? '30px' : item.value > 70 ? '28px' : item.value > 60 ? '26px' : item.value > 50 ? '24px' : item.value > 30 ? '22px' : item.value > 20 ? '20px' : item.value > 10 ? '18px' : "16px"
fontSize: '' + Math.round(Math.log(item.value) * 1.2) + 'vmin'
}

@@ -41,0 +41,0 @@ }, React.createElement("div", {

{
"name": "word-cloud-react",
"version": "0.1.1",
"version": "0.1.2",
"dependencies": {},

@@ -5,0 +5,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc