dynamsoft-barcode-reader-bundle 11.6.2000 → 11.6.3000
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/LEGAL.txt +1 -1
- package/README.html +16 -16
- package/README.md +16 -16
- package/dist/dbr.bundle.d.ts +1 -1
- package/dist/dbr.bundle.esm.js +2 -2
- package/dist/dbr.bundle.js +2 -2
- package/dist/dbr.bundle.mjs +2 -2
- package/dist/dbr.bundle.worker.js +2 -2
- package/dist/dynamsoft-barcode-reader-bundle-ml-simd-pthread-with-pdf.wasm +0 -0
- package/dist/dynamsoft-barcode-reader-bundle-ml-simd-pthread.wasm +0 -0
- package/dist/dynamsoft-barcode-reader-bundle-ml-simd-with-pdf.wasm +0 -0
- package/dist/dynamsoft-barcode-reader-bundle-ml-simd.wasm +0 -0
- package/dist/dynamsoft-barcode-reader-bundle.wasm +0 -0
- package/package.json +1 -1
- package/samples.url +1 -1
package/LEGAL.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
===================================================================================
|
|
2
2
|
>>>>>>>>>>>>>>>>>>>>>>>> dynamsoft-barcode-reader-bundle <<<<<<<<<<<<<<<<<<<<<<<<<<
|
|
3
3
|
===================================================================================
|
|
4
4
|
|
package/README.html
CHANGED
|
@@ -247,7 +247,7 @@
|
|
|
247
247
|
<span class="hljs-tag"><<span class="hljs-name">body</span>></span>
|
|
248
248
|
<span class="hljs-tag"><<span class="hljs-name">div</span> <span class="hljs-attr">id</span>=<span class="hljs-string">"camera-view-container"</span> <span class="hljs-attr">style</span>=<span class="hljs-string">"width: 100%; height: 60vh"</span>></span><span class="hljs-tag"></<span class="hljs-name">div</span>></span>
|
|
249
249
|
<span class="hljs-tag"><<span class="hljs-name">textarea</span> <span class="hljs-attr">id</span>=<span class="hljs-string">"results"</span> <span class="hljs-attr">style</span>=<span class="hljs-string">"width: 100%; min-height: 10vh; font-size: 3vmin; overflow: auto"</span> <span class="hljs-attr">disabled</span>></span><span class="hljs-tag"></<span class="hljs-name">textarea</span>></span>
|
|
250
|
-
<span class="hljs-tag"><<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.6.
|
|
250
|
+
<span class="hljs-tag"><<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.6.3000/dist/dbr.bundle.js"</span>></span><span class="hljs-tag"></<span class="hljs-name">script</span>></span>
|
|
251
251
|
<span class="hljs-tag"><<span class="hljs-name">script</span>></span><span class="javascript">
|
|
252
252
|
Dynamsoft.License.LicenseManager.initLicense(<span class="hljs-string">"DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9"</span>);
|
|
253
253
|
Dynamsoft.Core.CoreModule.loadWasm();
|
|
@@ -282,7 +282,7 @@
|
|
|
282
282
|
<span class="hljs-tag"></<span class="hljs-name">html</span>></span>
|
|
283
283
|
</code></pre>
|
|
284
284
|
<p align="center" style="text-align:center; white-space: normal; ">
|
|
285
|
-
<a target="_blank" href="https://github.com/Dynamsoft/barcode-reader-javascript-samples/blob/v11.6.
|
|
285
|
+
<a target="_blank" href="https://github.com/Dynamsoft/barcode-reader-javascript-samples/blob/v11.6.30/basics/hello-world.html" title="Code in Github" style="text-decoration:none;">
|
|
286
286
|
<img src="https://cdn.jsdelivr.net/npm/simple-icons@3.0.1/icons/github.svg" alt="Code in Github" width="20" height="20" style="width:20px;height:20px;">
|
|
287
287
|
</a>
|
|
288
288
|
|
|
@@ -290,7 +290,7 @@
|
|
|
290
290
|
<img src="https://cdn.jsdelivr.net/npm/simple-icons@3.0.1/icons/jsfiddle.svg" alt="Run via JSFiddle" width="20" height="20" style="width:20px;height:20px;" >
|
|
291
291
|
</a>
|
|
292
292
|
|
|
293
|
-
<a target="_blank" href="https://demo.dynamsoft.com/Samples/DBR/JS/basics/hello-world.html?ver=11.6.
|
|
293
|
+
<a target="_blank" href="https://demo.dynamsoft.com/Samples/DBR/JS/basics/hello-world.html?ver=11.6.30&utm_source=npm" title="Run in Dynamsoft" style="text-decoration:none;">
|
|
294
294
|
<img src="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.0.0/svgs/solid/circle-play.svg" alt="Run in Dynamsoft" width="20" height="20" style="width:20px;height:20px;">
|
|
295
295
|
</a>
|
|
296
296
|
</p>
|
|
@@ -333,7 +333,7 @@ cvRouter.addResultFilter(filter);
|
|
|
333
333
|
<p>Read more on <a href="https://www.dynamsoft.com/capture-vision/docs/core/architecture/#capture-vision-router">Capture Vision Router</a>.</p>
|
|
334
334
|
</blockquote>
|
|
335
335
|
<h3 id="run-the-example">Run the example</h3>
|
|
336
|
-
<p>You can run the example deployed to <a href="https://demo.dynamsoft.com/Samples/DBR/JS/basics/hello-world.html?ver=11.6.
|
|
336
|
+
<p>You can run the example deployed to <a href="https://demo.dynamsoft.com/Samples/DBR/JS/basics/hello-world.html?ver=11.6.30&utm_source=npm">the Dynamsoft Demo Server</a> or test it with <a href="https://jsfiddle.net/DynamsoftTeam/csm2f9wb/">JSFiddle code editor</a>. </p>
|
|
337
337
|
<p>You will be asked to allow access to your camera, after which the video will be displayed on the page. After that, you can point the camera at a barcode to read it.</p>
|
|
338
338
|
<p>When a barcode is decoded, you will see the result text show up under the video and the barcode location will be highlighted in the video feed.</p>
|
|
339
339
|
<p>Alternatively, you can test locally by copying and pasting the code shown above into a local file (e.g. "hello-world.html") and opening it in your browser.</p>
|
|
@@ -341,7 +341,7 @@ cvRouter.addResultFilter(filter);
|
|
|
341
341
|
<p><em>Secure Contexts</em>:</p>
|
|
342
342
|
<p>If you open the web page as <code>http://</code>, our SDK may not work correctly because the <a href="https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia">MediaDevices: getUserMedia()</a> and other methods only work in <a href="https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts">secure contexts</a> (HTTPS, <code>localhost</code>, <code>127.0.0.1</code>, <code>file://</code>), in some or all supporting browsers.</p>
|
|
343
343
|
<p>Regarding configuring https on your server, these guides for <a href="https://nginx.org/en/docs/http/configuring_https_servers.html">nginx</a> / <a href="https://aboutssl.org/how-to-create-a-self-signed-certificate-in-iis/">IIS</a> / <a href="https://dzone.com/articles/setting-ssl-tomcat-5-minutes">tomcat</a> / <a href="https://nodejs.org/docs/v0.4.1/api/tls.html">nodejs</a> might help.</p>
|
|
344
|
-
<p>If the test doesn't go as expected, you can <a href="https://www.dynamsoft.com/company/contact/?ver=11.6.
|
|
344
|
+
<p>If the test doesn't go as expected, you can <a href="https://www.dynamsoft.com/company/contact/?ver=11.6.30&utm_source=npm&product=dbr&package=js">contact us</a>.</p>
|
|
345
345
|
</blockquote>
|
|
346
346
|
<h2 id="preparing-the-sdk">Preparing the SDK</h2>
|
|
347
347
|
<h3 id="step-1-include-the-sdk">Step 1: Include the SDK</h3>
|
|
@@ -355,24 +355,24 @@ cvRouter.addResultFilter(filter);
|
|
|
355
355
|
<ul>
|
|
356
356
|
<li>jsDelivr</li>
|
|
357
357
|
</ul>
|
|
358
|
-
<pre><code class="hljs html language-html"> <span class="hljs-tag"><<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.6.
|
|
358
|
+
<pre><code class="hljs html language-html"> <span class="hljs-tag"><<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.6.3000/dist/dbr.bundle.js"</span>></span><span class="hljs-tag"></<span class="hljs-name">script</span>></span>
|
|
359
359
|
</code></pre>
|
|
360
360
|
<ul>
|
|
361
361
|
<li>UNPKG</li>
|
|
362
362
|
</ul>
|
|
363
|
-
<pre><code class="hljs html language-html"> <span class="hljs-tag"><<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://unpkg.com/dynamsoft-barcode-reader-bundle@11.6.
|
|
363
|
+
<pre><code class="hljs html language-html"> <span class="hljs-tag"><<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://unpkg.com/dynamsoft-barcode-reader-bundle@11.6.3000/dist/dbr.bundle.js"</span>></span><span class="hljs-tag"></<span class="hljs-name">script</span>></span>
|
|
364
364
|
</code></pre>
|
|
365
365
|
<!-- - In some rare cases (such as some restricted areas), you might not be able to access the CDN. If this happens, you can use the following files for the test.
|
|
366
|
-
<pre><code class="hljs html language-html"> <span class="hljs-tag"><<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://download2.dynamsoft.com/packages/dynamsoft-barcode-reader-bundle@11.6.
|
|
366
|
+
<pre><code class="hljs html language-html"> <span class="hljs-tag"><<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://download2.dynamsoft.com/packages/dynamsoft-barcode-reader-bundle@11.6.3000/dist/dbr.bundle.js"</span>></span><span class="hljs-tag"></<span class="hljs-name">script</span>></span>
|
|
367
367
|
</code></pre>
|
|
368
368
|
|
|
369
369
|
However, please **DO NOT** use `download2.dynamsoft.com` resources in a production application as they are for temporary testing purposes only. Instead, you can try hosting the SDK yourself. -->
|
|
370
370
|
<ul>
|
|
371
371
|
<li>In frameworks like React, Vue and Angular, you may want to add the package as a dependency.</li>
|
|
372
372
|
</ul>
|
|
373
|
-
<pre><code class="hljs sh language-sh"> npm i dynamsoft-barcode-reader-bundle@11.6.
|
|
373
|
+
<pre><code class="hljs sh language-sh"> npm i dynamsoft-barcode-reader-bundle@11.6.3000 -E
|
|
374
374
|
<span class="hljs-comment"># or</span>
|
|
375
|
-
yarn add dynamsoft-barcode-reader-bundle@11.6.
|
|
375
|
+
yarn add dynamsoft-barcode-reader-bundle@11.6.3000 -E
|
|
376
376
|
</code></pre>
|
|
377
377
|
<p>NOTE that in frameworks, you need to <a href="#2-optional-specify-the-location-of-the-engine-files">specify the location of the engine files</a>.</p>
|
|
378
378
|
<div class="multi-panel-end"></div>
|
|
@@ -381,18 +381,18 @@ cvRouter.addResultFilter(filter);
|
|
|
381
381
|
<p>Besides using the public CDN, you can also download the SDK and host its files on your own server or a commercial CDN before including it in your application.</p>
|
|
382
382
|
<ul>
|
|
383
383
|
<li><p>From the website</p>
|
|
384
|
-
<p><a href="https://www.dynamsoft.com/barcode-reader/downloads/?ver=11.6.
|
|
384
|
+
<p><a href="https://www.dynamsoft.com/barcode-reader/downloads/?ver=11.6.30&utm_source=npm&product=dbr&package=js">Download Dynamsoft Barcode Reader JavaScript Package</a></p>
|
|
385
385
|
<p>The resources are located at the path <code>dynamsoft-barcode-reader-js-{version-number}/dist/</code>.</p></li>
|
|
386
386
|
<li><p>From npm</p></li>
|
|
387
387
|
</ul>
|
|
388
|
-
<pre><code class="hljs sh language-sh"> npm i dynamsoft-barcode-reader-bundle@11.6.
|
|
388
|
+
<pre><code class="hljs sh language-sh"> npm i dynamsoft-barcode-reader-bundle@11.6.3000 -E
|
|
389
389
|
</code></pre>
|
|
390
390
|
<p>The resources are located at the path <code>node_modules/<pkg></code>, without <code>@<version></code>. You must copy "dynamsoft-xxx" packages elsewhere and add <code>@<version></code>. The <code><version></code> can be obtained from <code>package.json</code> of each package. Another thing to do is to <a href="#2-optional-specify-the-location-of-the-engine-files">specify the engineResourcePaths</a> so that the SDK can correctly locate the resources.</p>
|
|
391
391
|
<blockquote>
|
|
392
392
|
<p>Since "node<em>modules" is reserved for Node.js dependencies, and in our case the package is used only as static resources, we recommend either renaming the "node</em>modules" folder or moving the "dynamsoft-" packages to a dedicated folder for static resources in your project to facilitate self-hosting.</p>
|
|
393
393
|
</blockquote>
|
|
394
394
|
<p>You can typically include SDK like this:</p>
|
|
395
|
-
<pre><code class="hljs html language-html"><span class="hljs-tag"><<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"path/to/dynamsoft-barcode-reader-bundle@11.6.
|
|
395
|
+
<pre><code class="hljs html language-html"><span class="hljs-tag"><<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"path/to/dynamsoft-barcode-reader-bundle@11.6.3000/dist/dbr.bundle.js"</span>></span><span class="hljs-tag"></<span class="hljs-name">script</span>></span>
|
|
396
396
|
</code></pre>
|
|
397
397
|
<div class="multi-panel-end"></div>
|
|
398
398
|
<div class="multi-panel-switching-end"></div>
|
|
@@ -416,7 +416,7 @@ cvRouter.addResultFilter(filter);
|
|
|
416
416
|
<p>To enable the SDK's functionality, you must provide a valid license. Utilize the API function initLicense to set your license key.</p>
|
|
417
417
|
<pre><code class="hljs javascript language-javascript">Dynamsoft.License.LicenseManager.initLicense(<span class="hljs-string">"DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9"</span>);
|
|
418
418
|
</code></pre>
|
|
419
|
-
<p>As previously stated, the key "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" serves as a test license valid for 24 hours, applicable to any newly authorized browser. To test the SDK further, you can request a 30-day free trial license via the <a href="https://www.dynamsoft.com/customer/license/trialLicense?ver=11.6.
|
|
419
|
+
<p>As previously stated, the key "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" serves as a test license valid for 24 hours, applicable to any newly authorized browser. To test the SDK further, you can request a 30-day free trial license via the <a href="https://www.dynamsoft.com/customer/license/trialLicense?ver=11.6.30&utm_source=npm&product=dbr&package=js" target="_blank">Request a Trial License</a> link.</p>
|
|
420
420
|
<blockquote>
|
|
421
421
|
<p>Upon registering a Dynamsoft account and obtaining the SDK package from the official website, Dynamsoft will automatically create a 30-day free trial license and embed the corresponding license key into all the provided SDK samples.</p>
|
|
422
422
|
</blockquote>
|
|
@@ -658,7 +658,7 @@ settings.timeout = <span class="hljs-number">500</span>;
|
|
|
658
658
|
<h3 id="2-edit-the-preset-templates-directly">2. Edit the preset templates directly</h3>
|
|
659
659
|
<p>The preset templates have many more settings that can be customized to suit your use case best. If you <a href="https://www.dynamsoft.com/barcode-reader/downloads/1000003-confirmation/">download the SDK from Dynamsoft website</a>, you can find the templates under</p>
|
|
660
660
|
<ul>
|
|
661
|
-
<li>"/dynamsoft-barcode-reader-js-11.6.
|
|
661
|
+
<li>"/dynamsoft-barcode-reader-js-11.6.3000/dist/templates/"</li>
|
|
662
662
|
</ul>
|
|
663
663
|
<p>Upon completing the template editing, you can invoke the <code>initSettings</code> method and provide it with the template path as an argument.</p>
|
|
664
664
|
<pre><code class="hljs javascript language-javascript"><span class="hljs-keyword">await</span> cvRouter.initSettings(<span class="hljs-string">"PATH-TO-THE-FILE"</span>); <span class="hljs-comment">// E.g. "https://your-website/ReadSingleBarcode.json")</span>
|
|
@@ -732,7 +732,7 @@ uiElement.querySelector(<span class="hljs-string">'.dce-sel-resolution'
|
|
|
732
732
|
<h2 id="documentation">Documentation</h2>
|
|
733
733
|
<h3 id="api-reference">API Reference</h3>
|
|
734
734
|
<p>You can check out the detailed documentation about the APIs of the SDK at<br />
|
|
735
|
-
<a href="https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/?ver=11.6.
|
|
735
|
+
<a href="https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/?ver=11.6.3000">https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/?ver=11.6.3000</a>.</p>
|
|
736
736
|
<!-- Compatibility is basically not an issue. Pls remove to another place
|
|
737
737
|
|
|
738
738
|
## System Requirements
|
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ The complete code of the "Hello World" example is shown below
|
|
|
34
34
|
<body>
|
|
35
35
|
<div id="camera-view-container" style="width: 100%; height: 60vh"></div>
|
|
36
36
|
<textarea id="results" style="width: 100%; min-height: 10vh; font-size: 3vmin; overflow: auto" disabled></textarea>
|
|
37
|
-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.6.
|
|
37
|
+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.6.3000/dist/dbr.bundle.js"></script>
|
|
38
38
|
<script>
|
|
39
39
|
Dynamsoft.License.LicenseManager.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9");
|
|
40
40
|
Dynamsoft.Core.CoreModule.loadWasm();
|
|
@@ -70,7 +70,7 @@ The complete code of the "Hello World" example is shown below
|
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
<p align="center" style="text-align:center; white-space: normal; ">
|
|
73
|
-
<a target="_blank" href="https://github.com/Dynamsoft/barcode-reader-javascript-samples/blob/v11.6.
|
|
73
|
+
<a target="_blank" href="https://github.com/Dynamsoft/barcode-reader-javascript-samples/blob/v11.6.30/basics/hello-world.html" title="Code in Github" style="text-decoration:none;">
|
|
74
74
|
<img src="https://cdn.jsdelivr.net/npm/simple-icons@3.0.1/icons/github.svg" alt="Code in Github" width="20" height="20" style="width:20px;height:20px;">
|
|
75
75
|
</a>
|
|
76
76
|
|
|
@@ -78,7 +78,7 @@ The complete code of the "Hello World" example is shown below
|
|
|
78
78
|
<img src="https://cdn.jsdelivr.net/npm/simple-icons@3.0.1/icons/jsfiddle.svg" alt="Run via JSFiddle" width="20" height="20" style="width:20px;height:20px;" >
|
|
79
79
|
</a>
|
|
80
80
|
|
|
81
|
-
<a target="_blank" href="https://demo.dynamsoft.com/Samples/DBR/JS/basics/hello-world.html?ver=11.6.
|
|
81
|
+
<a target="_blank" href="https://demo.dynamsoft.com/Samples/DBR/JS/basics/hello-world.html?ver=11.6.30&utm_source=npm" title="Run in Dynamsoft" style="text-decoration:none;">
|
|
82
82
|
<img src="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.0.0/svgs/solid/circle-play.svg" alt="Run in Dynamsoft" width="20" height="20" style="width:20px;height:20px;">
|
|
83
83
|
</a>
|
|
84
84
|
</p>
|
|
@@ -123,7 +123,7 @@ The complete code of the "Hello World" example is shown below
|
|
|
123
123
|
|
|
124
124
|
### Run the example
|
|
125
125
|
|
|
126
|
-
You can run the example deployed to [the Dynamsoft Demo Server](https://demo.dynamsoft.com/Samples/DBR/JS/basics/hello-world.html?ver=11.6.
|
|
126
|
+
You can run the example deployed to [the Dynamsoft Demo Server](https://demo.dynamsoft.com/Samples/DBR/JS/basics/hello-world.html?ver=11.6.30&utm_source=npm) or test it with [JSFiddle code editor](https://jsfiddle.net/DynamsoftTeam/csm2f9wb/).
|
|
127
127
|
|
|
128
128
|
You will be asked to allow access to your camera, after which the video will be displayed on the page. After that, you can point the camera at a barcode to read it.
|
|
129
129
|
|
|
@@ -137,7 +137,7 @@ Alternatively, you can test locally by copying and pasting the code shown above
|
|
|
137
137
|
>
|
|
138
138
|
> Regarding configuring https on your server, these guides for [nginx](https://nginx.org/en/docs/http/configuring_https_servers.html) / [IIS](https://aboutssl.org/how-to-create-a-self-signed-certificate-in-iis/) / [tomcat](https://dzone.com/articles/setting-ssl-tomcat-5-minutes) / [nodejs](https://nodejs.org/docs/v0.4.1/api/tls.html) might help.
|
|
139
139
|
>
|
|
140
|
-
> If the test doesn't go as expected, you can [contact us](https://www.dynamsoft.com/company/contact/?ver=11.6.
|
|
140
|
+
> If the test doesn't go as expected, you can [contact us](https://www.dynamsoft.com/company/contact/?ver=11.6.30&utm_source=npm&product=dbr&package=js).
|
|
141
141
|
|
|
142
142
|
## Preparing the SDK
|
|
143
143
|
|
|
@@ -156,19 +156,19 @@ The simplest way to include the SDK is to use either the [jsDelivr](https://jsde
|
|
|
156
156
|
- jsDelivr
|
|
157
157
|
|
|
158
158
|
```html
|
|
159
|
-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.6.
|
|
159
|
+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.6.3000/dist/dbr.bundle.js"></script>
|
|
160
160
|
```
|
|
161
161
|
|
|
162
162
|
- UNPKG
|
|
163
163
|
|
|
164
164
|
```html
|
|
165
|
-
<script src="https://unpkg.com/dynamsoft-barcode-reader-bundle@11.6.
|
|
165
|
+
<script src="https://unpkg.com/dynamsoft-barcode-reader-bundle@11.6.3000/dist/dbr.bundle.js"></script>
|
|
166
166
|
```
|
|
167
167
|
|
|
168
168
|
<!-- - In some rare cases (such as some restricted areas), you might not be able to access the CDN. If this happens, you can use the following files for the test.
|
|
169
169
|
|
|
170
170
|
```html
|
|
171
|
-
<script src="https://download2.dynamsoft.com/packages/dynamsoft-barcode-reader-bundle@11.6.
|
|
171
|
+
<script src="https://download2.dynamsoft.com/packages/dynamsoft-barcode-reader-bundle@11.6.3000/dist/dbr.bundle.js"></script>
|
|
172
172
|
```
|
|
173
173
|
|
|
174
174
|
However, please **DO NOT** use `download2.dynamsoft.com` resources in a production application as they are for temporary testing purposes only. Instead, you can try hosting the SDK yourself. -->
|
|
@@ -176,9 +176,9 @@ The simplest way to include the SDK is to use either the [jsDelivr](https://jsde
|
|
|
176
176
|
- In frameworks like React, Vue and Angular, you may want to add the package as a dependency.
|
|
177
177
|
|
|
178
178
|
```sh
|
|
179
|
-
npm i dynamsoft-barcode-reader-bundle@11.6.
|
|
179
|
+
npm i dynamsoft-barcode-reader-bundle@11.6.3000 -E
|
|
180
180
|
# or
|
|
181
|
-
yarn add dynamsoft-barcode-reader-bundle@11.6.
|
|
181
|
+
yarn add dynamsoft-barcode-reader-bundle@11.6.3000 -E
|
|
182
182
|
```
|
|
183
183
|
|
|
184
184
|
NOTE that in frameworks, you need to [specify the location of the engine files](#2-optional-specify-the-location-of-the-engine-files).
|
|
@@ -191,14 +191,14 @@ Besides using the public CDN, you can also download the SDK and host its files o
|
|
|
191
191
|
|
|
192
192
|
- From the website
|
|
193
193
|
|
|
194
|
-
[Download Dynamsoft Barcode Reader JavaScript Package](https://www.dynamsoft.com/barcode-reader/downloads/?ver=11.6.
|
|
194
|
+
[Download Dynamsoft Barcode Reader JavaScript Package](https://www.dynamsoft.com/barcode-reader/downloads/?ver=11.6.30&utm_source=npm&product=dbr&package=js)
|
|
195
195
|
|
|
196
196
|
The resources are located at the path `dynamsoft-barcode-reader-js-{version-number}/dist/`.
|
|
197
197
|
|
|
198
198
|
- From npm
|
|
199
199
|
|
|
200
200
|
```sh
|
|
201
|
-
npm i dynamsoft-barcode-reader-bundle@11.6.
|
|
201
|
+
npm i dynamsoft-barcode-reader-bundle@11.6.3000 -E
|
|
202
202
|
```
|
|
203
203
|
|
|
204
204
|
The resources are located at the path `node_modules/<pkg>`, without `@<version>`. You must copy "dynamsoft-xxx" packages elsewhere and add `@<version>`. The `<version>` can be obtained from `package.json` of each package. Another thing to do is to [specify the engineResourcePaths](#2-optional-specify-the-location-of-the-engine-files) so that the SDK can correctly locate the resources.
|
|
@@ -207,7 +207,7 @@ Besides using the public CDN, you can also download the SDK and host its files o
|
|
|
207
207
|
You can typically include SDK like this:
|
|
208
208
|
|
|
209
209
|
```html
|
|
210
|
-
<script src="path/to/dynamsoft-barcode-reader-bundle@11.6.
|
|
210
|
+
<script src="path/to/dynamsoft-barcode-reader-bundle@11.6.3000/dist/dbr.bundle.js"></script>
|
|
211
211
|
```
|
|
212
212
|
<div class="multi-panel-end"></div>
|
|
213
213
|
|
|
@@ -239,7 +239,7 @@ To enable the SDK's functionality, you must provide a valid license. Utilize the
|
|
|
239
239
|
Dynamsoft.License.LicenseManager.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9");
|
|
240
240
|
```
|
|
241
241
|
|
|
242
|
-
As previously stated, the key "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" serves as a test license valid for 24 hours, applicable to any newly authorized browser. To test the SDK further, you can request a 30-day free trial license via the <a href="https://www.dynamsoft.com/customer/license/trialLicense?ver=11.6.
|
|
242
|
+
As previously stated, the key "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" serves as a test license valid for 24 hours, applicable to any newly authorized browser. To test the SDK further, you can request a 30-day free trial license via the <a href="https://www.dynamsoft.com/customer/license/trialLicense?ver=11.6.30&utm_source=npm&product=dbr&package=js" target="_blank">Request a Trial License</a> link.
|
|
243
243
|
|
|
244
244
|
> Upon registering a Dynamsoft account and obtaining the SDK package from the official website, Dynamsoft will automatically create a 30-day free trial license and embed the corresponding license key into all the provided SDK samples.
|
|
245
245
|
|
|
@@ -526,7 +526,7 @@ await cvRouter.startCapturing("ReadSingleBarcode");
|
|
|
526
526
|
|
|
527
527
|
The preset templates have many more settings that can be customized to suit your use case best. If you [download the SDK from Dynamsoft website](https://www.dynamsoft.com/barcode-reader/downloads/1000003-confirmation/), you can find the templates under
|
|
528
528
|
|
|
529
|
-
* "/dynamsoft-barcode-reader-js-11.6.
|
|
529
|
+
* "/dynamsoft-barcode-reader-js-11.6.3000/dist/templates/"
|
|
530
530
|
|
|
531
531
|
Upon completing the template editing, you can invoke the `initSettings` method and provide it with the template path as an argument.
|
|
532
532
|
|
|
@@ -628,7 +628,7 @@ The UI is part of the auxiliary SDK "Dynamsoft Camera Enhancer", read more on ho
|
|
|
628
628
|
### API Reference
|
|
629
629
|
|
|
630
630
|
You can check out the detailed documentation about the APIs of the SDK at
|
|
631
|
-
[https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/?ver=11.6.
|
|
631
|
+
[https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/?ver=11.6.3000](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/?ver=11.6.3000).
|
|
632
632
|
|
|
633
633
|
<!-- Compatibility is basically not an issue. Pls remove to another place
|
|
634
634
|
|
package/dist/dbr.bundle.d.ts
CHANGED
|
@@ -998,6 +998,7 @@ declare class CoreModule {
|
|
|
998
998
|
static get bSupportIRTModule(): number;
|
|
999
999
|
private static _versions;
|
|
1000
1000
|
static get versions(): any;
|
|
1001
|
+
static _isNoOnnx: boolean;
|
|
1001
1002
|
static _onLog: (message: string) => void;
|
|
1002
1003
|
static get _bDebug(): boolean;
|
|
1003
1004
|
static set _bDebug(value: boolean);
|
|
@@ -1479,7 +1480,6 @@ declare class CaptureVisionRouter {
|
|
|
1479
1480
|
#private;
|
|
1480
1481
|
static _onLog: (message: string) => void;
|
|
1481
1482
|
static _defaultTemplate: string;
|
|
1482
|
-
private static _isNoOnnx;
|
|
1483
1483
|
/**
|
|
1484
1484
|
* The maximum length of the longer side of the image to be processed. The default value is 2048 pixels in mobile devices and 4096 pixels in desktop browser.
|
|
1485
1485
|
*/
|