shivs-angular5-painter ======================
npm install shivs-angular5-paintershivs-angular5-painter
======================
Angular5 component to paint on a canvas on desktop or touch devices
2018-08-07bash
npm install shivs-angular5-painter --save
`Usage
* Add PainterLibraryModule in your app.module.ts
`javascript
import {PainterLibraryModule} from 'shivs-angular5-painter';@NgModule({
...
imports: [PainterLibraryModule]
})
`
`html
(undoLength)="onUndoLengthChanged($event)" (redoLength)="onRedoLengthChanged($event)"
(isEmpty)="onIsEmptyChanged($event)">
`##### Options
`javascript
{
clipBounds: { x: 0, y: 0, width: 0, height: 0 } //Set a region that can be drawn on
canvasWidth: 600, //px
canvasHeight: 600, //px
color: '#000',
lineWidth: 10, //px
cacheSize: 10 // boolean or a number of versions to keep in memory
}
``