@pixelverse/strichjs-sdk 1.2.1 → 1.2.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.
- package/CHANGELOG.md +7 -0
- package/dist/strich.d.ts +10 -2
- package/dist/strich.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.2.2] - 2023-08-16
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Extended support for inverted codes to 1D barcodes. Setting `invertedCodes` to `true` will now also cause inverted 1D barcodes to be read.
|
|
8
|
+
- New helper method `StrichSDK.hasCameraDevice()` to check for the existence and availability of a camera device.
|
|
9
|
+
|
|
3
10
|
## [1.2.1] - 2023-07-28
|
|
4
11
|
|
|
5
12
|
### Added
|
package/dist/strich.d.ts
CHANGED
|
@@ -159,8 +159,7 @@ export interface EngineConfiguration {
|
|
|
159
159
|
*/
|
|
160
160
|
minScanlinesNeeded?: number;
|
|
161
161
|
/**
|
|
162
|
-
* Toggle recognition of inverted
|
|
163
|
-
* Currently, this is only supported for 2D codes.
|
|
162
|
+
* Toggle recognition of inverted barcodes (light print on dark background).
|
|
164
163
|
*
|
|
165
164
|
* @default false
|
|
166
165
|
*/
|
|
@@ -355,6 +354,15 @@ export class StrichSDK {
|
|
|
355
354
|
* @param lang ISO language code, e.g. 'en'
|
|
356
355
|
*/
|
|
357
356
|
static setLanguage(lang: string): void;
|
|
357
|
+
/**
|
|
358
|
+
* Check if the browser has access to a camera device, which is required for scanning barcodes.
|
|
359
|
+
* This can be used as a check if a BarcodeReader should be presented, or a fallback to a manual input method
|
|
360
|
+
* or error page should be displayed.
|
|
361
|
+
*
|
|
362
|
+
* @return A Promise that resolves to a boolean value indicating if a camera is available. The Promise will reject
|
|
363
|
+
* if the check fails for any reason (including missing/denied permissions).
|
|
364
|
+
*/
|
|
365
|
+
static hasCameraDevice(): Promise<boolean>;
|
|
358
366
|
}
|
|
359
367
|
/**
|
|
360
368
|
* A code detection reported by the STRICH SDK.
|