forked from lindell/JsBarcode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jsbarcode.d.ts
54 lines (51 loc) · 1.74 KB
/
jsbarcode.d.ts
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
49
50
51
52
53
54
declare function JsBarcode(element: any): jsbarcode.api;
declare function JsBarcode(element: any, data: string, options?: jsbarcode.Options): void;
declare namespace jsbarcode {
interface Options {
width?: number,
height?: number,
format?: string,
displayValue?: boolean,
fontOptions?: string,
font?: string,
text?: string,
textAlign?: string,
textPosition?: string,
textMargin?: number,
fontSize?: number,
background?: string,
lineColor?: string,
margin?: number,
marginTop?: number,
marginBottom?: number,
marginLeft?: number,
marginRight?: number,
valid?: Function
}
interface api {
options(options: Options): api;
blank(size: number): api;
init(options?: Options): void;
render(): void;
CODE39(value: string, options?: Options): api;
CODE128(value: string, options?: Options): api;
CODE128A(value: string, options?: Options): api;
CODE128B(value: string, options?: Options): api;
CODE128C(value: string, options?: Options): api;
EAN13(value: string, options?: Options): api;
EAN8(value: string, options?: Options): api;
EAN5(value: string, options?: Options): api;
EAN2(value: string, options?: Options): api;
UPC(value: string, options?: Options): api;
ITF14(value: string, options?: Options): api;
ITF(value: string, options?: Options): api;
MSI(value: string, options?: Options): api;
MSI10(value: string, options?: Options): api;
MSI11(value: string, options?: Options): api;
MSI1010(value: string, options?: Options): api;
MSI1110(value: string, options?: Options): api;
pharmacode(value: string, options?: Options): api;
codabar(value: string, options?: Options): api;
}
}
export = JsBarcode;