1.0.0 • Published 6 years ago

lucky-card v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

lucky-card

a react component using canvas of lucky-card

快速使用

npm install lucky-card

how to use it

import LuckyCard from 'lucky-card';
class Demo extends React.Component{
    callback=()=>{}
    render(){
        return(
            <LuckyCard callback={this.callback}/>
        )
    }
}

props

props namedescriptionexample value
cWidththe canvas width200(Number)
cHeightthe canvas height200(Number)
srcThe radius of a small circle drawn by a mouse5(Number)
coverImgthe img that draw on canvas
coverColorthe color of cover"#000"
ratioScale off the canvas0.8(Number)
1.0.0

6 years ago

0.0.0

7 years ago