dynamsoft-barcode-reader-bundle 10.4.2002-beta-202410221828 → 10.4.2002-beta-202410240008
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/README.html +12 -12
- package/README.md +12 -12
- package/dist/dbr.bundle.js +2 -2
- package/dist/dbr.bundle.mjs +2 -2
- package/dist/dbr.no-content-bundle.esm.js +1 -1
- package/package.json +2 -2
package/README.html
CHANGED
|
@@ -300,7 +300,7 @@
|
|
|
300
300
|
<span class="hljs-tag"><<span class="hljs-name">body</span>></span>
|
|
301
301
|
<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>
|
|
302
302
|
<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>
|
|
303
|
-
<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@10.4.
|
|
303
|
+
<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@10.4.2002/dist/dbr.bundle.js"</span>></span><span class="hljs-tag"></<span class="hljs-name">script</span>></span>
|
|
304
304
|
<span class="hljs-tag"><<span class="hljs-name">script</span>></span><span class="javascript">
|
|
305
305
|
Dynamsoft.License.LicenseManager.initLicense(<span class="hljs-string">"DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9"</span>);
|
|
306
306
|
Dynamsoft.Core.CoreModule.loadWasm([<span class="hljs-string">"dbr"</span>]);
|
|
@@ -420,25 +420,25 @@ cvRouter.addResultFilter(filter);
|
|
|
420
420
|
<ul>
|
|
421
421
|
<li>jsDelivr</li>
|
|
422
422
|
</ul>
|
|
423
|
-
<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@10.4.
|
|
423
|
+
<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@10.4.2002/dist/dbr.bundle.js"</span>></span><span class="hljs-tag"></<span class="hljs-name">script</span>></span>
|
|
424
424
|
</code></pre>
|
|
425
425
|
<ul>
|
|
426
426
|
<li>UNPKG</li>
|
|
427
427
|
</ul>
|
|
428
|
-
<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@10.4.
|
|
428
|
+
<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@10.4.2002/dist/dbr.bundle.js"</span>></span><span class="hljs-tag"></<span class="hljs-name">script</span>></span>
|
|
429
429
|
</code></pre>
|
|
430
430
|
<ul>
|
|
431
431
|
<li>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.</li>
|
|
432
432
|
</ul>
|
|
433
|
-
<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@10.4.
|
|
433
|
+
<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@10.4.2002/dist/dbr.bundle.js"</span>></span><span class="hljs-tag"></<span class="hljs-name">script</span>></span>
|
|
434
434
|
</code></pre>
|
|
435
435
|
<p>However, please <strong>DO NOT</strong> use <code>download2.dynamsoft.com</code> resources in a production application as they are for temporary testing purposes only. Instead, you can try hosting the SDK yourself.</p>
|
|
436
436
|
<ul>
|
|
437
437
|
<li>In frameworks like React and Vue, you may want to add the package as a dependency.</li>
|
|
438
438
|
</ul>
|
|
439
|
-
<pre><code class="hljs sh language-sh"> npm i dynamsoft-barcode-reader-bundle@10.4.
|
|
439
|
+
<pre><code class="hljs sh language-sh"> npm i dynamsoft-barcode-reader-bundle@10.4.2002 -E
|
|
440
440
|
<span class="hljs-comment"># or</span>
|
|
441
|
-
yarn add dynamsoft-barcode-reader-bundle@10.4.
|
|
441
|
+
yarn add dynamsoft-barcode-reader-bundle@10.4.2002 -E
|
|
442
442
|
</code></pre>
|
|
443
443
|
<p>NOTE that in frameworks, you need to <a href="#specify-the-location-of-the-engine-files-optional">specify the engineResourcePaths</a>.</p>
|
|
444
444
|
<h4 id="host-the-sdk-yourself-optional">Host the SDK yourself (optional)</h4>
|
|
@@ -449,12 +449,12 @@ cvRouter.addResultFilter(filter);
|
|
|
449
449
|
<p><a href="https://www.dynamsoft.com/barcode-reader/downloads/?ver=10.4.20&utm_source=npm&product=dbr&package=js">Download Dynamsoft Barcode Reader JavaScript Package</a></p>
|
|
450
450
|
<p>The resources are located at path <code>dynamsoft/distributables/<pkg>@<version></code>, you can typically include it like this:</p></li>
|
|
451
451
|
</ul>
|
|
452
|
-
<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">"dynamsoft/distributables/dynamsoft-barcode-reader-bundle@10.4.
|
|
452
|
+
<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">"dynamsoft/distributables/dynamsoft-barcode-reader-bundle@10.4.2002/dist/dbr.bundle.js"</span>></span><span class="hljs-tag"></<span class="hljs-name">script</span>></span>
|
|
453
453
|
</code></pre>
|
|
454
454
|
<ul>
|
|
455
455
|
<li>npm</li>
|
|
456
456
|
</ul>
|
|
457
|
-
<pre><code class="hljs sh language-sh"> npm i dynamsoft-barcode-reader-bundle@10.4.
|
|
457
|
+
<pre><code class="hljs sh language-sh"> npm i dynamsoft-barcode-reader-bundle@10.4.2002 -E
|
|
458
458
|
<span class="hljs-comment"># Compared with using CDN, you need to set up more resources.</span>
|
|
459
459
|
npm i dynamsoft-capture-vision-std@1.4.10 -E
|
|
460
460
|
npm i dynamsoft-image-processing@2.4.20 -E
|
|
@@ -721,7 +721,7 @@ settings.timeout = <span class="hljs-number">500</span>;
|
|
|
721
721
|
<h4 id="edit-the-preset-templates-directly">Edit the preset templates directly</h4>
|
|
722
722
|
<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>
|
|
723
723
|
<ul>
|
|
724
|
-
<li>"/dynamsoft-barcode-reader-js-10.4.
|
|
724
|
+
<li>"/dynamsoft-barcode-reader-js-10.4.2002/dynamsoft/templates/"</li>
|
|
725
725
|
</ul>
|
|
726
726
|
<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>
|
|
727
727
|
<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>
|
|
@@ -778,7 +778,7 @@ cvRouter.addResultReceiver(resultReceiver);
|
|
|
778
778
|
<p>The UI is part of the auxiliary SDK "Dynamsoft Camera Enhancer", read more on how to <a href="https://www.dynamsoft.com/barcode-reader/docs/core/programming/features/ui-customization-js.html?lang=js">customize the UI</a>.</p>
|
|
779
779
|
<h2 id="api-documentation">API Documentation</h2>
|
|
780
780
|
<p>You can check out the detailed documentation about the APIs of the SDK at<br />
|
|
781
|
-
<a href="https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/?ver=10.4.
|
|
781
|
+
<a href="https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/?ver=10.4.2002">https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/?ver=10.4.2002</a>.</p>
|
|
782
782
|
<h2 id="system-requirements">System Requirements</h2>
|
|
783
783
|
<p>DBR requires the following features to work:</p>
|
|
784
784
|
<ul>
|
|
@@ -828,7 +828,7 @@ cvRouter.addResultReceiver(resultReceiver);
|
|
|
828
828
|
<p><sup>1</sup> devices running iOS needs to be on iOS 14.3+ for camera video streaming to work in Chrome, Firefox or other Apps using webviews.</p>
|
|
829
829
|
<p>Apart from the browsers, the operating systems may impose some limitations of their own that could restrict the use of the SDK. Browser compatibility ultimately depends on whether the browser on that particular operating system supports the features listed above.</p>
|
|
830
830
|
<h2 id="how-to-upgrade">How to Upgrade</h2>
|
|
831
|
-
<p>If you want to upgrade the SDK from an old version to a newer one, please see <a href="https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/upgrade-guide/index.html?ver=10.4.
|
|
831
|
+
<p>If you want to upgrade the SDK from an old version to a newer one, please see <a href="https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/upgrade-guide/index.html?ver=10.4.2002&utm_source=npm">how to upgrade</a>.</p>
|
|
832
832
|
<h2 id="release-notes">Release Notes</h2>
|
|
833
833
|
<p>Learn about what are included in each release at <a href="https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/release-notes/index.html?ver=10.4.20&utm_source=npm">https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/release-notes/index.html</a>.</p>
|
|
834
834
|
<h2 id="next-steps">Next Steps</h2>
|
|
@@ -836,7 +836,7 @@ cvRouter.addResultReceiver(resultReceiver);
|
|
|
836
836
|
<ol>
|
|
837
837
|
<li>Learn how to <a href="https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/user-guide/use-in-framework.html">Use in Framework</a></li>
|
|
838
838
|
<li>Check out the <a href="https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/samples-demos/index.html?ver=10.4.20">Official Samples and Demo</a></li>
|
|
839
|
-
<li>Learn about the <a href="https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/index.html?ver=10.4.
|
|
839
|
+
<li>Learn about the <a href="https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/index.html?ver=10.4.2002">APIs of the SDK</a></li>
|
|
840
840
|
</ol>
|
|
841
841
|
</div>
|
|
842
842
|
</body>
|
package/README.md
CHANGED
|
@@ -89,7 +89,7 @@ The complete code of the "Hello World" example is shown below
|
|
|
89
89
|
<body>
|
|
90
90
|
<div id="camera-view-container" style="width: 100%; height: 60vh"></div>
|
|
91
91
|
<textarea id="results" style="width: 100%; min-height: 10vh; font-size: 3vmin; overflow: auto" disabled></textarea>
|
|
92
|
-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@10.4.
|
|
92
|
+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@10.4.2002/dist/dbr.bundle.js"></script>
|
|
93
93
|
<script>
|
|
94
94
|
Dynamsoft.License.LicenseManager.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9");
|
|
95
95
|
Dynamsoft.Core.CoreModule.loadWasm(["dbr"]);
|
|
@@ -225,19 +225,19 @@ The simplest way to include the SDK is to use either the [jsDelivr](https://jsde
|
|
|
225
225
|
- jsDelivr
|
|
226
226
|
|
|
227
227
|
```html
|
|
228
|
-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@10.4.
|
|
228
|
+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@10.4.2002/dist/dbr.bundle.js"></script>
|
|
229
229
|
```
|
|
230
230
|
|
|
231
231
|
- UNPKG
|
|
232
232
|
|
|
233
233
|
```html
|
|
234
|
-
<script src="https://unpkg.com/dynamsoft-barcode-reader-bundle@10.4.
|
|
234
|
+
<script src="https://unpkg.com/dynamsoft-barcode-reader-bundle@10.4.2002/dist/dbr.bundle.js"></script>
|
|
235
235
|
```
|
|
236
236
|
|
|
237
237
|
- 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.
|
|
238
238
|
|
|
239
239
|
```html
|
|
240
|
-
<script src="https://download2.dynamsoft.com/packages/dynamsoft-barcode-reader-bundle@10.4.
|
|
240
|
+
<script src="https://download2.dynamsoft.com/packages/dynamsoft-barcode-reader-bundle@10.4.2002/dist/dbr.bundle.js"></script>
|
|
241
241
|
```
|
|
242
242
|
|
|
243
243
|
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.
|
|
@@ -245,9 +245,9 @@ The simplest way to include the SDK is to use either the [jsDelivr](https://jsde
|
|
|
245
245
|
- In frameworks like React and Vue, you may want to add the package as a dependency.
|
|
246
246
|
|
|
247
247
|
```sh
|
|
248
|
-
npm i dynamsoft-barcode-reader-bundle@10.4.
|
|
248
|
+
npm i dynamsoft-barcode-reader-bundle@10.4.2002 -E
|
|
249
249
|
# or
|
|
250
|
-
yarn add dynamsoft-barcode-reader-bundle@10.4.
|
|
250
|
+
yarn add dynamsoft-barcode-reader-bundle@10.4.2002 -E
|
|
251
251
|
```
|
|
252
252
|
|
|
253
253
|
NOTE that in frameworks, you need to [specify the engineResourcePaths](#specify-the-location-of-the-engine-files-optional).
|
|
@@ -265,13 +265,13 @@ There are two options for downloading the SDK, and the usage for each is slightl
|
|
|
265
265
|
The resources are located at path `dynamsoft/distributables/<pkg>@<version>`, you can typically include it like this:
|
|
266
266
|
|
|
267
267
|
```html
|
|
268
|
-
<script src="dynamsoft/distributables/dynamsoft-barcode-reader-bundle@10.4.
|
|
268
|
+
<script src="dynamsoft/distributables/dynamsoft-barcode-reader-bundle@10.4.2002/dist/dbr.bundle.js"></script>
|
|
269
269
|
```
|
|
270
270
|
|
|
271
271
|
- npm
|
|
272
272
|
|
|
273
273
|
```sh
|
|
274
|
-
npm i dynamsoft-barcode-reader-bundle@10.4.
|
|
274
|
+
npm i dynamsoft-barcode-reader-bundle@10.4.2002 -E
|
|
275
275
|
# Compared with using CDN, you need to set up more resources.
|
|
276
276
|
npm i dynamsoft-capture-vision-std@1.4.10 -E
|
|
277
277
|
npm i dynamsoft-image-processing@2.4.20 -E
|
|
@@ -592,7 +592,7 @@ await cvRouter.startCapturing("ReadSingleBarcode");
|
|
|
592
592
|
|
|
593
593
|
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
|
|
594
594
|
|
|
595
|
-
* "/dynamsoft-barcode-reader-js-10.4.
|
|
595
|
+
* "/dynamsoft-barcode-reader-js-10.4.2002/dynamsoft/templates/"
|
|
596
596
|
|
|
597
597
|
Upon completing the template editing, you can invoke the `initSettings` method and provide it with the template path as an argument.
|
|
598
598
|
|
|
@@ -674,7 +674,7 @@ The UI is part of the auxiliary SDK "Dynamsoft Camera Enhancer", read more on ho
|
|
|
674
674
|
## API Documentation
|
|
675
675
|
|
|
676
676
|
You can check out the detailed documentation about the APIs of the SDK at
|
|
677
|
-
[https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/?ver=10.4.
|
|
677
|
+
[https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/?ver=10.4.2002](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/?ver=10.4.2002).
|
|
678
678
|
|
|
679
679
|
## System Requirements
|
|
680
680
|
|
|
@@ -716,7 +716,7 @@ Apart from the browsers, the operating systems may impose some limitations of th
|
|
|
716
716
|
|
|
717
717
|
## How to Upgrade
|
|
718
718
|
|
|
719
|
-
If you want to upgrade the SDK from an old version to a newer one, please see [how to upgrade](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/upgrade-guide/index.html?ver=10.4.
|
|
719
|
+
If you want to upgrade the SDK from an old version to a newer one, please see [how to upgrade](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/upgrade-guide/index.html?ver=10.4.2002&utm_source=npm).
|
|
720
720
|
|
|
721
721
|
## Release Notes
|
|
722
722
|
|
|
@@ -728,4 +728,4 @@ Now that you have got the SDK integrated, you can choose to move forward in the
|
|
|
728
728
|
|
|
729
729
|
1. Learn how to [Use in Framework](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/user-guide/use-in-framework.html)
|
|
730
730
|
2. Check out the [Official Samples and Demo](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/samples-demos/index.html?ver=10.4.20)
|
|
731
|
-
3. Learn about the [APIs of the SDK](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/index.html?ver=10.4.
|
|
731
|
+
3. Learn about the [APIs of the SDK](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/index.html?ver=10.4.2002)
|