3.0.3 • Published 6 years ago

the-sketch v3.0.3

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

the-sketch

Build Status npm Version JS Standard

Hand writing of the-component

Installation

$ npm install the-sketch --save

Usage

'use strict'

import React from 'react'
import { TheSketch, TheSketchStyle } from 'the-sketch'

class ExampleComponent extends React.PureComponent {
  render () {
    return (
      <div>
        <TheSketchStyle/>
        <TheSketch/>
        <hr/>
        <TheSketch width={'25vw'}
                   height={'100px'}
                   penColor={'#38E'}
                   backgroundColor={'rgba(255,255,255,0.8)'}
        />
      </div>

    )
  }
}

export default ExampleComponent

Components

TheSketch

Hand writing of the-component

Props

NameTypeDescriptionDefault
heightunion150
lineWidthnumber3
onBeginfunc
onEndfunc
onPadfuncnull
widthunion150
backgroundColor'#FFF'
penColor'#555'

TheSketchStyle

Style for TheSketch

Props

NameTypeDescriptionDefault
optionsobjectStyle options{}

License

This software is released under the MIT License.

Links

3.0.3

6 years ago

3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.0.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago