@pixelverse/strichjs-sdk 1.1.4 → 1.2.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 +20 -0
- package/dist/strich.d.ts +20 -2
- package/dist/strich.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.2.1] - 2023-07-28
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Raw code data is now exposed through the `rawData` property of the `CodeDetection`.
|
|
8
|
+
|
|
9
|
+
## [1.2.0] - 2023-07-12
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- The GPU-accelerated barcode locator is now based on WebGL 2, which is widely supported by now. If you are for some reason required to use WebGL 1, set the new `impl` field on the locator configuration to `webgl1`. WebGL 2 supports asynchronous reads which we use to decrease the load on the main thread. Some older Safari versions have reported issues using the asynchronous reads, which is why for the moment we have disabled asynchronous reads on iOS. This will likely change in the future.
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- Fixed a rare engine crash that resulted from incorrect error handling.
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- Changed the default values for `hysteresisMinCount` to `2` and `hysteresisInterval` to `350`. The previous defaults were causing EAN/UPC codes to be unreadable on low-end Android devices.
|
|
22
|
+
|
|
3
23
|
## [1.1.4] - 2023-06-26
|
|
4
24
|
|
|
5
25
|
### Added
|
package/dist/strich.d.ts
CHANGED
|
@@ -89,6 +89,20 @@ export interface LocatorConfiguration {
|
|
|
89
89
|
* @default false
|
|
90
90
|
*/
|
|
91
91
|
chromaReject?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* The locator implementation to use. This should normally not be changed, unless it is specifically required
|
|
94
|
+
* to target WebGL 1.
|
|
95
|
+
*
|
|
96
|
+
* @default 'auto'
|
|
97
|
+
*/
|
|
98
|
+
impl?: 'auto' | 'webgl1' | 'webgl2';
|
|
99
|
+
/**
|
|
100
|
+
* An advanced option for disabling asynchronous reads from GPU when using 'webgl2'.
|
|
101
|
+
* Some older iOS versions have issues with WebGL2 asynchronous readbacks.
|
|
102
|
+
*
|
|
103
|
+
* @default false
|
|
104
|
+
*/
|
|
105
|
+
forceSyncReadback?: boolean;
|
|
92
106
|
}
|
|
93
107
|
/**
|
|
94
108
|
* The supported symbologies.
|
|
@@ -167,7 +181,7 @@ export interface EngineConfiguration {
|
|
|
167
181
|
*
|
|
168
182
|
* Setting this parameter to 0 disables hysteresis (default behavior for versions <= 1.1.0)
|
|
169
183
|
*
|
|
170
|
-
* @default
|
|
184
|
+
* @default 2
|
|
171
185
|
*/
|
|
172
186
|
hysteresisMinCount?: number;
|
|
173
187
|
/**
|
|
@@ -175,7 +189,7 @@ export interface EngineConfiguration {
|
|
|
175
189
|
*
|
|
176
190
|
* This parameter sets the size of the hysteresis window in milliseconds.
|
|
177
191
|
*
|
|
178
|
-
* @default
|
|
192
|
+
* @default 350
|
|
179
193
|
*/
|
|
180
194
|
hysteresisInterval?: number;
|
|
181
195
|
}
|
|
@@ -368,6 +382,10 @@ export interface CodeDetection {
|
|
|
368
382
|
* The time of detection.
|
|
369
383
|
*/
|
|
370
384
|
time: number;
|
|
385
|
+
/**
|
|
386
|
+
* The raw contained bytes contained in the code.
|
|
387
|
+
*/
|
|
388
|
+
rawData: Uint8Array;
|
|
371
389
|
}
|
|
372
390
|
/**
|
|
373
391
|
* BarcodeReader is the primary interface of the STRICH SDK.
|