Skip to content

Commit 2723c87

Browse files
8.1.2
1 parent 9e65263 commit 2723c87

File tree

87 files changed

+344
-339
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+344
-339
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ $ npm install dynamsoft-javascript-barcode --save
2525

2626
cdn
2727
```html
28-
<script src="https://cdn.jsdelivr.net/npm/[email protected].0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
28+
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
2929
<!-- or -->
30-
<script src="https://unpkg.com/[email protected].0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
30+
<script src="https://unpkg.com/[email protected].2/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
3131
```
3232

3333
[Download zip](https://www.dynamsoft.com/Downloads/Dynamic-Barcode-Reader-Download.aspx?edition=js)
@@ -36,7 +36,7 @@ cdn
3636
Please visit https://www.dynamsoft.com/customer/license/trialLicense to get a valid license and update `PRODUCT-KEYS`:
3737

3838
```html
39-
<script src="https://cdn.jsdelivr.net/npm/[email protected].0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
39+
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
4040
```
4141

4242
## Quick Usage
@@ -45,7 +45,7 @@ Please visit https://www.dynamsoft.com/customer/license/trialLicense to get a va
4545
<!DOCTYPE html>
4646
<html>
4747
<body>
48-
<script src="https://cdn.jsdelivr.net/npm/[email protected].0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
48+
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
4949
<script>
5050
let scanner = null;
5151
(async()=>{
@@ -216,7 +216,7 @@ Create an HTML file with the following content. Deploy this to your web server a
216216
<html>
217217
<body>
218218
<!-- Please visit https://www.dynamsoft.com/customer/license/trialLicense to get a trial license. -->
219-
<script src="https://cdn.jsdelivr.net/npm/[email protected].0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
219+
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
220220
<script>
221221
let scanner = null;
222222
(async()=>{
@@ -275,13 +275,13 @@ Now, take a look at the sample code. You can find that there is nothing but two
275275
* The following script includes the core library in the application via a [jsDelivr](https://www.jsdelivr.com/) CDN
276276

277277
```javascript
278-
<script src="https://cdn.jsdelivr.net/npm/[email protected].0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
278+
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
279279
```
280280

281281
The same can be done with other CDNs like `unpkg`
282282

283283
```javascript
284-
<script src="https://unpkg.com/[email protected].0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
284+
<script src="https://unpkg.com/[email protected].2/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
285285
```
286286

287287
> **NOTE**: : Since we do change the library a bit in each release, to make sure your application doesn't get interrupted by automatic updates, use a specific version in your production environment, as shown above. Using a general major version like `@7` is not recommended.
@@ -431,7 +431,7 @@ The following introduces the 3rd way. Check out the following code on how it's d
431431
<video class="dbrScanner-video" playsinline="true"></video>
432432
</div>
433433
<!-- Please visit https://www.dynamsoft.com/customer/license/trialLicense to get a trial license. -->
434-
<script src="https://cdn.jsdelivr.net/npm/[email protected].0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
434+
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
435435
<script>
436436
let scanner = null;
437437
(async()=>{
Binary file not shown.

dist/dbr-8.1.0.full.wasm.js renamed to dist/dbr-8.1.2.full.wasm.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

dist/dbr-8.1.0.node.wasm.js renamed to dist/dbr-8.1.2.node.wasm.js

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
2.78 MB
Binary file not shown.

dist/dbr-8.1.0.wasm.js renamed to dist/dbr-8.1.2.wasm.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dbr-8.1.0.worker.js renamed to dist/dbr-8.1.2.worker.js

Lines changed: 47 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dbr.browser.mjs

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

dist/dbr.d.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @website http://www.dynamsoft.com
55
* @preserve Copyright 2021, Dynamsoft Corporation
66
* @author Dynamsoft
7-
* @version 8.1.0 (js 20210118)
7+
* @version 8.1.2 (js 20210121)
88
* @fileoverview Dynamsoft JavaScript Library for Barcode Reader
99
* More info on DBR JS: https://www.dynamsoft.com/Products/barcode-recognition-javascript.aspx
1010
*/
@@ -417,8 +417,9 @@ export declare class BarcodeReader {
417417
maxVideoCvsLength: number;
418418
protected videoCvses?: (HTMLCanvasElement | OffscreenCanvas)[];
419419
protected videoGlCvs?: HTMLCanvasElement | OffscreenCanvas;
420-
protected videoGlCtx?: WebGLRenderingContext | WebGL2RenderingContext;
421-
protected glGreyProgram?: WebGLProgram;
420+
protected videoGl?: WebGLRenderingContext | WebGL2RenderingContext;
421+
protected glImgData?: Uint8Array;
422+
protected bufferShared: Uint8Array | Uint8ClampedArray;
422423
protected bFilterRegionInJs: boolean;
423424
protected userDefinedRegion: any;
424425
protected _region?: RegionDefinition | RegionDefinition[];
@@ -829,6 +830,7 @@ export declare class BarcodeScanner extends BarcodeReader {
829830
* scanner.bPlaySoundOnSuccessfulRead = "unduplicated";
830831
* });
831832
* ```
833+
* refer: `favicon bug` https://bugs.chromium.org/p/chromium/issues/detail?id=1069731&q=favicon&can=2
832834
*/
833835
bPlaySoundOnSuccessfulRead: (boolean | string);
834836
/** @ignore */

0 commit comments

Comments
 (0)