File tree Expand file tree Collapse file tree 1 file changed +14
-16
lines changed Expand file tree Collapse file tree 1 file changed +14
-16
lines changed Original file line number Diff line number Diff line change 1+ import * as React from 'react'
12
2- import * as React from 'react' ;
3-
4- // signature_pad's props
5- // (taken from https://github.com/szimek/signature_pad/blob/e2af461bca7ceb7cc5afb8349930908ca19f2f56/src/signature_pad.ts#L23)
3+ // signature_pad's props from https://github.com/szimek/signature_pad/blob/e2af461bca7ceb7cc5afb8349930908ca19f2f56/src/signature_pad.ts#L23
64export interface IOptions {
7- dotSize ?: number | ( ( ) => number ) ;
8- minWidth ?: number ;
9- maxWidth ?: number ;
10- minDistance ?: number ;
11- backgroundColor ?: string ;
12- penColor ?: string ;
13- throttle ?: number ;
14- velocityFilterWeight ?: number ;
15- onBegin ?: ( event : MouseEvent | Touch ) => void ;
16- onEnd ?: ( event : MouseEvent | Touch ) => void ;
5+ dotSize ?: number | ( ( ) => number ) ,
6+ minWidth ?: number ,
7+ maxWidth ?: number ,
8+ minDistance ?: number ,
9+ backgroundColor ?: string ,
10+ penColor ?: string ,
11+ throttle ?: number ,
12+ velocityFilterWeight ?: number ,
13+ onBegin ?: ( event : MouseEvent | Touch ) => void ,
14+ onEnd ?: ( event : MouseEvent | Touch ) => void ,
1715}
1816
1917// props specific to the React wrapper
2018export interface SignatureCanvasProps extends IOptions {
21- canvasProps ?: any ;
22- clearOnResize ?: boolean ;
19+ canvasProps ?: any ,
20+ clearOnResize ?: boolean
2321}
2422
2523export default class SignatureCanvas extends React . Component < SignatureCanvasProps > { }
You can’t perform that action at this time.
0 commit comments