New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

wywordcloud

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wywordcloud - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

2

package.json
{
"name": "wywordcloud",
"version": "0.0.5",
"version": "0.0.6",
"description": "wy word cloud dp",

@@ -5,0 +5,0 @@ "main": "src/main.js",

@@ -6,4 +6,5 @@ ## 说明

* 类似nuxtjs 工程中 引用图片 用 require 不然路径会用问题 例如:imageShape: require('~/static/womanIcon.png')
* 不是黑色的背景 用 imageShapeColor , 需要imageShapeColor 和 imageShape 形状一样, imageShape 必传(需要背景的情况)
## Installation

@@ -79,2 +80,3 @@

imageShape: 'https://example.com/images/shape.png', // 提供一张图片,根据其形状进行词云渲染,默认为null
imageShapeColor: 'https://example.com/images/shape.png', // 提供一张图片,根据其形状进行词云渲染,不是黑色的背景
fontSizeFactor: 0.1, // 当词云值相差太大,可设置此值进字体行大小微调,默认0.1

@@ -81,0 +83,0 @@ maxFontSize: 60, // 最大fontSize,用来控制weightFactor,默认60

@@ -315,3 +315,3 @@ var WordCloud = require('./wordcloud2')

console.log(option.imageShape, ' options.imageShape');
img.src = option.imageShape;
img.src = option.imageShapeColor || option.imageShape;
}

@@ -318,0 +318,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