Socket
Book a DemoInstallSign in
Socket

@blackywkl/vuewordcloud

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blackywkl/vuewordcloud

word cloud make by vue

1.1.4
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

wordcloud for Vue

A wordcloud component for Vue.

Install

npm install @blackywkl/vuewordcloud

Example

Edit @blackywkl/vuewordcloud

<template>
	<div id="app">
      <wordcloud v-bind:texts="texts"></wordcloud>
  </div>
</template>

<script>
import Wordcloud from '@blackywkl/vuewordcloud';

export default {
  	name: 'app',
  	components: {
    	Wordcloud
  	},
  	data() {
    	return {
      		defaultWords: [{
          		text: 'Cat',
          		size: 26
        	}, {
          		text: 'fish',
          		size: 19
        	}, {
          		text: 'things',
          		size: 18
        	}, {
          		text: 'look',
          		size: 16
        	}, {
          		text: 'two',
          		size: 15
        	}, {
        	    text: 'fun',
        	    size: 9
        	}, {
        	    text: 'know',
        	    size: 9
        	}, {
        	    text: 'good',
        	    size: 9
        	}, {
        	    text: 'play',
        	    size: 6
        	}]
    	}
  	}
}
</script>

Props

namemeaningtypedefault value
textsarray contain each textArray[]
widthwidth(px) for entire componentNumber400
heightheight(px) for entire componentNumber400
mouseStopstop the word when the mouse is hoverBooleanfalse

properties for each item in texts

namemeaningtypedefault value
textword to showStringtest
sizefont size for the wordNumberrandom
fontFamilyfont family for the wordStringMicrosoft YaHei
colorcolor for the wordStringrgb(200,200,200)

Todos

  • Add github page
  • Add online demo(codesandbox)
  • Add test
  • Add callback for click
  • Add attribute to avoid collision
  • Add attribute to controll speed

License

MIT.

Keywords

wordcloud

FAQs

Package last updated on 02 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.