You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
895 B

export type LSignatureToFileSuccess = {
tempFilePath: string
isEmpty: boolean
}
export type LSignatureToFileSuccessCallback = (res : LSignatureToFileSuccess) => void
export type LSignatureToFileFailCallback = (res : TakeSnapshotFail) => void
export type LSignatureToFileCompleteCallback = (res : any) => void
export type LSignatureToTempFilePathOptions = {
success?: LSignatureToFileSuccessCallback
fail?: LSignatureToFileFailCallback
complete?: LSignatureToFileCompleteCallback
format?: string
}
export type LSignatureOptions = {
penColor : string
// backgroundColor : string
openSmooth : boolean
disableScroll : boolean
disabled : boolean
penSize : number
minLineWidth : number
maxLineWidth : number
minSpeed : number
maxWidthDiffRate : number
maxHistoryLength : number
}
export type Point = {
x: number
y: number
c?: string
w?: number
}
export type Line = Point[]