Skip to content

Commit 8e45777

Browse files
Merge pull request #447 from dynamsoft-docs/preview
update to internal commit a438c6a0
2 parents 89b7701 + aaa61fc commit 8e45777

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed

programming/javascript/api-reference/barcode-scanner.md

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ interface BarcodeScannerConfig {
168168
// The path to your custom JSON template that defines the scanning process.
169169
templateFilePath:'./DBR-PresetTemplates.json',
170170
// engineResourcePaths typically is only assigned when using a framework like React/Angular/Vue where the resources are not in the same location as the script reference.
171-
engineResourcePaths: {rootDirectory:"https://cdn.jsdelivr.net/dynamsoft-barcode-reader-bundle@10.5.3000/dist"},
171+
engineResourcePaths: {rootDirectory:"https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@10.5.3000/dist"},
172172
barcodeFormats: [Dynamsoft.DBR.EnumBarcodeFormat.BF_QR_CODE , Dynamsoft.DBR.EnumBarcodeFormat.BF_CODE_128],
173173
removePoweredByMessage: true,
174174
duplicateForgetTime: 3000,
@@ -344,15 +344,37 @@ interface BarcodeScanResult {
344344
})();
345345
```
346346

347-
<!-- ### UtilizedTemplateNames
347+
### UtilizedTemplateNames
348+
349+
An object that defines the names of templates utilized by the BarcodeScanner for different scanning modes.
348350

349351
```ts
350352
interface UtilizedTemplateNames {
351353
single: string;
352354
multi_unique: string;
353355
image: string;
354356
}
355-
``` -->
357+
```
358+
359+
| Property | Type | Description |
360+
| ----------------------- | ------------------------------ | --------------------------------------------------------------- |
361+
| `single` | `string` | Template name used for single barcode scanning mode. |
362+
| `multi_unique` | `string` | Template name used for scanning multiple unique barcodes. |
363+
| `image` | `string` | Template name used when barcode scanning is based on a provided image input. |
364+
365+
**Code Snippet**
366+
367+
```js
368+
const barcodeScannerConfig = {
369+
//..
370+
utilizedTemplateNames:{
371+
single: `ReadSingleBarcode`,
372+
multi_unique: `ReadBarcodes_SpeedFirst`,
373+
image: `ReadBarcodes_ReadRateFirst`,
374+
}
375+
//..
376+
}
377+
```
356378

357379
### ResultStatus
358380

programming/javascript/user-guide/barcode-scanner.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,5 +225,5 @@ Now that the Barcode Scanner has been initialized and configured, it is ready to
225225
Now that you've implemented the basic functionality, here are some recommended next steps to further explore the capabilities of the Barcode Scanner
226226

227227
1. Learn how to [Customize the Barcode Scanner](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/user-guide/barcode-scanner-customization.html)
228-
2. Check out the [Official Samples and Demo](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/samples-demos/index.html?ver=10.5.30)
228+
2. Check out the [Official Samples and Demo](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/samples-demos/index.html?ver=10.5.3000)
229229
3. Learn about the [APIs of BarcodeScanner](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/barcode-scanner.html?ver=10.5.3000)

0 commit comments

Comments
 (0)