Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion _data/product_version.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
useGroupedVersion: true

version_info_list_js:
- value: latest version(11.0.3000)
- value: latest version(11.0.6000)
- value: 10.x
child:
- 11.0.3000
- 10.5.3000
- 10.4.3100
- 10.4.2002
Expand Down
7 changes: 7 additions & 0 deletions _includes/sidelist-programming/programming-javascript.html
Original file line number Diff line number Diff line change
Expand Up @@ -1057,6 +1057,13 @@
>Edge</a
>
</li>
<li>
<a
href="{{ site.dcvb_js_api }}core/basic-structures/error-info.html"
class="otherLinkColour"
>ErrorInfo</a
>
</li>
<li>
<a
href="{{ site.dcvb_js_api }}core/intermediate-results/enhanced-grayscale-image-unit.html"
Expand Down
2 changes: 2 additions & 0 deletions _includes/sidelist-programming/sidelist-parameters.html
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@
<li><a href="{{ site.dcvb_parameters }}barcode-format-specification/enable-qr-code-model-1.html" class="otherLinkColour">EnableQRCodeModel1</a></li>
<li><a href="{{ site.dcvb_parameters }}barcode-format-specification/find-uneven-module-barcode.html" class="otherLinkColour">FindUnevenModuleBarcode</a></li>
<li><a href="{{ site.dcvb_parameters }}barcode-format-specification/head-module-ratio.html" class="otherLinkColour">HeadModuleRatio</a></li>
<li><a href="{{ site.dcvb_parameters }}barcode-format-specification/include-implied-ai01.html" class="otherLinkColour">IncludeImpliedAI01</a></li>
<li><a href="{{ site.dcvb_parameters }}barcode-format-specification/include-trailing-check-digit.html" class="otherLinkColour">IncludeTrailingCheckDigit</a></li>
<li><a href="{{ site.dcvb_parameters }}barcode-format-specification/min-quiet-zone-width.html" class="otherLinkColour">MinQuietZoneWidth</a></li>
<li><a href="{{ site.dcvb_parameters }}barcode-format-specification/min-ratio-of-barcode-zone-width-to-height.html" class="otherLinkColour">MinRatioOfBarcodeZoneWidthToHeight</a></li>
<li><a href="{{ site.dcvb_parameters }}barcode-format-specification/min-result-confidence.html" class="otherLinkColour">MinResultConfidence</a></li>
Expand Down
6 changes: 6 additions & 0 deletions assets/js/dbrWebVersionSearch.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
[
{
"version": "11.0.6000",
"matchVersion": {
"javascript": "3.0.6000"
}
},
{
"version": "11.0.3000",
"matchVersion": {
Expand Down
12 changes: 10 additions & 2 deletions programming/javascript/api-reference/barcode-scanner.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ interface BarcodeScannerConfig {
barcodeFormats?: EnumBarcodeFormat | Array<EnumBarcodeFormat>;
duplicateForgetTime?: number;
showPoweredByDynamsoft?: boolean;
autoStartCapturing? : boolean;
container?: HTMLElement | string | undefined;
onUniqueBarcodeScanned?: (result: BarcodeResultItem) => void | Promise<void>;
showResultView?: boolean;
Expand All @@ -134,6 +135,7 @@ interface BarcodeScannerConfig {
onInitPrepare?: () => void;
onInitReady?: (components: {cameraView: CameraView;cameraEnhancer: CameraEnhancer;cvRouter: CaptureVisionRouter;}) => void;
onCameraOpen?: (components: {cameraView: CameraView;cameraEnhancer: CameraEnhancer;cvRouter: CaptureVisionRouter;}) => void;
onCaptureStart?: (components: {cameraView: CameraView;cameraEnhancer: CameraEnhancer;cvRouter: CaptureVisionRouter;}) => void;
}
```

Expand All @@ -148,6 +150,7 @@ interface BarcodeScannerConfig {
| `barcodeFormats`(optional) | `EnumBarcodeFormat` \| `Array<EnumBarcodeFormat>` | `N/A` | [EnumBarcodeFormat](https://www.dynamsoft.com/capture-vision/docs/core/enums/barcode-reader/barcode-format.html?lang=js&product=dbr) or an array of `EnumBarcodeFormat` specifying the formats to recognize. |
| `duplicateForgetTime`(optional) | `number` | `3000` | Time interval in milliseconds before duplicate barcodes can be reported again. |
| `showPoweredByDynamsoft`(optional) | `boolean` | `true` | Whether to show the "powered by" message. |
| `autoStartCapturing`(optional) | `boolean` | `true` | Whether to start capturing directly after opening the camera. |
| `container`(optional) | `HTMLElement` \| `string` | `N/A` | A container element or selector for rendering the scanner and/or result view. |
| `showResultView`(optional) | `boolean` | `true` | Whether to display a result view in SM_MULTI_UNIQUE mode. |
| `showUploadImageButton`(optional) | `boolean` | `false` | Determines the visibility of the "uploadImage" button that allows the user to upload an image for decoding. |
Expand All @@ -157,6 +160,7 @@ interface BarcodeScannerConfig {
| `onInitPrepare` | `N/A` | `N/A` | A callback function that is triggered before the scanner components are initialized. |
| `onInitReady` | `N/A` | `N/A` | Called when the scanner components have been successfully initialized and are ready. |
| `onCameraOpen` | `N/A` | `N/A` | Called when the camera is successfully opened for the first time or after each camera switch. |
| `onCaptureStart` | `N/A` | `N/A` | Called when the capture process begins. |

**Code Snippet**

Expand All @@ -173,11 +177,12 @@ interface BarcodeScannerConfig {
// The path to your custom JSON template that defines the scanning process.
templateFilePath:'./DBR-PresetTemplates.json',
// 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.
engineResourcePaths: {rootDirectory:"https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.0.3000/dist"},
engineResourcePaths: {rootDirectory:"https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.0.6000/dist"},
barcodeFormats: [Dynamsoft.DBR.EnumBarcodeFormat.BF_QR_CODE , Dynamsoft.DBR.EnumBarcodeFormat.BF_CODE_128],
showPoweredByDynamsoft: false,
duplicateForgetTime: 3000,
showUploadImageButton: true,
autoStartCapturing: true,
// The container for rendering the scanner and/or result view. Note that ResultView is only valid for SM_MULTI_UNIQUE mode. If not specified, a full-viewport default UI will be created.
container: "#camera-view-container",
scannerViewConfig: {
Expand Down Expand Up @@ -211,7 +216,10 @@ interface BarcodeScannerConfig {
components.cameraEnhancer.setScanRegion(region);
},
onCameraOpen: (components) => {
// Do something with the foundational components
// Do something with the foundational components when the camera is successfully opened for the first time or after each camera switch
},
onCaptureStart: (components) => {
// Do something with the foundational components when the capture process begins
},
};
// Initialize the BarcodeScanner with the above BarcodeScannerConfig object
Expand Down
1 change: 1 addition & 0 deletions programming/javascript/release-notes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ permalink: /programming/javascript/release-notes/index.html

# DBR JavaScript SDK - Release Notes

- [11.0.6000 (08/14/2025)](js-11.html#1106000-08142025)
- [11.0.3000 (07/09/2025)](js-11.html#1103000-07092025)
- [10.5.3000 (04/24/2025)](js-10.html#1053000-04242025)
- [10.4.3100 (01/03/2025)](js-10.html#1043100-01032025)
Expand Down
21 changes: 21 additions & 0 deletions programming/javascript/release-notes/js-11.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,27 @@ noTitleIndex: true

# Release Notes for Dynamsoft Barcode Reader JavaScript SDK

## 11.0.6000 (08/14/2025)

### New

- Introduced new samples:

- [`Pick One to Fill`](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/pick-one-to-fill/index.html) - [run↗](https://demo.dynamsoft.com/samples/dbr/js/barcode-scanner-api-samples/scan-single-barcode/pick-one-to-fill/index.html?utm_source=sampleReadme): Pick one and auto-fill fields by simply opening the camera and scanning a group of barcodes.
- [`Use Customized Template`](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/use-customized-template/index.html) - [run↗](https://demo.dynamsoft.com/samples/dbr/js/barcode-scanner-api-samples/scan-single-barcode/use-customized-template/index.html?utm_source=sampleReadme): Use different customized templates for scanning various barcode types.
- [`Batch Inventory`](https://github.com/Dynamsoft/barcode-reader-javascript-samples/blob/main/barcode-scanner-api-samples/scan-multiple-barcodes/batch-inventory/index.html) - [run↗](https://demo.dynamsoft.com/samples/dbr/js/barcode-scanner-api-samples/scan-multiple-barcodes/batch-inventory/index.html?utm_source=sampleReadme): An inventory management tool scan barcodes in batches and provide real-time analysis of the scanned data.
- [`Read and Parse GS1-AI`](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/foundational-api-samples/use-case/read-and-parse-GS1-AI/index.html) - [run↗](https://demo.dynamsoft.com/samples/dbr/js/foundational-api-samples/use-case/read-and-parse-GS1-AI/index.html?utm_source=sampleReadme): Read GS1 Application Identifier (AI) barcode and parse its structured data.

- Template Version Validation: Introduced version checking for templates to prevent compatibility issues and mismatches.

### Changed

- License Validation Behavior: Instead of stopping execution immediately on an invalid license module, the library now continues processing and returns results from modules with valid licenses. An warning is still reported to indicate the license issue.

### Fixed

- Fixed various minor bugs and improved overall stability.

## 11.0.3000 (07/09/2025)

### [Highlights](https://www.dynamsoft.com/release-highlights/?product=dcv3.0)
Expand Down
Loading