Skip to content

Commit 23b46f6

Browse files
author
Cube
authored
Merge pull request #127 from Dynamsoft/_dev
9.6.10
2 parents fdb0b82 + 73da2f8 commit 23b46f6

22 files changed

+85
-68
lines changed

Api Reference.url

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[InternetShortcut]
2-
URL=https://www.dynamsoft.com/barcode-reader/programming/javascript/api-reference/?ver=9.6.2
2+
URL=https://www.dynamsoft.com/barcode-reader/programming/javascript/api-reference/?ver=9.6.10

README.md

+34-28
Large diffs are not rendered by default.

dist/dbr-9.6.2.browser.worker.js renamed to dist/dbr-9.6.10.browser.worker.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
File renamed without changes.
Binary file not shown.

dist/dbr-9.6.2.standby.full.wasm.js renamed to dist/dbr-9.6.10.standby.full.wasm.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ if (typeof WebAssembly !== "object") {
219219
var wasmMemory;
220220

221221
var wasmTable = new WebAssembly.Table({
222-
"initial": 8396,
223-
"maximum": 8396 + 0,
222+
"initial": 8397,
223+
"maximum": 8397 + 0,
224224
"element": "anyfunc"
225225
});
226226

@@ -456,7 +456,7 @@ function updateGlobalBufferAndViews(buf) {
456456
Module["HEAPF64"] = HEAPF64 = new Float64Array(buf);
457457
}
458458

459-
var DYNAMIC_BASE = 7173824, DYNAMICTOP_PTR = 1930784;
459+
var DYNAMIC_BASE = 7173936, DYNAMICTOP_PTR = 1930896;
460460

461461
var INITIAL_INITIAL_MEMORY = Module["INITIAL_MEMORY"] || 16777216;
462462

@@ -5739,9 +5739,9 @@ function _fd_write(fd, iov, iovcnt, pnum) {
57395739
}
57405740
}
57415741

5742-
var ___tm_current = 1930800;
5742+
var ___tm_current = 1930912;
57435743

5744-
var ___tm_timezone = (stringToUTF8("GMT", 1930848, 4), 1930848);
5744+
var ___tm_timezone = (stringToUTF8("GMT", 1930960, 4), 1930960);
57455745

