0.2.2 • Published 5 years ago

react3dtagcloud v0.2.2

Weekly downloads
7
License
MIT
Repository
github
Last release
5 years ago

3DTagCloud

npm.io npm.io npm.io npm.io npm.io

基于 react 的 3d 标签云, 在线 demo

Installation

npm install react3dtagcloud --save

Usage

import React from 'react'
import TagCloud from 'react3dtagcloud'

class Demo extends React.Component {
  render() {
    const tagName = ['java', 'javscript', 'C', 'C++', '前端', 'React', 'Vue', 'redux', '写作', '程序员', '编程']
	  return (
		<div style={{ width: '1000px', height: '1000px' }}>
		  <TagCloud tagName={tagName}></TagCloud>
		</div>
	  )
   }
}

API

对于标签云可以设置一些自定义属性,具体如下:

属性说明类型默认值
tagName标签数组Array<string>[]
speed球体旋转速度number10
radius球的半径number200
url前缀urlstring''

License

MIT

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago