Skip to content

Commit

Permalink
Merge pull request #373 from dynamsoft-docs/preview
Browse files Browse the repository at this point in the history
update to internal commit 30186463
  • Loading branch information
Dynamsoft-Henry committed Jun 17, 2024
2 parents 20fc2e1 + 2dc13d6 commit 731a656
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javas

> Note:
>
> * `license` specify a license key to use the library. You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=sample&product=dbr&package=js to get your own trial license good for 30 days.
> * `license` specify a license key to use the library. You can visit [https://www.dynamsoft.com/customer/license/trialLicense?utm_source=sample&product=dbr&package=js](https://www.dynamsoft.com/customer/license/trialLicense?utm_source=sample&product=dbr&package=js) to get your own trial license good for 30 days.
> * `engineResourcePath` tells the library where to get the necessary resources at runtime.
### Generate three components
Expand Down Expand Up @@ -122,6 +122,7 @@ export class VideoDecodeComponent implements OnInit {
> * The method `createInstance()` is called to initialize the library as soon as the component initializes.
> * To release resources timely, the `BarcodeScanner` instance is destroyed with the component in the callback `ngOnDestroy` .
> * The `setUIElement()` method is used to define the user interface (UI) for the library using the native element in `video-decode.component.html`, which was copied in the previous step.
### Edit the img-decode component

* Replace the original code in `img-decode.component.html` with code below to select a local image via `input` element.
Expand Down Expand Up @@ -316,4 +317,4 @@ Run `ng build` to build the project. The build artifacts will be stored in the `

## Support

If you have any questions, feel free to contact Dynamsoft support via [email](mailto:support@dynamsoft.com) or [live chat](https://www.dynamsoft.com/barcode-reader/sdk-javascript/) via the "Let's Chat" button.
If you have any questions, feel free to contact Dynamsoft support via [email](mailto:support@dynamsoft.com) or live chat via the "Chat" button.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javas
```

> Note:
> * `license` specify a license key to use the library. You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=sample&product=dbr&package=js to get your own trial license good for 30 days.
> * `license` specify a license key to use the library. You can visit [https://www.dynamsoft.com/customer/license/trialLicense?utm_source=sample&product=dbr&package=js](https://www.dynamsoft.com/customer/license/trialLicense?utm_source=sample&product=dbr&package=js) to get your own trial license good for 30 days.
> * `engineResourcePath` tells the library where to get the necessary resources at runtime.
### Create a directory "components" and create the following files inside it to represent three components
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javas

> Note:
>
> * `license` specify a license key to use the library. You can visit `https://www.dynamsoft.com/customer/license/trialLicense?utm_source=sample&product=dbr&package=js` to get your own trial license good for 30 days.
> * `license` specify a license key to use the library. You can visit [https://www.dynamsoft.com/customer/license/trialLicense?utm_source=sample&product=dbr&package=js](https://www.dynamsoft.com/customer/license/trialLicense?utm_source=sample&product=dbr&package=js) to get your own trial license good for 30 days.
> * `engineResourcePath` tells the library where to get the necessary resources at runtime.
### Create a directory "components" and create the following files inside it to represent three components
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javas

> Note:
>
> * `license` specify a license key to use the library. You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=sample&product=dbr&package=js to get your own trial license good for 30 days.
> * `license` specify a license key to use the library. You can visit [https://www.dynamsoft.com/customer/license/trialLicense?utm_source=sample&product=dbr&package=js](https://www.dynamsoft.com/customer/license/trialLicense?utm_source=sample&product=dbr&package=js) to get your own trial license good for 30 days.
> * `engineResourcePath` tells the library where to get the necessary resources at runtime.
### Build directory structure
Expand Down Expand Up @@ -374,4 +374,4 @@ See the section about [deployment](https://facebook.github.io/create-react-app/d

## Support

If you have any questions, feel free to contact Dynamsoft support via [email](mailto:support@dynamsoft.com) or [live chat](https://www.dynamsoft.com/barcode-reader/sdk-javascript/) via the "Let's Chat" button.
If you have any questions, feel free to contact Dynamsoft support via [email](mailto:support@dynamsoft.com) or live chat via the "Chat" button.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,3 @@ document.getElementById('readBarcode').onclick = async function() {
}
};
```

You can try the sample code from:

* <a target = "_blank" href="https://demo.dynamsoft.com/samples/dbr/js/1.hello-world/11.read-video-requirejs.html">Read Barcodes from Camera - RequireJS - Demo</a>
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javas

> Note:
>
> * `license` specify a license key to use the library. You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=sample&product=dbr&package=js to get your own trial license good for 30 days.
> * `license` specify a license key to use the library. You can visit [https://www.dynamsoft.com/customer/license/trialLicense?utm_source=sample&product=dbr&package=js](https://www.dynamsoft.com/customer/license/trialLicense?utm_source=sample&product=dbr&package=js) to get your own trial license good for 30 days.
> * `engineResourcePath` tells the library where to get the necessary resources at runtime.
### Create and edit the `VideoDecode` component
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javas

> Note:
>
> * `license` specify a license key to use the library. You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=sample&product=dbr&package=js to get your own trial license good for 30 days.
> * `license` specify a license key to use the library. You can visit [https://www.dynamsoft.com/customer/license/trialLicense?utm_source=sample&product=dbr&package=js](https://www.dynamsoft.com/customer/license/trialLicense?utm_source=sample&product=dbr&package=js) to get your own trial license good for 30 days.
> * `engineResourcePath` tells the library where to get the necessary resources at runtime.
### Create and edit the `VideoDecode` component
Expand Down
4 changes: 2 additions & 2 deletions programming/javascript/user-guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@ There are two options for downloading the SDK, and the usage for each is slightl
```sh
npm i dynamsoft-barcode-reader-bundle@10.2.1000 -E
# Compared with using CDN, you need to set up more resources.
npm i dynamsoft-capture-vision-std@1.2.0 -E
npm i dynamsoft-image-processing@2.2.10 -E
npm i dynamsoft-capture-vision-std@1.2.10 -E
npm i dynamsoft-image-processing@2.2.30 -E
```

The resources are located at the path `node_modules/<pkg>`, without `@<version>`, so the script would be like:
Expand Down

0 comments on commit 731a656

Please sign in to comment.