57465746
function _gmtime_r(time, tmPtr) {
57475747
var date = new Date(HEAP32[time >> 2] * 1e3);
Binary file not shown.

dist/dbr-9.6.2.standby.wasm.js renamed to dist/dbr-9.6.10.standby.wasm.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ if (typeof WebAssembly !== "object") {
219219
var wasmMemory;
220220

221221
var wasmTable = new WebAssembly.Table({
222-
"initial": 4838,
223-
"maximum": 4838 + 0,
222+
"initial": 4839,
223+
"maximum": 4839 + 0,
224224
"element": "anyfunc"
225225
});
226226

@@ -456,7 +456,7 @@ function updateGlobalBufferAndViews(buf) {
456456
Module["HEAPF64"] = HEAPF64 = new Float64Array(buf);
457457
}
458458

459-
var DYNAMIC_BASE = 6638176, DYNAMICTOP_PTR = 1395136;
459+
var DYNAMIC_BASE = 6638320, DYNAMICTOP_PTR = 1395280;
460460

461461
var INITIAL_INITIAL_MEMORY = Module["INITIAL_MEMORY"] || 16777216;
462462

@@ -5739,9 +5739,9 @@ function _fd_write(fd, iov, iovcnt, pnum) {
57395739
}
57405740
}
57415741

5742-
var ___tm_current = 1395152;
5742+
var ___tm_current = 1395296;
57435743

5744-
var ___tm_timezone = (stringToUTF8("GMT", 1395200, 4), 1395200);
5744+
var ___tm_timezone = (stringToUTF8("GMT", 1395344, 4), 1395344);
57455745

57465746
function _gmtime_r(time, tmPtr) {
57475747
var date = new Date(HEAP32[time >> 2] * 1e3);
Binary file not shown.
File renamed without changes.

dist/dbr.js

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dbr.mjs

+5-5
Large diffs are not rendered by default.

dist/dbr.pure.esm.js

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dbr.pure.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dbr.pure.mjs

+2-2
Large diffs are not rendered by default.

dist/types/class/barcodereader.d.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ export default class BarcodeReader {
100100
static get deviceFriendlyName(): string;
101101
/** @ignore */
102102
static set deviceFriendlyName(value: string);
103-
protected static _bIntermediateResultsSupported: boolean;
104103
/** @ignore */
105104
static _isShowRelDecodeTimeInResults: boolean;
106105
/** @ignore */
@@ -482,7 +481,7 @@ export default class BarcodeReader {
482481
* Decodes barcodes from the memory buffer containing image pixels in defined format.
483482
* @ignore
484483
*/
485-
_decodeBuffer_Uint8Array(buffer: Uint8Array | Uint8ClampedArray, width: number, height: number, stride: number, format: EnumImagePixelFormat, config?: any): Promise<TextResult[]>;
484+
_decodeBuffer_Uint8Array(buffer: Uint8Array | Uint8ClampedArray, width: number, height: number, stride: number, format: EnumImagePixelFormat, orientation?: number, config?: any): Promise<TextResult[]>;
486485
/**
487486
*
488487
* @param buffer
@@ -493,7 +492,7 @@ export default class BarcodeReader {
493492
* @param config
494493
* @ignore
495494
*/
496-
_decodeBuffer_Blob(buffer: Blob, width: number, height: number, stride: number, format: EnumImagePixelFormat, config?: any): Promise<any>;
495+
_decodeBuffer_Blob(buffer: Blob, width: number, height: number, stride: number, format: EnumImagePixelFormat, orientation?: number, config?: any): Promise<any>;
497496
/**
498497
* Decode barcodes from raw image data.
499498
* @param buffer
@@ -504,7 +503,7 @@ export default class BarcodeReader {
504503
* @param config
505504
* @category Decode
506505
*/
507-
decodeBuffer(buffer: Uint8Array | Uint8ClampedArray | ArrayBuffer | Blob | Buffer, width: number, height: number, stride: number, format: EnumImagePixelFormat, config?: any): Promise<TextResult[]>;
506+
decodeBuffer(buffer: Uint8Array | Uint8ClampedArray | ArrayBuffer | Blob | Buffer, width: number, height: number, stride: number, format: EnumImagePixelFormat, orientation?: number, config?: any): Promise<TextResult[]>;
508507
/** @ignore */
509508
_decodeFileInMemory_Uint8Array(bytes: Uint8Array): Promise<any>;
510509
/**

dist/types/class/barcodescanner.d.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ export default class BarcodeScanner extends BarcodeReader {
2424
static get version(): string;
2525
static onWarning: (warning: Warning) => void;
2626
protected static _fireHTTPSWarnning(): void;
27+
static testCameraAccess(): Promise<{
28+
ok: boolean;
29+
message: string;
30+
}>;
2731
onWarning: (warning: Warning) => void;
2832
private _fireResolutionWarning;
2933
/** @ignore */
@@ -211,7 +215,6 @@ export default class BarcodeScanner extends BarcodeReader {
211215
* @category Runtime Settings
212216
*/
213217
updateRuntimeSettings(settings: RuntimeSettings | string): Promise<void>;
214-
_resetRuntimeSettingsToCppDefault(): Promise<void>;
215218
/** @ignore */
216219
_onCameraSelChange: () => void;
217220
/** @ignore */
@@ -620,6 +623,9 @@ export default class BarcodeScanner extends BarcodeReader {
620623
showTip(x: number, y: number, width: number, initialMessage?: string, duration?: number, autoShowSuggestedTip?: boolean): void;
621624
hideTip(): void;
622625
updateTipMessage(message: string): void;
626+
enableTapToFocus(): Promise<void>;
627+
disableTapToFocus(): void;
628+
isTapToFocusEnabled(): boolean;
623629
/**
624630
* Destroy the `BarcodeScanner` instance. If your page needs to create new instances from time to time, don't forget to destroy unused old instances, otherwise it will cause memory leaks.
625631
* @category Initialize and Destroy

dist/types/enum/enumerrorcode.d.ts

+3
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ export declare enum EnumErrorCode {
5656
DBR_MAXICODE_LICENSE_INVALID = -10057,
5757
DBR_GS1_DATABAR_LICENSE_INVALID = -10058,
5858
DBR_GS1_COMPOSITE_LICENSE_INVALID = -10059,
59+
DBR_PANORAMA_LICENSE_INVALID = -10060,
5960
DBR_DOTCODE_LICENSE_INVALID = -10061,
61+
DBR_PHARMACODE_LICENSE_INVALID = -10062,
62+
DBR_IMAGE_ORIENTATION_INVALID = -10063,
6063
DMERR_NO_LICENSE = -20000,
6164
DMERR_LICENSE_SYNC_FAILED = -20003,
6265
DMERR_TRIAL_LICENSE = -20010,

dist/types/interface/localizationresult.d.ts

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { EnumResultCoordinateType } from "../enum/enumresultcoordinatetype";
12
export interface LocalizationResult {
23
/**
34
* The angle of a barcode. Values range from 0 to 360.
@@ -35,5 +36,7 @@ export interface LocalizationResult {
3536
* The Y coordinate of the fourth point in a clockwise direction.
3637
*/
3738
y4: number;
39+
resultCoordinateType: EnumResultCoordinateType;
40+
transformationMatrix: Array<number>;
3841
}
3942
//# sourceMappingURL=localizationresult.d.ts.map

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dynamsoft-javascript-barcode",
3-
"version": "9.6.2",
3+
"version": "9.6.10",
44
"description": "Dynamsoft Barcode Reader JS is a recognition SDK which enables you to embed barcode reading functionality in your web, desktop, and mobile applications. With a few lines of JavaScript code, you can develop a robust application to scan a linear barcode, QR Code, DaraMatrix, PDF417, and Aztec Code.",
55
"private": false,
66
"files": [
@@ -96,6 +96,6 @@
9696
},
9797
"dependencies": {
9898
"dm-howler": "^2.2.4",
99-
"dynamsoft-camera-enhancer": "^3.2.0"
99+
"dynamsoft-camera-enhancer": "^3.3.1"
100100
}
101101
}

samples.url

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[InternetShortcut]
2-
URL=https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/v9.6.2
2+
URL=https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/v9.6.10

0 commit comments

Comments
 (0)