@pixelverse/strichjs-sdk 1.4.9 → 1.5.1
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 +38 -0
- package/dist/strich-noesm.js +13 -61
- package/dist/strich.d.ts +19 -16
- package/dist/strich.js +13 -61
- package/package.json +1 -1
package/dist/strich.d.ts
CHANGED
|
@@ -72,10 +72,6 @@ export declare interface CodeDetection {
|
|
|
72
72
|
* The type of detected code.
|
|
73
73
|
*/
|
|
74
74
|
typeName: string;
|
|
75
|
-
/**
|
|
76
|
-
* Supplemental data for this code.
|
|
77
|
-
*/
|
|
78
|
-
supplementalData: string | null;
|
|
79
75
|
/**
|
|
80
76
|
* The bounding rectangle in which the code was detected.
|
|
81
77
|
*
|
|
@@ -96,6 +92,10 @@ export declare interface CodeDetection {
|
|
|
96
92
|
* The raw contained bytes contained in the code.
|
|
97
93
|
*/
|
|
98
94
|
rawData: Uint8Array;
|
|
95
|
+
/**
|
|
96
|
+
* The ISO/IEC 15424 symbology identifier.
|
|
97
|
+
*/
|
|
98
|
+
symbologyIdentifier: string;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
/**
|
|
@@ -155,12 +155,6 @@ export declare interface EngineConfiguration {
|
|
|
155
155
|
* (all symbologies enabled - NOT RECOMMENDED)
|
|
156
156
|
*/
|
|
157
157
|
symbologies?: (SymbologyName | SymbologySpec)[];
|
|
158
|
-
/**
|
|
159
|
-
* The number of scanlines to run over a located barcode candidate.
|
|
160
|
-
*
|
|
161
|
-
* @defaultValue 10
|
|
162
|
-
*/
|
|
163
|
-
numScanlines?: number;
|
|
164
158
|
/**
|
|
165
159
|
* The number of scanlines that need to decoded successfully for a valid decode.
|
|
166
160
|
*
|
|
@@ -301,14 +295,14 @@ export declare interface LocatorConfiguration {
|
|
|
301
295
|
*/
|
|
302
296
|
chromaReject?: boolean;
|
|
303
297
|
/**
|
|
304
|
-
* The locator implementation to use.
|
|
305
|
-
* to target WebGL 1.
|
|
298
|
+
* The locator implementation to use.
|
|
306
299
|
*
|
|
307
|
-
* @remarks This is an advanced setting and should normally not be changed
|
|
308
|
-
*
|
|
300
|
+
* @remarks This is an advanced setting and should normally not be changed. It used to be possible to force WebGL 1,
|
|
301
|
+
* but starting with 1.5, WebGL1 is no longer supported. This property might be used in the future to switch to a
|
|
302
|
+
* WebGPU-powered locator.
|
|
309
303
|
* @defaultValue auto
|
|
310
304
|
*/
|
|
311
|
-
impl?: 'auto' | '
|
|
305
|
+
impl?: 'auto' | 'webgl2';
|
|
312
306
|
/**
|
|
313
307
|
* Disable asynchronous reads from GPU when using `webgl2` {@link LocatorConfiguration.impl}.
|
|
314
308
|
*
|
|
@@ -590,8 +584,10 @@ export declare class StrichSDK {
|
|
|
590
584
|
|
|
591
585
|
/**
|
|
592
586
|
* The supported symbologies.
|
|
587
|
+
*
|
|
588
|
+
* For more information, please visit https://docs.strich.io/supported-symbologies.html
|
|
593
589
|
*/
|
|
594
|
-
export declare type SymbologyName = 'ean13' | 'ean8' | '
|
|
590
|
+
export declare type SymbologyName = 'ean13' | 'ean8' | 'upca' | 'upce' | 'databar' | 'databar-exp' | 'code39' | 'code93' | 'code128' | 'i25' | 'codabar' | 'qr' | 'aztec' | 'datamatrix' | 'pdf417';
|
|
595
591
|
|
|
596
592
|
/**
|
|
597
593
|
* For variable-length symbologies, min/max length can be specified in addition to the symbology.
|
|
@@ -609,6 +605,13 @@ export declare type SymbologySpec = {
|
|
|
609
605
|
* The maximum length of the barcode, only has an effect for variable-length symbologies.
|
|
610
606
|
*/
|
|
611
607
|
maxLen?: number;
|
|
608
|
+
/**
|
|
609
|
+
* The minimum length of the leading and trailing quiet zone for this symbology, expressed as multiples of X.
|
|
610
|
+
*
|
|
611
|
+
* @remarks
|
|
612
|
+
* There is rarely a need to change the default.
|
|
613
|
+
*/
|
|
614
|
+
qz?: number;
|
|
612
615
|
};
|
|
613
616
|
|
|
614
617
|
export { }
|