boe-sketch-ruler
v1.1.1
Published
A sketch like ruler in javascript
Downloads
4
Readme
mb-sketch-ruler
A sketch like ruler in javascript
Live Demo
Install
npm install --save mb-sketch-ruler
Usage
import React, { PureComponent } from 'react'
import ReactRuler from 'mb-sketch-ruler'
class Example extends PureComponent {
render () {
return (
<ReactRuler
thick={thick}
scale={scale}
width={582}
height={482}
startX={startX}
startY={startY}
shadow={shadow}
horLineArr={h}
verLineArr={v}
handleLine={this.handleLine}
cornerActive={true}
onCornerClick={this.handleCornerClick}
/>
)
}
}
License
MIT © MockingBot
###© 2016 MockingBot