@twin.org/qr 0.0.1-next.2 → 0.0.1-next.20
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.
package/docs/changelog.md
CHANGED
|
@@ -22,11 +22,15 @@ Render the QR code data as a bitmap.
|
|
|
22
22
|
|
|
23
23
|
#### Parameters
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
##### cellData
|
|
26
|
+
|
|
27
|
+
[`QRCellData`](../type-aliases/QRCellData.md)
|
|
26
28
|
|
|
27
29
|
The cell data for the QR code.
|
|
28
30
|
|
|
29
|
-
|
|
31
|
+
##### options?
|
|
32
|
+
|
|
33
|
+
[`IBitmapRendererOptions`](../interfaces/IBitmapRendererOptions.md)
|
|
30
34
|
|
|
31
35
|
The options for rendering.
|
|
32
36
|
|
|
@@ -22,11 +22,15 @@ Render the QR code data as a bitmap.
|
|
|
22
22
|
|
|
23
23
|
#### Parameters
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
##### cellData
|
|
26
|
+
|
|
27
|
+
[`QRCellData`](../type-aliases/QRCellData.md)
|
|
26
28
|
|
|
27
29
|
The cell data for the QR code.
|
|
28
30
|
|
|
29
|
-
|
|
31
|
+
##### options?
|
|
32
|
+
|
|
33
|
+
[`IBitmapRendererOptions`](../interfaces/IBitmapRendererOptions.md)
|
|
30
34
|
|
|
31
35
|
The options for rendering.
|
|
32
36
|
|
|
@@ -13,11 +13,15 @@ Create a new instance of QR.
|
|
|
13
13
|
|
|
14
14
|
#### Parameters
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
##### typeNumber
|
|
17
|
+
|
|
18
|
+
`number` = `6`
|
|
17
19
|
|
|
18
20
|
0 to 40, 0 means autodetect.
|
|
19
21
|
|
|
20
|
-
|
|
22
|
+
##### errorCorrectLevel
|
|
23
|
+
|
|
24
|
+
[`ErrorCorrectLevel`](../type-aliases/ErrorCorrectLevel.md) = `ErrorCorrectLevel.L`
|
|
21
25
|
|
|
22
26
|
'L','M','Q','H'.
|
|
23
27
|
|
|
@@ -39,7 +43,9 @@ Add text data to the QR Code.
|
|
|
39
43
|
|
|
40
44
|
#### Parameters
|
|
41
45
|
|
|
42
|
-
|
|
46
|
+
##### qrData
|
|
47
|
+
|
|
48
|
+
`string`
|
|
43
49
|
|
|
44
50
|
The data to add.
|
|
45
51
|
|
|
@@ -57,7 +63,9 @@ Add number to the QR Code.
|
|
|
57
63
|
|
|
58
64
|
#### Parameters
|
|
59
65
|
|
|
60
|
-
|
|
66
|
+
##### qrData
|
|
67
|
+
|
|
68
|
+
`string`
|
|
61
69
|
|
|
62
70
|
The data to add.
|
|
63
71
|
|
|
@@ -75,7 +83,9 @@ Add alpha numeric to the QR Code.
|
|
|
75
83
|
|
|
76
84
|
#### Parameters
|
|
77
85
|
|
|
78
|
-
|
|
86
|
+
##### qrData
|
|
87
|
+
|
|
88
|
+
`string`
|
|
79
89
|
|
|
80
90
|
The data to add.
|
|
81
91
|
|
|
@@ -22,11 +22,15 @@ Render the QR code data as text.
|
|
|
22
22
|
|
|
23
23
|
#### Parameters
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
##### cellData
|
|
26
|
+
|
|
27
|
+
[`QRCellData`](../type-aliases/QRCellData.md)
|
|
26
28
|
|
|
27
29
|
The cell data for the QR code.
|
|
28
30
|
|
|
29
|
-
|
|
31
|
+
##### options?
|
|
32
|
+
|
|
33
|
+
[`ITextRendererOptions`](../interfaces/ITextRendererOptions.md)
|
|
30
34
|
|
|
31
35
|
The options for rendering.
|
|
32
36
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/qr",
|
|
3
|
-
"version": "0.0.1-next.
|
|
3
|
+
"version": "0.0.1-next.20",
|
|
4
4
|
"description": "Package for creating QR codes",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,37 +13,11 @@
|
|
|
13
13
|
"engines": {
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
|
-
"scripts": {
|
|
17
|
-
"clean": "rimraf dist coverage",
|
|
18
|
-
"build": "tspc",
|
|
19
|
-
"test": "vitest --run --config ./vitest.config.ts --no-cache",
|
|
20
|
-
"coverage": "vitest --run --coverage --config ./vitest.config.ts --no-cache",
|
|
21
|
-
"bundle:esm": "rollup --config rollup.config.mjs --environment MODULE:esm",
|
|
22
|
-
"bundle:cjs": "rollup --config rollup.config.mjs --environment MODULE:cjs",
|
|
23
|
-
"bundle": "npm run bundle:esm && npm run bundle:cjs",
|
|
24
|
-
"docs:clean": "rimraf docs/reference",
|
|
25
|
-
"docs:generate": "typedoc",
|
|
26
|
-
"docs": "npm run docs:clean && npm run docs:generate",
|
|
27
|
-
"dist": "npm run clean && npm run build && npm run test && npm run bundle && npm run docs"
|
|
28
|
-
},
|
|
29
16
|
"dependencies": {
|
|
30
|
-
"@twin.org/core": "0.0.1-next.
|
|
31
|
-
"@twin.org/image": "0.0.1-next.
|
|
17
|
+
"@twin.org/core": "0.0.1-next.20",
|
|
18
|
+
"@twin.org/image": "0.0.1-next.20",
|
|
32
19
|
"@twin.org/nameof": "next"
|
|
33
20
|
},
|
|
34
|
-
"devDependencies": {
|
|
35
|
-
"@twin.org/nameof-transformer": "next",
|
|
36
|
-
"@vitest/coverage-v8": "2.1.1",
|
|
37
|
-
"copyfiles": "2.4.1",
|
|
38
|
-
"rimraf": "6.0.1",
|
|
39
|
-
"rollup": "4.21.3",
|
|
40
|
-
"rollup-plugin-typescript2": "0.36.0",
|
|
41
|
-
"ts-patch": "3.2.1",
|
|
42
|
-
"typedoc": "0.26.7",
|
|
43
|
-
"typedoc-plugin-markdown": "4.2.7",
|
|
44
|
-
"typescript": "5.6.2",
|
|
45
|
-
"vitest": "2.1.1"
|
|
46
|
-
},
|
|
47
21
|
"main": "./dist/cjs/index.cjs",
|
|
48
22
|
"module": "./dist/esm/index.mjs",
|
|
49
23
|
"types": "./dist/types/index.d.ts",
|