@pixelverse/strichjs-sdk 1.1.1 → 1.1.3
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/CHANGELOG.md +17 -0
- package/dist/strich.d.ts +18 -1
- package/dist/strich.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.1.3] - 2023-06-07
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Configurable min/max length for variable-length symbologies. Instead of just the name, specify an object with `name`, `minLen` and/or `maxLen` in the `symbologies` array. Example: `symbologies: ['ean13', { name: 'code128', minLen: 8, maxLen: 12 }]`
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- Removed a stray console output statement that was meant for debugging purposes only.
|
|
12
|
+
|
|
13
|
+
## [1.1.2] - 2023-06-06
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- Improved error handling when encountering `OverconstrainedError`, especially on Firefox desktop. Special thanks to
|
|
18
|
+
Jukka Aittokallio for reporting the issue.
|
|
19
|
+
|
|
3
20
|
## [1.1.1] - 2023-05-22
|
|
4
21
|
|
|
5
22
|
### Added
|
package/dist/strich.d.ts
CHANGED
|
@@ -83,6 +83,23 @@ export interface LocatorConfiguration {
|
|
|
83
83
|
* The supported symbologies.
|
|
84
84
|
*/
|
|
85
85
|
export type SymbologyName = 'ean13' | 'ean8' | 'ean5' | 'ean2' | 'upca' | 'upce' | 'databar' | 'databar-exp' | 'code39' | 'code93' | 'code128' | 'i25' | 'codabar' | 'qr' | 'aztec' | 'datamatrix';
|
|
86
|
+
/**
|
|
87
|
+
* For variable-length symbologies, min/max length can be specified in addition to the symbology.
|
|
88
|
+
*/
|
|
89
|
+
export type SymbologySpec = {
|
|
90
|
+
/**
|
|
91
|
+
* The name of the symbology.
|
|
92
|
+
*/
|
|
93
|
+
name: SymbologyName;
|
|
94
|
+
/**
|
|
95
|
+
* The minimum length of the barcode, only has an effect for variable-length symbologies.
|
|
96
|
+
*/
|
|
97
|
+
minLen?: number;
|
|
98
|
+
/**
|
|
99
|
+
* The maximum length of the barcode, only has an effect for variable-length symbologies.
|
|
100
|
+
*/
|
|
101
|
+
maxLen?: number;
|
|
102
|
+
};
|
|
86
103
|
/**
|
|
87
104
|
* Engine configuration
|
|
88
105
|
*/
|
|
@@ -97,7 +114,7 @@ export interface EngineConfiguration {
|
|
|
97
114
|
*
|
|
98
115
|
* @default undefined (all symbologies enabled - NOT RECOMMENDED)
|
|
99
116
|
*/
|
|
100
|
-
symbologies?: SymbologyName[];
|
|
117
|
+
symbologies?: (SymbologyName | SymbologySpec)[];
|
|
101
118
|
/**
|
|
102
119
|
* The number of scanlines to run over a located barcode candidate.
|
|
103
120
|
*
|