index.uts
895 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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[]