@types/jsbarcode 3.11.0 → 3.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- jsbarcode/README.md +52 -1
- jsbarcode/index.d.ts +19 -19
- jsbarcode/package.json +4 -3
jsbarcode/README.md
CHANGED
|
@@ -6,9 +6,60 @@ This package contains type definitions for jsbarcode (https://github.com/lindell
|
|
|
6
6
|
|
|
7
7
|
# Details
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsbarcode.
|
|
9
|
+
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsbarcode/index.d.ts)
|
|
10
|
+
````ts
|
|
11
|
+
// Type definitions for jsbarcode 3.11
|
|
12
|
+
// Project: https://github.com/lindell/JsBarcode
|
|
13
|
+
// Definitions by: Domien Bakker <https://github.com/domienbakker>
|
|
14
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
15
|
+
|
|
16
|
+
/// <reference types="node" />
|
|
17
|
+
|
|
18
|
+
declare namespace JsBarcode {
|
|
19
|
+
function getModule(name: string): () => void;
|
|
20
|
+
interface JsBarcodeOptions {
|
|
21
|
+
format: string;
|
|
22
|
+
width?: number | undefined;
|
|
23
|
+
height?: number | undefined;
|
|
24
|
+
displayValue?: boolean | undefined;
|
|
25
|
+
text?: string | undefined;
|
|
26
|
+
fontOptions?: string | undefined;
|
|
27
|
+
font?: string | undefined;
|
|
28
|
+
textAlign?: string | undefined;
|
|
29
|
+
textPosition?: string | undefined;
|
|
30
|
+
textMargin?: number | undefined;
|
|
31
|
+
fontSize?: number | undefined;
|
|
32
|
+
background?: string | undefined;
|
|
33
|
+
lineColor?: string | undefined;
|
|
34
|
+
margin?: number | undefined;
|
|
35
|
+
marginTop?: number | undefined;
|
|
36
|
+
marginBottom?: number | undefined;
|
|
37
|
+
marginLeft?: number | undefined;
|
|
38
|
+
marginRight?: number | undefined;
|
|
39
|
+
flat?: boolean | undefined;
|
|
40
|
+
valid?(valid: boolean): void;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The Browser version of the library's functionality, which makes use of an HTMLCanvasElement, HTMLImageElement or SVGElement
|
|
46
|
+
* for rendering.
|
|
47
|
+
* @param svg ID string or HTML element of the target to render within.
|
|
48
|
+
* @param barcodeText Text to be rendered.
|
|
49
|
+
* @param barcodeOptions Options used for rendering.
|
|
50
|
+
*/
|
|
51
|
+
declare function JsBarcode(
|
|
52
|
+
svg: string | HTMLCanvasElement | HTMLImageElement | SVGElement,
|
|
53
|
+
barcodeText: string,
|
|
54
|
+
barcodeOptions?: JsBarcode.JsBarcodeOptions,
|
|
55
|
+
): void;
|
|
56
|
+
|
|
57
|
+
export = JsBarcode;
|
|
58
|
+
|
|
59
|
+
````
|
|
9
60
|
|
|
10
61
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
62
|
+
* Last updated: Fri, 15 Sep 2023 20:36:37 GMT
|
|
12
63
|
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
|
|
13
64
|
* Global values: none
|
|
14
65
|
|
jsbarcode/index.d.ts
CHANGED
|
@@ -9,24 +9,24 @@ declare namespace JsBarcode {
|
|
|
9
9
|
function getModule(name: string): () => void;
|
|
10
10
|
interface JsBarcodeOptions {
|
|
11
11
|
format: string;
|
|
12
|
-
width?: number;
|
|
13
|
-
height?: number;
|
|
14
|
-
displayValue?: boolean;
|
|
15
|
-
text?: string;
|
|
16
|
-
fontOptions?: string;
|
|
17
|
-
font?: string;
|
|
18
|
-
textAlign?: string;
|
|
19
|
-
textPosition?: string;
|
|
20
|
-
textMargin?: number;
|
|
21
|
-
fontSize?: number;
|
|
22
|
-
background?: string;
|
|
23
|
-
lineColor?: string;
|
|
24
|
-
margin?: number;
|
|
25
|
-
marginTop?: number;
|
|
26
|
-
marginBottom?: number;
|
|
27
|
-
marginLeft?: number;
|
|
28
|
-
marginRight?: number;
|
|
29
|
-
flat?: boolean;
|
|
12
|
+
width?: number | undefined;
|
|
13
|
+
height?: number | undefined;
|
|
14
|
+
displayValue?: boolean | undefined;
|
|
15
|
+
text?: string | undefined;
|
|
16
|
+
fontOptions?: string | undefined;
|
|
17
|
+
font?: string | undefined;
|
|
18
|
+
textAlign?: string | undefined;
|
|
19
|
+
textPosition?: string | undefined;
|
|
20
|
+
textMargin?: number | undefined;
|
|
21
|
+
fontSize?: number | undefined;
|
|
22
|
+
background?: string | undefined;
|
|
23
|
+
lineColor?: string | undefined;
|
|
24
|
+
margin?: number | undefined;
|
|
25
|
+
marginTop?: number | undefined;
|
|
26
|
+
marginBottom?: number | undefined;
|
|
27
|
+
marginLeft?: number | undefined;
|
|
28
|
+
marginRight?: number | undefined;
|
|
29
|
+
flat?: boolean | undefined;
|
|
30
30
|
valid?(valid: boolean): void;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -41,7 +41,7 @@ declare namespace JsBarcode {
|
|
|
41
41
|
declare function JsBarcode(
|
|
42
42
|
svg: string | HTMLCanvasElement | HTMLImageElement | SVGElement,
|
|
43
43
|
barcodeText: string,
|
|
44
|
-
barcodeOptions?: JsBarcode.JsBarcodeOptions
|
|
44
|
+
barcodeOptions?: JsBarcode.JsBarcodeOptions,
|
|
45
45
|
): void;
|
|
46
46
|
|
|
47
47
|
export = JsBarcode;
|
jsbarcode/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/jsbarcode",
|
|
3
|
-
"version": "3.11.
|
|
3
|
+
"version": "3.11.2",
|
|
4
4
|
"description": "TypeScript definitions for jsbarcode",
|
|
5
|
+
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsbarcode",
|
|
5
6
|
"license": "MIT",
|
|
6
7
|
"contributors": [
|
|
7
8
|
{
|
|
@@ -21,6 +22,6 @@
|
|
|
21
22
|
"dependencies": {
|
|
22
23
|
"@types/node": "*"
|
|
23
24
|
},
|
|
24
|
-
"typesPublisherContentHash": "
|
|
25
|
-
"typeScriptVersion": "
|
|
25
|
+
"typesPublisherContentHash": "218756eb3d15b56f81765757c07149a806837654953c8513f68c3da92c4584a1",
|
|
26
|
+
"typeScriptVersion": "4.5"
|
|
26
27
|
}
|