mb-sketch-ruler
v1.2.0-dev.11
Published
A sketch like ruler in javascript
Downloads
22
Keywords
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}
// 右键菜单props
isOpenMenuFeature={true}
handleShowRuler={this.handleShowRuler}
isShowReferLine={isShowReferLine}
handleShowReferLine={this.handleShowReferLine}
/>
)
}
}
License
MIT © MockingBot
###© 2016 MockingBot