web
9 小时以前 49fa0d82a40345342966e810b44429aec0480ef3
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
38
39
40
41
42
43
44
45
46
47
48
// @ts-nocheck
export type ImageSettings = {
    width: number
    height: number
    x?: number
    y?: number
    excavate: boolean
}
export type QRCodePropsTypes = {
    value?: string
    size?: number
    fgColor?: string
    level?: string
    marginSize: number
    includeMargin: boolean
    imageSettings?: ImageSettings
}
 
export type QRCodeCallback = (cells : boolean[][]) => void
 
export type Excavation = {
    x: number
    y: number
    h: number
    w: number
}
 
 
 
 
 
/**
 * 成功回调函数定义
 */
export type TakeSnapshotSuccessCallback = (res: TakeSnapshotSuccess) => void
/**
 * 失败回调函数定义
 */
export type TakeSnapshotFailCallback = (res: TakeSnapshotFail) => void
/**
 * 完成回调函数定义
 */
export type TakeSnapshotCompleteCallback = (res: any) => void
 
 
export type LQrcodeFailCallback = TakeSnapshotFailCallback
export type LQrcodeCompleteCallback = TakeSnapshotCompleteCallback
export type LQrcodeSuccessCallback  = TakeSnapshotSuccessCallback