Skip to content

Commit 8c335f1

Browse files
authored
Merge pull request #63 from Keillion/master
7.4.0-v0
2 parents bafd391 + 99f6c9b commit 8c335f1

File tree

98 files changed

+1354
-575
lines changed

Some content is hidden

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

98 files changed

+1354
-575
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,3 @@ yarn.lock
6565
!bower.json
6666
!composer.json
6767
!package.js
68-
69-
70-

README.md

Lines changed: 17 additions & 16 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/dynamsoft-javascript-barcode@7.3.0-v4/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
28+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
2929
<!-- or -->
30-
<script src="https://unpkg.com/dynamsoft-javascript-barcode@7.3.0-v4/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
30+
<script src="https://unpkg.com/dynamsoft-javascript-barcode@7.4.0-v0/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)
@@ -38,7 +38,7 @@ cdn
3838
<!DOCTYPE html>
3939
<html>
4040
<body>
41-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.3.0-v4/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
41+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
4242
<script>
4343
let scanner = null;
4444
(async()=>{
@@ -91,7 +91,7 @@ Dynamsoft.BarcodeReader.productKeys = 'PRODUCT-KEYS';
9191
- [Print out log for better debugging](#print-out-log-for-better-debugging)
9292
- [Show found barcodes](#show-found-barcodes)
9393
- [Read a specific area/region](#read-a-specific-arearegion)
94-
- [Self-hosted Deployment](#self-hosted-deployment)
94+
- [Self-hosted | Offline | Intranet Deployment](#self-hosted--offline--intranet-deployment)
9595
- [Changelog](#changelog)
9696
- [How to Upgrade](#how-to-upgrade)
9797
- [API Documentation](#api-documentation)
@@ -105,9 +105,9 @@ Dynamsoft.BarcodeReader.productKeys = 'PRODUCT-KEYS';
105105

106106
1D barcode: **`Code 39`**, **`Code 128`**, **`Code 93`**, **`Codabar`**, **`Interleaved 2 of 5 (ITF)`**, **`EAN-13`**, **`EAN-8`**, **`UPC-A`**, **`UPC-E`**, **`Industrial 2 of 5`** (Code 2 of 5 Industry, Standard 2 of 5, Code 2 of 5), **`Code 39 Extended`**.
107107

108-
2D barcode: **`PDF417`**, **`QR`**, **`DataMatrix`**, **`Aztec`**, and **`MaxiCode`**.
108+
2D barcode: **`PDF417`**, **`QR`**, **`DataMatrix`**, **`Aztec`**, **`MaxiCode`**, **`Dot Code`**.
109109

110-
GS1 Databar: **`Omnidirectional`**, **`Truncated`**, **`Stacked`**, **`Stacked Omnidirectional`**, **`Expanded`**, **`Expanded Stacked`** and **`Limited`**.
110+
GS1 Databar: **`Omnidirectional`**, **`Truncated`**, **`Stacked`**, **`Stacked Omnidirectional`**, **`Expanded`**, **`Expanded Stacked`**, **`Limited`**.
111111

112112
Patch Code
113113

@@ -162,6 +162,7 @@ Dynamsoft.BarcodeReader.productKeys = 'PRODUCT-KEYS';
162162
| Patch Code | - | &#10003; |
163163
| GS1 Composite Code | - | &#10003; |
164164
| GS1 DataBar | - | &#10003; |
165+
| Dot Code | - | &#10003; |
165166
| Postal Code | - | &#10003; |
166167
| DPM | - | &#10003; |
167168
| getRuntimeSettings | &#10003; | &#10003; |
@@ -195,9 +196,9 @@ This section will help you use the library to build a simple web application to
195196
* Supported Browser
196197
* Camera access
197198

198-
### Step One: Write the code in one minute!
199+
### Step One: Write code in one minute!
199200

200-
Create an HTML file with the following content. Deploy it to your web server if you have it already.
201+
Create an HTML file with the following content. Deploy this to your web server and run the application over **HTTPS**.
201202

202203
* You will need to replace <code>PRODUCT-KEYS</code> with a trial key for the sample code to work correctly. You can acquire a trial key [here](https://www.dynamsoft.com/CustomerPortal/Portal/TrialLicense.aspx).
203204
* If you don't have a ready-to-use web server and you happen to have a package manager like `npm` or `yarn`, you can set up a simple http server in minutes. Check out http-server on [npm](https://www.npmjs.com/package/http-server) or [yarn](https://yarnpkg.com/en/package/http-server).
@@ -207,7 +208,7 @@ Create an HTML file with the following content. Deploy it to your web server if
207208
<html>
208209
<body>
209210
<!-- Please visit https://www.dynamsoft.com/CustomerPortal/Portal/TrialLicense.aspx to get a trial license. -->
210-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.3.0-v4/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
211+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
211212
<script>
212213
let scanner = null;
213214
(async()=>{
@@ -266,13 +267,13 @@ Now, take a look at the sample code. You can find that there is nothing but two
266267
* The following script includes the core library in the application via a [jsDelivr](https://www.jsdelivr.com/) CDN
267268

268269
```javascript
269-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.3.0-v4/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
270+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
270271
```
271272

272273
The same can be done with other CDNs like `unpkg`
273274

274275
```javascript
275-
<script src="https://unpkg.com/dynamsoft-javascript-barcode@7.3.0-v4/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
276+
<script src="https://unpkg.com/dynamsoft-javascript-barcode@7.4.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
276277
```
277278

278279
> **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.
@@ -419,7 +420,7 @@ The following introduces the 3rd way. Check out the following code on how it's d
419420
<video class="dbrScanner-video" playsinline="true"></video>
420421
</div>
421422
<!-- Please visit https://www.dynamsoft.com/CustomerPortal/Portal/TrialLicense.aspx to get a trial license. -->
422-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.3.0-v4/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
423+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
423424
<script>
424425
let scanner = null;
425426
(async()=>{
@@ -607,7 +608,7 @@ await scanner.updateRuntimeSettings(settings);
607608
```
608609
[Try in JSFiddle](https://jsfiddle.net/DynamsoftTeam/taykq592/)
609610

610-
## Self-hosted Deployment
611+
## Self-hosted | Offline | Intranet Deployment
611612

612613
For commercial usage, we highly recommend self-hosted deployment. The following steps guide you through how to deploy the library on your own server.
613614

@@ -642,7 +643,7 @@ Locate the following files and place them in the same directory on your server.
642643
643644
* **Step three**: [Optional] Configure the `engineResourcePath`
644645

645-
If the resource files like the `wasm` files are not placed in the same directory as the file `dbr.min.js`. Then you will need to specify the path with the API `engineResourcePath`. Note that it must be set before `loadWasm` or `createInstance` is called.
646+
If the resource files like the `wasm` files are not placed in the same directory as the file `dbr.js`. Then you will need to specify the path with the API `engineResourcePath`. Note that it must be set before `loadWasm` or `createInstance` is called.
646647
```js
647648
Dynamsoft.BarcodeReader.engineResourcePath = "url/to/the/dir/";
648649
```
@@ -658,7 +659,7 @@ https://www.dynamsoft.com/Products/Dynamic-Barcode-Reader-News.aspx#javascript
658659
* If you are using a CDN, be sure to change the version number in the URL like this
659660

660661
```javascript
661-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.3.0-v4/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
662+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
662663
```
663664

664665
* If you have deployed the library files on your own server, you'll need to replace the old files with the new version. Download the latest version [here](https://www.dynamsoft.com/Downloads/Dynamic-Barcode-Reader-Download.aspx).
@@ -711,7 +712,7 @@ It takes several steps to activate a purchased license, the following steps assu
711712

712713
```html
713714
<!-- Please visit https://www.dynamsoft.com/CustomerPortal/Portal/TrialLicense.aspx to get a trial license. -->
714-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.3.0-v4/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
715+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
715716
```
716717

717718
To use your activated key, you simply need to replace `PRODUCT-KEYS` with it.

dist/dbr-7.3.0.4.full.wasm

-3.82 MB
Binary file not shown.

dist/dbr-7.3.0.4.node.wasm

-4.43 MB
Binary file not shown.

dist/dbr-7.3.0.4.wasm

-2.52 MB
Binary file not shown.

dist/dbr-7.4.0.full.wasm

4.32 MB
Binary file not shown.

0 commit comments

Comments
 (0)